So this is weird on my end, still (running firmware 2.08 and z2m 1.28.4-dev
, in docker with image ID d8e7e0d65c2a
- that’s latest dev branch as of yesterday). It looks like zigbee2mqtt is messing up when it comes to interpret the values for powerType
and others. Looking in the web interface (and in mqtt, via home-assistant) all my powerType
fields are Null, despite the switches being installed with a Neutral. When I hit the refresh button next to powerType, the websocket messages show that my browser sends the following:
{"topic":"LTS-BA-1-guest-room-main/get","payload":{"powerType":""}}
and receives the following messages (including logs - each of these JSON objects is a separate websockets message):
{"payload":{"level":"debug","message":"Received MQTT message on 'zigbee2mqtt/LTS-BA-1-guest-room-main/get' with data '{\"powerType\":\"\"}'"},"topic":"bridge/logging"}
{"payload":{"level":"debug","message":"Publishing get 'get' 'powerType' to 'LTS-BA-1-guest-room-main'"},"topic":"bridge/logging"}
{"payload":{"level":"debug","message":"Received Zigbee message from 'LTS-BA-1-guest-room-main', type 'readResponse', cluster 'manuSpecificInovelliVZM31SN', data '{\"powerType\":1}' from endpoint 1 with groupID 0"},"topic":"bridge/logging"}
{"payload":{"action":null,"activeEnergyReports":null,"activePowerReports":null,"autoTimerOff":null,"brightness":254,"buttonDelay":0,"defaultLed1ColorWhenOff":null,"defaultLed1ColorWhenOn":null,"defaultLed1IntensityWhenOff":null,"defaultLed1IntensityWhenOn":null,"defaultLed2ColorWhenOff":null,"defaultLed2ColorWhenOn":null,"defaultLed2IntensityWhenOff":null,"defaultLed2IntensityWhenOn":null,"defaultLed3ColorWhenOff":null,"defaultLed3ColorWhenOn":null,"defaultLed3IntensityWhenOff":null,"defaultLed3IntensityWhenOn":null,"defaultLed4ColorWhenOff":null,"defaultLed4ColorWhenOn":null,"defaultLed4IntensityWhenOff":null,"defaultLed4IntensityWhenOn":null,"defaultLed5ColorWhenOff":null,"defaultLed5ColorWhenOn":null,"defaultLed5IntensityWhenOff":null,"defaultLed5IntensityWhenOn":null,"defaultLed6ColorWhenOff":null,"defaultLed6ColorWhenOn":null,"defaultLed6IntensityWhenOff":null,"defaultLed6IntensityWhenOn":null,"defaultLed7ColorWhenOff":null,"defaultLed7ColorWhenOn":null,"defaultLed7IntensityWhenOff":null,"defaultLed7IntensityWhenOn":null,"defaultLevelLocal":254,"defaultLevelRemote":null,"dimmingSpeedDownLocal":null,"dimmingSpeedDownRemote":null,"dimmingSpeedUpLocal":null,"dimmingSpeedUpRemote":20,"doubleTapClearNotifications":null,"doubleTapUpForFullBrightness":0,"energy":30.85,"firmwareUpdateInProgressIndicator":null,"invertSwitch":null,"last_seen":"2022-12-26T21:31:26.644Z","ledColorWhenOff":0,"ledColorWhenOn":null,"ledIntensityWhenOff":1,"ledIntensityWhenOn":0,"linkquality":83,"loadLevelIndicatorTimeout":null,"localProtection":null,"maximumLevel":null,"minimumLevel":null,"onOffLedMode":null,"outputMode":"Dimmer","periodicPowerAndEnergyReports":null,"power":500.9,"powerType":null,"rampRateOffToOnLocal":null,"rampRateOffToOnRemote":null,"rampRateOnToOffLocal":null,"rampRateOnToOffRemote":null,"relayClick":1,"remoteProtection":null,"smartBulbMode":null,"state":"ON","stateAfterPowerRestored":null,"switchType":"Single Pole","update":{"installed_version":16908808,"latest_version":16908808,"state":"idle"},"update_available":null},"topic":"LTS-BA-1-guest-room-main"}
{"payload":{"level":"info","message":"MQTT publish: topic 'zigbee2mqtt/LTS-BA-1-guest-room-main', payload '{\"action\":null,\"activeEnergyReports\":null,\"activePowerReports\":null,\"autoTimerOff\":null,\"brightness\":254,\"buttonDelay\":0,\"defaultLed1ColorWhenOff\":null,\"defaultLed1ColorWhenOn\":null,\"defaultLed1IntensityWhenOff\":null,\"defaultLed1IntensityWhenOn\":null,\"defaultLed2ColorWhenOff\":null,\"defaultLed2ColorWhenOn\":null,\"defaultLed2IntensityWhenOff\":null,\"defaultLed2IntensityWhenOn\":null,\"defaultLed3ColorWhenOff\":null,\"defaultLed3ColorWhenOn\":null,\"defaultLed3IntensityWhenOff\":null,\"defaultLed3IntensityWhenOn\":null,\"defaultLed4ColorWhenOff\":null,\"defaultLed4ColorWhenOn\":null,\"defaultLed4IntensityWhenOff\":null,\"defaultLed4IntensityWhenOn\":null,\"defaultLed5ColorWhenOff\":null,\"defaultLed5ColorWhenOn\":null,\"defaultLed5IntensityWhenOff\":null,\"defaultLed5IntensityWhenOn\":null,\"defaultLed6ColorWhenOff\":null,\"defaultLed6ColorWhenOn\":null,\"defaultLed6IntensityWhenOff\":null,\"defaultLed6IntensityWhenOn\":null,\"defaultLed7ColorWhenOff\":null,\"defaultLed7ColorWhenOn\":null,\"defaultLed7IntensityWhenOff\":null,\"defaultLed7IntensityWhenOn\":null,\"defaultLevelLocal\":254,\"defaultLevelRemote\":null,\"dimmingSpeedDownLocal\":null,\"dimmingSpeedDownRemote\":null,\"dimmingSpeedUpLocal\":null,\"dimmingSpeedUpRemote\":20,\"doubleTapClearNotifications\":null,\"doubleTapUpForFullBrightness\":0,\"energy\":30.85,\"firmwareUpdateInProgressIndicator\":null,\"invertSwitch\":null,\"last_seen\":\"2022-12-26T21:31:26.644Z\",\"ledColorWhenOff\":0,\"ledColorWhenOn\":null,\"ledIntensityWhenOff\":1,\"ledIntensityWhenOn\":0,\"linkquality\":83,\"loadLevelIndicatorTimeout\":null,\"localProtection\":null,\"maximumLevel\":null,\"minimumLevel\":null,\"onOffLedMode\":null,\"outputMode\":\"Dimmer\",\"periodicPowerAndEnergyReports\":null,\"power\":500.9,\"powerType\":null,\"rampRateOffToOnLocal\":null,\"rampRateOffToOnRemote\":null,\"rampRateOnToOffLocal\":null,\"rampRateOnToOffRemote\":null,\"relayClick\":1,\"remoteProtection\":null,\"smartBulbMode\":null,\"state\":\"ON\",\"stateAfterPowerRestored\":null,\"switchType\":\"Single Pole\",\"update\":{\"installed_version\":16908808,\"latest_version\":16908808,\"state\":\"idle\"},\"update_available\":null}'"},"topic":"bridge/logging"}
Note the message starting with “action” - the powerType
field is unset, but the preceding debug
message does say that it received the powerType field back, with the right value. The web interface never updates the powerType
field to anything other than “Null”.
Is this an incompatibility issue with the 2.08 firmware again, as in Blue 2-1 + zigbee2mqtt: local changes not reflected in remote state?