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
I see in one example using a power property as a Boolean to represent the state of and to control the state of a device say a light with true being on and false being off.
Is this the standard approach for a property with an on/off state?
I realized this after doing an implementation using enum with ON/OFF datatypes.
What is the best practice to implement a switch device in Homie?
The text was updated successfully, but these errors were encountered:
There is currently no convention regarding the actual properties of a node.
However, it is marked as an issue to include common device profiles.
See #152
Maybe one can extend the specification for a boolean property, accepting "ON" in addition to "TRUE" and "OFF" in addition for "FALSE".
I usually have called the topics for an on/off switch: "device/light/ONOFF/set" Maybe also the combination ".../something/ONOFF/set" could be standardized.
I see in one example using a power property as a Boolean to represent the state of and to control the state of a device say a light with true being on and false being off.
Is this the standard approach for a property with an on/off state?
I realized this after doing an implementation using enum with ON/OFF datatypes.
What is the best practice to implement a switch device in Homie?
The text was updated successfully, but these errors were encountered: