stas-demydiuk / domoticz-zigbee2mqtt-plugin

zigbee2mqtt plugin for domoticz
MIT License
136 stars 100 forks source link

Innr RB 245 not added to Domoticz - doesn't have model attribute error #392

Closed jpveen closed 3 years ago

jpveen commented 3 years ago

Issue description Innr RB 245 (which is supported) is not added to Domoticz with the error: 2020-08-18 10:31:38.436 (Zigbee) Device 0x00158d0002ff5fbd (Innr-E14-wit-01) doesn't have "model" attribute, skipped

Additional information Zigbee2MQTT version: 1.14.3 Python version: Python3 3.8.2 Domoticz version: 2020.2 build 12230 Plugin version: 0.2.0

Logs Output of command:

mosquitto_sub -t zigbee2mqtt/

{"type":"device_connected","message":{"friendly_name":"Innr-E14-wit-01"}}
{"type":"pairing","message":"interview_started","meta":{"friendly_name":"Innr-E14-wit-01"}}
{"type":"device_announced","message":"announce","meta":{"friendly_name":"Innr-E14-wit-01"}}
{"type":"pairing","message":"interview_successful","meta":{"friendly_name":"Innr-E14-wit-01","model":"RB 245","vendor":"Innr","description":"E14 candle","supported":true}}
{"type":"devices","message":[{"ieeeAddr":"0x00124b0014d9c84b","type":"Coordinator","networkAddress":0,"friendly_name":"Coordinator","softwareBuildID":"zStack12","dateCode":"20190608","lastSeen":1597739499691},{"ieeeAddr":"0x00158d0004251f84","type":"EndDevice","networkAddress":37706,"model":"WSDCGQ01LM","vendor":"Xiaomi","description":"MiJia temperature & humidity sensor","friendly_name":"Xiaomi-Tempsensor-01","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sensor_ht","hardwareVersion":30,"softwareBuildID":"3000-0001","dateCode":"20160516","lastSeen":1597736826684},{"ieeeAddr":"0x00124b001f9187f6","type":"EndDevice","networkAddress":47315,"model":"SNZB-01","vendor":"SONOFF","description":"Wireless button","friendly_name":"Sonoff-draadloze-button-01","manufacturerID":0,"manufacturerName":"eWeLink","powerSource":"Battery","modelID":"WB01","hardwareVersion":0,"dateCode":"20200718","lastSeen":1597739309427},{"ieeeAddr":"0x00158d0002ff5fbd","type":"Router","networkAddress":32464,"model":"RB 245","vendor":"Innr","description":"E14 candle","friendly_name":"Innr-E14-wit-01","manufacturerID":4454,"manufacturerName":"innr","powerSource":"Mains (single phase)","modelID":"RB 245","hardwareVersion":1,"softwareBuildID":"2.0","dateCode":"20180810-1","lastSeen":1597739499593}]}

zigbee2mqtt log:

info  2020-08-18 10:30:29: Device 'Innr-E14-wit-01' joined
info  2020-08-18 10:30:29: Starting interview of 'Innr-E14-wit-01'
info  2020-08-18 10:30:29: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"device_connected","message":{"friendly_name":"Innr-E14-wit-01"}}'
info  2020-08-18 10:30:29: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"interview_started","meta":{"friendly_name":"Innr-E14-wit-01"}}'
info  2020-08-18 10:30:29: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"devices","message":[{"ieeeAddr":"0x00124b0014d9c84b","type":"Coordinator","networkAddress":0,"friendly_name":"Coordinator","softwareBuildID":"zStack12","dateCode":"20190608","lastSeen":1597739429771},{"ieeeAddr":"0x00158d0004251f84","type":"EndDevice","networkAddress":37706,"model":"WSDCGQ01LM","vendor":"Xiaomi","description":"MiJia temperature & humidity sensor","friendly_name":"Xiaomi-Tempsensor-01","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sensor_ht","hardwareVersion":30,"softwareBuildID":"3000-0001","dateCode":"20160516","lastSeen":1597736826684},{"ieeeAddr":"0x00124b001f9187f6","type":"EndDevice","networkAddress":47315,"model":"SNZB-01","vendor":"SONOFF","description":"Wireless button","friendly_name":"Sonoff-draadloze-button-01","manufacturerID":0,"manufacturerName":"eWeLink","powerSource":"Battery","modelID":"WB01","hardwareVersion":0,"dateCode":"20200718","lastSeen":1597739309427},{"ieeeAddr":"0x00158d0002ff5fbd","networkAddress":39651,"vendor":"-","description":"-","friendly_name":"Innr-E14-wit-01","lastSeen":1597739429763}]}'
info  2020-08-18 10:30:29: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"device_announced","message":"announce","meta":{"friendly_name":"Innr-E14-wit-01"}}'
info  2020-08-18 10:30:33: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"device_announced","message":"announce","meta":{"friendly_name":"Innr-E14-wit-01"}}'
info  2020-08-18 10:30:33: Successfully interviewed 'Innr-E14-wit-01', device has successfully been paired
info  2020-08-18 10:30:33: Device 'Innr-E14-wit-01' is supported, identified as: Innr E14 candle (RB 245)
info  2020-08-18 10:30:33: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"pairing","message":"interview_successful","meta":{"friendly_name":"Innr-E14-wit-01","model":"RB 245","vendor":"Innr","description":"E14 candle","supported":true}}'
info  2020-08-18 10:30:33: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"devices","message":[{"ieeeAddr":"0x00124b0014d9c84b","type":"Coordinator","networkAddress":0,"friendly_name":"Coordinator","softwareBuildID":"zStack12","dateCode":"20190608","lastSeen":1597739433786},{"ieeeAddr":"0x00158d0004251f84","type":"EndDevice","networkAddress":37706,"model":"WSDCGQ01LM","vendor":"Xiaomi","description":"MiJia temperature & humidity sensor","friendly_name":"Xiaomi-Tempsensor-01","manufacturerID":4151,"manufacturerName":"LUMI","powerSource":"Battery","modelID":"lumi.sensor_ht","hardwareVersion":30,"softwareBuildID":"3000-0001","dateCode":"20160516","lastSeen":1597736826684},{"ieeeAddr":"0x00124b001f9187f6","type":"EndDevice","networkAddress":47315,"model":"SNZB-01","vendor":"SONOFF","description":"Wireless button","friendly_name":"Sonoff-draadloze-button-01","manufacturerID":0,"manufacturerName":"eWeLink","powerSource":"Battery","modelID":"WB01","hardwareVersion":0,"dateCode":"20200718","lastSeen":1597739309427},{"ieeeAddr":"0x00158d0002ff5fbd","type":"Router","networkAddress":39651,"model":"RB 245","vendor":"Innr","description":"E14 candle","friendly_name":"Innr-E14-wit-01","manufacturerID":4454,"manufacturerName":"innr","powerSource":"Mains (single phase)","modelID":"RB 245","hardwareVersion":1,"softwareBuildID":"2.0","dateCode":"20180810-1","lastSeen":1597739433697}]}'

Entry in domotics log:

2020-08-18 10:30:29.821  (Zigbee) Received available devices list from bridge
2020-08-18 10:30:29.821  (Zigbee) Device 0x00158d0002ff5fbd (Innr-E14-wit-01) doesn't have "model" attribute, skipped

And the bulb model is in the adapters config file:

domoticz@domoticz:~/dev-domoticz/plugins/zigbee2mqtt$ grep "RB 245" adapters/innr/__init__.py
    'RB 245': DimmableBulbAdapter,      # Innr E14 Candle

No changes to the plugin from my side:

domoticz@domoticz:~/dev-domoticz/plugins/zigbee2mqtt$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
domoticz@domoticz:~/dev-domoticz/plugins/zigbee2mqtt$

Other Zigbee devices such as the Xiaomi sensor WSDCGQ01LM work and register normally in Domoticz. Any idea what can cause the issue with the Innr bulb and how to solve? (Maybe the space-character is the issue in the model name??)

stas-demydiuk commented 3 years ago

Do you still have the issue or it was resolved?

sammyke007 commented 3 years ago

How did you solve this? I have the same problem with Innr GU10 bulbs... Pairing is succesful, but Domoticz won't create the devices...

jpveen commented 3 years ago

What I did to fix: I did some manual set-state commands (using the Own Devices->Zigbee2MQTT tab, click on set-state button on the right of the Innr device). After that suddenly the Innr's showed up correctly in Domoticz under Devices....

jpveen commented 3 years ago

Do you still have the issue or it was resolved?

For me it was solved after sendig manual set-state commands. But unsure what happens if I try to add more Innr devices...

sammyke007 commented 3 years ago

For me the problem was the device (INNR RS 229 T) that was not know yet for the Zigbee2MQTT Domoticz plugin. I added it in the correct file and it worked! Tnx for your reply!