Python Plugin: Zigbee2Mqtt Topic is solved

Python and python framework

Moderator: leecollings

Rex100
Posts: 5
Joined: Tuesday 07 January 2020 19:55
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by Rex100 »

I can't get this plugin working.
Have now:
Zigbee2MQTT Plugin (v. 3.2.0-beta)
mosquitto version: 1.5.7.
And have on Custom --> Zigbee2mqtt page text:
{{ $ctrl.getVersionString() }}
So that is abowe the "Allow new zigbee devices to join "

What is wrong ?
Rex100
Posts: 5
Joined: Tuesday 07 January 2020 19:55
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by Rex100 »

My problem is solved.
I believe it was an old mosquitto version, but it didn't update, before I first deleted it complete and re-installed.
Now it is 2.0.12. and zigbee2mqtt works fine.
manjh
Posts: 708
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by manjh »

I am struggling with a new Zigbee motion sensor.
I was able to pair it, the device comes in to the Z2M plugin, and four devices are created in Domoticz.
But after that there is no update to these devices.
When the sensor is triggered, I can see an entry on the log of the Z2M dashboard.
And when I set the debug level to "verbose" in the plugin, I see information on the Domoticz log:

Code: Select all

2022-12-17 21:47:21.072 Status: Zigbee2MQTT: Stop directive received.
2022-12-17 21:47:21.188 Status: Zigbee2MQTT: Exiting work loop.
2022-12-17 21:47:21.272 Status: Zigbee2MQTT: Stopping threads.
2022-12-17 21:47:21.272 Status: Zigbee2MQTT: Stopped.
2022-12-17 21:47:21.272 Status: Zigbee2MQTT: Entering work loop.
2022-12-17 21:47:21.272 Status: Zigbee2MQTT: Started.
2022-12-17 21:47:21.488 Status: Zigbee2MQTT: Initialized version 3.2.0-beta
2022-12-17 21:47:21.073 Error: Zigbee2MQTT: Disconnected from MQTT Server: 127.0.0.1:1883
2022-12-17 21:47:21.700 Error: Zigbee2MQTT: Call to function 'onMessage' failed, exception details:
2022-12-17 21:47:21.703 Error: Zigbee2MQTT: Traceback (most recent call last):
2022-12-17 21:47:21.703 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py", line 299, in onMessage
2022-12-17 21:47:21.703 Error: Zigbee2MQTT: _plugin.onMessage(Connection, Data)
2022-12-17 21:47:21.703 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py", line 137, in onMessage
2022-12-17 21:47:21.703 Error: Zigbee2MQTT: self.mqttClient.onMessage(Connection, Data)
2022-12-17 21:47:21.703 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/mqtt.py", line 167, in onMessage
2022-12-17 21:47:21.703 Error: Zigbee2MQTT: self.on_mqtt_message_cb(topic, message)
2022-12-17 21:47:21.703 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py", line 166, in onMQTTPublish
2022-12-17 21:47:21.703 Error: Zigbee2MQTT: self.devices_manager.set_devices(message)
2022-12-17 21:47:21.703 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices_manager.py", line 45, in set_devices
2022-12-17 21:47:21.703 Error: Zigbee2MQTT: self.devices[device_adress] = UniversalAdapter(item)
2022-12-17 21:47:21.703 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/adapter.py", line 48, in __init__
2022-12-17 21:47:21.703 Error: Zigbee2MQTT: self.register()
2022-12-17 21:47:21.703 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/adapters/base_adapter.py", line 33, in register
2022-12-17 21:47:21.703 Error: Zigbee2MQTT: device.register(self._get_legacy_device_data())
2022-12-17 21:47:21.703 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices/device.py", line 142, in register
2022-12-17 21:47:21.703 Error: Zigbee2MQTT: self._create_device(device_data)
2022-12-17 21:47:21.703 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices/device.py", line 78, in _create_device
2022-12-17 21:47:21.703 Error: Zigbee2MQTT: device = self.create_device(unit, device_id, device_name)
2022-12-17 21:47:21.703 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices/switch/selector_switch.py", line 30, in create_device
2022-12-17 21:47:21.703 Error: Zigbee2MQTT: options['LevelNames'] = '|'.join(self.level_names)
2022-12-17 21:47:21.703 Error: Zigbee2MQTT: TypeError: sequence item 1: expected str instance, int found
Looks rather worrying, but Zigbee devices seem to work OK.
Then I trigger the motion sensor, and this comes in on the log:

Code: Select all


2022-12-17 21:49:22.075 Zigbee2MQTT: 30 cc 01 00 1a 7a 69 67 62 65 65 32 6d 71 74 74 2f 62 72 69 0̮..zigbee2mqtt/bri
2022-12-17 21:49:22.075 Zigbee2MQTT: 64 67 65 2f 6c 6f 67 67 69 6e 67 7b 22 6c 65 76 65 6c 22 3a dge/logging{"level":
2022-12-17 21:49:22.075 Zigbee2MQTT: 22 69 6e 66 6f 22 2c 22 6d 65 73 73 61 67 65 22 3a 22 4d 51 "info","message":"MQ
2022-12-17 21:49:22.075 Zigbee2MQTT: 54 54 20 70 75 62 6c 69 73 68 3a 20 74 6f 70 69 63 20 27 7a TT.publish:.topic.'z
2022-12-17 21:49:22.075 Zigbee2MQTT: 69 67 62 65 65 32 6d 71 74 74 2f 5a 69 67 62 65 65 20 6d 6f igbee2mqtt/Zigbee.mo
2022-12-17 21:49:22.075 Zigbee2MQTT: 74 69 6f 6e 20 73 65 6e 73 6f 72 20 31 27 2c 20 70 61 79 6c tion.sensor.1',.payl
2022-12-17 21:49:22.076 Zigbee2MQTT: 6f 61 64 20 27 7b 5c 22 62 61 74 74 65 72 79 5f 6c 6f 77 5c oad.'{\"battery_low\
2022-12-17 21:49:22.076 Zigbee2MQTT: 22 3a 66 61 6c 73 65 2c 5c 22 6c 69 6e 6b 71 75 61 6c 69 74 ":false,\"linkqualit
2022-12-17 21:49:22.076 Zigbee2MQTT: 79 5c 22 3a 32 35 35 2c 5c 22 6f 63 63 75 70 61 6e 63 79 5c y\":255,\"occupancy\
2022-12-17 21:49:22.076 Zigbee2MQTT: 22 3a 74 72 75 65 2c 5c 22 74 61 6d 70 65 72 5c 22 3a 66 61 ":true,\"tamper\":fa
2022-12-17 21:49:22.076 Zigbee2MQTT: 6c 73 65 7d 27 22 7d .. .. .. .. .. .. .. .. .. .. .. .. .. lse}'"}
2022-12-17 21:49:22.076 Zigbee2MQTT: Received 109 bytes of data
2022-12-17 21:49:22.076 Zigbee2MQTT: 30 6b 00 22 7a 69 67 62 65 65 32 6d 71 74 74 2f 5a 69 67 62 0k."zigbee2mqtt/Zigb
2022-12-17 21:49:22.076 Zigbee2MQTT: 65 65 20 6d 6f 74 69 6f 6e 20 73 65 6e 73 6f 72 20 31 7b 22 ee.motion.sensor.1{"
2022-12-17 21:49:22.076 Zigbee2MQTT: 62 61 74 74 65 72 79 5f 6c 6f 77 22 3a 66 61 6c 73 65 2c 22 battery_low":false,"
2022-12-17 21:49:22.076 Zigbee2MQTT: 6c 69 6e 6b 71 75 61 6c 69 74 79 22 3a 32 35 35 2c 22 6f 63 linkquality":255,"oc
2022-12-17 21:49:22.076 Zigbee2MQTT: 63 75 70 61 6e 63 79 22 3a 74 72 75 65 2c 22 74 61 6d 70 65 cupancy":true,"tampe
2022-12-17 21:49:22.076 Zigbee2MQTT: 72 22 3a 66 61 6c 73 65 7d .. .. .. .. .. .. .. .. .. .. .. r":false}
Looks like the signal comes into the plugin after the trigger. But the four devices are not updated!
Plugin version is 3.2.0-Beta. Domoticz is Version:
2022.2
Build Hash: eea9db734
Compile Date: 2022-11-05 13:05:35
dzVents Version: 3.1.8
Python Version: 3.7.3 (default, Oct 31 2022, 14:04:00) [GCC 8.3.0]

Any hints on what is wrong here?
Hans
manjh
Posts: 708
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by manjh »

Something I noticed on the device detail page on the Zigbee2MQTT dashboard: "availability: disabled".
Does this have any effect on the problem?
I tried to change the device entry in configuration.yaml:

Code: Select all

    # Enable avaiability
    availability: true
Saved the file and restarted zigbee2mqtt, but no change...
Hans
manjh
Posts: 708
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by manjh »

I give up. Tried finding the root cause of this problem, also posted questions on several different locations. No luck.
So I decided to pull the plug on the old plugin. I deleted the entry from Domoticz, and removed the zigbee2mqtt directory from the Domoticz/plugins.
Then followed the instructions in the Wiki and went for the AutoDiscover version.
Feeling great to see all devices flowing into Domoticz. Even better when I see that when the PIR sensor is triggered, it is actually reflected into the Domoticz device.
So: problem not solved, but I found a workaround.....
Hans
manjh
Posts: 708
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by manjh »

I may have cheered a bit too quick.
After installing the autodiscover version, I tested the Zigbee devices from Domoticz and everything worked OK.
The pir sensor in particular: after triggering, it switches "occupancy" on. If no motion is detected after that, it goes back to off state after about a minute.

So I was happy and went for a coffee.
After some time, I went back to the computer to do some more testing. Now all ZIgbee devices were not responding! Nothing... :(

Is there a setting somewhere that I am forgetting?
Hans
manjh
Posts: 708
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by manjh »

Well, after I posted the text just above, I decided to call it a night and leave everything alone.
That helped, this morning everything was back to normal... looks like the new AutoDiscover plugin needed to get used to the environment.. :D

So, for now: let's wait and see!
Hans
manjh
Posts: 708
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by manjh »

I cheered too quickly. Am still struggling to get a stable Zigbee2MQTT setup. Each time when I think things are working properly, it fails after a while: no Zigbee control from Domoticz any more.
I tried these versions:
  • Zigbee2MQTT latest beta
    Zigbee2MQTT backlevel (as pointed out in the git info)
    ZIgbee2MQTT autodiscover
Can the author of this plugin shed some light on this? I feel like I'm on a dead end...

One bit of interesting info: after a restart I notice this in the Domoticz log:

Code: Select all

2022-12-29 20:44:03.499 Error: ZIgbee2MQTT: Call to function 'onMessage' failed, exception details:
2022-12-29 20:44:03.502 Error: ZIgbee2MQTT: Traceback (most recent call last):
2022-12-29 20:44:03.502 Error: ZIgbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py", line 287, in onMessage
2022-12-29 20:44:03.502 Error: ZIgbee2MQTT: _plugin.onMessage(Connection, Data)
2022-12-29 20:44:03.502 Error: ZIgbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py", line 137, in onMessage
2022-12-29 20:44:03.502 Error: ZIgbee2MQTT: self.mqttClient.onMessage(Connection, Data)
2022-12-29 20:44:03.502 Error: ZIgbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/mqtt.py", line 167, in onMessage
2022-12-29 20:44:03.502 Error: ZIgbee2MQTT: self.on_mqtt_message_cb(topic, message)
2022-12-29 20:44:03.502 Error: ZIgbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py", line 166, in onMQTTPublish
2022-12-29 20:44:03.502 Error: ZIgbee2MQTT: self.devices_manager.set_devices(message)
2022-12-29 20:44:03.502 Error: ZIgbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices_manager.py", line 44, in set_devices
2022-12-29 20:44:03.502 Error: ZIgbee2MQTT: self.devices[device_id] = UniversalAdapter(item)
2022-12-29 20:44:03.502 Error: ZIgbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/adapter.py", line 45, in __init__
2022-12-29 20:44:03.502 Error: ZIgbee2MQTT: self.register()
2022-12-29 20:44:03.502 Error: ZIgbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/adapters/base_adapter.py", line 33, in register
2022-12-29 20:44:03.502 Error: ZIgbee2MQTT: device.register(self._get_legacy_device_data())
2022-12-29 20:44:03.502 Error: ZIgbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices/device.py", line 81, in register
2022-12-29 20:44:03.502 Error: ZIgbee2MQTT: self._create_device(device_data)
2022-12-29 20:44:03.502 Error: ZIgbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices/device.py", line 47, in _create_device
2022-12-29 20:44:03.502 Error: ZIgbee2MQTT: return self.create_device(unit, device_id, device_name)
2022-12-29 20:44:03.502 Error: ZIgbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices/switch/selector_switch.py", line 30, in create_device
2022-12-29 20:44:03.502 Error: ZIgbee2MQTT: options['LevelNames'] = '|'.join(self.level_names)
2022-12-29 20:44:03.502 Error: ZIgbee2MQTT: TypeError: sequence item 1: expected str instance, int found
Does this make any sense?
Hans
acaonweb
Posts: 78
Joined: Thursday 23 March 2017 14:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by acaonweb »

I have a similar issue, it appears adding a PIR device supported by zigbee2mqtt as shown here
https://www.zigbee2mqtt.io/devices/IH01 ... ih012-rt01
in zigbee2mqtt is correctly paired, discovered, interviewed ad works good
But after adding it, plugin crash and all the Zigbee device stops to work

Here my log

Code: Select all

2022-12-26 12:16:26.558 Error: Zigbee2MQTT: Call to function 'onMessage' failed, exception details:
2022-12-26 12:16:26.560 Error: Zigbee2MQTT: Traceback (most recent call last):
2022-12-26 12:16:26.560 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py", line 299, in onMessage
2022-12-26 12:16:26.560 Error: Zigbee2MQTT: _plugin.onMessage(Connection, Data)
2022-12-26 12:16:26.560 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py", line 137, in onMessage
2022-12-26 12:16:26.560 Error: Zigbee2MQTT: self.mqttClient.onMessage(Connection, Data)
2022-12-26 12:16:26.560 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/mqtt.py", line 167, in onMessage
2022-12-26 12:16:26.560 Error: Zigbee2MQTT: self.on_mqtt_message_cb(topic, message)
2022-12-26 12:16:26.560 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py", line 166, in onMQTTPublish
2022-12-26 12:16:26.560 Error: Zigbee2MQTT: self.devices_manager.set_devices(message)
2022-12-26 12:16:26.560 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices_manager.py", line 45, in set_devices
2022-12-26 12:16:26.560 Error: Zigbee2MQTT: self.devices[device_adress] = UniversalAdapter(item)
2022-12-26 12:16:26.560 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/adapter.py", line 48, in init
2022-12-26 12:16:26.560 Error: Zigbee2MQTT: self.register()
2022-12-26 12:16:26.560 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/adapters/base_adapter.py", line 33, in register
2022-12-26 12:16:26.560 Error: Zigbee2MQTT: device.register(self._get_legacy_device_data())
2022-12-26 12:16:26.560 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices/device.py", line 142, in register
2022-12-26 12:16:26.560 Error: Zigbee2MQTT: self._create_device(device_data)
2022-12-26 12:16:26.560 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices/device.py", line 78, in _create_device
2022-12-26 12:16:26.560 Error: Zigbee2MQTT: device = self.create_device(unit, device_id, device_name)
2022-12-26 12:16:26.560 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices/switch/selector_switch.py", line 30, in create_device
2022-12-26 12:16:26.560 Error: Zigbee2MQTT: options['LevelNames'] = '|'.join(self.level_names)
2022-12-26 12:16:26.560 Error: Zigbee2MQTT: TypeError: sequence item 1: expected str instance, int found
2022-12-26 12:16:27.505 Zigbee2MQTT: Received available devices list from bridge
2022-12-26 12:16:27.484 Error: Zigbee2MQTT: Call to function 'onMessage' failed, exception details:
2022-12-26 12:16:27.485 Error: Zigbee2MQTT: Traceback (most recent call last):
2022-12-26 12:16:27.485 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py", line 299, in onMessage
2022-12-26 12:16:27.485 Error: Zigbee2MQTT: _plugin.onMessage(Connection, Data)
2022-12-26 12:16:27.485 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py", line 137, in onMessage
2022-12-26 12:16:27.485 Error: Zigbee2MQTT: self.mqttClient.onMessage(Connection, Data)
2022-12-26 12:16:27.485 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/mqtt.py", line 167, in onMessage
2022-12-26 12:16:27.485 Error: Zigbee2MQTT: self.on_mqtt_message_cb(topic, message)
2022-12-26 12:16:27.485 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py", line 166, in onMQTTPublish
2022-12-26 12:16:27.485 Error: Zigbee2MQTT: self.devices_manager.set_devices(message)
2022-12-26 12:16:27.485 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices_manager.py", line 45, in set_devices
2022-12-26 12:16:27.485 Error: Zigbee2MQTT: self.devices[device_adress] = UniversalAdapter(item)
2022-12-26 12:16:27.485 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/adapter.py", line 48, in init
2022-12-26 12:16:27.485 Error: Zigbee2MQTT: self.register()
2022-12-26 12:16:27.485 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/adapters/base_adapter.py", line 33, in register
2022-12-26 12:16:27.485 Error: Zigbee2MQTT: device.register(self._get_legacy_device_data())
2022-12-26 12:16:27.485 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices/device.py", line 142, in register
2022-12-26 12:16:27.485 Error: Zigbee2MQTT: self._create_device(device_data)
2022-12-26 12:16:27.485 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices/device.py", line 78, in _create_device
2022-12-26 12:16:27.485 Error: Zigbee2MQTT: device = self.create_device(unit, device_id, device_name)
2022-12-26 12:16:27.486 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices/switch/selector_switch.py", line 30, in create_device
2022-12-26 12:16:27.486 Error: Zigbee2MQTT: options['LevelNames'] = '|'.join(self.level_names)
2022-12-26 12:16:27.486 Error: Zigbee2MQTT: TypeError: sequence item 1: expected str instance, int found
2022-12-26 12:16:28.403 Error: Zigbee2MQTT: Call to function 'onMessage' failed, exception details:
2022-12-26 12:16:28.405 Error: Zigbee2MQTT: Traceback (most recent call last):
2022-12-26 12:16:28.405 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py", line 299, in onMessage
2022-12-26 12:16:28.405 Error: Zigbee2MQTT: _plugin.onMessage(Connection, Data)
2022-12-26 12:16:28.405 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py", line 137, in onMessage
2022-12-26 12:16:28.405 Error: Zigbee2MQTT: self.mqttClient.onMessage(Connection, Data)
2022-12-26 12:16:28.405 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/mqtt.py", line 167, in onMessage
2022-12-26 12:16:28.405 Error: Zigbee2MQTT: self.on_mqtt_message_cb(topic, message)
2022-12-26 12:16:28.405 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py", line 166, in onMQTTPublish
2022-12-26 12:16:28.405 Error: Zigbee2MQTT: self.devices_manager.set_devices(message)
2022-12-26 12:16:28.405 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices_manager.py", line 45, in set_devices
2022-12-26 12:16:28.405 Error: Zigbee2MQTT: self.devices[device_adress] = UniversalAdapter(item)
2022-12-26 12:16:28.405 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/adapter.py", line 48, in init
2022-12-26 12:16:28.405 Error: Zigbee2MQTT: self.register()
2022-12-26 12:16:28.405 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/adapters/base_adapter.py", line 33, in register
2022-12-26 12:16:28.405 Error: Zigbee2MQTT: device.register(self._get_legacy_device_data())
2022-12-26 12:16:28.405 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices/device.py", line 142, in register
2022-12-26 12:16:28.405 Error: Zigbee2MQTT: self._create_device(device_data)
2022-12-26 12:16:28.405 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices/device.py", line 78, in _create_device
2022-12-26 12:16:28.405 Error: Zigbee2MQTT: device = self.create_device(unit, device_id, device_name)
2022-12-26 12:16:28.406 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices/switch/selector_switch.py", line 30, in create_device
2022-12-26 12:16:28.406 Error: Zigbee2MQTT: options['LevelNames'] = '|'.join(self.level_names)
2022-12-26 12:16:28.406 Error: Zigbee2MQTT: TypeError: sequence item 1: expected str instance, int found
2022-12-26 12:16:29.096 Zigbee2MQTT: Received available devices list from bridge
2022-12-26 12:16:30.002 Error: Zigbee2MQTT: Call to function 'onMessage' failed, exception details:
2022-12-26 12:16:30.003 Error: Zigbee2MQTT: Traceback (most recent call last):
2022-12-26 12:16:30.003 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py", line 299, in onMessage
2022-12-26 12:16:30.003 Error: Zigbee2MQTT: _plugin.onMessage(Connection, Data)
2022-12-26 12:16:30.003 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py", line 137, in onMessage
2022-12-26 12:16:30.003 Error: Zigbee2MQTT: self.mqttClient.onMessage(Connection, Data)
2022-12-26 12:16:30.003 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/mqtt.py", line 167, in onMessage
2022-12-26 12:16:30.003 Error: Zigbee2MQTT: self.on_mqtt_message_cb(topic, message)
2022-12-26 12:16:30.003 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py", line 166, in onMQTTPublish
2022-12-26 12:16:30.003 Error: Zigbee2MQTT: self.devices_manager.set_devices(message)
2022-12-26 12:16:30.004 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices_manager.py", line 45, in set_devices
2022-12-26 12:16:30.004 Error: Zigbee2MQTT: self.devices[device_adress] = UniversalAdapter(item)
2022-12-26 12:16:30.004 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/adapter.py", line 48, in init
2022-12-26 12:16:30.004 Error: Zigbee2MQTT: self.register()
2022-12-26 12:16:30.004 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/adapters/base_adapter.py", line 33, in register
2022-12-26 12:16:30.004 Error: Zigbee2MQTT: device.register(self._get_legacy_device_data())
2022-12-26 12:16:30.004 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices/device.py", line 142, in register
2022-12-26 12:16:30.004 Error: Zigbee2MQTT: self._create_device(device_data)
2022-12-26 12:16:30.004 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices/device.py", line 78, in _create_device
2022-12-26 12:16:30.004 Error: Zigbee2MQTT: device = self.create_device(unit, device_id, device_name)
2022-12-26 12:16:30.004 Error: Zigbee2MQTT: File "/home/pi/domoticz/plugins/zigbee2mqtt/devices/switch/selector_switch.py", line 30, in create_device
2022-12-26 12:16:30.004 Error: Zigbee2MQTT: options['LevelNames'] = '|'.join(self.level_names)
2022-12-26 12:16:30.004 Error: Zigbee2MQTT: TypeError: sequence item 1: expected str instance, int found
To make all work again, I need to REMOVE the device from zigbee2mqtt (so basically the device is inusable)
I hope the developer (that has started this thread) can resolve, I've opened an issue on GitHub too

My setup:
Zigbee2MQTT version 1.28.4 commit: 52e545f9
Coordinator type zStack3x0
Coordinator revision 20220219
Coordinator IEEE Address 0x00124b0021b95272
Frontend version 0.6.119
Python Version: 3.7.3
Domoticz version:
Plugin version: v. 3.2.0-beta
mosquitto version 2.0.13
manjh
Posts: 708
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by manjh »

After playing with all three versions of the plugin, I discovered that the AutoDiscovery version is most stable.
It accepts all of my devices (5 smoke detectors, 3 Ikea light bulbs, 1 PIR detector.
So far, so good.
Unfortunately the plugin simply freezes after a while.
Hans
manjh
Posts: 708
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by manjh »

I see that the author of this plugin has not been active on this forum since September... given the fact that he is located in the Ukrain, I worry about his well being.
Does anyone have information? Is he OK?
Hans
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by Derik »

manjh wrote: Saturday 31 December 2022 16:44 I see that the author of this plugin has not been active on this forum since September... given the fact that he is located in the Ukrain, I worry about his well being.
Does anyone have information? Is he OK?
This is the problem with 1 developer....
Try teh hardcore version in Domoticz. Working great, and all the devices/settings are in your backup etc. [ no other save options needed.. ]
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by Nautilus »

samourai47 wrote: Monday 27 December 2021 16:37 Hello
Some help please
I tried to use a MOES BHT-002-GCLZB with deconz and that dosen't work prefectly
I try with mqtt and zigbee2mqtt plugin
That work only in domoticz beta and the 3.1 plugins, but i have a little problem
By the way, I came across a a bargain on few of these (or so I thought) - did you ever get these to work as you like? It looks like Domotics sees these somehow funny, e.g. the mode updates every few seconds and this is logged even if the status does not change. I fear my shor logs grows too much if I can't stop it. Also, it looks like this started after I updated Domoticz from a version complied in September to latest beta. I had installed one thermostat before I updated and it behaved nicely. Now the newly installed and the old are doing the same almost constant updates...
manjh
Posts: 708
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by manjh »

Derik wrote: Sunday 01 January 2023 13:43
manjh wrote: Saturday 31 December 2022 16:44 I see that the author of this plugin has not been active on this forum since September... given the fact that he is located in the Ukrain, I worry about his well being.
Does anyone have information? Is he OK?
This is the problem with 1 developer....
Try teh hardcore version in Domoticz. Working great, and all the devices/settings are in your backup etc. [ no other save options needed.. ]
Where exactly can I find this "hardcore version"? I have used the python plugin in 2 versions (latest stable and the beta), and also the AutoDiscovery version.
Is this "hardcore version" a different one?
Hans
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by Derik »

manjh wrote: Monday 02 January 2023 20:02
Derik wrote: Sunday 01 January 2023 13:43
manjh wrote: Saturday 31 December 2022 16:44 I see that the author of this plugin has not been active on this forum since September... given the fact that he is located in the Ukrain, I worry about his well being.
Does anyone have information? Is he OK?
This is the problem with 1 developer....
Try teh hardcore version in Domoticz. Working great, and all the devices/settings are in your backup etc. [ no other save options needed.. ]
Where exactly can I find this "hardcore version"? I have used the python plugin in 2 versions (latest stable and the beta), and also the AutoDiscovery version.
Is this "hardcore version" a different one?
You can set in Domoticz a new hardware, mqtt
When you put in there homeassistent
all the z2m device are directly in Domoticz without a plugin..
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
manjh
Posts: 708
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by manjh »

Derik wrote: Monday 02 January 2023 20:05
manjh wrote: Monday 02 January 2023 20:02
Derik wrote: Sunday 01 January 2023 13:43

This is the problem with 1 developer....
Try teh hardcore version in Domoticz. Working great, and all the devices/settings are in your backup etc. [ no other save options needed.. ]
Where exactly can I find this "hardcore version"? I have used the python plugin in 2 versions (latest stable and the beta), and also the AutoDiscovery version.
Is this "hardcore version" a different one?
You can set in Domoticz a new hardware, mqtt
When you put in there homeassistent
all the z2m device are directly in Domoticz without a plugin..
I already have MQTT as hardware device, I use this to communicate with a remote server in my holiday home.
I use domoticz/in and domoticz/out as in- and out-prefixes.
Where do you suggest I put "homeassistent"? Will my other links still work?
Hans
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by Nautilus »

I think the ”hardcore” (or hardcoded maybe, native would be even better I guess) version here refers to the ”autodiscovery” which you mentioned you are already running in parallel with this python plugin? So no, there is no third option (well, there is this: https://github.com/zigbeefordomoticz/Domoticz-Zigbee - but I don’t think this is meant here) available a such…

More info about the alternatives: https://www.domoticz.com/wiki/Zigbee#Zi ... n_Domoticz
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by Derik »

No i mena.
When you have running z2m or i mean als zigbee2mqtt you can import z2m directly in domoticz without plugin:
ScreenShot316.png
ScreenShot316.png (41 KiB) Viewed 1080 times
No other needed....
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by Nautilus »

Yes - but this is the ”autodiscovery” option as can be seen on the hardware name. It is the built-in (native) way to integrate zigbee devices through zigbee2mqtt to Domoticz.
manjh wrote: Monday 02 January 2023 20:02 I have used the python plugin in 2 versions (latest stable and the beta), and also the AutoDiscovery version.
Is this "hardcore version" a different one?
manjh mentions here he has used it already.
JanJaap
Posts: 191
Joined: Thursday 12 October 2017 20:46
Target OS: Raspberry Pi / ODroid
Domoticz version: Dev
Location: the Netherlands
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by JanJaap »

Derik wrote: Sunday 01 January 2023 13:43
manjh wrote: Saturday 31 December 2022 16:44 I see that the author of this plugin has not been active on this forum since September... given the fact that he is located in the Ukrain, I worry about his well being.
Does anyone have information? Is he OK?
This is the problem with 1 developer....
Try the hardcore version in Domoticz. Working great, and all the devices/settings are in your backup etc. [ no other save options needed.. ]
In my experience, the Z2M python plugin works quite well for most devices, like 95% of Z2M project by Koen. I added for example the Tom thermostat in Z2M and needed to add things in Z2M plugin to get it to work. Without Python and plugin knowledge, you're not going to get this to work (and then, the Z2M plugin is one of the most complicated ones I've seen).

As mentioned, the Z2M plugin is a 1 man thing which is always risky, but Stas has been approving PR's on the plugin. I guess he's just not actively maintaining it anymore (has probably other things to worry about).
RPi 3, Domoticz dev version, Aeon ZWave stick (with a whole bunch of slaves), Zigbee using Zigbee2MQTT, Nest thermo, P1 smart meter on RPi Zero
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest