Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.15k stars 1.68k forks source link

Issues with Fan State #3769

Closed boojew closed 4 years ago

boojew commented 4 years ago

Bug Report

What happened

I am using a Hampton Bay fan (HDC52EastwindFan) and it does not appear to publish/execute the on/off states received from Homeassistant. When HomeAssistnt calls "off", it appears to ignore that and return on UNLESS also sent with a speed. See the video. I am not quite clear if this is an MQTT issue, with the converter, or the homeassistant extension...

How to reproduce it (minimal and precise)

See gif Screen Recording 2020-06-17 at 9 56 21 PM

Debug Info

Zigbee2mqtt version: 1.4.0 Adapter hardware: CC2531Adapter firmware version:CC2531_DEFAULT_20190608.zip.

Koenkk commented 4 years ago

I think we need to adapter the integration a bit here.

To enable debug logging set in configuration.yaml:

advanced:
  log_level: debug
boojew commented 4 years ago

Yea, sorry I forgot the debug logs

zigbee2mqtt:info  2020-06-18 13:14:14: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.13.1","commit":"3046680","coordinator":{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190425}},"log_level":"debug","permit_join":false}'
zigbee2mqtt:debug 2020-06-18 13:14:45: Received MQTT message on 'zigbee2mqtt/Office Fan/set' with data '{"state": "OFF"}'
zigbee2mqtt:debug 2020-06-18 13:14:45: Publishing 'set' 'state' to 'Office Fan'
zigbee2mqtt:info  2020-06-18 13:14:45: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"OFF","fan_state":"ON","last_seen":1592500418972,"linkquality":70,"state":"OFF","brightness":254}'
zigbee2mqtt:debug 2020-06-18 13:14:46: Received MQTT message on 'zigbee2mqtt/Office Fan/set' with data '{"state": "ON"}'
zigbee2mqtt:debug 2020-06-18 13:14:46: Publishing 'set' 'state' to 'Office Fan'
zigbee2mqtt:info  2020-06-18 13:14:46: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"OFF","fan_state":"ON","last_seen":1592500418972,"linkquality":70,"state":"ON","brightness":254}'
zigbee2mqtt:debug 2020-06-18 13:14:50: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_state' with data 'OFF'
zigbee2mqtt:debug 2020-06-18 13:14:50: Publishing 'set' 'fan_state' to 'Office Fan'
zigbee2mqtt:info  2020-06-18 13:14:50: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"OFF","fan_state":"ON","last_seen":1592500490764,"linkquality":70,"state":"ON","brightness":254}'
zigbee2mqtt:debug 2020-06-18 13:14:52: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_state' with data 'OFF'
zigbee2mqtt:debug 2020-06-18 13:14:52: Publishing 'set' 'fan_state' to 'Office Fan'
zigbee2mqtt:info  2020-06-18 13:14:52: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"OFF","fan_state":"ON","last_seen":1592500492905,"linkquality":70,"state":"ON","brightness":254}'

The light itself works perfectly. Thanks!

Koenkk commented 4 years ago

Ah, if I remember correctly, this fan also has a light right? When manually publishing zigbee2mqtt/Office Fan/set with payload {"state": "OFF"} or {"state": "ON"}, this controls the light right? (and not the fan!)

boojew commented 4 years ago

Just tested, and you are correct zigbee2mqtt/Office Fan/set is the light.

Koenkk commented 4 years ago

Are you using the Home Assistant discovery? If yes, when toggling the switch in HA I expect the command to be send to zigbee2mqtt/Office Fan/set/fan_state. Can you post the Zigbee2mqtt startup log so we can see what zigbee2mqtt discovers?

boojew commented 4 years ago

Sorry for the late response - I am using discovery... and yea, "zigbee2mqtt/Office Fan/set/fan_state" topic with on/off does indeed control the fan state.. Here are the logs

> zigbee2mqtt@1.13.1 start /app
> node index.js

zigbee2mqtt:info  2020-06-23 11:52:22: Logging to console and directory: '/app/data/log/2020-06-23.11-52-22' filename: log.txt
zigbee2mqtt:debug 2020-06-23 11:52:22: Removing old log directory '/app/data/log/2020-05-30.19-08-36'
zigbee2mqtt:debug 2020-06-23 11:52:23: Loaded state from file /app/data/state.json
zigbee2mqtt:info  2020-06-23 11:52:23: Starting zigbee2mqtt version 1.13.1 (commit #3046680)
zigbee2mqtt:info  2020-06-23 11:52:23: Starting zigbee-herdsman...
zigbee2mqtt:debug 2020-06-23 11:52:23: Using zigbee-herdsman with settings: '{"network":{"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[11],"networkKey":"HIDDEN"},"databasePath":"/app/data/database.db","databaseBackupPath":"/app/data/database.db.backup","backupPath":"/app/data/coordinator_backup.json","serialPort":{"baudRate":115200,"rtscts":true,"path":"/dev/ttyACM0"},"adapter":{"concurrent":null}}'
zigbee2mqtt:info  2020-06-23 11:52:25: zigbee-herdsman started
zigbee2mqtt:info  2020-06-23 11:52:25: Coordinator firmware version: '{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190425}}'
zigbee2mqtt:debug 2020-06-23 11:52:25: Zigbee network parameters: {"panID":6754,"extendedPanID":"0xdddddddddddddddd","channel":11}
zigbee2mqtt:info  2020-06-23 11:52:25: Currently 23 devices are joined:
zigbee2mqtt:info  2020-06-23 11:52:25: Living Room - Temperature Sensor (0x00158d00023f5163): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
zigbee2mqtt:info  2020-06-23 11:52:25: Backdoor Contact Sensor (0x00158d0001d39f43): MCCGQ11LM - Xiaomi Aqara door & window contact sensor (EndDevice)
zigbee2mqtt:info  2020-06-23 11:52:25: Mudroom Lightbulb (0xdd16abfff1a195ed): D1532 - EcoSmart A19 soft white bulb (Router)
zigbee2mqtt:info  2020-06-23 11:52:25: Office Fan (0x0022a3000020c945): 99432 - Hampton Bay Universal wink enabled white ceiling fan premier remote control (EndDevice)
zigbee2mqtt:info  2020-06-23 11:52:25: Office Motion Sensor (0x00158d00010c2723): RTCGQ01LM - Xiaomi MiJia human body movement sensor (EndDevice)
zigbee2mqtt:info  2020-06-23 11:52:25: Tradfri Button (0x000b57fffea8ebee): E1524/E1810 - IKEA TRADFRI remote control (EndDevice)
zigbee2mqtt:info  2020-06-23 11:52:25: Tradfri Repeater - Master Bedroom (0x000d6ffffe2add89): E1746 - IKEA TRADFRI signal repeater (Router)
zigbee2mqtt:info  2020-06-23 11:52:25: Tradfri Repeater - Basement (0x000d6ffffe9cd34e): E1746 - IKEA TRADFRI signal repeater (Router)
zigbee2mqtt:info  2020-06-23 11:52:25: Ben Lamp (0xdd16abffff070a94): D1821 - EcoSmart A19 RGB bulb (Router)
zigbee2mqtt:info  2020-06-23 11:52:25: Tradfri Dimmer (0x000b57fffe9605a4): ICTC-G-1 - IKEA TRADFRI wireless dimmer (EndDevice)
zigbee2mqtt:info  2020-06-23 11:52:25: Nate's Wake Up Light (0xdd16abffff07178e): D1821 - EcoSmart A19 RGB bulb (Router)
zigbee2mqtt:info  2020-06-23 11:52:25: Utility Motion Sensor (0x00158d000132e9c7): RTCGQ01LM - Xiaomi MiJia human body movement sensor (EndDevice)
zigbee2mqtt:info  2020-06-23 11:52:25: Nate Room - Temperature Sensor (0x00158d0001217472): WSDCGQ01LM - Xiaomi MiJia temperature & humidity sensor (EndDevice)
zigbee2mqtt:info  2020-06-23 11:52:25: Jared Room - Temperature Sensor (0x00158d0001216c95): WSDCGQ01LM - Xiaomi MiJia temperature & humidity sensor (EndDevice)
zigbee2mqtt:info  2020-06-23 11:52:25: Office - Temperature Sensor (0x00158d0002325c75): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
zigbee2mqtt:info  2020-06-23 11:52:25: Kitchen - Temperature Sensor (0x00158d0002437c0a): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
zigbee2mqtt:info  2020-06-23 11:52:25: Utility Room Lamp (0xdd16abfff1a17a17): D1531 - EcoSmart A19 bright white bulb (Router)
zigbee2mqtt:info  2020-06-23 11:52:25: Nates Room - Motion Sensor (0x00158d000165fe3b): RTCGQ11LM - Xiaomi Aqara human body movement and illuminance sensor (EndDevice)
zigbee2mqtt:info  2020-06-23 11:52:25: Ground Floor Hallway Light (0xdd16abffff07042a): D1821 - EcoSmart A19 RGB bulb (Router)
zigbee2mqtt:info  2020-06-23 11:52:25: 0xdd16abffff070772 (0xdd16abffff070772): D1821 - EcoSmart A19 RGB bulb (Router)
zigbee2mqtt:info  2020-06-23 11:52:25: Basement water sensor (0x00158d0001d5948f): SJCGQ11LM - Xiaomi Aqara water leak sensor (EndDevice)
zigbee2mqtt:info  2020-06-23 11:52:25: Garage Fridge Temp Sensor (0x00158d000182dd03): WSDCGQ01LM - Xiaomi MiJia temperature & humidity sensor (EndDevice)
zigbee2mqtt:info  2020-06-23 11:52:25: Kitchen - Motion Sensor (0x00158d0001a24bba): RTCGQ11LM - Xiaomi Aqara human body movement and illuminance sensor (EndDevice)
zigbee2mqtt:info  2020-06-23 11:52:25: Zigbee: disabling joining new devices.
zigbee2mqtt:info  2020-06-23 11:52:25: Adding 'Tradfri Button' to group 'group_1'
zigbee2mqtt:info  2020-06-23 11:52:26: Connecting to MQTT server at mqtt://192.168.0.229
zigbee2mqtt:info  2020-06-23 11:52:26: Connected to MQTT server
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload 'online'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/Living Room - Temperature Sensor', payload '{"temperature":20.11,"linkquality":31,"humidity":44.28,"pressure":1017.7,"battery":23,"voltage":2775,"last_seen":1592065887630}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/Backdoor Contact Sensor', payload '{"battery":100,"voltage":3025,"contact":true,"linkquality":128,"last_seen":1592926418146}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/Mudroom Lightbulb', payload '{"state":"OFF","brightness":254,"linkquality":39,"last_seen":1592007311087}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"off","fan_state":"OFF","last_seen":1592927450311,"linkquality":70,"state":"ON","brightness":254}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/Office Motion Sensor', payload '{"occupancy":false,"linkquality":63,"last_seen":1592927240641,"battery":100,"voltage":3115}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/Tradfri Button', payload '{"battery":60,"linkquality":55,"last_seen":1592921065298,"update_available":true}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/Tradfri Repeater - Master Bedroom', payload '{"linkquality":134,"last_seen":1592921658603,"update_available":false}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/Tradfri Repeater - Basement', payload '{"linkquality":126,"last_seen":1592923162647,"update_available":false}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/Ben Lamp', payload '{"state":"OFF","linkquality":57,"brightness":255,"color":{"x":0.519131691039726,"y":0.414288051619026},"color_temp":481,"last_seen":1592924386730}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/Tradfri Dimmer', payload '{"battery":16,"linkquality":5,"brightness":255,"rate":195,"level":0,"last_seen":1590551608892,"update_available":true}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/Nate's Wake Up Light', payload '{"state":"ON","brightness":64,"linkquality":31,"color_temp":413,"color":{"x":0.484281118702893,"y":0.41450171975623},"last_seen":1586657144431}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/Utility Motion Sensor', payload '{"occupancy":false,"linkquality":18,"battery":100,"voltage":3025,"last_seen":1592925363867}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/Nate Room - Temperature Sensor', payload '{"temperature":15.83,"linkquality":57,"humidity":27.16,"battery":26,"voltage":2795,"last_seen":1581772835193}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/Jared Room - Temperature Sensor', payload '{"temperature":22.16,"linkquality":31,"humidity":43.91,"battery":68,"voltage":2945,"last_seen":1592926464282}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/Office - Temperature Sensor', payload '{"temperature":24.46,"linkquality":131,"humidity":38,"pressure":998.6,"battery":91,"voltage":2985,"last_seen":1592927497110}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/Kitchen - Temperature Sensor', payload '{"temperature":20.41,"linkquality":47,"humidity":35.55,"pressure":998.9,"battery":51,"voltage":2915,"last_seen":1589043039757}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/Utility Room Lamp', payload '{"state":"OFF","linkquality":44,"brightness":255,"last_seen":1591931163117}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/Nates Room - Motion Sensor', payload '{"illuminance":2,"linkquality":70,"occupancy":false,"battery":100,"voltage":3025}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/Ground Floor Hallway Light', payload '{"state":"ON","linkquality":18,"color":{"x":0.749,"y":0.249},"color_temp":250,"brightness":255,"last_seen":1592919443121}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/0xdd16abffff070772', payload '{"state":"ON","brightness":255,"linkquality":68}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/Basement water sensor', payload '{"battery":91,"voltage":2985,"linkquality":0,"water_leak":true,"last_seen":1592927464862}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/Garage Fridge Temp Sensor', payload '{"temperature":9.1,"linkquality":0,"humidity":39.47,"battery":74,"voltage":2955,"last_seen":1592925134366}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/Kitchen - Motion Sensor', payload '{"illuminance":185,"linkquality":13,"occupancy":false,"battery":100,"voltage":3015,"last_seen":1592926377272,"illuminance_lux":185}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.13.1","commit":"3046680","coordinator":{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190425}},"log_level":"debug","permit_join":false}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d00023f5163/temperature/config', payload '{"unit_of_measurement":"°C","device_class":"temperature","value_template":"{{ value_json.temperature }}","state_topic":"zigbee2mqtt/Living Room - Temperature Sensor","json_attributes_topic":"zigbee2mqtt/Living Room - Temperature Sensor","name":"Living Room - Temperature Sensor_temperature","unique_id":"0x00158d00023f5163_temperature_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00023f5163"],"name":"Living Room - Temperature Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d00023f5163/humidity/config', payload '{"unit_of_measurement":"%","device_class":"humidity","value_template":"{{ value_json.humidity }}","state_topic":"zigbee2mqtt/Living Room - Temperature Sensor","json_attributes_topic":"zigbee2mqtt/Living Room - Temperature Sensor","name":"Living Room - Temperature Sensor_humidity","unique_id":"0x00158d00023f5163_humidity_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00023f5163"],"name":"Living Room - Temperature Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d00023f5163/pressure/config', payload '{"unit_of_measurement":"hPa","device_class":"pressure","value_template":"{{ value_json.pressure }}","state_topic":"zigbee2mqtt/Living Room - Temperature Sensor","json_attributes_topic":"zigbee2mqtt/Living Room - Temperature Sensor","name":"Living Room - Temperature Sensor_pressure","unique_id":"0x00158d00023f5163_pressure_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00023f5163"],"name":"Living Room - Temperature Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d00023f5163/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/Living Room - Temperature Sensor","json_attributes_topic":"zigbee2mqtt/Living Room - Temperature Sensor","name":"Living Room - Temperature Sensor_battery","unique_id":"0x00158d00023f5163_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00023f5163"],"name":"Living Room - Temperature Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d00023f5163/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Living Room - Temperature Sensor","json_attributes_topic":"zigbee2mqtt/Living Room - Temperature Sensor","name":"Living Room - Temperature Sensor_linkquality","unique_id":"0x00158d00023f5163_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00023f5163"],"name":"Living Room - Temperature Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/binary_sensor/0x00158d0001d39f43/contact/config', payload '{"payload_on":false,"payload_off":true,"value_template":"{{ value_json.contact }}","device_class":"door","state_topic":"zigbee2mqtt/Backdoor Contact Sensor","json_attributes_topic":"zigbee2mqtt/Backdoor Contact Sensor","name":"Backdoor Contact Sensor_contact","unique_id":"0x00158d0001d39f43_contact_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0001d39f43"],"name":"Backdoor Contact Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0001d39f43/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/Backdoor Contact Sensor","json_attributes_topic":"zigbee2mqtt/Backdoor Contact Sensor","name":"Backdoor Contact Sensor_battery","unique_id":"0x00158d0001d39f43_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0001d39f43"],"name":"Backdoor Contact Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0001d39f43/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Backdoor Contact Sensor","json_attributes_topic":"zigbee2mqtt/Backdoor Contact Sensor","name":"Backdoor Contact Sensor_linkquality","unique_id":"0x00158d0001d39f43_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0001d39f43"],"name":"Backdoor Contact Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara door & window contact sensor (MCCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/light/0xdd16abfff1a195ed/light/config', payload '{"brightness":true,"schema":"json","command_topic":"zigbee2mqtt/Mudroom Lightbulb/set","brightness_scale":254,"state_topic":"zigbee2mqtt/Mudroom Lightbulb","json_attributes_topic":"zigbee2mqtt/Mudroom Lightbulb","name":"Mudroom Lightbulb_light","unique_id":"0xdd16abfff1a195ed_light_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0xdd16abfff1a195ed"],"name":"Mudroom Lightbulb","sw_version":"Zigbee2mqtt 1.13.1","model":"A19 soft white bulb (D1532)","manufacturer":"EcoSmart"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0xdd16abfff1a195ed/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Mudroom Lightbulb","json_attributes_topic":"zigbee2mqtt/Mudroom Lightbulb","name":"Mudroom Lightbulb_linkquality","unique_id":"0xdd16abfff1a195ed_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0xdd16abfff1a195ed"],"name":"Mudroom Lightbulb","sw_version":"Zigbee2mqtt 1.13.1","model":"A19 soft white bulb (D1532)","manufacturer":"EcoSmart"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/fan/0x0022a3000020c945/fan/config', payload '{"state_topic":"zigbee2mqtt/Office Fan","state_value_template":"{{ value_json.fan_state }}","command_topic":"zigbee2mqtt/Office Fan/set/fan_state","speed_state_topic":"zigbee2mqtt/Office Fan","speed_command_topic":"zigbee2mqtt/Office Fan/set/fan_mode","speed_value_template":"{{ value_json.fan_mode }}","speeds":["off","low","medium","high","on","auto","smart"],"json_attributes_topic":"zigbee2mqtt/Office Fan","name":"Office Fan_fan","unique_id":"0x0022a3000020c945_fan_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x0022a3000020c945"],"name":"Office Fan","sw_version":"Zigbee2mqtt 1.13.1","model":"Universal wink enabled white ceiling fan premier remote control (99432)","manufacturer":"Hampton Bay"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/light/0x0022a3000020c945/light/config', payload '{"brightness":true,"schema":"json","command_topic":"zigbee2mqtt/Office Fan/set","brightness_scale":254,"state_topic":"zigbee2mqtt/Office Fan","json_attributes_topic":"zigbee2mqtt/Office Fan","name":"Office Fan_light","unique_id":"0x0022a3000020c945_light_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x0022a3000020c945"],"name":"Office Fan","sw_version":"Zigbee2mqtt 1.13.1","model":"Universal wink enabled white ceiling fan premier remote control (99432)","manufacturer":"Hampton Bay"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x0022a3000020c945/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Office Fan","json_attributes_topic":"zigbee2mqtt/Office Fan","name":"Office Fan_linkquality","unique_id":"0x0022a3000020c945_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x0022a3000020c945"],"name":"Office Fan","sw_version":"Zigbee2mqtt 1.13.1","model":"Universal wink enabled white ceiling fan premier remote control (99432)","manufacturer":"Hampton Bay"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/binary_sensor/0x00158d00010c2723/occupancy/config', payload '{"payload_on":true,"payload_off":false,"value_template":"{{ value_json.occupancy }}","device_class":"motion","state_topic":"zigbee2mqtt/Office Motion Sensor","json_attributes_topic":"zigbee2mqtt/Office Motion Sensor","name":"Office Motion Sensor_occupancy","unique_id":"0x00158d00010c2723_occupancy_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00010c2723"],"name":"Office Motion Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"MiJia human body movement sensor (RTCGQ01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d00010c2723/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/Office Motion Sensor","json_attributes_topic":"zigbee2mqtt/Office Motion Sensor","name":"Office Motion Sensor_battery","unique_id":"0x00158d00010c2723_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00010c2723"],"name":"Office Motion Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"MiJia human body movement sensor (RTCGQ01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d00010c2723/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Office Motion Sensor","json_attributes_topic":"zigbee2mqtt/Office Motion Sensor","name":"Office Motion Sensor_linkquality","unique_id":"0x00158d00010c2723_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d00010c2723"],"name":"Office Motion Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"MiJia human body movement sensor (RTCGQ01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x000b57fffea8ebee/action/config', payload '{"icon":"mdi:gesture-double-tap","value_template":"{{ value_json.action }}","state_topic":"zigbee2mqtt/Tradfri Button","json_attributes_topic":"zigbee2mqtt/Tradfri Button","name":"Tradfri Button_action","unique_id":"0x000b57fffea8ebee_action_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x000b57fffea8ebee"],"name":"Tradfri Button","sw_version":"Zigbee2mqtt 1.13.1","model":"TRADFRI remote control (E1524/E1810)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x000b57fffea8ebee/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/Tradfri Button","json_attributes_topic":"zigbee2mqtt/Tradfri Button","name":"Tradfri Button_battery","unique_id":"0x000b57fffea8ebee_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x000b57fffea8ebee"],"name":"Tradfri Button","sw_version":"Zigbee2mqtt 1.13.1","model":"TRADFRI remote control (E1524/E1810)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x000b57fffea8ebee/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Tradfri Button","json_attributes_topic":"zigbee2mqtt/Tradfri Button","name":"Tradfri Button_linkquality","unique_id":"0x000b57fffea8ebee_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x000b57fffea8ebee"],"name":"Tradfri Button","sw_version":"Zigbee2mqtt 1.13.1","model":"TRADFRI remote control (E1524/E1810)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/binary_sensor/0x000b57fffea8ebee/update_available/config', payload '{"payload_on":true,"payload_off":false,"value_template":"{{ value_json.update_available}}","state_topic":"zigbee2mqtt/Tradfri Button","json_attributes_topic":"zigbee2mqtt/Tradfri Button","name":"Tradfri Button_update_available","unique_id":"0x000b57fffea8ebee_update_available_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x000b57fffea8ebee"],"name":"Tradfri Button","sw_version":"Zigbee2mqtt 1.13.1","model":"TRADFRI remote control (E1524/E1810)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x000d6ffffe2add89/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Tradfri Repeater - Master Bedroom","json_attributes_topic":"zigbee2mqtt/Tradfri Repeater - Master Bedroom","name":"Tradfri Repeater - Master Bedroom_linkquality","unique_id":"0x000d6ffffe2add89_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x000d6ffffe2add89"],"name":"Tradfri Repeater - Master Bedroom","sw_version":"Zigbee2mqtt 1.13.1","model":"TRADFRI signal repeater (E1746)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/binary_sensor/0x000d6ffffe2add89/update_available/config', payload '{"payload_on":true,"payload_off":false,"value_template":"{{ value_json.update_available}}","state_topic":"zigbee2mqtt/Tradfri Repeater - Master Bedroom","json_attributes_topic":"zigbee2mqtt/Tradfri Repeater - Master Bedroom","name":"Tradfri Repeater - Master Bedroom_update_available","unique_id":"0x000d6ffffe2add89_update_available_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x000d6ffffe2add89"],"name":"Tradfri Repeater - Master Bedroom","sw_version":"Zigbee2mqtt 1.13.1","model":"TRADFRI signal repeater (E1746)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x000d6ffffe9cd34e/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Tradfri Repeater - Basement","json_attributes_topic":"zigbee2mqtt/Tradfri Repeater - Basement","name":"Tradfri Repeater - Basement_linkquality","unique_id":"0x000d6ffffe9cd34e_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x000d6ffffe9cd34e"],"name":"Tradfri Repeater - Basement","sw_version":"Zigbee2mqtt 1.13.1","model":"TRADFRI signal repeater (E1746)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/binary_sensor/0x000d6ffffe9cd34e/update_available/config', payload '{"payload_on":true,"payload_off":false,"value_template":"{{ value_json.update_available}}","state_topic":"zigbee2mqtt/Tradfri Repeater - Basement","json_attributes_topic":"zigbee2mqtt/Tradfri Repeater - Basement","name":"Tradfri Repeater - Basement_update_available","unique_id":"0x000d6ffffe9cd34e_update_available_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x000d6ffffe9cd34e"],"name":"Tradfri Repeater - Basement","sw_version":"Zigbee2mqtt 1.13.1","model":"TRADFRI signal repeater (E1746)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/light/0xdd16abffff070a94/light/config', payload '{"brightness":true,"color_temp":true,"xy":true,"schema":"json","command_topic":"zigbee2mqtt/Ben Lamp/set","brightness_scale":254,"state_topic":"zigbee2mqtt/Ben Lamp","json_attributes_topic":"zigbee2mqtt/Ben Lamp","name":"Ben Lamp_light","unique_id":"0xdd16abffff070a94_light_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0xdd16abffff070a94"],"name":"Ben Lamp","sw_version":"Zigbee2mqtt 1.13.1","model":"A19 RGB bulb (D1821)","manufacturer":"EcoSmart"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0xdd16abffff070a94/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Ben Lamp","json_attributes_topic":"zigbee2mqtt/Ben Lamp","name":"Ben Lamp_linkquality","unique_id":"0xdd16abffff070a94_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0xdd16abffff070a94"],"name":"Ben Lamp","sw_version":"Zigbee2mqtt 1.13.1","model":"A19 RGB bulb (D1821)","manufacturer":"EcoSmart"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x000b57fffe9605a4/brightness/config', payload '{"unit_of_measurement":"brightness","icon":"mdi:brightness-5","value_template":"{{ value_json.brightness }}","state_topic":"zigbee2mqtt/Tradfri Dimmer","json_attributes_topic":"zigbee2mqtt/Tradfri Dimmer","name":"Tradfri Dimmer_brightness","unique_id":"0x000b57fffe9605a4_brightness_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x000b57fffe9605a4"],"name":"Tradfri Dimmer","sw_version":"Zigbee2mqtt 1.13.1","model":"TRADFRI wireless dimmer (ICTC-G-1)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x000b57fffe9605a4/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/Tradfri Dimmer","json_attributes_topic":"zigbee2mqtt/Tradfri Dimmer","name":"Tradfri Dimmer_battery","unique_id":"0x000b57fffe9605a4_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x000b57fffe9605a4"],"name":"Tradfri Dimmer","sw_version":"Zigbee2mqtt 1.13.1","model":"TRADFRI wireless dimmer (ICTC-G-1)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x000b57fffe9605a4/action/config', payload '{"icon":"mdi:gesture-double-tap","value_template":"{{ value_json.action }}","state_topic":"zigbee2mqtt/Tradfri Dimmer","json_attributes_topic":"zigbee2mqtt/Tradfri Dimmer","name":"Tradfri Dimmer_action","unique_id":"0x000b57fffe9605a4_action_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x000b57fffe9605a4"],"name":"Tradfri Dimmer","sw_version":"Zigbee2mqtt 1.13.1","model":"TRADFRI wireless dimmer (ICTC-G-1)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x000b57fffe9605a4/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Tradfri Dimmer","json_attributes_topic":"zigbee2mqtt/Tradfri Dimmer","name":"Tradfri Dimmer_linkquality","unique_id":"0x000b57fffe9605a4_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x000b57fffe9605a4"],"name":"Tradfri Dimmer","sw_version":"Zigbee2mqtt 1.13.1","model":"TRADFRI wireless dimmer (ICTC-G-1)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/binary_sensor/0x000b57fffe9605a4/update_available/config', payload '{"payload_on":true,"payload_off":false,"value_template":"{{ value_json.update_available}}","state_topic":"zigbee2mqtt/Tradfri Dimmer","json_attributes_topic":"zigbee2mqtt/Tradfri Dimmer","name":"Tradfri Dimmer_update_available","unique_id":"0x000b57fffe9605a4_update_available_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x000b57fffe9605a4"],"name":"Tradfri Dimmer","sw_version":"Zigbee2mqtt 1.13.1","model":"TRADFRI wireless dimmer (ICTC-G-1)","manufacturer":"IKEA"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/light/0xdd16abffff07178e/light/config', payload '{"brightness":true,"color_temp":true,"xy":true,"schema":"json","command_topic":"zigbee2mqtt/Nate's Wake Up Light/set","brightness_scale":254,"state_topic":"zigbee2mqtt/Nate's Wake Up Light","json_attributes_topic":"zigbee2mqtt/Nate's Wake Up Light","name":"Nate's Wake Up Light_light","unique_id":"0xdd16abffff07178e_light_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0xdd16abffff07178e"],"name":"Nate's Wake Up Light","sw_version":"Zigbee2mqtt 1.13.1","model":"A19 RGB bulb (D1821)","manufacturer":"EcoSmart"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0xdd16abffff07178e/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Nate's Wake Up Light","json_attributes_topic":"zigbee2mqtt/Nate's Wake Up Light","name":"Nate's Wake Up Light_linkquality","unique_id":"0xdd16abffff07178e_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0xdd16abffff07178e"],"name":"Nate's Wake Up Light","sw_version":"Zigbee2mqtt 1.13.1","model":"A19 RGB bulb (D1821)","manufacturer":"EcoSmart"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/binary_sensor/0x00158d000132e9c7/occupancy/config', payload '{"payload_on":true,"payload_off":false,"value_template":"{{ value_json.occupancy }}","device_class":"motion","state_topic":"zigbee2mqtt/Utility Motion Sensor","json_attributes_topic":"zigbee2mqtt/Utility Motion Sensor","name":"Utility Motion Sensor_occupancy","unique_id":"0x00158d000132e9c7_occupancy_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000132e9c7"],"name":"Utility Motion Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"MiJia human body movement sensor (RTCGQ01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d000132e9c7/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/Utility Motion Sensor","json_attributes_topic":"zigbee2mqtt/Utility Motion Sensor","name":"Utility Motion Sensor_battery","unique_id":"0x00158d000132e9c7_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000132e9c7"],"name":"Utility Motion Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"MiJia human body movement sensor (RTCGQ01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d000132e9c7/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Utility Motion Sensor","json_attributes_topic":"zigbee2mqtt/Utility Motion Sensor","name":"Utility Motion Sensor_linkquality","unique_id":"0x00158d000132e9c7_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000132e9c7"],"name":"Utility Motion Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"MiJia human body movement sensor (RTCGQ01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0001217472/temperature/config', payload '{"unit_of_measurement":"°C","device_class":"temperature","value_template":"{{ value_json.temperature }}","state_topic":"zigbee2mqtt/Nate Room - Temperature Sensor","json_attributes_topic":"zigbee2mqtt/Nate Room - Temperature Sensor","name":"Nate Room - Temperature Sensor_temperature","unique_id":"0x00158d0001217472_temperature_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0001217472"],"name":"Nate Room - Temperature Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"MiJia temperature & humidity sensor (WSDCGQ01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0001217472/humidity/config', payload '{"unit_of_measurement":"%","device_class":"humidity","value_template":"{{ value_json.humidity }}","state_topic":"zigbee2mqtt/Nate Room - Temperature Sensor","json_attributes_topic":"zigbee2mqtt/Nate Room - Temperature Sensor","name":"Nate Room - Temperature Sensor_humidity","unique_id":"0x00158d0001217472_humidity_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0001217472"],"name":"Nate Room - Temperature Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"MiJia temperature & humidity sensor (WSDCGQ01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0001217472/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/Nate Room - Temperature Sensor","json_attributes_topic":"zigbee2mqtt/Nate Room - Temperature Sensor","name":"Nate Room - Temperature Sensor_battery","unique_id":"0x00158d0001217472_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0001217472"],"name":"Nate Room - Temperature Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"MiJia temperature & humidity sensor (WSDCGQ01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0001217472/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Nate Room - Temperature Sensor","json_attributes_topic":"zigbee2mqtt/Nate Room - Temperature Sensor","name":"Nate Room - Temperature Sensor_linkquality","unique_id":"0x00158d0001217472_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0001217472"],"name":"Nate Room - Temperature Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"MiJia temperature & humidity sensor (WSDCGQ01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0001216c95/temperature/config', payload '{"unit_of_measurement":"°C","device_class":"temperature","value_template":"{{ value_json.temperature }}","state_topic":"zigbee2mqtt/Jared Room - Temperature Sensor","json_attributes_topic":"zigbee2mqtt/Jared Room - Temperature Sensor","name":"Jared Room - Temperature Sensor_temperature","unique_id":"0x00158d0001216c95_temperature_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0001216c95"],"name":"Jared Room - Temperature Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"MiJia temperature & humidity sensor (WSDCGQ01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0001216c95/humidity/config', payload '{"unit_of_measurement":"%","device_class":"humidity","value_template":"{{ value_json.humidity }}","state_topic":"zigbee2mqtt/Jared Room - Temperature Sensor","json_attributes_topic":"zigbee2mqtt/Jared Room - Temperature Sensor","name":"Jared Room - Temperature Sensor_humidity","unique_id":"0x00158d0001216c95_humidity_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0001216c95"],"name":"Jared Room - Temperature Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"MiJia temperature & humidity sensor (WSDCGQ01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0001216c95/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/Jared Room - Temperature Sensor","json_attributes_topic":"zigbee2mqtt/Jared Room - Temperature Sensor","name":"Jared Room - Temperature Sensor_battery","unique_id":"0x00158d0001216c95_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0001216c95"],"name":"Jared Room - Temperature Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"MiJia temperature & humidity sensor (WSDCGQ01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0001216c95/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Jared Room - Temperature Sensor","json_attributes_topic":"zigbee2mqtt/Jared Room - Temperature Sensor","name":"Jared Room - Temperature Sensor_linkquality","unique_id":"0x00158d0001216c95_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0001216c95"],"name":"Jared Room - Temperature Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"MiJia temperature & humidity sensor (WSDCGQ01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0002325c75/temperature/config', payload '{"unit_of_measurement":"°C","device_class":"temperature","value_template":"{{ value_json.temperature }}","state_topic":"zigbee2mqtt/Office - Temperature Sensor","json_attributes_topic":"zigbee2mqtt/Office - Temperature Sensor","name":"Office - Temperature Sensor_temperature","unique_id":"0x00158d0002325c75_temperature_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0002325c75"],"name":"Office - Temperature Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0002325c75/humidity/config', payload '{"unit_of_measurement":"%","device_class":"humidity","value_template":"{{ value_json.humidity }}","state_topic":"zigbee2mqtt/Office - Temperature Sensor","json_attributes_topic":"zigbee2mqtt/Office - Temperature Sensor","name":"Office - Temperature Sensor_humidity","unique_id":"0x00158d0002325c75_humidity_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0002325c75"],"name":"Office - Temperature Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0002325c75/pressure/config', payload '{"unit_of_measurement":"hPa","device_class":"pressure","value_template":"{{ value_json.pressure }}","state_topic":"zigbee2mqtt/Office - Temperature Sensor","json_attributes_topic":"zigbee2mqtt/Office - Temperature Sensor","name":"Office - Temperature Sensor_pressure","unique_id":"0x00158d0002325c75_pressure_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0002325c75"],"name":"Office - Temperature Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0002325c75/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/Office - Temperature Sensor","json_attributes_topic":"zigbee2mqtt/Office - Temperature Sensor","name":"Office - Temperature Sensor_battery","unique_id":"0x00158d0002325c75_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0002325c75"],"name":"Office - Temperature Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0002325c75/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Office - Temperature Sensor","json_attributes_topic":"zigbee2mqtt/Office - Temperature Sensor","name":"Office - Temperature Sensor_linkquality","unique_id":"0x00158d0002325c75_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0002325c75"],"name":"Office - Temperature Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0002437c0a/temperature/config', payload '{"unit_of_measurement":"°C","device_class":"temperature","value_template":"{{ value_json.temperature }}","state_topic":"zigbee2mqtt/Kitchen - Temperature Sensor","json_attributes_topic":"zigbee2mqtt/Kitchen - Temperature Sensor","name":"Kitchen - Temperature Sensor_temperature","unique_id":"0x00158d0002437c0a_temperature_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0002437c0a"],"name":"Kitchen - Temperature Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0002437c0a/humidity/config', payload '{"unit_of_measurement":"%","device_class":"humidity","value_template":"{{ value_json.humidity }}","state_topic":"zigbee2mqtt/Kitchen - Temperature Sensor","json_attributes_topic":"zigbee2mqtt/Kitchen - Temperature Sensor","name":"Kitchen - Temperature Sensor_humidity","unique_id":"0x00158d0002437c0a_humidity_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0002437c0a"],"name":"Kitchen - Temperature Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0002437c0a/pressure/config', payload '{"unit_of_measurement":"hPa","device_class":"pressure","value_template":"{{ value_json.pressure }}","state_topic":"zigbee2mqtt/Kitchen - Temperature Sensor","json_attributes_topic":"zigbee2mqtt/Kitchen - Temperature Sensor","name":"Kitchen - Temperature Sensor_pressure","unique_id":"0x00158d0002437c0a_pressure_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0002437c0a"],"name":"Kitchen - Temperature Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0002437c0a/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/Kitchen - Temperature Sensor","json_attributes_topic":"zigbee2mqtt/Kitchen - Temperature Sensor","name":"Kitchen - Temperature Sensor_battery","unique_id":"0x00158d0002437c0a_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0002437c0a"],"name":"Kitchen - Temperature Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0002437c0a/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Kitchen - Temperature Sensor","json_attributes_topic":"zigbee2mqtt/Kitchen - Temperature Sensor","name":"Kitchen - Temperature Sensor_linkquality","unique_id":"0x00158d0002437c0a_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0002437c0a"],"name":"Kitchen - Temperature Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/light/0xdd16abfff1a17a17/light/config', payload '{"brightness":true,"schema":"json","command_topic":"zigbee2mqtt/Utility Room Lamp/set","brightness_scale":254,"state_topic":"zigbee2mqtt/Utility Room Lamp","json_attributes_topic":"zigbee2mqtt/Utility Room Lamp","name":"Utility Room Lamp_light","unique_id":"0xdd16abfff1a17a17_light_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0xdd16abfff1a17a17"],"name":"Utility Room Lamp","sw_version":"Zigbee2mqtt 1.13.1","model":"A19 bright white bulb (D1531)","manufacturer":"EcoSmart"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0xdd16abfff1a17a17/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Utility Room Lamp","json_attributes_topic":"zigbee2mqtt/Utility Room Lamp","name":"Utility Room Lamp_linkquality","unique_id":"0xdd16abfff1a17a17_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0xdd16abfff1a17a17"],"name":"Utility Room Lamp","sw_version":"Zigbee2mqtt 1.13.1","model":"A19 bright white bulb (D1531)","manufacturer":"EcoSmart"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/binary_sensor/0x00158d000165fe3b/occupancy/config', payload '{"payload_on":true,"payload_off":false,"value_template":"{{ value_json.occupancy }}","device_class":"motion","state_topic":"zigbee2mqtt/Nates Room - Motion Sensor","json_attributes_topic":"zigbee2mqtt/Nates Room - Motion Sensor","name":"Nates Room - Motion Sensor_occupancy","unique_id":"0x00158d000165fe3b_occupancy_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000165fe3b"],"name":"Nates Room - Motion Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara human body movement and illuminance sensor (RTCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d000165fe3b/illuminance/config', payload '{"unit_of_measurement":"-","device_class":"illuminance","value_template":"{{ value_json.illuminance }}","state_topic":"zigbee2mqtt/Nates Room - Motion Sensor","json_attributes_topic":"zigbee2mqtt/Nates Room - Motion Sensor","name":"Nates Room - Motion Sensor_illuminance","unique_id":"0x00158d000165fe3b_illuminance_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000165fe3b"],"name":"Nates Room - Motion Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara human body movement and illuminance sensor (RTCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d000165fe3b/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/Nates Room - Motion Sensor","json_attributes_topic":"zigbee2mqtt/Nates Room - Motion Sensor","name":"Nates Room - Motion Sensor_battery","unique_id":"0x00158d000165fe3b_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000165fe3b"],"name":"Nates Room - Motion Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara human body movement and illuminance sensor (RTCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d000165fe3b/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Nates Room - Motion Sensor","json_attributes_topic":"zigbee2mqtt/Nates Room - Motion Sensor","name":"Nates Room - Motion Sensor_linkquality","unique_id":"0x00158d000165fe3b_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000165fe3b"],"name":"Nates Room - Motion Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara human body movement and illuminance sensor (RTCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/light/0xdd16abffff07042a/light/config', payload '{"brightness":true,"color_temp":true,"xy":true,"schema":"json","command_topic":"zigbee2mqtt/Ground Floor Hallway Light/set","brightness_scale":254,"state_topic":"zigbee2mqtt/Ground Floor Hallway Light","json_attributes_topic":"zigbee2mqtt/Ground Floor Hallway Light","name":"Ground Floor Hallway Light_light","unique_id":"0xdd16abffff07042a_light_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0xdd16abffff07042a"],"name":"Ground Floor Hallway Light","sw_version":"Zigbee2mqtt 1.13.1","model":"A19 RGB bulb (D1821)","manufacturer":"EcoSmart"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0xdd16abffff07042a/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Ground Floor Hallway Light","json_attributes_topic":"zigbee2mqtt/Ground Floor Hallway Light","name":"Ground Floor Hallway Light_linkquality","unique_id":"0xdd16abffff07042a_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0xdd16abffff07042a"],"name":"Ground Floor Hallway Light","sw_version":"Zigbee2mqtt 1.13.1","model":"A19 RGB bulb (D1821)","manufacturer":"EcoSmart"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/light/0xdd16abffff070772/light/config', payload '{"brightness":true,"color_temp":true,"xy":true,"schema":"json","command_topic":"zigbee2mqtt/0xdd16abffff070772/set","brightness_scale":254,"state_topic":"zigbee2mqtt/0xdd16abffff070772","json_attributes_topic":"zigbee2mqtt/0xdd16abffff070772","name":"0xdd16abffff070772_light","unique_id":"0xdd16abffff070772_light_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0xdd16abffff070772"],"name":"0xdd16abffff070772","sw_version":"Zigbee2mqtt 1.13.1","model":"A19 RGB bulb (D1821)","manufacturer":"EcoSmart"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0xdd16abffff070772/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/0xdd16abffff070772","json_attributes_topic":"zigbee2mqtt/0xdd16abffff070772","name":"0xdd16abffff070772_linkquality","unique_id":"0xdd16abffff070772_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0xdd16abffff070772"],"name":"0xdd16abffff070772","sw_version":"Zigbee2mqtt 1.13.1","model":"A19 RGB bulb (D1821)","manufacturer":"EcoSmart"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/binary_sensor/0x00158d0001d5948f/water_leak/config', payload '{"payload_on":true,"payload_off":false,"value_template":"{{ value_json.water_leak }}","device_class":"moisture","state_topic":"zigbee2mqtt/Basement water sensor","json_attributes_topic":"zigbee2mqtt/Basement water sensor","name":"Basement water sensor_water_leak","unique_id":"0x00158d0001d5948f_water_leak_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0001d5948f"],"name":"Basement water sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara water leak sensor (SJCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0001d5948f/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/Basement water sensor","json_attributes_topic":"zigbee2mqtt/Basement water sensor","name":"Basement water sensor_battery","unique_id":"0x00158d0001d5948f_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0001d5948f"],"name":"Basement water sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara water leak sensor (SJCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0001d5948f/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Basement water sensor","json_attributes_topic":"zigbee2mqtt/Basement water sensor","name":"Basement water sensor_linkquality","unique_id":"0x00158d0001d5948f_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0001d5948f"],"name":"Basement water sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara water leak sensor (SJCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d000182dd03/temperature/config', payload '{"unit_of_measurement":"°C","device_class":"temperature","value_template":"{{ value_json.temperature }}","state_topic":"zigbee2mqtt/Garage Fridge Temp Sensor","json_attributes_topic":"zigbee2mqtt/Garage Fridge Temp Sensor","name":"Garage Fridge Temp Sensor_temperature","unique_id":"0x00158d000182dd03_temperature_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000182dd03"],"name":"Garage Fridge Temp Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"MiJia temperature & humidity sensor (WSDCGQ01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d000182dd03/humidity/config', payload '{"unit_of_measurement":"%","device_class":"humidity","value_template":"{{ value_json.humidity }}","state_topic":"zigbee2mqtt/Garage Fridge Temp Sensor","json_attributes_topic":"zigbee2mqtt/Garage Fridge Temp Sensor","name":"Garage Fridge Temp Sensor_humidity","unique_id":"0x00158d000182dd03_humidity_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000182dd03"],"name":"Garage Fridge Temp Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"MiJia temperature & humidity sensor (WSDCGQ01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d000182dd03/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/Garage Fridge Temp Sensor","json_attributes_topic":"zigbee2mqtt/Garage Fridge Temp Sensor","name":"Garage Fridge Temp Sensor_battery","unique_id":"0x00158d000182dd03_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000182dd03"],"name":"Garage Fridge Temp Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"MiJia temperature & humidity sensor (WSDCGQ01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d000182dd03/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Garage Fridge Temp Sensor","json_attributes_topic":"zigbee2mqtt/Garage Fridge Temp Sensor","name":"Garage Fridge Temp Sensor_linkquality","unique_id":"0x00158d000182dd03_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d000182dd03"],"name":"Garage Fridge Temp Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"MiJia temperature & humidity sensor (WSDCGQ01LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/binary_sensor/0x00158d0001a24bba/occupancy/config', payload '{"payload_on":true,"payload_off":false,"value_template":"{{ value_json.occupancy }}","device_class":"motion","state_topic":"zigbee2mqtt/Kitchen - Motion Sensor","json_attributes_topic":"zigbee2mqtt/Kitchen - Motion Sensor","name":"Kitchen - Motion Sensor_occupancy","unique_id":"0x00158d0001a24bba_occupancy_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0001a24bba"],"name":"Kitchen - Motion Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara human body movement and illuminance sensor (RTCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0001a24bba/illuminance/config', payload '{"unit_of_measurement":"-","device_class":"illuminance","value_template":"{{ value_json.illuminance }}","state_topic":"zigbee2mqtt/Kitchen - Motion Sensor","json_attributes_topic":"zigbee2mqtt/Kitchen - Motion Sensor","name":"Kitchen - Motion Sensor_illuminance","unique_id":"0x00158d0001a24bba_illuminance_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0001a24bba"],"name":"Kitchen - Motion Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara human body movement and illuminance sensor (RTCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0001a24bba/battery/config', payload '{"unit_of_measurement":"%","device_class":"battery","value_template":"{{ value_json.battery }}","state_topic":"zigbee2mqtt/Kitchen - Motion Sensor","json_attributes_topic":"zigbee2mqtt/Kitchen - Motion Sensor","name":"Kitchen - Motion Sensor_battery","unique_id":"0x00158d0001a24bba_battery_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0001a24bba"],"name":"Kitchen - Motion Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara human body movement and illuminance sensor (RTCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
zigbee2mqtt:info  2020-06-23 11:52:26: MQTT publish: topic 'homeassistant/sensor/0x00158d0001a24bba/linkquality/config', payload '{"icon":"mdi:signal","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}","state_topic":"zigbee2mqtt/Kitchen - Motion Sensor","json_attributes_topic":"zigbee2mqtt/Kitchen - Motion Sensor","name":"Kitchen - Motion Sensor_linkquality","unique_id":"0x00158d0001a24bba_linkquality_zigbee2mqtt","device":{"identifiers":["zigbee2mqtt_0x00158d0001a24bba"],"name":"Kitchen - Motion Sensor","sw_version":"Zigbee2mqtt 1.13.1","model":"Aqara human body movement and illuminance sensor (RTCGQ11LM)","manufacturer":"Xiaomi"},"availability_topic":"zigbee2mqtt/bridge/state"}'
Koenkk commented 4 years ago

I'm very confused by this. So when controlling the fan entity in Home Assistant the commands are send to zigbee2mqtt/Office Fan/set while in the discovery we clearly see "command_topic":"zigbee2mqtt/Office Fan/set/fan_state"

alexanv1 commented 4 years ago

I saw something similar happen as well. My fans would occasionally report fan_state=ON when the actual fan was OFF (and fan_mode was OFF). Physically the fan would turn on and off but the state reported in HA was wrong.

I ended up "fixing" by modifying devices.yaml to add the following for my fans which got the state to be reported correctly in HA.

  homeassistant:
    fan:
      state_value_template: '{{ ''ON'' if value_json.fan_mode|lower != ''off'' else ''OFF'' }}'

Didn't pursue it further since I had to go back to 1.6 due to other issues and it was working correctly in 1.6.

boojew commented 4 years ago

Anything further I can provide to be of assistance?

Koenkk commented 4 years ago

Can you check if it works with the following manual configuration?

fan:
  - platform: mqtt
    name: "My Fan"
    state_topic: "zigbee2mqtt/Office Fan"
    state_value_template":"{{ value_json.fan_state }}"
    command_topic: "zigbee2mqtt/Office Fan/set/fan_state"
    speed_state_topic: "zigbee2mqtt/Office Fan"
    speed_command_topic: "zigbee2mqtt/Office Fan/set/fan_mode"
    speed_value_template:"{{ value_json.fan_mode }}"
    json_attributes_topic:"zigbee2mqtt/Office Fan"
    availability_topic:"zigbee2mqtt/bridge/state"
    speeds:
      - "off"
      - low
      - medium
      - high
      - on
      - auto
      - smart
boojew commented 4 years ago

Hmmm.. I get this error with that config stanza.

Invalid config for [fan.mqtt]: [state_value_template"] is an invalid option for [fan.mqtt]. Check: fan.mqtt->state_value_template". (See ?, line ?).

Note, the yaml was missing some spaces between the colons and quotes

fan:
  - platform: mqtt
    name: "My Fan"
    state_topic: "zigbee2mqtt/Office Fan"
    state_value_template": "{{ value_json.fan_state }}"
    command_topic: "zigbee2mqtt/Office Fan/set/fan_state"
    speed_state_topic: "zigbee2mqtt/Office Fan"
    speed_command_topic: "zigbee2mqtt/Office Fan/set/fan_mode"
    speed_value_template: "{{ value_json.fan_mode }}"
    json_attributes_topic: "zigbee2mqtt/Office Fan"
    availability_topic: "zigbee2mqtt/bridge/state"
    speeds:
      - "off"
      - low
      - medium
      - high
      - on
      - auto
      - smart

I'll try and see what is wrong later tonight when I have more time

boojew commented 4 years ago

There was an extra " in the yaml. If anyone wants it, the correct yaml is below...

Anyways, I get the same behaviour

fan:
  - platform: mqtt
    name: "My Fan"
    state_topic: "zigbee2mqtt/Office Fan"
    state_value_template: "{{ value_json.fan_state }}"
    command_topic: "zigbee2mqtt/Office Fan/set/fan_state"
    speed_state_topic: "zigbee2mqtt/Office Fan"
    speed_command_topic: "zigbee2mqtt/Office Fan/set/fan_mode"
    speed_value_template: "{{ value_json.fan_mode }}"
    json_attributes_topic: "zigbee2mqtt/Office Fan"
    availability_topic: "zigbee2mqtt/bridge/state"
    speeds:
      - "off"
      - low
      - medium
      - high
      - on
      - auto
      - smart
Koenkk commented 4 years ago

Probably a stupid question (but better to check): are you sure you are using the manual entry instead of the auto discovered one? (does the one you control have "My Fan" as name)?

If you are using the correct one, what do you see in the zigbee2mqtt log when turning on/off?

boojew commented 4 years ago

Always ask the "stupid questions", i say :) But yea, I am. Here. is a gif of it all. Screen-Recording-2020-07-14-at-3

edit: here is a higher quality view. https://www.dropbox.com/s/3giv59fatluigk9/Screen%20Recording%202020-07-14%20at%203.58.17%20PM.mov?dl=0

boojew commented 4 years ago

and here are the logs


zigbee2mqtt:debug 2020-07-14 15:58:23: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_state' with data 'ON'
zigbee2mqtt:debug 2020-07-14 15:58:23: Publishing 'set' 'fan_state' to 'Office Fan'
zigbee2mqtt:debug 2020-07-14 15:58:23: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_mode' with data 'medium'
zigbee2mqtt:debug 2020-07-14 15:58:23: Publishing 'set' 'fan_mode' to 'Office Fan'
zigbee2mqtt:info  2020-07-14 15:58:23: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"ON","fan_state":"ON","last_seen":1594756703942,"linkquality":70,"state":"ON","brightness":0}'
zigbee2mqtt:info  2020-07-14 15:58:24: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"medium","fan_state":"ON","last_seen":1594756704062,"linkquality":70,"state":"ON","brightness":0}'
zigbee2mqtt:debug 2020-07-14 15:58:27: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_state' with data 'ON'
zigbee2mqtt:debug 2020-07-14 15:58:27: Publishing 'set' 'fan_state' to 'Office Fan'
zigbee2mqtt:debug 2020-07-14 15:58:27: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_mode' with data 'low'
zigbee2mqtt:debug 2020-07-14 15:58:27: Publishing 'set' 'fan_mode' to 'Office Fan'
zigbee2mqtt:info  2020-07-14 15:58:27: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"ON","fan_state":"ON","last_seen":1594756707468,"linkquality":70,"state":"ON","brightness":0}'
zigbee2mqtt:info  2020-07-14 15:58:27: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"low","fan_state":"ON","last_seen":1594756707587,"linkquality":70,"state":"ON","brightness":0}'
zigbee2mqtt:debug 2020-07-14 15:58:31: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_state' with data 'ON'
zigbee2mqtt:debug 2020-07-14 15:58:31: Publishing 'set' 'fan_state' to 'Office Fan'
zigbee2mqtt:debug 2020-07-14 15:58:31: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_mode' with data 'off'
zigbee2mqtt:debug 2020-07-14 15:58:31: Publishing 'set' 'fan_mode' to 'Office Fan'
zigbee2mqtt:info  2020-07-14 15:58:31: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"ON","fan_state":"ON","last_seen":1594756711843,"linkquality":70,"state":"ON","brightness":0}'
zigbee2mqtt:info  2020-07-14 15:58:31: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"off","fan_state":"OFF","last_seen":1594756711960,"linkquality":70,"state":"ON","brightness":0}'
zigbee2mqtt:debug 2020-07-14 15:58:35: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_state' with data 'ON'
zigbee2mqtt:debug 2020-07-14 15:58:35: Publishing 'set' 'fan_state' to 'Office Fan'
zigbee2mqtt:info  2020-07-14 15:58:35: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"ON","fan_state":"ON","last_seen":1594756715364,"linkquality":70,"state":"ON","brightness":0}'
zigbee2mqtt:debug 2020-07-14 15:58:44: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_state' with data 'OFF'
zigbee2mqtt:debug 2020-07-14 15:58:44: Publishing 'set' 'fan_state' to 'Office Fan'
zigbee2mqtt:info  2020-07-14 15:58:44: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"OFF","fan_state":"ON","last_seen":1594756724327,"linkquality":70,"state":"ON","brightness":0}'
zigbee2mqtt:debug 2020-07-14 15:59:53: Saving state to file /app/data/state.json
zigbee2mqtt:debug 2020-07-14 16:00:00: Received MQTT message on 'zigbee2mqtt/bridge/config/devices/get' with data ''
zigbee2mqtt:info  2020-07-14 16:00:00: MQTT publish: topic 'zigbee2mqtt/bridge/config/devices', payload '[{"ieeeAddr":"0x00124b0014d9e40f","type":"Coordinator","networkAddress":0,"friendly_name":"Coordinator","softwareBuildID":"zStack12","dateCode":"20190425","lastSeen":1594756800006},{"ieeeAddr":"0x00158d00023f5163","type":"EndDevice","networkAddress":31174,"model":"WSDCGQ11LM","vendor":"Xiaomi","description":"Aqara temperature, humidity and pressure sensor","friendly_name":"Living Room - Temperature Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.weather","hardwareVersion":30,"softwareBuildID":"3000-0001","dateCode":"20161129","lastSeen":1592065887630},{"ieeeAddr":"0x00158d0001d39f43","type":"EndDevice","networkAddress":42864,"model":"MCCGQ11LM","vendor":"Xiaomi","description":"Aqara door & window contact sensor","friendly_name":"Backdoor Contact Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sensor_magnet.aq2","lastSeen":1594756388606},{"ieeeAddr":"0xdd16abfff1a195ed","type":"Router","networkAddress":25701,"model":"D1532","vendor":"EcoSmart","description":"A19 soft white bulb","friendly_name":"Mudroom Lightbulb","manufacturerID":4445,"manufacturerName":"2.1.0_16d_YF05","powerSource":"Unknown","modelID":"\u0000\u0002\u0000\u0004\u0012 �P\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u000e","hardwareVersion":1,"dateCode":"","lastSeen":1594599504744},{"ieeeAddr":"0x0022a3000020c945","type":"EndDevice","networkAddress":23263,"model":"99432","vendor":"Hampton Bay","description":"Universal wink enabled white ceiling fan premier remote control","friendly_name":"Office Fan","manufacturerID":4098,"manufacturerName":"King Of Fans,  Inc.","powerSource":"Unknown","modelID":"HDC52EastwindFan","lastSeen":1594756724327},{"ieeeAddr":"0x00158d00010c2723","type":"EndDevice","networkAddress":51165,"model":"RTCGQ01LM","vendor":"Xiaomi","description":"MiJia human body movement sensor","friendly_name":"Office Motion Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sensor_motion","lastSeen":1594755675778},{"ieeeAddr":"0x000b57fffea8ebee","type":"EndDevice","networkAddress":51650,"model":"E1524/E1810","vendor":"IKEA","description":"TRADFRI remote control","friendly_name":"Tradfri Button","manufacturerID":4476,"manufacturerName":"IKEA of Sweden","powerSource":"Battery","modelID":"TRADFRI remote control","hardwareVersion":1,"softwareBuildID":"1.1.1.1-5.7.2.0","dateCode":"20161011","lastSeen":1594753065349},{"ieeeAddr":"0x000d6ffffe2add89","type":"Router","networkAddress":5381,"model":"E1746","vendor":"IKEA","description":"TRADFRI signal repeater","friendly_name":"Tradfri Repeater - Master Bedroom","manufacturerID":4476,"manufacturerName":"IKEA of Sweden","powerSource":"Mains (single phase)","modelID":"TRADFRI signal repeater","hardwareVersion":1,"softwareBuildID":"2.2.005","dateCode":"20190318","lastSeen":1594744584008},{"ieeeAddr":"0x000d6ffffe9cd34e","type":"Router","networkAddress":23287,"model":"E1746","vendor":"IKEA","description":"TRADFRI signal repeater","friendly_name":"Tradfri Repeater - Basement","manufacturerID":4476,"manufacturerName":"IKEA of Sweden","powerSource":"Mains (single phase)","modelID":"TRADFRI signal repeater","hardwareVersion":1,"softwareBuildID":"2.2.005","dateCode":"20190318","lastSeen":1594751952559},{"ieeeAddr":"0xdd16abffff070a94","type":"Router","networkAddress":65244,"model":"D1821","vendor":"EcoSmart","description":"A19 RGB bulb","friendly_name":"Ben Lamp","manufacturerID":4445,"manufacturerName":"EcoSmart","powerSource":"Unknown","modelID":"zhaRGBW","hardwareVersion":1,"dateCode":"","lastSeen":1594755135857},{"ieeeAddr":"0x000b57fffe9605a4","type":"EndDevice","networkAddress":42864,"model":"ICTC-G-1","vendor":"IKEA","description":"TRADFRI wireless dimmer","friendly_name":"Tradfri Dimmer","manufacturerID":4476,"manufacturerName":"IKEA of Sweden","powerSource":"Battery","modelID":"TRADFRI wireless dimmer","hardwareVersion":30,"softwareBuildID":"1.1.1.1-5.7.2.0","dateCode":"20160923","lastSeen":1590551608892},{"ieeeAddr":"0xdd16abffff07178e","type":"Router","networkAddress":51653,"model":"D1821","vendor":"EcoSmart","description":"A19 RGB bulb","friendly_name":"Nate's Wake Up Light","manufacturerID":4445,"manufacturerName":"EcoSmart","powerSource":"Unknown","modelID":"zhaRGBW","hardwareVersion":1,"dateCode":"","lastSeen":1586657144431},{"ieeeAddr":"0x00158d000132e9c7","type":"EndDevice","networkAddress":63802,"model":"RTCGQ01LM","vendor":"Xiaomi","description":"MiJia human body movement sensor","friendly_name":"Utility Motion Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sensor_motion","hardwareVersion":2,"softwareBuildID":"3000-0001","dateCode":"20160524","lastSeen":1594754425065},{"ieeeAddr":"0x00158d0001217472","type":"EndDevice","networkAddress":20490,"model":"WSDCGQ01LM","vendor":"Xiaomi","description":"MiJia temperature & humidity sensor","friendly_name":"Nate Room - Temperature Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sens","hardwareVersion":30,"softwareBuildID":"3000-0001","dateCode":"20160516","lastSeen":1581772835193},{"ieeeAddr":"0x00158d0001216c95","type":"EndDevice","networkAddress":59487,"model":"WSDCGQ01LM","vendor":"Xiaomi","description":"MiJia temperature & humidity sensor","friendly_name":"Jared Room - Temperature Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sens","hardwareVersion":30,"softwareBuildID":"3000-0001","dateCode":"20160516","lastSeen":1592926464282},{"ieeeAddr":"0x00158d0002325c75","type":"EndDevice","networkAddress":46581,"model":"WSDCGQ11LM","vendor":"Xiaomi","description":"Aqara temperature, humidity and pressure sensor","friendly_name":"Office - Temperature Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.weather","hardwareVersion":30,"softwareBuildID":"3000-0001","dateCode":"20161129","lastSeen":1594755470035},{"ieeeAddr":"0x00158d0002437c0a","type":"EndDevice","networkAddress":38715,"model":"WSDCGQ11LM","vendor":"Xiaomi","description":"Aqara temperature, humidity and pressure sensor","friendly_name":"Kitchen - Temperature Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.weather","hardwareVersion":30,"softwareBuildID":"3000-0001","dateCode":"20161129","lastSeen":1589043039757},{"ieeeAddr":"0xdd16abfff1a17a17","type":"Router","networkAddress":56807,"model":"D1531","vendor":"EcoSmart","description":"A19 bright white bulb","friendly_name":"Utility Room Lamp","manufacturerID":4445,"manufacturerName":"2.1.0_16d_YF05","powerSource":"Unknown","modelID":"\u0000\u0002\u0000\u0004^��&\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u000e","hardwareVersion":1,"dateCode":"","lastSeen":1594488704321},{"ieeeAddr":"0x00158d000165fe3b","type":"EndDevice","networkAddress":57457,"model":"RTCGQ11LM","vendor":"Xiaomi","description":"Aqara human body movement and illuminance sensor","friendly_name":"Nates Room - Motion Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sensor_motion.aq2","hardwareVersion":1,"softwareBuildID":"3000-0001","dateCode":"20161130","lastSeen":null},{"ieeeAddr":"0xdd16abffff07042a","type":"Router","networkAddress":33686,"model":"D1821","vendor":"EcoSmart","description":"A19 RGB bulb","friendly_name":"Ground Floor Hallway Light","manufacturerID":4445,"manufacturerName":"EcoSmart","powerSource":"Unknown","modelID":"zhaRGBW","hardwareVersion":1,"dateCode":"","lastSeen":1594750008958},{"ieeeAddr":"0xdd16abffff070772","type":"Router","networkAddress":36298,"model":"D1821","vendor":"EcoSmart","description":"A19 RGB bulb","friendly_name":"0xdd16abffff070772","manufacturerID":4445,"manufacturerName":"EcoSmart","powerSource":"Unknown","modelID":"zhaRGBW","hardwareVersion":1,"dateCode":"","lastSeen":null},{"ieeeAddr":"0x00158d0001d5948f","type":"EndDevice","networkAddress":1794,"model":"SJCGQ11LM","vendor":"Xiaomi","description":"Aqara water leak sensor","friendly_name":"Basement water sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sensor_wleak.aq1","hardwareVersion":2,"softwareBuildID":"3000-0001","dateCode":"20170720","lastSeen":1594755389850},{"ieeeAddr":"0x00158d000182dd03","type":"EndDevice","networkAddress":47753,"model":"WSDCGQ01LM","vendor":"Xiaomi","description":"MiJia temperature & humidity sensor","friendly_name":"Garage Fridge Temp Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sens","hardwareVersion":30,"softwareBuildID":"3000-0001","dateCode":"20160516","lastSeen":1594755763980},{"ieeeAddr":"0x00158d0001a24bba","type":"EndDevice","networkAddress":10025,"model":"RTCGQ11LM","vendor":"Xiaomi","description":"Aqara human body movement and illuminance sensor","friendly_name":"Kitchen - Motion Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sensor_motion.aq2","hardwareVersion":1,"softwareBuildID":"3000-0001","dateCode":"20161130","lastSeen":1594755879572}]'
zigbee2mqtt:debug 2020-07-14 16:00:00: Received MQTT message on 'zigbee2mqtt/bridge/config/devices' with data '[{"ieeeAddr":"0x00124b0014d9e40f","type":"Coordinator","networkAddress":0,"friendly_name":"Coordinator","softwareBuildID":"zStack12","dateCode":"20190425","lastSeen":1594756800006},{"ieeeAddr":"0x00158d00023f5163","type":"EndDevice","networkAddress":31174,"model":"WSDCGQ11LM","vendor":"Xiaomi","description":"Aqara temperature, humidity and pressure sensor","friendly_name":"Living Room - Temperature Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.weather","hardwareVersion":30,"softwareBuildID":"3000-0001","dateCode":"20161129","lastSeen":1592065887630},{"ieeeAddr":"0x00158d0001d39f43","type":"EndDevice","networkAddress":42864,"model":"MCCGQ11LM","vendor":"Xiaomi","description":"Aqara door & window contact sensor","friendly_name":"Backdoor Contact Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sensor_magnet.aq2","lastSeen":1594756388606},{"ieeeAddr":"0xdd16abfff1a195ed","type":"Router","networkAddress":25701,"model":"D1532","vendor":"EcoSmart","description":"A19 soft white bulb","friendly_name":"Mudroom Lightbulb","manufacturerID":4445,"manufacturerName":"2.1.0_16d_YF05","powerSource":"Unknown","modelID":"\u0000\u0002\u0000\u0004\u0012 �P\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u000e","hardwareVersion":1,"dateCode":"","lastSeen":1594599504744},{"ieeeAddr":"0x0022a3000020c945","type":"EndDevice","networkAddress":23263,"model":"99432","vendor":"Hampton Bay","description":"Universal wink enabled white ceiling fan premier remote control","friendly_name":"Office Fan","manufacturerID":4098,"manufacturerName":"King Of Fans,  Inc.","powerSource":"Unknown","modelID":"HDC52EastwindFan","lastSeen":1594756724327},{"ieeeAddr":"0x00158d00010c2723","type":"EndDevice","networkAddress":51165,"model":"RTCGQ01LM","vendor":"Xiaomi","description":"MiJia human body movement sensor","friendly_name":"Office Motion Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sensor_motion","lastSeen":1594755675778},{"ieeeAddr":"0x000b57fffea8ebee","type":"EndDevice","networkAddress":51650,"model":"E1524/E1810","vendor":"IKEA","description":"TRADFRI remote control","friendly_name":"Tradfri Button","manufacturerID":4476,"manufacturerName":"IKEA of Sweden","powerSource":"Battery","modelID":"TRADFRI remote control","hardwareVersion":1,"softwareBuildID":"1.1.1.1-5.7.2.0","dateCode":"20161011","lastSeen":1594753065349},{"ieeeAddr":"0x000d6ffffe2add89","type":"Router","networkAddress":5381,"model":"E1746","vendor":"IKEA","description":"TRADFRI signal repeater","friendly_name":"Tradfri Repeater - Master Bedroom","manufacturerID":4476,"manufacturerName":"IKEA of Sweden","powerSource":"Mains (single phase)","modelID":"TRADFRI signal repeater","hardwareVersion":1,"softwareBuildID":"2.2.005","dateCode":"20190318","lastSeen":1594744584008},{"ieeeAddr":"0x000d6ffffe9cd34e","type":"Router","networkAddress":23287,"model":"E1746","vendor":"IKEA","description":"TRADFRI signal repeater","friendly_name":"Tradfri Repeater - Basement","manufacturerID":4476,"manufacturerName":"IKEA of Sweden","powerSource":"Mains (single phase)","modelID":"TRADFRI signal repeater","hardwareVersion":1,"softwareBuildID":"2.2.005","dateCode":"20190318","lastSeen":1594751952559},{"ieeeAddr":"0xdd16abffff070a94","type":"Router","networkAddress":65244,"model":"D1821","vendor":"EcoSmart","description":"A19 RGB bulb","friendly_name":"Ben Lamp","manufacturerID":4445,"manufacturerName":"EcoSmart","powerSource":"Unknown","modelID":"zhaRGBW","hardwareVersion":1,"dateCode":"","lastSeen":1594755135857},{"ieeeAddr":"0x000b57fffe9605a4","type":"EndDevice","networkAddress":42864,"model":"ICTC-G-1","vendor":"IKEA","description":"TRADFRI wireless dimmer","friendly_name":"Tradfri Dimmer","manufacturerID":4476,"manufacturerName":"IKEA of Sweden","powerSource":"Battery","modelID":"TRADFRI wireless dimmer","hardwareVersion":30,"softwareBuildID":"1.1.1.1-5.7.2.0","dateCode":"20160923","lastSeen":1590551608892},{"ieeeAddr":"0xdd16abffff07178e","type":"Router","networkAddress":51653,"model":"D1821","vendor":"EcoSmart","description":"A19 RGB bulb","friendly_name":"Nate's Wake Up Light","manufacturerID":4445,"manufacturerName":"EcoSmart","powerSource":"Unknown","modelID":"zhaRGBW","hardwareVersion":1,"dateCode":"","lastSeen":1586657144431},{"ieeeAddr":"0x00158d000132e9c7","type":"EndDevice","networkAddress":63802,"model":"RTCGQ01LM","vendor":"Xiaomi","description":"MiJia human body movement sensor","friendly_name":"Utility Motion Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sensor_motion","hardwareVersion":2,"softwareBuildID":"3000-0001","dateCode":"20160524","lastSeen":1594754425065},{"ieeeAddr":"0x00158d0001217472","type":"EndDevice","networkAddress":20490,"model":"WSDCGQ01LM","vendor":"Xiaomi","description":"MiJia temperature & humidity sensor","friendly_name":"Nate Room - Temperature Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sens","hardwareVersion":30,"softwareBuildID":"3000-0001","dateCode":"20160516","lastSeen":1581772835193},{"ieeeAddr":"0x00158d0001216c95","type":"EndDevice","networkAddress":59487,"model":"WSDCGQ01LM","vendor":"Xiaomi","description":"MiJia temperature & humidity sensor","friendly_name":"Jared Room - Temperature Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sens","hardwareVersion":30,"softwareBuildID":"3000-0001","dateCode":"20160516","lastSeen":1592926464282},{"ieeeAddr":"0x00158d0002325c75","type":"EndDevice","networkAddress":46581,"model":"WSDCGQ11LM","vendor":"Xiaomi","description":"Aqara temperature, humidity and pressure sensor","friendly_name":"Office - Temperature Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.weather","hardwareVersion":30,"softwareBuildID":"3000-0001","dateCode":"20161129","lastSeen":1594755470035},{"ieeeAddr":"0x00158d0002437c0a","type":"EndDevice","networkAddress":38715,"model":"WSDCGQ11LM","vendor":"Xiaomi","description":"Aqara temperature, humidity and pressure sensor","friendly_name":"Kitchen - Temperature Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.weather","hardwareVersion":30,"softwareBuildID":"3000-0001","dateCode":"20161129","lastSeen":1589043039757},{"ieeeAddr":"0xdd16abfff1a17a17","type":"Router","networkAddress":56807,"model":"D1531","vendor":"EcoSmart","description":"A19 bright white bulb","friendly_name":"Utility Room Lamp","manufacturerID":4445,"manufacturerName":"2.1.0_16d_YF05","powerSource":"Unknown","modelID":"\u0000\u0002\u0000\u0004^��&\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u000e","hardwareVersion":1,"dateCode":"","lastSeen":1594488704321},{"ieeeAddr":"0x00158d000165fe3b","type":"EndDevice","networkAddress":57457,"model":"RTCGQ11LM","vendor":"Xiaomi","description":"Aqara human body movement and illuminance sensor","friendly_name":"Nates Room - Motion Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sensor_motion.aq2","hardwareVersion":1,"softwareBuildID":"3000-0001","dateCode":"20161130","lastSeen":null},{"ieeeAddr":"0xdd16abffff07042a","type":"Router","networkAddress":33686,"model":"D1821","vendor":"EcoSmart","description":"A19 RGB bulb","friendly_name":"Ground Floor Hallway Light","manufacturerID":4445,"manufacturerName":"EcoSmart","powerSource":"Unknown","modelID":"zhaRGBW","hardwareVersion":1,"dateCode":"","lastSeen":1594750008958},{"ieeeAddr":"0xdd16abffff070772","type":"Router","networkAddress":36298,"model":"D1821","vendor":"EcoSmart","description":"A19 RGB bulb","friendly_name":"0xdd16abffff070772","manufacturerID":4445,"manufacturerName":"EcoSmart","powerSource":"Unknown","modelID":"zhaRGBW","hardwareVersion":1,"dateCode":"","lastSeen":null},{"ieeeAddr":"0x00158d0001d5948f","type":"EndDevice","networkAddress":1794,"model":"SJCGQ11LM","vendor":"Xiaomi","description":"Aqara water leak sensor","friendly_name":"Basement water sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sensor_wleak.aq1","hardwareVersion":2,"softwareBuildID":"3000-0001","dateCode":"20170720","lastSeen":1594755389850},{"ieeeAddr":"0x00158d000182dd03","type":"EndDevice","networkAddress":47753,"model":"WSDCGQ01LM","vendor":"Xiaomi","description":"MiJia temperature & humidity sensor","friendly_name":"Garage Fridge Temp Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sens","hardwareVersion":30,"softwareBuildID":"3000-0001","dateCode":"20160516","lastSeen":1594755763980},{"ieeeAddr":"0x00158d0001a24bba","type":"EndDevice","networkAddress":10025,"model":"RTCGQ11LM","vendor":"Xiaomi","description":"Aqara human body movement and illuminance sensor","friendly_name":"Kitchen - Motion Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sensor_motion.aq2","hardwareVersion":1,"softwareBuildID":"3000-0001","dateCode":"20161130","lastSeen":1594755879572}]'
zigbee2mqtt:info  2020-07-14 16:00:00: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"devices","message":[{"ieeeAddr":"0x00124b0014d9e40f","type":"Coordinator","networkAddress":0,"friendly_name":"Coordinator","softwareBuildID":"zStack12","dateCode":"20190425","lastSeen":1594756800023},{"ieeeAddr":"0x00158d00023f5163","type":"EndDevice","networkAddress":31174,"model":"WSDCGQ11LM","vendor":"Xiaomi","description":"Aqara temperature, humidity and pressure sensor","friendly_name":"Living Room - Temperature Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.weather","hardwareVersion":30,"softwareBuildID":"3000-0001","dateCode":"20161129","lastSeen":1592065887630},{"ieeeAddr":"0x00158d0001d39f43","type":"EndDevice","networkAddress":42864,"model":"MCCGQ11LM","vendor":"Xiaomi","description":"Aqara door & window contact sensor","friendly_name":"Backdoor Contact Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sensor_magnet.aq2","lastSeen":1594756388606},{"ieeeAddr":"0xdd16abfff1a195ed","type":"Router","networkAddress":25701,"model":"D1532","vendor":"EcoSmart","description":"A19 soft white bulb","friendly_name":"Mudroom Lightbulb","manufacturerID":4445,"manufacturerName":"2.1.0_16d_YF05","powerSource":"Unknown","modelID":"\u0000\u0002\u0000\u0004\u0012 �P\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u000e","hardwareVersion":1,"dateCode":"","lastSeen":1594599504744},{"ieeeAddr":"0x0022a3000020c945","type":"EndDevice","networkAddress":23263,"model":"99432","vendor":"Hampton Bay","description":"Universal wink enabled white ceiling fan premier remote control","friendly_name":"Office Fan","manufacturerID":4098,"manufacturerName":"King Of Fans,  Inc.","powerSource":"Unknown","modelID":"HDC52EastwindFan","lastSeen":1594756724327},{"ieeeAddr":"0x00158d00010c2723","type":"EndDevice","networkAddress":51165,"model":"RTCGQ01LM","vendor":"Xiaomi","description":"MiJia human body movement sensor","friendly_name":"Office Motion Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sensor_motion","lastSeen":1594755675778},{"ieeeAddr":"0x000b57fffea8ebee","type":"EndDevice","networkAddress":51650,"model":"E1524/E1810","vendor":"IKEA","description":"TRADFRI remote control","friendly_name":"Tradfri Button","manufacturerID":4476,"manufacturerName":"IKEA of Sweden","powerSource":"Battery","modelID":"TRADFRI remote control","hardwareVersion":1,"softwareBuildID":"1.1.1.1-5.7.2.0","dateCode":"20161011","lastSeen":1594753065349},{"ieeeAddr":"0x000d6ffffe2add89","type":"Router","networkAddress":5381,"model":"E1746","vendor":"IKEA","description":"TRADFRI signal repeater","friendly_name":"Tradfri Repeater - Master Bedroom","manufacturerID":4476,"manufacturerName":"IKEA of Sweden","powerSource":"Mains (single phase)","modelID":"TRADFRI signal repeater","hardwareVersion":1,"softwareBuildID":"2.2.005","dateCode":"20190318","lastSeen":1594744584008},{"ieeeAddr":"0x000d6ffffe9cd34e","type":"Router","networkAddress":23287,"model":"E1746","vendor":"IKEA","description":"TRADFRI signal repeater","friendly_name":"Tradfri Repeater - Basement","manufacturerID":4476,"manufacturerName":"IKEA of Sweden","powerSource":"Mains (single phase)","modelID":"TRADFRI signal repeater","hardwareVersion":1,"softwareBuildID":"2.2.005","dateCode":"20190318","lastSeen":1594751952559},{"ieeeAddr":"0xdd16abffff070a94","type":"Router","networkAddress":65244,"model":"D1821","vendor":"EcoSmart","description":"A19 RGB bulb","friendly_name":"Ben Lamp","manufacturerID":4445,"manufacturerName":"EcoSmart","powerSource":"Unknown","modelID":"zhaRGBW","hardwareVersion":1,"dateCode":"","lastSeen":1594755135857},{"ieeeAddr":"0x000b57fffe9605a4","type":"EndDevice","networkAddress":42864,"model":"ICTC-G-1","vendor":"IKEA","description":"TRADFRI wireless dimmer","friendly_name":"Tradfri Dimmer","manufacturerID":4476,"manufacturerName":"IKEA of Sweden","powerSource":"Battery","modelID":"TRADFRI wireless dimmer","hardwareVersion":30,"softwareBuildID":"1.1.1.1-5.7.2.0","dateCode":"20160923","lastSeen":1590551608892},{"ieeeAddr":"0xdd16abffff07178e","type":"Router","networkAddress":51653,"model":"D1821","vendor":"EcoSmart","description":"A19 RGB bulb","friendly_name":"Nate's Wake Up Light","manufacturerID":4445,"manufacturerName":"EcoSmart","powerSource":"Unknown","modelID":"zhaRGBW","hardwareVersion":1,"dateCode":"","lastSeen":1586657144431},{"ieeeAddr":"0x00158d000132e9c7","type":"EndDevice","networkAddress":63802,"model":"RTCGQ01LM","vendor":"Xiaomi","description":"MiJia human body movement sensor","friendly_name":"Utility Motion Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sensor_motion","hardwareVersion":2,"softwareBuildID":"3000-0001","dateCode":"20160524","lastSeen":1594754425065},{"ieeeAddr":"0x00158d0001217472","type":"EndDevice","networkAddress":20490,"model":"WSDCGQ01LM","vendor":"Xiaomi","description":"MiJia temperature & humidity sensor","friendly_name":"Nate Room - Temperature Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sens","hardwareVersion":30,"softwareBuildID":"3000-0001","dateCode":"20160516","lastSeen":1581772835193},{"ieeeAddr":"0x00158d0001216c95","type":"EndDevice","networkAddress":59487,"model":"WSDCGQ01LM","vendor":"Xiaomi","description":"MiJia temperature & humidity sensor","friendly_name":"Jared Room - Temperature Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sens","hardwareVersion":30,"softwareBuildID":"3000-0001","dateCode":"20160516","lastSeen":1592926464282},{"ieeeAddr":"0x00158d0002325c75","type":"EndDevice","networkAddress":46581,"model":"WSDCGQ11LM","vendor":"Xiaomi","description":"Aqara temperature, humidity and pressure sensor","friendly_name":"Office - Temperature Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.weather","hardwareVersion":30,"softwareBuildID":"3000-0001","dateCode":"20161129","lastSeen":1594755470035},{"ieeeAddr":"0x00158d0002437c0a","type":"EndDevice","networkAddress":38715,"model":"WSDCGQ11LM","vendor":"Xiaomi","description":"Aqara temperature, humidity and pressure sensor","friendly_name":"Kitchen - Temperature Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.weather","hardwareVersion":30,"softwareBuildID":"3000-0001","dateCode":"20161129","lastSeen":1589043039757},{"ieeeAddr":"0xdd16abfff1a17a17","type":"Router","networkAddress":56807,"model":"D1531","vendor":"EcoSmart","description":"A19 bright white bulb","friendly_name":"Utility Room Lamp","manufacturerID":4445,"manufacturerName":"2.1.0_16d_YF05","powerSource":"Unknown","modelID":"\u0000\u0002\u0000\u0004^��&\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u000e","hardwareVersion":1,"dateCode":"","lastSeen":1594488704321},{"ieeeAddr":"0x00158d000165fe3b","type":"EndDevice","networkAddress":57457,"model":"RTCGQ11LM","vendor":"Xiaomi","description":"Aqara human body movement and illuminance sensor","friendly_name":"Nates Room - Motion Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sensor_motion.aq2","hardwareVersion":1,"softwareBuildID":"3000-0001","dateCode":"20161130","lastSeen":null},{"ieeeAddr":"0xdd16abffff07042a","type":"Router","networkAddress":33686,"model":"D1821","vendor":"EcoSmart","description":"A19 RGB bulb","friendly_name":"Ground Floor Hallway Light","manufacturerID":4445,"manufacturerName":"EcoSmart","powerSource":"Unknown","modelID":"zhaRGBW","hardwareVersion":1,"dateCode":"","lastSeen":1594750008958},{"ieeeAddr":"0xdd16abffff070772","type":"Router","networkAddress":36298,"model":"D1821","vendor":"EcoSmart","description":"A19 RGB bulb","friendly_name":"0xdd16abffff070772","manufacturerID":4445,"manufacturerName":"EcoSmart","powerSource":"Unknown","modelID":"zhaRGBW","hardwareVersion":1,"dateCode":"","lastSeen":null},{"ieeeAddr":"0x00158d0001d5948f","type":"EndDevice","networkAddress":1794,"model":"SJCGQ11LM","vendor":"Xiaomi","description":"Aqara water leak sensor","friendly_name":"Basement water sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sensor_wleak.aq1","hardwareVersion":2,"softwareBuildID":"3000-0001","dateCode":"20170720","lastSeen":1594755389850},{"ieeeAddr":"0x00158d000182dd03","type":"EndDevice","networkAddress":47753,"model":"WSDCGQ01LM","vendor":"Xiaomi","description":"MiJia temperature & humidity sensor","friendly_name":"Garage Fridge Temp Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sens","hardwareVersion":30,"softwareBuildID":"3000-0001","dateCode":"20160516","lastSeen":1594755763980},{"ieeeAddr":"0x00158d0001a24bba","type":"EndDevice","networkAddress":10025,"model":"RTCGQ11LM","vendor":"Xiaomi","description":"Aqara human body movement and illuminance sensor","friendly_name":"Kitchen - Motion Sensor","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sensor_motion.aq2","hardwareVersion":1,"softwareBuildID":"3000-0001","dateCode":"20161130","lastSeen":1594755879572}]}'
zigbee2mqtt:debug 2020-07-14 16:00:00: Received MQTT message on 'zigbee2mqtt/bridge/networkmap' with data 'graphviz'
zigbee2mqtt:info  2020-07-14 16:00:00: Starting network scan (includeRoutes 'false')
zigbee2mqtt:debug 2020-07-14 16:00:00: LQI succeeded for 'Coordinator'
zigbee2mqtt:debug 2020-07-14 16:00:00: LQI succeeded for 'Mudroom Lightbulb'
zigbee2mqtt:debug 2020-07-14 16:00:00: LQI succeeded for 'Tradfri Repeater - Master Bedroom'
zigbee2mqtt:error 2020-07-14 16:00:10: Failed to execute LQI for 'Tradfri Repeater - Basement'
zigbee2mqtt:debug 2020-07-14 16:00:11: LQI succeeded for 'Ben Lamp'
zigbee2mqtt:error 2020-07-14 16:00:21: Failed to execute LQI for 'Nate's Wake Up Light'
zigbee2mqtt:debug 2020-07-14 16:00:23: LQI succeeded for 'Utility Room Lamp'
zigbee2mqtt:error 2020-07-14 16:00:33: Failed to execute LQI for 'Ground Floor Hallway Light'
zigbee2mqtt:error 2020-07-14 16:00:44: Failed to execute LQI for '0xdd16abffff070772'
zigbee2mqtt:info  2020-07-14 16:00:44: Network scan finished
zigbee2mqtt:info  2020-07-14 16:00:44: MQTT publish: topic 'zigbee2mqtt/bridge/networkmap/graphviz', payload 'digraph G {
node[shape=record];
  "0x00124b0014d9e40f" [style="bold, filled", fillcolor="#e04e5d", fontcolor="#ffffff", label="{Coordinator|0x00124b0014d9e40f (0)|0 seconds ago}"];
  "0x00124b0014d9e40f" -> "0xdd16abfff1a195ed" [penwidth=0.5, weight=0, color="#994444", label="44"]
  "0x00124b0014d9e40f" -> "0x000d6ffffe2add89" [penwidth=0.5, weight=0, color="#994444", label="218"]
  "0x00124b0014d9e40f" -> "0xdd16abffff070a94" [penwidth=0.5, weight=0, color="#994444", label="68"]
  "0x00124b0014d9e40f" -> "0xdd16abfff1a17a17" [penwidth=0.5, weight=0, color="#994444", label="44"]
  "0x00158d00023f5163" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{Living Room - Temperature Sensor|0x00158d00023f5163 (31174)|Xiaomi Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)|1 month ago}"];
  "0x00158d00023f5163" -> "0x00124b0014d9e40f" [penwidth=1, weight=0, color="#994444", label="170"]
  "0x00158d0001d39f43" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{Backdoor Contact Sensor|0x00158d0001d39f43 (42864)|Xiaomi Aqara door & window contact sensor (MCCGQ11LM)|7 minutes, 35 seconds ago}"];
  "0x00158d0001d39f43" -> "0xdd16abfff1a17a17" [penwidth=1, weight=0, color="#994444", label="44"]
  "0xdd16abfff1a195ed" [style="rounded, filled", fillcolor="#4ea3e0", fontcolor="#ffffff", label="{Mudroom Lightbulb|0xdd16abfff1a195ed (25701)|EcoSmart A19 soft white bulb (D1532)|1 day, 20 hours ago}"];
  "0xdd16abfff1a195ed" -> "0x00124b0014d9e40f" [penwidth=0.5, weight=0, color="#994444", label="34"]
  "0xdd16abfff1a195ed" -> "0x000d6ffffe2add89" [penwidth=0.5, weight=0, color="#994444", label="80"]
  "0xdd16abfff1a195ed" -> "0xdd16abffff070a94" [penwidth=0.5, weight=0, color="#994444", label="38"]
  "0xdd16abfff1a195ed" -> "0xdd16abfff1a17a17" [penwidth=0.5, weight=0, color="#994444", label="26"]
  "0x0022a3000020c945" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{Office Fan|0x0022a3000020c945 (23263)|Hampton Bay Universal wink enabled white ceiling fan premier remote control (99432)|2 minutes ago}"];
  "0x0022a3000020c945" -> "0x000d6ffffe2add89" [penwidth=1, weight=0, color="#994444", label="237"]
  "0x00158d00010c2723" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{Office Motion Sensor|0x00158d00010c2723 (51165)|Xiaomi MiJia human body movement sensor (RTCGQ01LM)|19 minutes, 28 seconds ago}"];
  "0x00158d00010c2723" -> "0x00124b0014d9e40f" [penwidth=1, weight=0, color="#994444", label="117"]
  "0x000b57fffea8ebee" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{Tradfri Button|0x000b57fffea8ebee (51650)|IKEA TRADFRI remote control (E1524/E1810)|1 hour, 3 minutes ago}"];
  "0x000b57fffea8ebee" -> "0xdd16abffff070a94" [penwidth=1, weight=0, color="#994444", label="100"]
  "0x000d6ffffe2add89" [style="rounded, filled", fillcolor="#4ea3e0", fontcolor="#ffffff", label="{Tradfri Repeater - Master Bedroom|0x000d6ffffe2add89 (5381)|IKEA TRADFRI signal repeater (E1746)|3 hours, 24 minutes ago}"];
  "0x000d6ffffe2add89" -> "0x00124b0014d9e40f" [penwidth=0.5, weight=0, color="#994444", label="120"]
  "0x000d6ffffe2add89" -> "0xdd16abfff1a195ed" [penwidth=0.5, weight=0, color="#994444", label="38"]
  "0x000d6ffffe2add89" -> "0xdd16abffff070a94" [penwidth=0.5, weight=0, color="#994444", label="80"]
  "0x000d6ffffe2add89" -> "0xdd16abfff1a17a17" [penwidth=0.5, weight=0, color="#994444", label="42"]
  "0x000d6ffffe9cd34e" [style="rounded, filled", fillcolor="#4ea3e0", fontcolor="#ffffff", label="{Tradfri Repeater - Basement|0x000d6ffffe9cd34e (23287)failed: lqi|IKEA TRADFRI signal repeater (E1746)|1 hour, 22 minutes ago}"];
  "0x000d6ffffe9cd34e" -> "0x00124b0014d9e40f" [penwidth=0.5, weight=0, color="#994444", label="44"]
  "0x000d6ffffe9cd34e" -> "0xdd16abfff1a195ed" [penwidth=0.5, weight=0, color="#994444", label="44"]
  "0x000d6ffffe9cd34e" -> "0x000d6ffffe2add89" [penwidth=0.5, weight=0, color="#994444", label="125"]
  "0x000d6ffffe9cd34e" -> "0xdd16abffff070a94" [penwidth=0.5, weight=0, color="#994444", label="46"]
  "0x000d6ffffe9cd34e" -> "0xdd16abfff1a17a17" [penwidth=0.5, weight=0, color="#994444", label="106"]
  "0xdd16abffff070a94" [style="rounded, filled", fillcolor="#4ea3e0", fontcolor="#ffffff", label="{Ben Lamp|0xdd16abffff070a94 (65244)|EcoSmart A19 RGB bulb (D1821)|28 minutes, 28 seconds ago}"];
  "0xdd16abffff070a94" -> "0x00124b0014d9e40f" [penwidth=0.5, weight=0, color="#994444", label="59"]
  "0xdd16abffff070a94" -> "0xdd16abfff1a195ed" [penwidth=0.5, weight=0, color="#994444", label="34"]
  "0xdd16abffff070a94" -> "0x000d6ffffe2add89" [penwidth=0.5, weight=0, color="#994444", label="154"]
  "0xdd16abffff070a94" -> "0xdd16abfff1a17a17" [penwidth=0.5, weight=0, color="#994444", label="44"]
  "0x000b57fffe9605a4" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{Tradfri Dimmer|0x000b57fffe9605a4 (42864)|IKEA TRADFRI wireless dimmer (ICTC-G-1)|1 month, 3 weeks ago}"];
  "0xdd16abffff07178e" [style="rounded, filled", fillcolor="#4ea3e0", fontcolor="#ffffff", label="{Nate's Wake Up Light|0xdd16abffff07178e (51653)failed: lqi|EcoSmart A19 RGB bulb (D1821)|3 months ago}"];
  "0xdd16abffff07178e" -> "0x00124b0014d9e40f" [penwidth=0.5, weight=0, color="#994444", label="0"]
  "0x00158d000132e9c7" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{Utility Motion Sensor|0x00158d000132e9c7 (63802)|Xiaomi MiJia human body movement sensor (RTCGQ01LM)|40 minutes, 19 seconds ago}"];
  "0x00158d0001217472" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{Nate Room - Temperature Sensor|0x00158d0001217472 (20490)|Xiaomi MiJia temperature & humidity sensor (WSDCGQ01LM)|4 months, 4 weeks ago}"];
  "0x00158d0001217472" -> "0x00124b0014d9e40f" [penwidth=1, weight=0, color="#994444", label="170"]
  "0x00158d0001216c95" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{Jared Room - Temperature Sensor|0x00158d0001216c95 (59487)|Xiaomi MiJia temperature & humidity sensor (WSDCGQ01LM)|3 weeks ago}"];
  "0x00158d0001216c95" -> "0x00124b0014d9e40f" [penwidth=1, weight=0, color="#994444", label="170"]
  "0x00158d0002325c75" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{Office - Temperature Sensor|0x00158d0002325c75 (46581)|Xiaomi Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)|22 minutes, 54 seconds ago}"];
  "0x00158d0002325c75" -> "0x00124b0014d9e40f" [penwidth=1, weight=0, color="#994444", label="170"]
  "0x00158d0002437c0a" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{Kitchen - Temperature Sensor|0x00158d0002437c0a (38715)|Xiaomi Aqara temperature, humidity and pressure sensor (WSDCGQ11LM)|2 months, 1 week ago}"];
  "0x00158d0002437c0a" -> "0xdd16abfff1a17a17" [penwidth=1, weight=0, color="#994444", label="86"]
  "0xdd16abfff1a17a17" [style="rounded, filled", fillcolor="#4ea3e0", fontcolor="#ffffff", label="{Utility Room Lamp|0xdd16abfff1a17a17 (56807)|EcoSmart A19 bright white bulb (D1531)|3 days, 2 hours ago}"];
  "0xdd16abfff1a17a17" -> "0xdd16abfff1a195ed" [penwidth=0.5, weight=0, color="#994444", label="22"]
  "0xdd16abfff1a17a17" -> "0x000d6ffffe2add89" [penwidth=0.5, weight=0, color="#994444", label="114"]
  "0xdd16abfff1a17a17" -> "0xdd16abffff070a94" [penwidth=0.5, weight=0, color="#994444", label="50"]
  "0x00158d000165fe3b" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{Nates Room - Motion Sensor|0x00158d000165fe3b (57457)|Xiaomi Aqara human body movement and illuminance sensor (RTCGQ11LM)|unknown}"];
  "0xdd16abffff07042a" [style="rounded, filled", fillcolor="#4ea3e0", fontcolor="#ffffff", label="{Ground Floor Hallway Light|0xdd16abffff07042a (33686)failed: lqi|EcoSmart A19 RGB bulb (D1821)|1 hour, 54 minutes ago}"];
  "0xdd16abffff070772" [style="rounded, filled", fillcolor="#4ea3e0", fontcolor="#ffffff", label="{0xdd16abffff070772|0xdd16abffff070772 (36298)failed: lqi|EcoSmart A19 RGB bulb (D1821)|unknown}"];
  "0xdd16abffff070772" -> "0x00124b0014d9e40f" [penwidth=0.5, weight=0, color="#994444", label="0"]
  "0x00158d0001d5948f" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{Basement water sensor|0x00158d0001d5948f (1794)|Xiaomi Aqara water leak sensor (SJCGQ11LM)|24 minutes, 14 seconds ago}"];
  "0x00158d0001d5948f" -> "0x00124b0014d9e40f" [penwidth=1, weight=0, color="#994444", label="170"]
  "0x00158d0001d5948f" -> "0xdd16abfff1a195ed" [penwidth=1, weight=0, color="#994444", label="68"]
  "0x00158d000182dd03" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{Garage Fridge Temp Sensor|0x00158d000182dd03 (47753)|Xiaomi MiJia temperature & humidity sensor (WSDCGQ01LM)|18 minutes ago}"];
  "0x00158d000182dd03" -> "0x00124b0014d9e40f" [penwidth=1, weight=0, color="#994444", label="2"]
  "0x00158d0001a24bba" [style="rounded, dashed, filled", fillcolor="#fff8ce", fontcolor="#000000", label="{Kitchen - Motion Sensor|0x00158d0001a24bba (10025)|Xiaomi Aqara human body movement and illuminance sensor (RTCGQ11LM)|16 minutes, 4 seconds ago}"];
  "0x00158d0001a24bba" -> "0x00124b0014d9e40f" [penwidth=1, weight=0, color="#994444", label="170"]
Koenkk commented 4 years ago

Thanks (and keep up the gifs because it allows me to easily understand what is wrong). Can you try changing https://github.com/Koenkk/zigbee-herdsman-converters/blob/5ffa2fae358b3fd11f825ba34f690736c5d71fa0/converters/toZigbee.js#L1044 to return {state: {fan_mode: value, fan_state: value.toLowerCase() === 'off' ? 'OFF' : 'ON'}};. Does it improve things?

See https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html on how to modify toZigbee.js

boojew commented 4 years ago

I changed it and now the behavior is that I can turn on the fan, but not turn it off or change the speed.


zigbee2mqtt:info  2020-07-15 09:22:16: MQTT publish: topic 'zigbee2mqtt/bridge/config', payload '{"version":"1.14.1","commit":"7e46435","coordinator":{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190425}},"log_level":"debug","permit_join":false}'
zigbee2mqtt:debug 2020-07-15 09:22:31: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_state' with data 'OFF'
zigbee2mqtt:debug 2020-07-15 09:22:31: Publishing 'set' 'fan_state' to 'Office Fan'
zigbee2mqtt:debug 2020-07-15 09:22:34: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_state' with data 'OFF'
zigbee2mqtt:debug 2020-07-15 09:22:34: Publishing 'set' 'fan_state' to 'Office Fan'
zigbee2mqtt:error 2020-07-15 09:22:35: Publish 'set' 'fan_state' to 'Office Fan' failed: 'Error: Write 0x0022a3000020c945/1 hvacFanCtrl({"fanMode":0}, {"timeout":10000,"disableResponse":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null}) failed (Error: Data request failed with error: 'MAC no ack' (233))'
zigbee2mqtt:debug 2020-07-15 09:22:35: Error: Write 0x0022a3000020c945/1 hvacFanCtrl({"fanMode":0}, {"timeout":10000,"disableResponse":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null}) failed (Error: Data request failed with error: 'MAC no ack' (233))
    at Endpoint.<anonymous> (/app/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:162:23)
    at Generator.throw (<anonymous>)
    at rejected (/app/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:6:65)
zigbee2mqtt:info  2020-07-15 09:22:35: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"zigbee_publish_error","message":"Publish 'set' 'fan_state' to 'Office Fan' failed: 'Error: Write 0x0022a3000020c945/1 hvacFanCtrl({\"fanMode\":0}, {\"timeout\":10000,\"disableResponse\":false,\"disableDefaultResponse\":true,\"direction\":0,\"srcEndpoint\":null,\"reservedBits\":0,\"manufacturerCode\":null,\"transactionSequenceNumber\":null}) failed (Error: Data request failed with error: 'MAC no ack' (233))'","meta":{"friendly_name":"Office Fan"}}'
zigbee2mqtt:error 2020-07-15 09:22:40: Publish 'set' 'fan_state' to 'Office Fan' failed: 'Error: Write 0x0022a3000020c945/1 hvacFanCtrl({"fanMode":0}, {"timeout":10000,"disableResponse":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null}) failed (Error: Data request failed with error: 'MAC no ack' (233))'
zigbee2mqtt:debug 2020-07-15 09:22:40: Error: Write 0x0022a3000020c945/1 hvacFanCtrl({"fanMode":0}, {"timeout":10000,"disableResponse":false,"disableDefaultResponse":true,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null}) failed (Error: Data request failed with error: 'MAC no ack' (233))
    at Endpoint.<anonymous> (/app/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:162:23)
    at Generator.throw (<anonymous>)
    at rejected (/app/node_modules/zigbee-herdsman/dist/controller/model/endpoint.js:6:65)
zigbee2mqtt:info  2020-07-15 09:22:40: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"zigbee_publish_error","message":"Publish 'set' 'fan_state' to 'Office Fan' failed: 'Error: Write 0x0022a3000020c945/1 hvacFanCtrl({\"fanMode\":0}, {\"timeout\":10000,\"disableResponse\":false,\"disableDefaultResponse\":true,\"direction\":0,\"srcEndpoint\":null,\"reservedBits\":0,\"manufacturerCode\":null,\"transactionSequenceNumber\":null}) failed (Error: Data request failed with error: 'MAC no ack' (233))'","meta":{"friendly_name":"Office Fan"}}'

Happens both with "My Fan" as well as "Office Fan"

Screen-Recording-2020-07-15-at-9

Koenkk commented 4 years ago

I don't see how this change could lead to the above error, does reverting it fix it?

boojew commented 4 years ago

It does indeed!

Koenkk commented 4 years ago

Can you change the body to

const fanMode = common.fanMode[value.toLowerCase()];
const fanModeWrite = fanMode === 0 ? 1 : fanMode;
await entity.write('hvacFanCtrl', {fanMode: fanModeWrite});
return {state: {fan_mode: value, fan_state: value === 'off' ? 'OFF' : 'ON'}};

If setting the low speed previously worked, I expect this to work, except that when turning off now the low speed will be set.

boojew commented 4 years ago

Setting the speeds now works as expected.. but the on/off toggle is still an issue.

zigbee2mqtt:debug 2020-07-16 11:35:35: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_state' with data 'ON'
zigbee2mqtt:debug 2020-07-16 11:35:35: Publishing 'set' 'fan_state' to 'Office Fan'
zigbee2mqtt:debug 2020-07-16 11:35:35: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_mode' with data 'off'
zigbee2mqtt:debug 2020-07-16 11:35:35: Publishing 'set' 'fan_mode' to 'Office Fan'
zigbee2mqtt:info  2020-07-16 11:35:35: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"ON","fan_state":"ON","last_seen":1594913735393,"linkquality":70,"state":"ON","brightness":254}'
zigbee2mqtt:info  2020-07-16 11:35:35: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"off","fan_state":"OFF","last_seen":1594913735493,"linkquality":70,"state":"ON","brightness":254}'
zigbee2mqtt:debug 2020-07-16 11:35:37: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_state' with data 'ON'
zigbee2mqtt:debug 2020-07-16 11:35:37: Publishing 'set' 'fan_state' to 'Office Fan'
zigbee2mqtt:debug 2020-07-16 11:35:37: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_mode' with data 'low'
zigbee2mqtt:debug 2020-07-16 11:35:37: Publishing 'set' 'fan_mode' to 'Office Fan'
zigbee2mqtt:info  2020-07-16 11:35:38: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"ON","fan_state":"ON","last_seen":1594913738068,"linkquality":70,"state":"ON","brightness":254}'
zigbee2mqtt:info  2020-07-16 11:35:38: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"low","fan_state":"ON","last_seen":1594913738249,"linkquality":70,"state":"ON","brightness":254}'
zigbee2mqtt:debug 2020-07-16 11:35:40: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_state' with data 'OFF'
zigbee2mqtt:debug 2020-07-16 11:35:40: Publishing 'set' 'fan_state' to 'Office Fan'
zigbee2mqtt:info  2020-07-16 11:35:40: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"OFF","fan_state":"ON","last_seen":1594913740308,"linkquality":70,"state":"ON","brightness":254}'
zigbee2mqtt:debug 2020-07-16 11:35:41: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_state' with data 'OFF'
zigbee2mqtt:debug 2020-07-16 11:35:41: Publishing 'set' 'fan_state' to 'Office Fan'
zigbee2mqtt:info  2020-07-16 11:35:41: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"OFF","fan_state":"ON","last_seen":1594913741630,"linkquality":70,"state":"ON","brightness":254}'
Koenkk commented 4 years ago

And with:

const fanMode = common.fanMode[value.toLowerCase()];
const fanModeWrite = fanMode === 0 ? 1 : fanMode;
await entity.write('hvacFanCtrl', {fanMode: fanModeWrite});
return {state: {fan_mode: value, fan_state: value.toLowerCase() === 'off' ? 'OFF' : 'ON'}};
boojew commented 4 years ago

Sooo.. I get some very interesting behaviour with this code...

So assuming the fan is initially OFF, if I turn it, it goes to high; but does not set the speed in hass... When I turn it off, it sets the fan to low... Speed indications are not reliably sent to HASS... happens in both "My Fan" and "Office Fan" Screen-Recording-2020-07-16-at-4

zigbee2mqtt:debug 2020-07-16 16:40:55: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_state' with data 'OFF'
zigbee2mqtt:debug 2020-07-16 16:40:55: Publishing 'set' 'fan_state' to 'Office Fan'
zigbee2mqtt:info  2020-07-16 16:40:55: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"OFF","fan_state":"OFF","last_seen":1594932055856,"linkquality":70,"state":"ON","brightness":254}'
zigbee2mqtt:debug 2020-07-16 16:41:07: Received Zigbee message from 'Office - Temperature Sensor', type 'attributeReport', cluster 'msTemperatureMeasurement', data '{"measuredValue":2808}' from endpoint 1 with groupID 0
zigbee2mqtt:info  2020-07-16 16:41:07: MQTT publish: topic 'zigbee2mqtt/Office - Temperature Sensor', payload '{"temperature":28.08,"linkquality":113,"humidity":33.42,"pressure":1012.4,"battery":86,"voltage":2975,"last_seen":1594932067355}'
zigbee2mqtt:debug 2020-07-16 16:41:32: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_state' with data 'ON'
zigbee2mqtt:debug 2020-07-16 16:41:32: Publishing 'set' 'fan_state' to 'Office Fan'
zigbee2mqtt:info  2020-07-16 16:41:32: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"ON","fan_state":"ON","last_seen":1594932092829,"linkquality":70,"state":"ON","brightness":254}'
zigbee2mqtt:debug 2020-07-16 16:41:40: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_state' with data 'OFF'
zigbee2mqtt:debug 2020-07-16 16:41:40: Publishing 'set' 'fan_state' to 'Office Fan'
zigbee2mqtt:info  2020-07-16 16:41:40: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"OFF","fan_state":"OFF","last_seen":1594932100568,"linkquality":70,"state":"ON","brightness":254}'
zigbee2mqtt:debug 2020-07-16 16:42:12: Received Zigbee message from 'Office Fan', type 'commandQueryNextImageRequest', cluster 'genOta', data '{"fieldControl":0,"manufacturerCode":4098,"imageType":0,"fileVersion":15}' from endpoint 1 with groupID 0
Koenkk commented 4 years ago

And with:

const fanMode = common.fanMode[value.toLowerCase()];
const fanModeWrite = fanMode === 0 ? 1 : fanMode;
await entity.write('hvacFanCtrl', {fanMode: fanModeWrite});
return {state: {fan_mode: value.toLowerCase(), fan_state: value.toLowerCase() === 'off' ? 'OFF' : 'ON'}};
boojew commented 4 years ago

MUCH closer now.

Power On = Fan high low,med,high do exactly what they should... Power off = does nothing

State and speed are actually represented. EXPECT off which shows this, but the fan is still on. image


zigbee2mqtt:debug 2020-07-17 11:17:15: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_state' with data 'ON'
zigbee2mqtt:debug 2020-07-17 11:17:15: Publishing 'set' 'fan_state' to 'Office Fan'
zigbee2mqtt:debug 2020-07-17 11:17:15: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_mode' with data 'medium'
zigbee2mqtt:debug 2020-07-17 11:17:15: Publishing 'set' 'fan_mode' to 'Office Fan'
zigbee2mqtt:info  2020-07-17 11:17:16: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"on","fan_state":"ON","last_seen":1594999036111,"linkquality":70,"state":"ON","brightness":254}'
zigbee2mqtt:info  2020-07-17 11:17:16: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"medium","fan_state":"ON","last_seen":1594999036268,"linkquality":70,"state":"ON","brightness":254}'
zigbee2mqtt:debug 2020-07-17 11:17:18: Received Zigbee message from 'Kitchen - Motion Sensor', type 'attributeReport', cluster 'genBasic', data '{"65281":{"1":3025,"3":28,"4":17320,"5":51,"6":[1,17694738],"10":25701,"11":32,"100":0}}' from endpoint 1 with groupID 0
zigbee2mqtt:info  2020-07-17 11:17:18: MQTT publish: topic 'zigbee2mqtt/Kitchen - Motion Sensor', payload '{"illuminance":32,"linkquality":23,"occupancy":false,"battery":100,"voltage":3025,"last_seen":1594999038565,"illuminance_lux":32}'
zigbee2mqtt:debug 2020-07-17 11:17:18: Received Zigbee message from 'Kitchen - Motion Sensor', type 'attributeReport', cluster 'genBasic', data '{"65281":{"1":3025,"3":28,"4":17320,"5":51,"6":[1,17694738],"10":25701,"11":32,"100":0}}' from endpoint 1 with groupID 0
zigbee2mqtt:info  2020-07-17 11:17:18: MQTT publish: topic 'zigbee2mqtt/Kitchen - Motion Sensor', payload '{"illuminance":32,"linkquality":23,"occupancy":false,"battery":100,"voltage":3025,"last_seen":1594999038670,"illuminance_lux":32}'
zigbee2mqtt:debug 2020-07-17 11:17:18: Received Zigbee message from 'Kitchen - Motion Sensor', type 'attributeReport', cluster 'genBasic', data '{"65281":{"1":3025,"3":28,"4":17320,"5":51,"6":[1,17694738],"10":25701,"11":32,"100":0}}' from endpoint 1 with groupID 0
zigbee2mqtt:info  2020-07-17 11:17:18: MQTT publish: topic 'zigbee2mqtt/Kitchen - Motion Sensor', payload '{"illuminance":32,"linkquality":23,"occupancy":false,"battery":100,"voltage":3025,"last_seen":1594999038934,"illuminance_lux":32}'
zigbee2mqtt:debug 2020-07-17 11:17:19: Received MQTT message on 'zigbee2mqtt/Office Fan/set/fan_state' with data 'OFF'
zigbee2mqtt:debug 2020-07-17 11:17:19: Publishing 'set' 'fan_state' to 'Office Fan'
zigbee2mqtt:info  2020-07-17 11:17:19: MQTT publish: topic 'zigbee2mqtt/Office Fan', payload '{"fan_mode":"off","fan_state":"OFF","last_seen":1594999039991,"linkquality":70,"state":"ON","brightness":254}'
zigbee2mqtt:debug 2020-07-17 11:17:23: Saving state to file /app/data/state.json
Koenkk commented 4 years ago

And with:

const fanMode = common.fanMode[value.toLowerCase()];
await entity.write('hvacFanCtrl', {fanMode});
return {state: {fan_mode: value.toLowerCase(), fan_state: value.toLowerCase() === 'off' ? 'OFF' : 'ON'}};
boojew commented 4 years ago

Success! I think we're perfect now w/ the discovered fan.

Koenkk commented 4 years ago

@boojew to confirm; with this change everything is working as expected, even the auto discovered home asisstant entry?

boojew commented 4 years ago

Sorry. I missed this. Yes, it's 100% working properly w/ the auto discovered entity

Koenkk commented 4 years ago

Thanks, changed the code, assuming this can be closed now.

Changes will be available in the latest dev branch in a few hours (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html)