/
Commands

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.

Lets look at the previously given config payload for a light. In the config payload we have the following line

command_topic: connect/light/001fee00000053a6/17880107102b0c/set

In this example API ID = connect. This will be different for all APIs and full topic is provided in config payload

To change a value for this entity we need to send a valid json payload to the given topic

Turning the light off:

{ "state": OFF }

Changing brightness:

{ "brightness": 80 }