часто шлёт "device_announce" (иногда несколько раз в секунду) – это нормально? Как я понимаю, это вызывает interview, которое часто обламывается и устройство "вылетает" из сети.
* Устройство часто шлёт о своём статусе, иногда несколько раз в секунду, даже если статус не менялся.
Z2M v1.25.1
info 2022-05-02 07:30:33: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"front_socket","ieee_address":"0x00222a4019204ba1"},"type":"device_announce"}'
info 2022-05-02 07:30:48: Successfully interviewed 'front_socket', device has successfully been paired
info 2022-05-02 07:30:48: Device 'front_socket' is supported, identified as: Livolo Zigbee socket (TI0001-socket)
info 2022-05-02 07:30:49: Configuring 'front_socket'
info 2022-05-02 07:30:49: Successfully configured 'front_socket'
info 2022-05-02 07:30:49: MQTT publish: topic 'zigbee2mqtt/front_socket', payload '{"linkquality":0,"state":"ON"}'
info 2022-05-02 07:30:49: Successfully interviewed 'front_socket', device has successfully been paired
info 2022-05-02 07:30:49: Device 'front_socket' is supported, identified as: Livolo Zigbee socket (TI0001-socket)
info 2022-05-02 07:30:49: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Zigbee socket","exposes":[{"features":[{"access":7,"description":"On/off state of the switch","name":"state","property":"state","type":"binary","value_off":"OFF","value_on":"ON","value_toggle":"TOGGLE"}],"type":"switch"},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"TI0001-socket","options":[],"supports_ota":false,"vendor":"Livolo"},"friendly_name":"front_socket","ieee_address":"0x00222a4019204ba1","status":"successful","supported":true},"type":"device_interview"}'
info 2022-05-02 07:31:02: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"front_socket","ieee_address":"0x00222a4019204ba1"},"type":"device_announce"}'
info 2022-05-02 07:31:02: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"front_socket","ieee_address":"0x00222a4019204ba1"},"type":"device_announce"}'
info 2022-05-02 07:31:03: MQTT publish: topic 'zigbee2mqtt/front_socket', payload '{"linkquality":0,"state":"ON"}'
info 2022-05-02 07:31:03: MQTT publish: topic 'zigbee2mqtt/front_socket', payload '{"linkquality":0,"state":"ON"}'
info 2022-05-02 07:31:03: MQTT publish: topic 'zigbee2mqtt/front_socket', payload '{"linkquality":0,"state":"ON"}'
info 2022-05-02 07:31:05: MQTT publish: topic 'zigbee2mqtt/front_socket', payload '{"linkquality":0,"state":"ON"}'
info 2022-05-02 07:31:05: MQTT publish: topic 'zigbee2mqtt/front_socket', payload '{"linkquality":0,"state":"ON"}'
info 2022-05-02 07:31:27: MQTT publish: topic 'zigbee2mqtt/front_socket', payload '{"linkquality":0,"state":"ON"}'
...
info 2022-05-02 09:08:00: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"front_socket","ieee_address":"0x00222a4019204ba1"},"type":"device_announce"}'
warn 2022-05-02 09:08:01: Device 'front_socket' left the network
info 2022-05-02 09:08:01: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"front_socket","ieee_address":"0x00222a4019204ba1"},"type":"device_leave"}'
error 2022-05-02 09:08:02: Failed to read state of 'front_socket' after reconnect (Cannot read property 'defaultSendRequestWhen' of undefined)
info 2022-05-02 09:08:11: Device 'front_socket' joined
info 2022-05-02 09:08:11: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"front_socket","ieee_address":"0x00222a4019204ba1"},"type":"device_joined"}'
info 2022-05-02 09:08:11: Starting interview of 'front_socket'
info 2022-05-02 09:08:11: MQTT publish: topic 'zigbee2mqtt/bridge/event',
это особенность устройств livolo. рекомендуют держать их отдельно от остальных, на 26-ом канале. и координатор надо иногда включать в режим спаривания, чтобы устройства возвращались. за пару лет так и не получилось в z2m нормально с ними работать.
Юзаю пять выключателей livolo, оставил режим спаривания, включил белый список. С соседями уживаются.
Не могу найти эту опцию в официальной документации (https://www.zigbee2mqtt.io/guide/configuration/). Как я понял из PR (https://github.com/Koenkk/zigbee2mqtt/issues/1643), надо поставить permit_join: true и whitelist: [ '0x000b57fffec6a5b2' ] (список адресов). Так?
Да но уже все в гуях
Попал в такую западню: добавил в белый список только Livolo устройства, и Z2M стал устройства не из этого списка удалять. Я схватился за голову... В логе это выглядит так:
Обсуждают сегодня