Events
Your device must be added to localtuya to use Events
Localtuya fires an events on homeassisstant
that can be used on automation or monitoring your device behaviour from Developer tools -> events (1)
- to monitor your device subscribe to any event below and trigger action on the device
With this you can automate devices such as scene remote
(1) to trigger an action on homeassistant
- e.g.
single click
,double click
orhold
.
Event | Data |
---|---|
localtuya_device_triggered |
{"data": {"device_id", "states"} } |
localtuya_device_dp_triggered |
{"data": {"device_id", "dp", "value"} } |
localtuya_states_update |
{"data": {"device_id", "old_states", "new_states"} } |
Exaples