You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im totally confused about the usage of setState. How do i send an outbound command to the ESP to toggle a switch? The example provided is unfortunately very vague.
I have tried for hours to get it to work in various ways but at best only got all Switches to toggle at the same. I added each entity to an array set as a listener for an event emitter but this never worked properly.
What is the way to send a state change to the ESP board outside of the "entity.on" code block?
can you please provide a functioning example? are event emitters even required for this?
The text was updated successfully, but these errors were encountered:
@thwerks setState was not implemented on every entity, so instead I have been using entity.connection.<entityType>CommandService to update the states of my entities.
An example of this would be:
Awesome, Finally, i was really excited to press further with this. Thanks for that, ill check it out next time this comes up in the lab. Much appreciated.
Im totally confused about the usage of setState. How do i send an outbound command to the ESP to toggle a switch? The example provided is unfortunately very vague.
I have tried for hours to get it to work in various ways but at best only got all Switches to toggle at the same. I added each entity to an array set as a listener for an event emitter but this never worked properly.
What is the way to send a state change to the ESP board outside of the "entity.on" code block?
can you please provide a functioning example? are event emitters even required for this?
The text was updated successfully, but these errors were encountered: