motion sensor not sending MQTT
Just starting with zigbee2mqtt.
2 joined devices:
- motion sensor Aqara
- Hue dimmer
the dimmer is sending nicely updates to MQTT, but the motion sensor notices updates but does not send them to mqtt?
this is in the log:
2018-11-29 16:08:43 - info: MQTT publish, topic: 'zigbee2mqtt/0x0017880104ec5bb3', payload: '{"battery":100,"linkquality":68,"action":"down-press","brightness":50}' 2018-11-29 16:08:44 - debug: Received zigbee message of type 'cmdOn' with data '{"cid":"genOnOff","data":{}}' of device 'RWL021' (0x0017880104ec5bb3) 2018-11-29 16:08:44 - info: MQTT publish, topic: 'zigbee2mqtt/0x0017880104ec5bb3', payload: '{"battery":100,"linkquality":76,"action":"on"}' 2018-11-29 16:08:44 - debug: Received zigbee message of type 'cmdOffWithEffect' with data '{"cid":"genOnOff","data":{"effectid":0,"effectvariant":0}}' of device 'RWL021' (0x0017880104ec5bb3) 2018-11-29 16:08:44 - info: MQTT publish, topic: 'zigbee2mqtt/0x0017880104ec5bb3', payload: '{"battery":100,"linkquality":92,"action":"off"}' 2018-11-29 16:08:49 - debug: Received zigbee message of type 'attReport' with data '{"cid":"msIlluminanceMeasurement","data":{"measuredValue":32}}' of device 'undefined' (0x00158d000272b736) 2018-11-29 16:08:49 - debug: Received zigbee message of type 'attReport' with data '{"cid":"msOccupancySensing","data":{"occupancy":1}}' of device 'undefined' (0x00158d000272b736) 2018-11-29 16:08:56 - debug: Received zigbee message of type 'attReport' with data '{"cid":"msIlluminanceMeasurement","data":{"measuredValue":32}}' of device 'undefined' (0x00158d000272b736) 2018-11-29 16:08:56 - debug: Received zigbee message of type 'attReport' with data '{"cid":"msOccupancySensing","data":{"occupancy":1}}' of device 'undefined' (0x00158d000272b736)
Why is this data not passed through?
of device 'undefined' indicates that the device has not been paired correctly.
Remove all occurences of 0x00158d000272b736 from database.db and repair (using https://github.com/Koenkk/zigbee2mqtt/wiki/Pairing-devices#xiaomi)
Was my first device i added and it blinked correctly. What could have gone wrong?
Seems the device is reporting correctly but something in Zigbee2mqtt canβt handle it correctly?
When the pairing procedures it not completed the device has a modelId of undefined. A modelId which zigbee2mqtt doesn't know.
I came here for a similar issue.
I restart the zigbee2mqtt container nightly, and after that happens, HASS will not register the motion sensors updates. If i restart HASS, it starts registering the changes again.
This behaviour only started occurring after i updated to HASS v83.
I can see the occupancy changes in z2m as expected, but i cannot see the changes in HASS. I haven't inspected the MQTT bus yet though.
@palitu did you update from zigbee2mqtt 0.2 to the dev? This version has a breaking change which adds _occupancy behind the sensor name.
@Koenkk i dont think so, it is a lastest docker release image. All of the MQTT messages are going as expected, when using mosquitto_sub, but HA is not updating.
mosquitto_pub -h 192.168.1.20 -t zigbee2mqtt/motion_toilet -m '{"occupancy":true,"linkquality":92,"battery":99,"voltage":3025}'
should be the same as what Z2M is sending, but i get no updates. Do you know how i check mqtt discovered devices in HA? or how to debug them? Everything else seems to work
Ok this is weird - When i restart Z2M, i get the following in HASS:
2018-12-09 14:47:44 DEBUG (MainThread) [homeassistant.components.mqtt] Subscribing to zigbee2mqtt/Motion_Toilet
However, teh next messages that come through mosquitto_sub is:
zigbee2mqtt/Motion_Toilet {"occupancy":false,"linkquality":78,"battery":99,"voltage":3025}
and nothing comes through the HASS logs. I am receiving other messages from xiaomi plugs and other things.
That's really strange, I would recommend opening an issue at home assistant (as I don't see what wrong here either).
Yeah, I have started A post on the hass forums, as everything is working on your side!
It is an odd issue
On Mon, 10 Dec 2018, 03:28 Koen Kanters <[email protected] wrote:
That's really strange, I would recommend opening an issue at home assistant (as I don't see what wrong here either).
β You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Koenkk/zigbee2mqtt/issues/641#issuecomment-445564234, or mute the thread https://github.com/notifications/unsubscribe-auth/AGU9IK3AAYeBFImznKA_Uz-oruYA8-WFks5u3WRWgaJpZM4Y6AbP .
This was a bug in the way that HA restored devices that were offline. It is fixed in the 84.1.
thanks :)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.