I have the latest home assistant os on rpi3, with its own mqtt broker. Also I have an inels 204, which sends state of switches like this:
topic: inels/status/2C6A6F10C28E/02/04EBB6
payload is either “02\n00\n” or “02\n01\n” (if I understand well).
It is a manually configured device/entity, all the others (set and availability) looks working, but I cannot find a working solution for the status, it remains continuously unknown.
There is no syntax error, there is no anything in the log of hoas, but also there is no change.
configuration.yaml contains the include:
mqtt: !include elko_devices.yaml
and it contains:
Use this to trigger it manually and see what’s happening:
Troubleshooting MQTT? MQTT-Explorer can help you be successful!
If you have Apps available, try adding this App repository to your Apps list. GitHub - GollumDom/addon-repository · GitHub.
With this you can see that the broker sees and likely find the bug.
in MQTT explorer I see that the state is "02 00 " or "02 01 " but I don’t know if those are spaces, newlines or anything else, and also I don’t know what is received by home assistant. I see (sometimes) the event is there, that means the topic is fine, but still no action, so the payload does not match.
Yes, inels switches have this weird payloads, for setting the device (command topic) I need to send “01\n00\n00\n” or “02\n00\n00\n” and that part works. Also availability is really “on\n” and “'off\n” that works too.
MQTT is really connected and working, the other direction works, just I have no idea what is the real payload and how to tell hoas to accept it.
Even in MQTT explorer I could not set/send anything, that do something.