@XaF
THanks, I think this is HA side issue. I was using MQTT explorer and I changed the name of the sensor at panel to “Mainfloor Washroon Flood 3” (with the spelling mistake) and indeed I see the correct information being sent to mqtt broker.
{"event": "ZONE_EVENT", "zone_event_type": "ZONE_UPDATE", "zone": {"id": "F2D6A1", "type": "Water", "name": "Mainfloor Washroon Flood 3", "group": "WaterSensor", "status": "Closed", "state": "0", "zone_id": 21, "zone_physical_type": 8, "zone_alarm_type": 0, "zone_type": 15, "partition_id": 0}, "version": 1, "requestID": "59318577-28f8-41b1-ac45-1aaea2379c2e"}
Then, I changed it back to “Mainfloor Washroom Flood” which was the original name, but I also have the alarm.com integration and so HA adds _2 to all duplicate sensors so the qolsysgw sensors have the _2 add to the sensor in HA.
this could be the problem here:
Logger: homeassistant.components.binary_sensor
Source: helpers/entity_platform.py:598
Integration: Binary sensor (documentation, issues)
First occurred: 9:34:51 PM (2 occurrences)
Last logged: 9:34:51 PM
Platform mqtt does not generate unique IDs. ID qolsys_panel_p0z21 already exists - ignoring binary_sensor.mainfloor_bathroom_flood_2
But I know the panel is broadcasting correctly, because I tampered the sensor, and thus is the mqtt explorer sent this entity imediately,
{"event": "ZONE_EVENT", "zone_event_type": "ZONE_UPDATE", "zone": {"id": "F2D6A1", "type": "Water", "name": "Mainfloor Washroom Flood", "group": "WaterSensor", "status": "Closed", "state": "0", "zone_id": 21, "zone_physical_type": 8, "zone_alarm_type": 0, "zone_type": 15, "partition_id": 0}, "version": 1, "requestID": "84224312-292a-4de8-88de-be78da5bd642"}
So, now, im not sure what to do. I could delete the sensor from the panel, add it again with a completely different name (Mudroom Washroom Flood), that should show up as a different sensor, and then eventually the the old “Mainfloor Washroon Flood” I can delete (but there is no option to delete it, which is strange).
In MQTT explorer, there is an option to “clear this topic” but everytime I press it, it says “make sure you know what you are doing”…which I don’t so I don’t press. But I think the issue lies in the HA environment.
UPDATE: Problem is solved. I followed these instructions using MQTT Explorer and delete the actual sensor from:
homeassistant/sensor/name_of_your_sensor/config
With MQTT Explorer I noticed there were duplicate names and the other variations of the same sensor. I deleted all of them by pressing the “Clear this topic”, and that deletes the sensor in HA after restart. This then cleared the error in the log file, and then I tampered the sensor and it eventually showed up, reporting correctly in HA.
Long story short, MQTT Explorer is a nice tool to have if you are having issues with MQTT sensors.