Python Plugin: Zigbee2Mqtt Topic is solved

Python and python framework

Moderator: leecollings

Post Reply
miroslavpetrov
Posts: 33
Joined: Wednesday 03 February 2016 13:35
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by miroslavpetrov »

RoWolf wrote: Wednesday 03 July 2019 13:52 Hello,
I'm new to zigbee2mqtt and got myself a CC2531 USB stick with some aquara stuff.
I used the https://www.domoticz.com/wiki/Zigbee2MQTT manual to install this on my pi

Everything went fine and a paired one device which now shows up in the zigbee2mqtt.service logging

I installed the zigbee2mqtt domoticz plugin, as stated as last step in the manual.
After installing the plugin i added zifbee2mqtt as a hardware device in domoticz, My domoticz started not responding anymore.

I could not access domoticz through the webinterface, although the status stated it was running. Webinterface did hardly load and if it said it was offline.

After manually removing the plugin, i could access domoticz again and remove the hardware also.
Tried this several times, because i was not sure i made the correct settings in the hardware (should i used the ip from the pi, or is localhost/127.0.0.1 also valid?), but i left al default so it should be ok. Still every time domoticz hung.

What could be the reason? Is there a minimal python version necessarry, currently running Python Version: 3.4.2
First make sure that zigbee2mqtt and zigbee2mqtt domoticz plugin are latest version. Also I suggest to update domoticz to the latest stable version(or even latest beta). In Domoticz, when setting up the zigbee2mqtt plugin you can use localhost or 127.0.0.1 for mqtt broker IP(if the broker is on the same Raspberry).
Also before trying the above-written, try deleting the browser cache when trying to reach the webinterface.
If both of these don't work for you, I suggest to enable domoticz logs and check them after a crash. To enable domoticz logs edit the file /etc/init.d/domoticz.sh find the line
#DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt" and remove the # in the begining of the line. This will set domoticz to write the logs to a file called domoticz.txt in the /tmp/ directory. Don't forget to comment the line(put back the #) once you fix your problem because loging to sd card will decrease its lifespan.
Automation Hardware:
Domoticz on Raspberry Pi 3 with HomeBridge.
Zigbee2MQTT + Xiaomi sensors
Fibaro HomeCenter 2 + Fibaro Dimmer2 & Double Switch2 + Aeon Multisensor 6 + Remotec ZXT-120
Eastron SDM230
RoWolf
Posts: 2
Joined: Tuesday 02 July 2019 14:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by RoWolf »

Thanks, i did all what you described and find this in the logs

2019-07-11 16:45:05.588 Error: Zigbee hardware (3) thread seems to have ended unexpectedly
2019-07-11 16:45:19.595 Error: Zigbee hardware (3) thread seems to have ended unexpectedly
2019-07-11 16:45:33.598 Error: Zigbee hardware (3) thread seems to have ended unexpectedly
2019-07-11 16:45:47.601 Error: Zigbee hardware (3) thread seems to have ended unexpectedly
2019-07-11 16:46:01.584 Status: New sensors allowed for 5 minutes...
2019-07-11 16:46:01.604 Error: EventSystem thread seems to have ended unexpectedly (last update 61.000000 seconds ago)
2019-07-11 16:46:01.604 Error: Zigbee hardware (3) thread seems to have ended unexpectedly
2019-07-11 16:46:07.347 Status: New sensors allowed for 5 minutes...
2019-07-11 16:46:15.607 Error: EventSystem thread seems to have ended unexpectedly (last update 75.000000 seconds ago)

Then noticed i did not see zigbee started in domoticz startup log so restarted domoticz again

2019-07-11 16:50:28.128 Status: RFXCOM: Worker started...
2019-07-11 16:50:28.128 Status: (Zigbee) Started.

Now its started, but almost immediately hangs domoticz after 1 or 2 temp logs from rfxcom, no new log entries comming up.

In the meantime i installed Python version 3.6.9 but also without any effect.

Only after deleting the plugin from the plugins folder and removing it from hardware domoticz is running smoothly again.

With sudo journalctl -u zigbee2mqtt.service -f i can see mqtt is receiving from 1 zigbee device i connected.

No clue what to do next.
miroslavpetrov
Posts: 33
Joined: Wednesday 03 February 2016 13:35
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by miroslavpetrov »

Well if your domoticz instance works fine without the plugin I would suggest to open an issue in the github page of the zigbee2mqtt plugin.
Automation Hardware:
Domoticz on Raspberry Pi 3 with HomeBridge.
Zigbee2MQTT + Xiaomi sensors
Fibaro HomeCenter 2 + Fibaro Dimmer2 & Double Switch2 + Aeon Multisensor 6 + Remotec ZXT-120
Eastron SDM230
visuel
Posts: 13
Joined: Sunday 05 March 2017 13:02
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by visuel »

Hi all,

After installing the zigbee2mqtt plugin (version of 2019/8/4) in domoticz (Version: 4.11062), I get the following in my logging:

2019-08-04 18:20:00.507 (VisuelZigbee) Received available devices list from bridge
2019-08-04 18:20:00.507 (VisuelZigbee) Coordinator address is 0x00124b00014d44c9
2019-08-04 18:20:00.508 (VisuelZigbee) Device CC2530.ROUTER 0x00124b001bc74832 (0x00124b001bc74832)
2019-08-04 18:20:00.508 (VisuelZigbee) Device E1603/E1702 0x000d6ffffede73c6 (0x000d6ffffede73c6)
2019-08-04 18:20:02.662 (VisuelZigbee) MQTT message: zigbee2mqtt/0x000d6ffffede73c6 {'state': 'ON', 'linkquality': 131}
2019-08-04 18:20:02.662 (VisuelZigbee) Unsupported zigbee device type with model "E1603/E1702"

In the documentation of the plugin I found that the TRADFRI control outlet is supported: https://github.com/stas-demydiuk/domoti ... /README.md

Is this not the same device as the "E1603/E1702"? :?

Not sure why the device is not suppoted?

Where to look next?

Kind regards,

Victor
rafek
Posts: 7
Joined: Tuesday 24 April 2018 10:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by rafek »

Hello,
first of all what i must say - good job with the plugin :)
Currently i have some temperature, smoke sensor and works fine, but is lack of gas sensor (or i do something wrong).
Is any chance to support Xiaomi Gas Leak sensor/detector with the plugin ?

rafek
hoeby
Posts: 531
Joined: Saturday 02 June 2018 11:05
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.1
Location: Echt, Netherlands
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by hoeby »

rafek wrote: Saturday 17 August 2019 15:46 Xiaomi Gas Leak sensor/detector
Do you know what kind of gas it detects?
I only can find information that it will detect butane/propane/natural gas. But not CO-gas.
Is that right, or do you know which kind of gasses it will detect?
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
StasDemydiuk
Posts: 59
Joined: Saturday 14 January 2017 21:37
Target OS: Linux
Domoticz version: Beta
Location: Ukraine
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by StasDemydiuk »

rafek wrote: Saturday 17 August 2019 15:46 Hello,
first of all what i must say - good job with the plugin :)
Currently i have some temperature, smoke sensor and works fine, but is lack of gas sensor (or i do something wrong).
Is any chance to support Xiaomi Gas Leak sensor/detector with the plugin ?

rafek
There is no problem to add support for gas detector, but the problem is that Domoticz doesn't have such type of internal device. What device would you like to see as gas detector?
rafek
Posts: 7
Joined: Tuesday 24 April 2018 10:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by rafek »

StasDemydiuk wrote: Sunday 18 August 2019 19:58
rafek wrote: Saturday 17 August 2019 15:46 Hello,
first of all what i must say - good job with the plugin :)
Currently i have some temperature, smoke sensor and works fine, but is lack of gas sensor (or i do something wrong).
Is any chance to support Xiaomi Gas Leak sensor/detector with the plugin ?

rafek
There is no problem to add support for gas detector, but the problem is that Domoticz doesn't have such type of internal device. What device would you like to see as gas detector?
I think gas detector should be similar to smoke detector, perhaps i wrong ? maybe someone have own thoughts/proposition ?
rafek
Posts: 7
Joined: Tuesday 24 April 2018 10:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by rafek »

hoeby wrote: Sunday 18 August 2019 18:24
rafek wrote: Saturday 17 August 2019 15:46 Xiaomi Gas Leak sensor/detector
Do you know what kind of gas it detects?
I only can find information that it will detect butane/propane/natural gas. But not CO-gas.
Is that right, or do you know which kind of gasses it will detect?
I don't now what kind of gas it detects, some information i found in this manual https://files.xiaomi-mi.com/files/New-m ... tor-EN.pdf
hoeby
Posts: 531
Joined: Saturday 02 June 2018 11:05
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.1
Location: Echt, Netherlands
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by hoeby »

rafek wrote: Sunday 18 August 2019 21:22 I don't now what kind of gas it detects
Thanks,
The manual says only natural gas (methane).
No CO, than i need to look futher
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
Tjalling94
Posts: 4
Joined: Sunday 25 August 2019 14:54
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by Tjalling94 »

Hi guys! Working with the plugin for some months, without problems. Yesterday I bought a IKEA TRADFRI LED bulb E12/E14 600 lumen, dimmable, white spectrum, opal white. This one is in Zigbee2mqtt, but not in this plugin. So I added it in devices/__init__.py and restarted domoticz:

Code: Select all

    'LED1536G5': DimmableCtBulbAdapter, # IKEA TRADFRI LED bulb E12/E14 400 lumen, dimmable, white spectrum, opal white
    'LED1733G7': DimmableCtBulbAdapter, # IKEA TRADFRI LED bulb E12/E14 600 lumen, dimmable, white spectrum, opal white
I receive the lights from zigbee2mqtt

Code: Select all

2019-08-25 14:12:31.362 (Zigbee2MQTT) Device RTCGQ11LM 0x00158d00036cac47 (0x00158d00036cac47)
2019-08-25 14:12:31.363 (Zigbee2MQTT) Device LED1733G7 0x086bd7fffe2e7b63 (0x086bd7fffe2e7b63)
2019-08-25 14:12:31.363 (Zigbee2MQTT) Device LED1733G7 0x086bd7fffe2d296f (0x086bd7fffe2d296f)
But the last two devices are not added to the devices. I already removed them from zigbee2mqtt configuration and rejoined, but didn't work. How can I debug and fix this further?
shenkie
Posts: 2
Joined: Wednesday 12 December 2018 22:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by shenkie »

I had the exact same problem, but with the Ikea plug instead of the lights. To fix mine I did the following:

- Updated the zigbee2mqtt plugin since I apparantly had an older version
- Restarted the Domoticz system
- Removed the device from Zigbee2MQTT through Node-Red. To do this you have to push the friendly name to the following topic:
zigbee2mqtt/bridge/config/remove

So in your case, push a payload with "0x086bd7fffe2e7b63" to zigbee2mqtt/bridge/config/remove topic

- I then factory resetted the plugs and reconnected them to Zigbee2MQTT.
- Updated the plugin inside Domoticz
- The plugs now appeared under "devices"
Tjalling94 wrote: Sunday 25 August 2019 15:01 Hi guys! Working with the plugin for some months, without problems. Yesterday I bought a IKEA TRADFRI LED bulb E12/E14 600 lumen, dimmable, white spectrum, opal white. This one is in Zigbee2mqtt, but not in this plugin. So I added it in devices/__init__.py and restarted domoticz:

Code: Select all

    'LED1536G5': DimmableCtBulbAdapter, # IKEA TRADFRI LED bulb E12/E14 400 lumen, dimmable, white spectrum, opal white
    'LED1733G7': DimmableCtBulbAdapter, # IKEA TRADFRI LED bulb E12/E14 600 lumen, dimmable, white spectrum, opal white
I receive the lights from zigbee2mqtt

Code: Select all

2019-08-25 14:12:31.362 (Zigbee2MQTT) Device RTCGQ11LM 0x00158d00036cac47 (0x00158d00036cac47)
2019-08-25 14:12:31.363 (Zigbee2MQTT) Device LED1733G7 0x086bd7fffe2e7b63 (0x086bd7fffe2e7b63)
2019-08-25 14:12:31.363 (Zigbee2MQTT) Device LED1733G7 0x086bd7fffe2d296f (0x086bd7fffe2d296f)
But the last two devices are not added to the devices. I already removed them from zigbee2mqtt configuration and rejoined, but didn't work. How can I debug and fix this further?
Tjalling94
Posts: 4
Joined: Sunday 25 August 2019 14:54
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by Tjalling94 »

That didn't solve my problem. I ended up with adding custom logging to the scripts and figured out that I entered the wrong device type (one letter). However, thanks for your help!
iganin
Posts: 47
Joined: Tuesday 28 October 2014 17:55
Target OS: NAS (Synology & others)
Domoticz version: 2020.2
Location: Aalter, Belgium
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by iganin »

The plugins is constantly cloning devices by trying to create new ones with the same ID
Image
Image

Any idea on how to stop it?
Attachments
Screenshot 2019-09-09 at 22.41.27.png
Screenshot 2019-09-09 at 22.41.27.png (70.64 KiB) Viewed 3736 times
Screenshot 2019-09-09 at 22.43.08.png
Screenshot 2019-09-09 at 22.43.08.png (129.11 KiB) Viewed 3736 times
fvdp80
Posts: 70
Joined: Tuesday 14 August 2018 8:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10303
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by fvdp80 »

I have a dimmer which is recognised by Zigbee2Mqtt, but isn't recognised by this plugin.
So can somebody please provide a step by step instruction on how to add an unsupported device?
snellejellep
Posts: 241
Joined: Tuesday 16 May 2017 13:05
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Neterlands
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by snellejellep »

i have a gira 2430-100 switch paired to my zigbee2mqtt but have the following issue:
the switch is recognised by zigbee2mqtt and i see it being imported into domoticz in the log but it does not create any new devices in domoticz.
am i doing something wrong or is it not yet supported in the plugin?
if not, when will it be? i would love to use these with domoticz.
raspberry pi | xiaomi vacuum | yeelight | philips hue | zwave | ubiquiti unifi | harmony | sonoff | zigbee2mqtt | https://www.youtube.com/channel/UC2Zidl ... m1OLuNldfQ
josemi
Posts: 31
Joined: Thursday 08 March 2018 16:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by josemi »

Hi
I have just added 3 aqara temp sensors, and they are created and shown ok in domoticz devices, but all the devices from 1 sensor are not updated. If I press button to force sending new data via zigbee, they are not sent.

Image

If I connect this device to Xiaomi Gateway, it reports fine all the values.
In debug logging there is no info from this device when I press the button.
What could I do?
Thank you
josemi
Posts: 31
Joined: Thursday 08 March 2018 16:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by josemi »

watching MQTT explorer, I press the physical button of a sensor to force sending new data, it works for Z_T_SALON sensor but not for Z_T_DAVID sensor, but both show online state:

Image

I am a bit desperate.

in database.db, id=31 is the device not getting info, it has different sintaxis than others (30,29):

root@domoticz:/opt/zigbee2mqtt/data# cat database.db | grep 0x00158d00044a
{"id":31,"type":"EndDevice","ieeeAddr":"0x00158d00044a1797","nwkAddr":1030,"manufId":4151,"modelId":"lumi.weather","epList":[1],"status":"offline","joinTime":null,"endpoints":{"1":{"profId":260,"epId":1,"devId":24321,"inClusterList":[0,3,65535,1026,1027,1029],"outClusterList":[0,4,65535],"clusters":{"genBasic":{"dir":{"value":3},"attrs":{}},"genIdentify":{"dir":{"value":1},"attrs":{}},"genGroups":{"dir":{"value":2},"attrs":{}},"msTemperatureMeasurement":{"dir":{"value":1},"attrs":{}},"msPressureMeasurement":{"dir":{"value":1},"attrs":{}},"msRelativeHumidity":{"dir":{"value":1},"attrs":{}},"manuSpecificCluster":{"dir":{"value":3},"attrs":{}}}}},"_id":"ahy43k5KdO2EWo"}
{"id":30,"type":"EndDevice","ieeeAddr":"0x00158d00044a1867","nwkAddr":42418,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.weather","epList":[1],"zclVersion":1,"appVersion":3,"stackVersion":2,"hwVersion":30,"swBuildId":"3000-0001","status":"offline","joinTime":null,"endpoints":{"1":{"profId":260,"epId":1,"devId":24321,"inClusterList":[0,3,65535,1026,1027,1029],"outClusterList":[0,4,65535],"clusters":{"genBasic":{"dir":{"value":3},"attrs":{}},"genIdentify":{"dir":{"value":1},"attrs":{}},"genGroups":{"dir":{"value":2},"attrs":{}},"msTemperatureMeasurement":{"dir":{"value":1},"attrs":{}},"msPressureMeasurement":{"dir":{"value":1},"attrs":{}},"msRelativeHumidity":{"dir":{"value":1},"attrs":{}},"manuSpecificCluster":{"dir":{"value":3},"attrs":{}}}}},"dateCode":"20161129","_id":"wOkDEL336C78jW"}
{"id":29,"type":"EndDevice","ieeeAddr":"0x00158d00044a185d","nwkAddr":45128,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.weather","epList":[1],"zclVersion":1,"appVersion":3,"stackVersion":2,"hwVersion":30,"swBuildId":"3000-0001","status":"offline","joinTime":null,"endpoints":{"1":{"profId":260,"epId":1,"devId":24321,"inClusterList":[0,3,65535,1026,1027,1029],"outClusterList":[0,4,65535],"clusters":{"genBasic":{"dir":{"value":3},"attrs":{}},"genIdentify":{"dir":{"value":1},"attrs":{}},"genGroups":{"dir":{"value":2},"attrs":{}},"msTemperatureMeasurement":{"dir":{"value":1},"attrs":{}},"msPressureMeasurement":{"dir":{"value":1},"attrs":{}},"msRelativeHumidity":{"dir":{"value":1},"attrs":{}},"manuSpecificCluster":{"dir":{"value":3},"attrs":{}}}}},"dateCode":"20161129","_id":"khPdfd4VMDELGd"}
josemi
Posts: 31
Joined: Thursday 08 March 2018 16:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by josemi »

Hi
I have fixed after removing device from zigbee2mqtt bridge mosquitto_pub and the payload of the device.
Dim33
Posts: 11
Joined: Monday 05 March 2018 22:54
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin: Zigbee2Mqtt

Post by Dim33 »

Hello,

I have a temperature sensor (Xiaomi WSDCGQ01LM) paired to my zigbee2mqtt but have the following issue:
The sensor is recognised by zigbee2mqtt and i see it being imported into domoticz in the log but it does not create any new devices in domoticz.
This sensor is supported by zigbee2mqtt.

What's the problem ?

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest