Turn OH Switch off.
Please notice the red dot: switch is Off for OH.
Now turn OH switch On.
Please notice the green dot: switch is On for OH.
Physical PowerOutlet goes Off and On. Great.
Now physically unplug the PowerOutlet and do it again:
Same result (I won’t post the same hard copies ! ).
For OH, the PowerOutlet goes On and Off, although we know that nothing really happened because the PowerOutlet is unplugged.
Can you try to reproduce, it is quite fast and easy to do.
If auto-update is off:
– status follows with a small delay
– if plug is removed: no status change.
if auto-update is on: status always follows, even with plug removed
The problem is on your side and you don’t provide the necessary information: configuration yaml, thing-definition, what plug is it…(leave out sensitive stuff)?
But if you don’t post your code it’s searching in the dark (and I’m out).
I don’t use MainUI for visualization or switching devices, so am not of any further help. I don’t have any red or green dots in BasicUI …
The only advice I can give you: get rid of the transformations, use attribute in the enhanced setup settings of z2m (or the configuration.yaml if you are using that).
That does make setting up devices a lot easier.
And double check with a mqtt sniffer your state and command topics.
You don’t read what I write.
You complain I didn’t post the thing definition, but I did. Please looks above.
The plug is _TZ3000_cehuw1lw (data from a similar one on the native Zigbee binding).
Will connect to Z2m and provide what it reports when I come back home.
And I do notice it doesn’t work the way I expect.
With auto-update false, it doesn’t work anymore as I already described above.
I can assure you I really tried to believe it works, but believing doesn’t fix anything.