updated method to set value, toggle not updated yet
get volume from json data