Page 1 of 2

Decided to use plugin Zigbee for domoticz plugin

Posted: Wednesday 05 February 2025 11:37
by hjzwiers
But of course it failed, I am getting the following error:

Error: Zigbee: An unexpected error occurred while checking package charset-normalizer - charset-normalizer==2.0.11 - charset-normalizer

Can anyone help with this. For the rest following errors:

2025-02-05 11:25:48.814 Zigbee: onStop()
2025-02-05 11:25:48.814 Error: Zigbee: Call to function 'onStart' failed, exception details:
2025-02-05 11:25:48.815 Error: Zigbee: Traceback (most recent call last):
2025-02-05 11:25:48.815 Error: Zigbee: File "/home/hjz/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 1577, in onStart
2025-02-05 11:25:48.815 Error: Zigbee: _plugin.onStart()
2025-02-05 11:25:48.815 Error: Zigbee: File "/home/hjz/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 414, in onStart
2025-02-05 11:25:48.815 Error: Zigbee: self.onStop()
2025-02-05 11:25:48.815 Error: Zigbee: File "/home/hjz/domoticz/plugins/Domoticz-Zigbee/plugin.py", line 617, in onStop
2025-02-05 11:25:48.815 Error: Zigbee: matomo_plugin_shutdown(self)
2025-02-05 11:25:48.815 Error: Zigbee: File "/home/hjz/domoticz/plugins/Domoticz-Zigbee/Modules/matomo_request.py", line 127, in matomo_plugin_shutdown
2025-02-05 11:25:48.815 Error: Zigbee: send_matomo_request( self, action_name="Plugin Action", event_category="Plugin", event_action="Shutdown", event_name="Plugin Shutdown" )
2025-02-05 11:25:48.815 Error: Zigbee: File "/home/hjz/domoticz/plugins/Domoticz-Zigbee/Modules/matomo_request.py", line 159, in send_matomo_request
2025-02-05 11:25:48.815 Error: Zigbee: self.log.logging( "Matomo", "Debug", f"send_matomo_request - Clien_id {client_id}")
2025-02-05 11:25:48.815 Error: Zigbee: AttributeError: 'NoneType' object has no attribute 'logging'

Re: Decided to use plugin Zigbee for domoticz plugin

Posted: Wednesday 05 February 2025 11:46
by waltervl
And you used the manual method (1B) as described in their wiki https://zigbeefordomoticz.github.io/wik ... ation.html ?
Do not use the plugin manager method as that causes an outdated plugin.

Edit and also check viewtopic.php?p=322842&hilit=charset+normalizer#p322842

Re: Decided to use plugin Zigbee for domoticz plugin

Posted: Wednesday 05 February 2025 11:49
by pipiche
Your issue is related to that problem 'Error: Zigbee: An unexpected error occurred while checking package charset-normalizer - charset-normalizer==2.0.11 - charset-normalizer'

Kindly have a look to the wiki. You must have the expected version install

https://zigbeefordomoticz.github.io/wik ... d-cchardet

https://zigbeefordomoticz.github.io/wik ... nvironment

Re: Decided to use plugin Zigbee for domoticz plugin

Posted: Wednesday 05 February 2025 12:43
by hjzwiers
I have it up and running, but I am getting a communication issue:

2025-02-05 13:18:22.074 Error: Zigbee: [160] I have hard time to get Coordinator Version. Most likely there is a communication issue

After that Domoticz fully stops ....

The last message:
2025-02-05 13:18:23.076 Zigbee: URL INFOS {'type': 'command', 'param': 'updatehardware', 'htype': '94', 'idx': 33, 'name': 'Zigbee', 'address': '0.0.0.0', 'port': '9999', 'serialport': '/dev/ttyUSB0', 'Mode1': 'ZigpyZNP', 'Mode2': 'USB', 'Mode3': 'False', 'Mode4': '9440', 'Mode5': 'http://192.168.2.71:8080', 'Mode6': '62', 'extra': 'Zigate', 'enabled': 'true', 'datatimeout': '0', 'loglevel': 7}
2025-02-05 13:18:23.076 Status: Zigbee: Plugin Restart command : http://192.168.2.71:8080/json.htm?type= ... loglevel=7
2025-02-05 13:18:23.081 Status: Zigbee: Stop directive received.

Re: Decided to use plugin Zigbee for domoticz plugin

Posted: Wednesday 05 February 2025 14:05
by pipiche
What is your Zigbee coordinateur ?

Re: Decided to use plugin Zigbee for domoticz plugin

Posted: Wednesday 05 February 2025 16:22
by hjzwiers
It is from Sonoff Zigbee 3.0 P : usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_f87384e6086bef1181b697adc169b110-if00-port0

Re: Decided to use plugin Zigbee for domoticz plugin

Posted: Wednesday 05 February 2025 17:23
by waltervl
You have set in the plugin configuration 'serialport': '/dev/ttyUSB0'
It should be something with /dev/by-id/

Re: Decided to use plugin Zigbee for domoticz plugin

Posted: Wednesday 05 February 2025 18:33
by pipiche
So P is a TexasInstrument. And using ZNP is correct
You might want to check if /dev/ttyUSB0 is pointing to that device.

Last, is that new key ? or what is used before ?

Re: Decided to use plugin Zigbee for domoticz plugin

Posted: Wednesday 05 February 2025 18:34
by BartSr
is there a reason to don't use zigbee2mqtt? Very easy to use and up to now all my devices could be paired without issues.

Re: Decided to use plugin Zigbee for domoticz plugin

Posted: Wednesday 05 February 2025 19:13
by hjzwiers
This is my config file, I changed my Sonoff device for a version E, so the adapter change (I also made it in the docker file):

version: 4
homeassistant:
enabled: true
status_topic: hass/status
frontend:
enabled: true
port: 8085
mqtt:
base_topic: zigbee2mqtt
server: mqtt://192.168.2.71:1883
keepalive: 60
password: ****
reject_unauthorized: true
user: hjz
version: 4
serial:
port: /dev/by-id/ttyUSB0
adapter: ember
baudrate: 115200
advanced:
log_level: debug
homeassistant_legacy_entity_attributes: false
homeassistant_legacy_triggers: false
legacy_api: false
legacy_availability_payload: false
transmit_power: 5
channel: 11
ext_pan_id:
- 221
- 221
- 221
- 221
- 221
- 221
- 221
- 221
device_options:
legacy: false
availability: {}

Re: Decided to use plugin Zigbee for domoticz plugin

Posted: Wednesday 05 February 2025 19:24
by pipiche
So it was : '/dev/by-id/ttyUSB0' and in the Z4D plugin it looks like you use 'serialport': '/dev/ttyUSB0'

Re: Decided to use plugin Zigbee for domoticz plugin

Posted: Wednesday 05 February 2025 19:40
by waltervl
Please do not mix zigbee2mqtt and Zigbee4Domoticz configuration files in this topic!

Also make sure you removed zigbee2mqtt before starting with Zigbee4Domoticz as they both use the same usb stick and that gives connection issues!!!!!

Re: Decided to use plugin Zigbee for domoticz plugin

Posted: Wednesday 05 February 2025 19:44
by hjzwiers
So I need to remove zigbee2mqtt? Does that include the config file, that makes life a lot easier!

Re: Decided to use plugin Zigbee for domoticz plugin

Posted: Wednesday 05 February 2025 20:03
by waltervl
Or be sure zigbee2mqtt is not running. But seeing your questions you better remove it ..

Re: Decided to use plugin Zigbee for domoticz plugin

Posted: Wednesday 05 February 2025 21:42
by hjzwiers
I got it up and running. I have some Sonoff plus that can't seem to connect, but that we will save for tomorrow. Thanks

Re: Decided to use plugin Zigbee for domoticz plugin

Posted: Sunday 09 February 2025 10:57
by hjzwiers
Got it all working, the main issue was I had a wrong firmware on my Sonoff, so I made the move to a different computer, and had to flash a few times.

It does het a bit frustrating sometimes, when things go wrong somewhere in the chain ....

Thanks for all the help!

Re: Decided to use plugin Zigbee for domoticz plugin

Posted: Sunday 09 February 2025 11:19
by pipiche
@hjzwiers thanks for the update.
I'm the Z4D plugin developer, feel free to share your experience ( you can reach me on MP, or on Keybase.io)

Re: Decided to use plugin Zigbee for domoticz plugin

Posted: Monday 10 February 2025 15:45
by hjzwiers
Is there a reason I only got the zigbee plus from TS011F-plug-Elivco working (almost an immediate connection)?

I also had nous plugins, but they would not connect, I also had sonoff plugs earlier, but then I didn.t know there was no contact with the stick.

What is may bad is that when I had a bad SW on the stick, when I had the app active whole domoticz is halted, instead of only the app itself. I had to disable the app, and then restart domoticz, then it would run without the MQTT client.

Another question, i don't see the plugs in the MQTT Explorer? I see my Zwave devices.

Re: Decided to use plugin Zigbee for domoticz plugin

Posted: Monday 10 February 2025 17:22
by waltervl
What does the Zigbee4Domoticz User interface say (In Domoticz menu - Custom menu - Zigbee4Domoticz)

Re: Decided to use plugin Zigbee for domoticz plugin

Posted: Monday 10 February 2025 17:45
by hjzwiers
With Nous for example I set the plugs to connect, nothing happened. No reaction al all (pushed the button several times). With the TS011F-plug-Elivco they simply connected almost immediately.