I’m transitioning from the Hue Bridge to vanilla Zigbee, but the auto-discovered entities in HA don’t represent the reality of the lights.
For example, if I turn on a light in the Zigbee2MQTT front end, the entity in Home Assistant doesn’t update.
Likewise, if I manually turn ON the front-end switch in HA, the physical light will turn on, but the front-end switch will revert to the OFF position.
Here’s my Zigbee2Mqtt config (generated by the UI):
homeassistant:
legacy_triggers: true
legacy_entity_attributes: false
permit_join: true
mqtt:
base_topic: zigbee2mqtt
server: mqtt://192.168.1.204
serial:
port: /dev/sonoff_zigbee
adapter: ember
baudrate: 115200
frontend:
port: 8080
advanced:
network_key:
- 59
- 218
- 190
- 242
- 100
- 209
- 52
- 251
- 251
- 54
- 27
- 201
- 249
- 119
- 215
- 180
homeassistant_legacy_entity_attributes: false
legacy_api: false
legacy_availability_payload: false
device_options:
legacy: false
devices:
'0x0017880106d8e2a2':
friendly_name: Hue White 1
homeassistant: {}
optimistic: true
'0x0017880106d8fc12':
friendly_name: Hue White 2
homeassistant: {}
optimistic: true
'0x001788010273b7a4':
friendly_name: Parlour Window
'0x001788010271a496':
friendly_name: Parlour Sofa
groups:
'1':
friendly_name: WhiteLightsTest
devices:
- 0x0017880106d8e2a2/11
- 0x0017880106d8fc12/11
'2':
friendly_name: Parlour Lights
devices:
- 0x001788010271a496/11
- 0x001788010273b7a4/11
If I turn on, say, Hue White 1 from the Zigbee2Mqtt interface, it broadcasts the MQTT message properly:
zigbee2mqtt/Hue White 1
{"brightness":165,"linkquality":120,"power_on_behavior":"previous","state":"ON","update":{"installed_version":16787458,"latest_version":16787458,"state":"idle"},"update_available":null}
The discovery topic is obviously working because the entity shows up in Home Assistant (light.hue_white_1
).
Any idea what I’m doing wrong here?