stas-demydiuk / domoticz-zigbee2mqtt-plugin

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

Device logs missing #727

Closed janjansen1 closed 2 years ago

janjansen1 commented 2 years ago

domoticz 2021.1 (build 13703) plugin: v.3.1.0-beta (latest I assume) Python 3.7.3 Python 2.7.16

I suppose a problem with one of the latest version(s) of the plugin. Previously, the problem described below did not occur. When I open a door (Aqara door sensor) or turn on a lamp (fe Ikea) I see a reaction in the general Domoticz log.

2021-10-15 19:34:22.039 Status: dzVents: Info: Handling events for: "Deur woonkamer", value: "Open" 2021-10-15 19:34:22.039 Status: dzVents: Info: Zonwering automaat: ------ Start internal script: Zonwering automaat: Device: "Deur woonkamer (Zigbee)", Index: 167 2021-10-15 19:34:22.066 Status: dzVents: Info: Zonwering automaat: ------ Finished Zonwering automaat 2021-10-15 19:34:24.096 Status: dzVents: Info: Handling events for: "Deur woonkamer", value: "Closed" 2021-10-15 19:34:24.096 Status: dzVents: Info: Zonwering automaat: ------ Start internal script: Zonwering automaat: Device: "Deur woonkamer (Zigbee)", Index: 167 2021-10-15 19:34:24.121 Status: dzVents: Info: Zonwering automaat: ------ Finished Zonwering automaat

The opening of the door in question is not recorded in the logging of the device.

odelma commented 2 years ago

In the DomoticzEx framework there is some new way to handle log entries. I think the plugin needs to call something when things should be added to log. I hope Stas can take a look at it at some point.

edit: some further reference: ”This same logic applies to logging as well.

Not all device types have logs written the same way in Domoticz so I added 'Log' parameter to the Update function to allow plugin authors to force an entry.” https://www.domoticz.com/forum/viewtopic.php?p=280998#p280998

drfranky1 commented 2 years ago

I have the same issue, tried almost everything and I didn't have a chance to make it work.

hughb8on commented 2 years ago

I have the same problem. Domoticz can now handle Zigbee2MQTT natively if you wish, i.e. without the plugin, and the logs for devices created that way display log information correctly. That suggests either there's a problem with the DomoticzEx framework, or the plugin needs updating to work with DomoticzEx.

drfranky1 commented 2 years ago

Hi @hughb8on ,

can you please explain how Domoticz can handle zigbee2mqtt without plugin?

hughb8on commented 2 years ago

There is a little about this in the Domoticz wiki; in the MQTT section there is a paragraph Autodiscovery. There are basic instructions in this @gizmocuz post https://github.com/domoticz/domoticz/issues/4931#issuecomment-922837306 and some discussion here https://github.com/domoticz/domoticz/issues/4974 I think any further discussion should take place in the Domoticz forums, not here.

janjansen1 commented 2 years ago

Dear Stas, Thank you very much for all the work you have put into this plugin. I enjoyed using it. I am now switching to Native MQTT zigbee2mqtt. My problems are now solved,

drfranky1 commented 2 years ago

@hughb8on All working now with the native MQTT. Thanks for your help