Skip to content

Questions about using the EMS-ESP API #1643

Closed Answered by MichaelDvP
martinsamus asked this question in Q&A
Discussion options

You must be logged in to vote

MQTT didn't work for setting the data (I don't know why,

MQTT uses wildcard subscriptions, make sure your broker accept this. You have write to topic device or device/entity, not device_data as published. Wrting to topic device has to be json {"cmd":"<cmd>", "data":<data>, "id":<n>}, writing to device/entity can be a single value, "data" and "value" are equivalent, also "id" and "hc". Skipping hc defaults to first hc.
e.g. thermostat {"cmd":"seltemp", "data":20, "id":1}, thermostat/seltemp {"data":20}, thermostat/hc1/seltemp {"value":20}, thermostat/hc1/seltemp 20 are equivalent

What value should I set "on"/"off" or true/false???

You can use always on/Off, true/false, 1/0 or the trans…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@martinsamus
Comment options

@proddy
Comment options

@martinsamus
Comment options

@proddy
Comment options

Answer selected by martinsamus
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants