[Модуль] zigbee2mqtt (zigbee2mqtt)

Разработка дополнительных модулей, подключение различных приложений.

Модератор: immortal

Denis_k
Сообщения: 532
Зарегистрирован: Сб мар 19, 2016 7:24 pm
Благодарил (а): 273 раза
Поблагодарили: 24 раза

Re: [Модуль] zigbee2mqtt (zigbee2mqtt)

Сообщение Denis_k » Пт мар 27, 2020 9:30 am

модуль постоянно краснеет, лог при этом выглядит так:

Код: Выделить всё

1585290619: /opt/zigbee2mqtt/data/log/2020-03-27.08-57-56/log.txt
debug 2020-03-27 09:27:58: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-03-27 09:22:58: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-03-27 09:17:58: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-03-27 09:12:58: Saving state to file /opt/zigbee2mqtt/data/state.json
info 2020-03-27 09:11:44: MQTT publish: topic 'zigbee2mqtt/0x00158d000410c4ae', payload '{"battery":91,"voltage":2985,"contact":true,"linkquality":118}'
debug 2020-03-27 09:11:44: Received Zigbee message from '0x00158d000410c4ae', type 'attributeReport', cluster 'genBasic', data '{"65281":{"1":2985,"3":30,"4":17320,"5":23,"6":[0,720910],"10":0,"100":0}}' from endpoint 1 with groupID 0
info 2020-03-27 09:08:04: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.11.0","commit":"e140cf5","coordinator":{"type":"zStack30x","meta":{"transportrev":2,"product":2,"majorrel":2,"minorrel":7,"maintrel":2,"revision":20200128}},"log_level":"debug","permit_join":false}'
info 2020-03-27 09:08:04: Zigbee: disabling joining new devices.
debug 2020-03-27 09:08:04: Received MQTT message on 'zigbee2mqtt/bridge/config/permit_join' with data 'false'
debug 2020-03-27 09:07:58: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-03-27 09:02:58: Saving state to file /opt/zigbee2mqtt/data/state.json
info 2020-03-27 08:58:03: MQTT publish: topic 'homeassistant/sensor/0x00158d000410c4ae/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x00158d000410c4ae","json_attributes_topic":"zigbee2mqtt/0x00158d000410c4ae","name":"0x00158d000410c4ae_linkquality","unique_id":"0x00158d000410c4ae_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000410c4ae"],"name":"0x00158d000410c4ae","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-03-27 08:58:03: MQTT publish: topic 'homeassistant/sensor/0x00158d000410c4ae/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/0x00158d000410c4ae","json_attributes_topic":"zigbee2mqtt/0x00158d000410c4ae","name":"0x00158d000410c4ae_battery","unique_id":"0x00158d000410c4ae_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000410c4ae"],"name":"0x00158d000410c4ae","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-03-27 08:58:03: MQTT publish: topic 'homeassistant/binary_sensor/0x00158d000410c4ae/contact/config', payload '{"payload_on":false,"payload_off":true,"value_template":"{{ value_json.contact }}","device_class":"door","state_topic":"zigbee2mqtt/0x00158d000410c4ae","json_attributes_topic":"zigbee2mqtt/0x00158d000410c4ae","name":"0x00158d000410c4ae_contact","unique_id":"0x00158d000410c4ae_contact_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000410c4ae"],"name":"0x00158d000410c4ae","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-03-27 08:58:03: MQTT publish: topic 'homeassistant/sensor/0x00158d00045d0200/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x00158d00045d0200","json_attributes_topic":"zigbee2mqtt/0x00158d00045d0200","name":"0x00158d00045d0200_linkquality","unique_id":"0x00158d00045d0200_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00045d0200"],"name":"0x00158d00045d0200","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-03-27 08:58:03: MQTT publish: topic 'homeassistant/sensor/0x00158d00045d0200/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/0x00158d00045d0200","json_attributes_topic":"zigbee2mqtt/0x00158d00045d0200","name":"0x00158d00045d0200_battery","unique_id":"0x00158d00045d0200_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00045d0200"],"name":"0x00158d00045d0200","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-03-27 08:58:03: MQTT publish: topic 'homeassistant/sensor/0x00158d00045d0200/pressure/config', payload '{"unit_of_measurement":"hPa","device_class":"pressure","value_template":"{{ value_json.pressure }}","state_topic":"zigbee2mqtt/0x00158d00045d0200","json_attributes_topic":"zigbee2mqtt/0x00158d00045d0200","name":"0x00158d00045d0200_pressure","unique_id":"0x00158d00045d0200_pressure_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00045d0200"],"name":"0x00158d00045d0200","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-03-27 08:58:03: MQTT publish: topic 'homeassistant/sensor/0x00158d00045d0200/humidity/config', payload '{"unit_of_measurement":"%","device_class":"humidity","value_template":"{{ value_json.humidity }}","state_topic":"zigbee2mqtt/0x00158d00045d0200","json_attributes_topic":"zigbee2mqtt/0x00158d00045d0200","name":"0x00158d00045d0200_humidity","unique_id":"0x00158d00045d0200_humidity_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00045d0200"],"name":"0x00158d00045d0200","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-03-27 08:58:03: MQTT publish: topic 'homeassistant/sensor/0x00158d00045d0200/temperature/config', payload '{"unit_of_measurement":"°C","device_class":"temperature","value_template":"{{ value_json.temperature }}","state_topic":"zigbee2mqtt/0x00158d00045d0200","json_attributes_topic":"zigbee2mqtt/0x00158d00045d0200","name":"0x00158d00045d0200_temperature","unique_id":"0x00158d00045d0200_temperature_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00045d0200"],"name":"0x00158d00045d0200","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-03-27 08:58:03: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.11.0","commit":"e140cf5","coordinator":{"type":"zStack30x","meta":{"transportrev":2,"product":2,"majorrel":2,"minorrel":7,"maintrel":2,"revision":20200128}},"log_level":"debug","permit_join":true}'
info 2020-03-27 08:58:02: MQTT publish: topic 'zigbee2mqtt/0x00158d000410c4ae', payload '{"battery":91,"voltage":2985,"contact":true,"linkquality":115}'
info 2020-03-27 08:58:02: MQTT publish: topic 'zigbee2mqtt/0x00158d00045d0200', payload '{"battery":100,"voltage":3035,"temperature":24.15,"humidity":29.77,"pressure":1007.9,"linkquality":110}'
info 2020-03-27 08:58:02: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
info 2020-03-27 08:58:02: Connected to MQTT server
info 2020-03-27 08:58:02: Connecting to MQTT server at mqtt://192.168.1.100:1883
debug 2020-03-27 08:58:02: Soft reset timeout set to 3000 seconds
info 2020-03-27 08:58:02: Zigbee: allowing new devices to join.
warn 2020-03-27 08:58:02: Set `permit_join` to `false` once you joined all devices.
warn 2020-03-27 08:58:02: Allowing new devices to join.
warn 2020-03-27 08:58:02: `permit_join` set to `true` in configuration.yaml.
info 2020-03-27 08:58:02: 0x00158d000410c4ae (0x00158d000410c4ae): MCCGQ11LM - Xiaomi Aqara door & window contact sensor (EndDevice)
info 2020-03-27 08:58:02: 0x00158d00045d0200 (0x00158d00045d0200): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
info 2020-03-27 08:58:02: Currently 2 devices are joined:
debug 2020-03-27 08:58:02: Zigbee network parameters: {"panID":6754,"extendedPanID":"0x00124b001940c125","channel":26}
info 2020-03-27 08:58:02: Coordinator firmware version: '{"type":"zStack30x","meta":{"transportrev":2,"product":2,"majorrel":2,"minorrel":7,"maintrel":2,"revision":20200128}}'
info 2020-03-27 08:58:02: zigbee-herdsman started
debug 2020-03-27 08:57:59: Using zigbee-herdsman with settings: '{"network":{"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[26],"networkKey":"HIDDEN"},"databasePath":"/opt/zigbee2mqtt/data/database.db","databaseBackupPath":"/opt/zigbee2mqtt/data/database.db.backup","backupPath":"/opt/zigbee2mqtt/data/coordinator_backup.json","serialPort":{"baudRate":115200,"rtscts":true,"path":"/dev/ttyACM0"}}'
info 2020-03-27 08:57:59: Starting zigbee-herdsman...
info 2020-03-27 08:57:59: Starting zigbee2mqtt version 1.11.0 (commit #e140cf5)
debug 2020-03-27 08:57:58: Loaded state from file /opt/zigbee2mqtt/data/state.json
debug 2020-03-27 08:57:57: Removing old log directory '/opt/zigbee2mqtt/data/log/2020-03-25.12-49-35'
info 2020-03-27 08:57:57: Logging to console and directory: '/opt/zigbee2mqtt/data/log/2020-03-27.08-57-56' filename: log.txt
MD на raspberry pi3
directman66
Сообщения: 2714
Зарегистрирован: Пн дек 26, 2016 9:51 am
Откуда: Екатеринбург
Благодарил (а): 376 раз
Поблагодарили: 616 раз
Контактная информация:

Re: [Модуль] zigbee2mqtt (zigbee2mqtt)

Сообщение directman66 » Пт мар 27, 2020 9:38 am

Denis_k писал(а):
Пт мар 27, 2020 9:30 am
модуль постоянно краснеет, лог при этом выглядит так:

Код: Выделить всё

1585290619: /opt/zigbee2mqtt/data/log/2020-03-27.08-57-56/log.txt
debug 2020-03-27 09:27:58: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-03-27 09:22:58: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-03-27 09:17:58: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-03-27 09:12:58: Saving state to file /opt/zigbee2mqtt/data/state.json
info 2020-03-27 09:11:44: MQTT publish: topic 'zigbee2mqtt/0x00158d000410c4ae', payload '{"battery":91,"voltage":2985,"contact":true,"linkquality":118}'
debug 2020-03-27 09:11:44: Received Zigbee message from '0x00158d000410c4ae', type 'attributeReport', cluster 'genBasic', data '{"65281":{"1":2985,"3":30,"4":17320,"5":23,"6":[0,720910],"10":0,"100":0}}' from endpoint 1 with groupID 0
info 2020-03-27 09:08:04: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.11.0","commit":"e140cf5","coordinator":{"type":"zStack30x","meta":{"transportrev":2,"product":2,"majorrel":2,"minorrel":7,"maintrel":2,"revision":20200128}},"log_level":"debug","permit_join":false}'
info 2020-03-27 09:08:04: Zigbee: disabling joining new devices.
debug 2020-03-27 09:08:04: Received MQTT message on 'zigbee2mqtt/bridge/config/permit_join' with data 'false'
debug 2020-03-27 09:07:58: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-03-27 09:02:58: Saving state to file /opt/zigbee2mqtt/data/state.json
info 2020-03-27 08:58:03: MQTT publish: topic 'homeassistant/sensor/0x00158d000410c4ae/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x00158d000410c4ae","json_attributes_topic":"zigbee2mqtt/0x00158d000410c4ae","name":"0x00158d000410c4ae_linkquality","unique_id":"0x00158d000410c4ae_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000410c4ae"],"name":"0x00158d000410c4ae","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-03-27 08:58:03: MQTT publish: topic 'homeassistant/sensor/0x00158d000410c4ae/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/0x00158d000410c4ae","json_attributes_topic":"zigbee2mqtt/0x00158d000410c4ae","name":"0x00158d000410c4ae_battery","unique_id":"0x00158d000410c4ae_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000410c4ae"],"name":"0x00158d000410c4ae","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-03-27 08:58:03: MQTT publish: topic 'homeassistant/binary_sensor/0x00158d000410c4ae/contact/config', payload '{"payload_on":false,"payload_off":true,"value_template":"{{ value_json.contact }}","device_class":"door","state_topic":"zigbee2mqtt/0x00158d000410c4ae","json_attributes_topic":"zigbee2mqtt/0x00158d000410c4ae","name":"0x00158d000410c4ae_contact","unique_id":"0x00158d000410c4ae_contact_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000410c4ae"],"name":"0x00158d000410c4ae","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-03-27 08:58:03: MQTT publish: topic 'homeassistant/sensor/0x00158d00045d0200/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x00158d00045d0200","json_attributes_topic":"zigbee2mqtt/0x00158d00045d0200","name":"0x00158d00045d0200_linkquality","unique_id":"0x00158d00045d0200_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00045d0200"],"name":"0x00158d00045d0200","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-03-27 08:58:03: MQTT publish: topic 'homeassistant/sensor/0x00158d00045d0200/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/0x00158d00045d0200","json_attributes_topic":"zigbee2mqtt/0x00158d00045d0200","name":"0x00158d00045d0200_battery","unique_id":"0x00158d00045d0200_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00045d0200"],"name":"0x00158d00045d0200","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-03-27 08:58:03: MQTT publish: topic 'homeassistant/sensor/0x00158d00045d0200/pressure/config', payload '{"unit_of_measurement":"hPa","device_class":"pressure","value_template":"{{ value_json.pressure }}","state_topic":"zigbee2mqtt/0x00158d00045d0200","json_attributes_topic":"zigbee2mqtt/0x00158d00045d0200","name":"0x00158d00045d0200_pressure","unique_id":"0x00158d00045d0200_pressure_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00045d0200"],"name":"0x00158d00045d0200","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-03-27 08:58:03: MQTT publish: topic 'homeassistant/sensor/0x00158d00045d0200/humidity/config', payload '{"unit_of_measurement":"%","device_class":"humidity","value_template":"{{ value_json.humidity }}","state_topic":"zigbee2mqtt/0x00158d00045d0200","json_attributes_topic":"zigbee2mqtt/0x00158d00045d0200","name":"0x00158d00045d0200_humidity","unique_id":"0x00158d00045d0200_humidity_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00045d0200"],"name":"0x00158d00045d0200","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-03-27 08:58:03: MQTT publish: topic 'homeassistant/sensor/0x00158d00045d0200/temperature/config', payload '{"unit_of_measurement":"°C","device_class":"temperature","value_template":"{{ value_json.temperature }}","state_topic":"zigbee2mqtt/0x00158d00045d0200","json_attributes_topic":"zigbee2mqtt/0x00158d00045d0200","name":"0x00158d00045d0200_temperature","unique_id":"0x00158d00045d0200_temperature_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00045d0200"],"name":"0x00158d00045d0200","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-03-27 08:58:03: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.11.0","commit":"e140cf5","coordinator":{"type":"zStack30x","meta":{"transportrev":2,"product":2,"majorrel":2,"minorrel":7,"maintrel":2,"revision":20200128}},"log_level":"debug","permit_join":true}'
info 2020-03-27 08:58:02: MQTT publish: topic 'zigbee2mqtt/0x00158d000410c4ae', payload '{"battery":91,"voltage":2985,"contact":true,"linkquality":115}'
info 2020-03-27 08:58:02: MQTT publish: topic 'zigbee2mqtt/0x00158d00045d0200', payload '{"battery":100,"voltage":3035,"temperature":24.15,"humidity":29.77,"pressure":1007.9,"linkquality":110}'
info 2020-03-27 08:58:02: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
info 2020-03-27 08:58:02: Connected to MQTT server
info 2020-03-27 08:58:02: Connecting to MQTT server at mqtt://192.168.1.100:1883
debug 2020-03-27 08:58:02: Soft reset timeout set to 3000 seconds
info 2020-03-27 08:58:02: Zigbee: allowing new devices to join.
warn 2020-03-27 08:58:02: Set `permit_join` to `false` once you joined all devices.
warn 2020-03-27 08:58:02: Allowing new devices to join.
warn 2020-03-27 08:58:02: `permit_join` set to `true` in configuration.yaml.
info 2020-03-27 08:58:02: 0x00158d000410c4ae (0x00158d000410c4ae): MCCGQ11LM - Xiaomi Aqara door & window contact sensor (EndDevice)
info 2020-03-27 08:58:02: 0x00158d00045d0200 (0x00158d00045d0200): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
info 2020-03-27 08:58:02: Currently 2 devices are joined:
debug 2020-03-27 08:58:02: Zigbee network parameters: {"panID":6754,"extendedPanID":"0x00124b001940c125","channel":26}
info 2020-03-27 08:58:02: Coordinator firmware version: '{"type":"zStack30x","meta":{"transportrev":2,"product":2,"majorrel":2,"minorrel":7,"maintrel":2,"revision":20200128}}'
info 2020-03-27 08:58:02: zigbee-herdsman started
debug 2020-03-27 08:57:59: Using zigbee-herdsman with settings: '{"network":{"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[26],"networkKey":"HIDDEN"},"databasePath":"/opt/zigbee2mqtt/data/database.db","databaseBackupPath":"/opt/zigbee2mqtt/data/database.db.backup","backupPath":"/opt/zigbee2mqtt/data/coordinator_backup.json","serialPort":{"baudRate":115200,"rtscts":true,"path":"/dev/ttyACM0"}}'
info 2020-03-27 08:57:59: Starting zigbee-herdsman...
info 2020-03-27 08:57:59: Starting zigbee2mqtt version 1.11.0 (commit #e140cf5)
debug 2020-03-27 08:57:58: Loaded state from file /opt/zigbee2mqtt/data/state.json
debug 2020-03-27 08:57:57: Removing old log directory '/opt/zigbee2mqtt/data/log/2020-03-25.12-49-35'
info 2020-03-27 08:57:57: Logging to console and directory: '/opt/zigbee2mqtt/data/log/2020-03-27.08-57-56' filename: log.txt
Есть предположение, что какой-то процесс включает строгий режим MySQL. Какие действия исправляют ситуацию?
Если вам помогло данное сообщение, не поленитесь нажать кнопку "спасибо".
CONNECT | Оборудование | Блог | Дополнения | Email | Telegram | +79122962262 WhatsApp
Denis_k
Сообщения: 532
Зарегистрирован: Сб мар 19, 2016 7:24 pm
Благодарил (а): 273 раза
Поблагодарили: 24 раза

Re: [Модуль] zigbee2mqtt (zigbee2mqtt)

Сообщение Denis_k » Пт мар 27, 2020 9:51 am

directman66 писал(а):
Пт мар 27, 2020 9:38 am
Есть предположение, что какой-то процесс включает строгий режим MySQL. Какие действия исправляют ситуацию?
рестарт, при этом даже после рестарта модуля данные с датчика температуры/влажности не меняются в течении долгого времени, очень часто до следующего зависания модуля, график получается примерно такой
123.jpg
123.jpg (22.6 КБ) 330 просмотров
MD на raspberry pi3
Denis_k
Сообщения: 532
Зарегистрирован: Сб мар 19, 2016 7:24 pm
Благодарил (а): 273 раза
Поблагодарили: 24 раза

Re: [Модуль] zigbee2mqtt (zigbee2mqtt)

Сообщение Denis_k » Сб мар 28, 2020 7:41 am

вчера модуль "ожил", после обновился из маркета, на данный момент падений не было
MD на raspberry pi3
eulampy
Сообщения: 5
Зарегистрирован: Вс май 26, 2019 11:52 am
Благодарил (а): 0
Поблагодарили: 0

Re: [Модуль] zigbee2mqtt (zigbee2mqtt)

Сообщение eulampy » Сб мар 28, 2020 3:19 pm

directman66 писал(а):
Вс мар 15, 2020 6:53 am
service-> disable strict mode
Кнопку нажал, систему перезагрузил (orange PI PC).

Вот нашел пример из справки, как должно быть:
СпойлерПоказать
Изображение

Цикл в X-Ray цикл cycle_zigbee2mqtt запущен.
Но после слова Service: у меня нет никаких записей. Криво поставилось?
Вложения
zigbee2mqtt.png
zigbee2mqtt.png (30.07 КБ) 256 просмотров
directman66
Сообщения: 2714
Зарегистрирован: Пн дек 26, 2016 9:51 am
Откуда: Екатеринбург
Благодарил (а): 376 раз
Поблагодарили: 616 раз
Контактная информация:

Re: [Модуль] zigbee2mqtt (zigbee2mqtt)

Сообщение directman66 » Сб мар 28, 2020 3:23 pm

Service - информация берется из команды sudo systemctl status zigbee2mqtt. Если права sudo не даны пользователю www-data, тут ничего не будет. Этот функционал дает возможность перезагружать z2m, не более.
Если вам помогло данное сообщение, не поленитесь нажать кнопку "спасибо".
CONNECT | Оборудование | Блог | Дополнения | Email | Telegram | +79122962262 WhatsApp
eulampy
Сообщения: 5
Зарегистрирован: Вс май 26, 2019 11:52 am
Благодарил (а): 0
Поблагодарили: 0

Re: [Модуль] zigbee2mqtt (zigbee2mqtt)

Сообщение eulampy » Сб мар 28, 2020 3:47 pm

У меня в файле zigbee2mqtt.service
вместо написано

Код: Выделить всё

User=root
И пользователя pi у меня в системе нет. Это важно?
И команду

Код: Выделить всё

sudo chown -R pi:pi /opt/zigbee2mqtt
при установке я не выполнял.
Аватара пользователя
Nail
Сообщения: 269
Зарегистрирован: Пн мар 05, 2018 7:09 am
Откуда: Самара
Благодарил (а): 114 раз
Поблагодарили: 14 раз

Re: [Модуль] zigbee2mqtt (zigbee2mqtt)

Сообщение Nail » Сб мар 28, 2020 11:57 pm

eulampy писал(а):
Сб мар 28, 2020 3:47 pm
И пользователя pi у меня в системе нет. Это важно?
И команду

Код: Выделить всё

sudo chown -R pi:pi /opt/zigbee2mqtt
при установке я не выполнял.
Очень важно pi, если вы в системе присвоили другое имя (петров или иванов) то нужно править код при установке (но лучше этого не делать и назвать pi) и если вы так сделали и поправили код , то права раздать друг другу -это , вступить в группу друг друга как описано в первом сообщении - www-data и pi(или то которое вы присвоили петров или иванов) .Вроде так учили гуру, и я так ошибался не раз :)
Раздача прав тем или иным пользователям -это су... очень важная вещь и вечная проблема :D
Mini AMD A6 1450 Quad-core.Ubuntu Desktop 18.04.4 (64-bit). MegaD. Zigbee2mqtt+SLS ZigBee Gateway. Broadlink.
eulampy
Сообщения: 5
Зарегистрирован: Вс май 26, 2019 11:52 am
Благодарил (а): 0
Поблагодарили: 0

Re: [Модуль] zigbee2mqtt (zigbee2mqtt)

Сообщение eulampy » Вс мар 29, 2020 11:01 am

Nail писал(а):
Сб мар 28, 2020 11:57 pm
Очень важно pi, если вы в системе присвоили другое имя (петров или иванов) то нужно править код при установке (но лучше этого не делать и назвать pi) и если вы так сделали и поправили код , то права раздать друг другу -это , вступить в группу друг друга как описано в первом сообщении - www-data и pi(или то которое вы присвоили петров или иванов) .Вроде так учили гуру, и я так ошибался не раз :)
Раздача прав тем или иным пользователям -это су... очень важная вещь и вечная проблема :D
Инструкция, по которой я ставил, судя по имени пользователя,

Код: Выделить всё

pi@raspberry
написана для Raspberry Pi. Наверно, там по умолчанию заведен пользователь pi.
У меня Orange PI PC и armbian bionic, установленный из образа. В установленной системе не было пользователя pi и я его не добавлял.
У меня есть образ системы до установки Node.js и zigbee2mqtt и есть большое желание попробовать установить все заново. Но непонятно, что делать с этим пользователем pi.
Denis_k
Сообщения: 532
Зарегистрирован: Сб мар 19, 2016 7:24 pm
Благодарил (а): 273 раза
Поблагодарили: 24 раза

Re: [Модуль] zigbee2mqtt (zigbee2mqtt)

Сообщение Denis_k » Ср апр 01, 2020 11:58 am

в итоге пару дней работы модуля без сбоев, потом сбой всей системы (причину не выяснил), перезагрузка и аналогичная ситуация с постоянной остановкой модуля

Код: Выделить всё

1585731314: /opt/zigbee2mqtt/data/log/2020-04-01.07-42-43/log.txt
debug 2020-04-01 11:52:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 11:47:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 11:42:45: Saving state to file /opt/zigbee2mqtt/data/state.json
warn 2020-04-01 11:41:52: Soft resetted ZNP due to timeout
warn 2020-04-01 11:41:52: Soft reset timeout triggered
debug 2020-04-01 11:37:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 11:32:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 11:27:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 11:22:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 11:17:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 11:12:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 11:07:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 11:02:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 10:57:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 10:52:45: Saving state to file /opt/zigbee2mqtt/data/state.json
warn 2020-04-01 10:51:52: Soft resetted ZNP due to timeout
warn 2020-04-01 10:51:52: Soft reset timeout triggered
debug 2020-04-01 10:47:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 10:42:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 10:37:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 10:32:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 10:27:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 10:22:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 10:17:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 10:12:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 10:07:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 10:02:45: Saving state to file /opt/zigbee2mqtt/data/state.json
warn 2020-04-01 10:01:52: Soft resetted ZNP due to timeout
warn 2020-04-01 10:01:51: Soft reset timeout triggered
debug 2020-04-01 09:57:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 09:52:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 09:47:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 09:42:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 09:37:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 09:32:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 09:27:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 09:22:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 09:17:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 09:12:45: Saving state to file /opt/zigbee2mqtt/data/state.json
warn 2020-04-01 09:11:51: Soft resetted ZNP due to timeout
warn 2020-04-01 09:11:51: Soft reset timeout triggered
debug 2020-04-01 09:07:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 09:02:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 08:57:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 08:52:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 08:47:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 08:42:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 08:37:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 08:32:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 08:27:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 08:22:45: Saving state to file /opt/zigbee2mqtt/data/state.json
info 2020-04-01 08:21:51: MQTT publish: topic 'zigbee2mqtt/0x00158d000410c4ae', payload '{"battery":91,"voltage":2985,"contact":true,"linkquality":113}'
debug 2020-04-01 08:21:51: Received Zigbee message from '0x00158d000410c4ae', type 'attributeReport', cluster 'genBasic', data '{"65281":{"1":2985,"3":30,"4":17320,"5":23,"6":[0,851982],"10":0,"100":0}}' from endpoint 1 with groupID 0
debug 2020-04-01 08:17:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 08:12:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 08:07:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 08:02:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 07:57:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 07:52:45: Saving state to file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 07:47:45: Saving state to file /opt/zigbee2mqtt/data/state.json
info 2020-04-01 07:43:13: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.11.0","commit":"e140cf5","coordinator":{"type":"zStack30x","meta":{"transportrev":2,"product":2,"majorrel":2,"minorrel":7,"maintrel":2,"revision":20200128}},"log_level":"debug","permit_join":false}'
info 2020-04-01 07:43:13: Zigbee: disabling joining new devices.
debug 2020-04-01 07:43:13: Received MQTT message on 'zigbee2mqtt/bridge/config/permit_join' with data 'false'
info 2020-04-01 07:42:48: MQTT publish: topic 'homeassistant/sensor/0x00158d000410c4ae/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x00158d000410c4ae","json_attributes_topic":"zigbee2mqtt/0x00158d000410c4ae","name":"0x00158d000410c4ae_linkquality","unique_id":"0x00158d000410c4ae_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000410c4ae"],"name":"0x00158d000410c4ae","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-04-01 07:42:48: MQTT publish: topic 'homeassistant/sensor/0x00158d000410c4ae/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/0x00158d000410c4ae","json_attributes_topic":"zigbee2mqtt/0x00158d000410c4ae","name":"0x00158d000410c4ae_battery","unique_id":"0x00158d000410c4ae_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000410c4ae"],"name":"0x00158d000410c4ae","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-04-01 07:42:48: MQTT publish: topic 'homeassistant/binary_sensor/0x00158d000410c4ae/contact/config', payload '{"payload_on":false,"payload_off":true,"value_template":"{{ value_json.contact }}","device_class":"door","state_topic":"zigbee2mqtt/0x00158d000410c4ae","json_attributes_topic":"zigbee2mqtt/0x00158d000410c4ae","name":"0x00158d000410c4ae_contact","unique_id":"0x00158d000410c4ae_contact_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000410c4ae"],"name":"0x00158d000410c4ae","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-04-01 07:42:48: MQTT publish: topic 'homeassistant/sensor/0x00158d00045d0200/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0x00158d00045d0200","json_attributes_topic":"zigbee2mqtt/0x00158d00045d0200","name":"0x00158d00045d0200_linkquality","unique_id":"0x00158d00045d0200_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00045d0200"],"name":"0x00158d00045d0200","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-04-01 07:42:48: MQTT publish: topic 'homeassistant/sensor/0x00158d00045d0200/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/0x00158d00045d0200","json_attributes_topic":"zigbee2mqtt/0x00158d00045d0200","name":"0x00158d00045d0200_battery","unique_id":"0x00158d00045d0200_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00045d0200"],"name":"0x00158d00045d0200","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-04-01 07:42:48: MQTT publish: topic 'homeassistant/sensor/0x00158d00045d0200/pressure/config', payload '{"unit_of_measurement":"hPa","device_class":"pressure","value_template":"{{ value_json.pressure }}","state_topic":"zigbee2mqtt/0x00158d00045d0200","json_attributes_topic":"zigbee2mqtt/0x00158d00045d0200","name":"0x00158d00045d0200_pressure","unique_id":"0x00158d00045d0200_pressure_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00045d0200"],"name":"0x00158d00045d0200","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-04-01 07:42:48: MQTT publish: topic 'homeassistant/sensor/0x00158d00045d0200/humidity/config', payload '{"unit_of_measurement":"%","device_class":"humidity","value_template":"{{ value_json.humidity }}","state_topic":"zigbee2mqtt/0x00158d00045d0200","json_attributes_topic":"zigbee2mqtt/0x00158d00045d0200","name":"0x00158d00045d0200_humidity","unique_id":"0x00158d00045d0200_humidity_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00045d0200"],"name":"0x00158d00045d0200","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-04-01 07:42:48: MQTT publish: topic 'homeassistant/sensor/0x00158d00045d0200/temperature/config', payload '{"unit_of_measurement":"°C","device_class":"temperature","value_template":"{{ value_json.temperature }}","state_topic":"zigbee2mqtt/0x00158d00045d0200","json_attributes_topic":"zigbee2mqtt/0x00158d00045d0200","name":"0x00158d00045d0200_temperature","unique_id":"0x00158d00045d0200_temperature_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00045d0200"],"name":"0x00158d00045d0200","sw_version":"Zigbee2mqtt 1.11.0","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
info 2020-04-01 07:42:48: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.11.0","commit":"e140cf5","coordinator":{"type":"zStack30x","meta":{"transportrev":2,"product":2,"majorrel":2,"minorrel":7,"maintrel":2,"revision":20200128}},"log_level":"debug","permit_join":true}'
info 2020-04-01 07:42:48: MQTT publish: topic 'zigbee2mqtt/0x00158d000410c4ae', payload '{"battery":91,"voltage":2985,"contact":true,"linkquality":110}'
info 2020-04-01 07:42:48: MQTT publish: topic 'zigbee2mqtt/0x00158d00045d0200', payload '{"battery":100,"voltage":3025,"temperature":25.1,"humidity":31.45,"pressure":984.3,"linkquality":102}'
info 2020-04-01 07:42:48: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
info 2020-04-01 07:42:48: Connected to MQTT server
info 2020-04-01 07:42:48: Connecting to MQTT server at mqtt://192.168.1.100:1883
debug 2020-04-01 07:42:48: Soft reset timeout set to 3000 seconds
info 2020-04-01 07:42:48: Zigbee: allowing new devices to join.
warn 2020-04-01 07:42:48: Set `permit_join` to `false` once you joined all devices.
warn 2020-04-01 07:42:48: Allowing new devices to join.
warn 2020-04-01 07:42:48: `permit_join` set to `true` in configuration.yaml.
info 2020-04-01 07:42:48: 0x00158d000410c4ae (0x00158d000410c4ae): MCCGQ11LM - Xiaomi Aqara door & window contact sensor (EndDevice)
info 2020-04-01 07:42:48: 0x00158d00045d0200 (0x00158d00045d0200): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
info 2020-04-01 07:42:48: Currently 2 devices are joined:
debug 2020-04-01 07:42:48: Zigbee network parameters: {"panID":6754,"extendedPanID":"0x00124b001940c125","channel":26}
info 2020-04-01 07:42:48: Coordinator firmware version: '{"type":"zStack30x","meta":{"transportrev":2,"product":2,"majorrel":2,"minorrel":7,"maintrel":2,"revision":20200128}}'
info 2020-04-01 07:42:48: zigbee-herdsman started
debug 2020-04-01 07:42:45: Using zigbee-herdsman with settings: '{"network":{"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[26],"networkKey":"HIDDEN"},"databasePath":"/opt/zigbee2mqtt/data/database.db","databaseBackupPath":"/opt/zigbee2mqtt/data/database.db.backup","backupPath":"/opt/zigbee2mqtt/data/coordinator_backup.json","serialPort":{"baudRate":115200,"rtscts":true,"path":"/dev/ttyACM0"}}'
info 2020-04-01 07:42:45: Starting zigbee-herdsman...
info 2020-04-01 07:42:45: Starting zigbee2mqtt version 1.11.0 (commit #e140cf5)
debug 2020-04-01 07:42:45: Loaded state from file /opt/zigbee2mqtt/data/state.json
debug 2020-04-01 07:42:43: Removing old log directory '/opt/zigbee2mqtt/data/log/2020-03-27.07-30-51'
MD на raspberry pi3
Ответить