def refresh
      json = JSON(Net::HTTP.get(URI.parse(base_url)))
      unpack(json)
    end
def refresh
      json = JSON(Net::HTTP.get(URI.parse(base_url)))
      unpack(json)
    end
Refresh the state of the lamp