Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When an update to a device occur, Glamox Connect will then send the delta on the given state topic. This means that you will NOT get the full state of the entity, only the change. Please note that even though it is the delta, it is possible to get multiple values in the same update

Example:
Given a state for a light as following

Code Block
{
  "brightness": 100,
  "color_temp": 200,
  "color_temp_kelvin": 5000,
  "state": "ON"
}

If we change the brightness of the light in the example to 80%, the state update sent on the state_topic will be as following

Code Block
{
  "brightness": 80
}

If a light has been turned on by changing the brightness from previous setting, the message will look something like this

Code Block
{
  "brightness": 80,
  "state": "ON"
}

Similar for sensors, typical status updates will look like this

...

Code Block
{
  "temperature": 25.1
}
Code Block
{
  "occupancy": "ON"
}

Sending commands

If you want to send commands to a device, you will need to send it to the entity on the command_topic provided in the config payload.

...