Closed andriuskr closed 2 years ago
Please see #14 and check for retained values on your MQTT broker.
Deleted this topic from broker, rebooted. Has retained flag. After HA reboot it still show TV as on...
Maybe the broker of the TV has also the retained flag set? It would be possible to ignore messages having the retained flag set, but I don't know if this breaks anything else.
Yes, correct. TV broker also has retained flag.
I can confirm that it happens also to me for last few weeks. Retained flag is on.
Only for the state
topic or others as well?
Have you tried to delete the flag on both brokers?
I can reproduce the behaviour. My code already handles (ignores) retained messages, but the check isn't working any more. It looks like the boolean flag was changed to a number (0 & 1). Let's see if this is a bug in HA or if missed some breaking API changes.
Fixed. Retained messages will be ignored.
After rebooting Home Asisstant TV is shown as ON. Does not respond to OFF/ON button. Turning ON tv manually solves the problem.