I recently added a tuya ZA03 into HA over Z2M. I’m struggling how to use the device over an automation
The details (volumne, ring tone & duration) are working over the Z2M page. How should I use them in a automation?
My issue: Sometimes it does what I configured. Sometimes not. For example, I added a ringtone 4, sometimes it uses that, sometimes the old value I have. How I’m supposed to send the data?
It basically first sends the duraction in an OFF state and setting the value. After that, it will activate the state but with a duration of null. If i’m sending the duration together with the ON it wont work.
Probably something’s odd in Z2M but considering this I’ll just send a first payload with OFF and the parameters, followed by the ON call.
That link about device_id’s was just as info.
Switching devices from one state to another can be an issue which might be solved by adding a small delay in between those actions.