HAScene class¶
-
class HAScene : public HABaseDeviceType¶
HAScene adds a new scene to the Home Assistant that triggers your callback once activated.
Note
You can find more information about this entity in the Home Assistant documentation: https://www.home-assistant.io/integrations/scene.mqtt/
Public Functions
-
HAScene(const char *uniqueId)¶
- Parameters
uniqueId – The unique ID of the scene. It needs to be unique in a scope of your device.
-
inline void setIcon(const char *icon)¶
Sets icon of the scene. Any icon from MaterialDesignIcons.com (for example:
mdi:home
).- Parameters
icon – The icon name.
-
inline void setRetain(const bool retain)¶
Sets retain flag for the scene’s command. If set to
true
the command produced by Home Assistant will be retained.- Parameters
retain –
-
HAScene(const char *uniqueId)¶