Decided to use plugin Zigbee for domoticz plugin Topic is solved

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

hjzwiers
Posts: 215
Joined: Friday 12 January 2018 8:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Decided to use plugin Zigbee for domoticz plugin

Post 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'
User avatar
waltervl
Posts: 5779
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Decided to use plugin Zigbee for domoticz plugin

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Decided to use plugin Zigbee for domoticz plugin

Post 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
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
hjzwiers
Posts: 215
Joined: Friday 12 January 2018 8:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Decided to use plugin Zigbee for domoticz plugin

Post 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.
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Decided to use plugin Zigbee for domoticz plugin

Post by pipiche »

What is your Zigbee coordinateur ?
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
hjzwiers
Posts: 215
Joined: Friday 12 January 2018 8:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Decided to use plugin Zigbee for domoticz plugin

Post by hjzwiers »

It is from Sonoff Zigbee 3.0 P : usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_f87384e6086bef1181b697adc169b110-if00-port0
User avatar
waltervl
Posts: 5779
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Decided to use plugin Zigbee for domoticz plugin

Post by waltervl »

You have set in the plugin configuration 'serialport': '/dev/ttyUSB0'
It should be something with /dev/by-id/
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Decided to use plugin Zigbee for domoticz plugin

Post 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 ?
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
BartSr
Posts: 395
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

Re: Decided to use plugin Zigbee for domoticz plugin

Post 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.
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
hjzwiers
Posts: 215
Joined: Friday 12 January 2018 8:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Decided to use plugin Zigbee for domoticz plugin

Post 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: {}
Last edited by hjzwiers on Wednesday 05 February 2025 19:42, edited 1 time in total.
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Decided to use plugin Zigbee for domoticz plugin

Post by pipiche »

So it was : '/dev/by-id/ttyUSB0' and in the Z4D plugin it looks like you use 'serialport': '/dev/ttyUSB0'
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
User avatar
waltervl
Posts: 5779
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Decided to use plugin Zigbee for domoticz plugin

Post 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!!!!!
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
hjzwiers
Posts: 215
Joined: Friday 12 January 2018 8:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Decided to use plugin Zigbee for domoticz plugin

Post by hjzwiers »

So I need to remove zigbee2mqtt? Does that include the config file, that makes life a lot easier!
User avatar
waltervl
Posts: 5779
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Decided to use plugin Zigbee for domoticz plugin

Post by waltervl »

Or be sure zigbee2mqtt is not running. But seeing your questions you better remove it ..
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
hjzwiers
Posts: 215
Joined: Friday 12 January 2018 8:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Decided to use plugin Zigbee for domoticz plugin

Post 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
hjzwiers
Posts: 215
Joined: Friday 12 January 2018 8:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Decided to use plugin Zigbee for domoticz plugin

Post 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!
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Decided to use plugin Zigbee for domoticz plugin

Post 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)
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
hjzwiers
Posts: 215
Joined: Friday 12 January 2018 8:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Decided to use plugin Zigbee for domoticz plugin

Post 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.
User avatar
waltervl
Posts: 5779
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Decided to use plugin Zigbee for domoticz plugin

Post by waltervl »

What does the Zigbee4Domoticz User interface say (In Domoticz menu - Custom menu - Zigbee4Domoticz)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
hjzwiers
Posts: 215
Joined: Friday 12 January 2018 8:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Decided to use plugin Zigbee for domoticz plugin

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest