Closed wonsky007 closed 1 year ago
Then sending you must using dec or hex so 2
or 0x02
shall working.
Try first reading the attribute for getting the current string so you is knowing how it was from the start.
I've tried set value to 2
or 0x02
yesterday without luck.
This is what I read from device:
In next step I've change value to 2
Readed again and attribut was still ExternalSwitchType.Toggle. Solved by restarting home assistant and write value 2. It looks like ExternalSwitchType.Momentary was cached somewhere by HA or web browser. Sometimes restart is best solution.
Fixed by #1214.
Hi,
Im using TS0002 relay [Quirk: zhaquirks.tuya.ts000x.Switch_2G_GPP] and want change ExternalSwitchType from Toggle to Momentary. Its failing every time because conversion error, even when trying to write value readed from device. HA version: 2023.1.7 and current ZHA
Debug logs below: