Page 5 of 18

Re: Python Plugin: Zigbee2Mqtt

Posted: Tuesday 09 July 2019 7:14
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.

Re: Python Plugin: Zigbee2Mqtt

Posted: Thursday 11 July 2019 16:58
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.

Re: Python Plugin: Zigbee2Mqtt

Posted: Monday 22 July 2019 6:05
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.

Re: Python Plugin: Zigbee2Mqtt

Posted: Sunday 04 August 2019 18:37
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

Re: Python Plugin: Zigbee2Mqtt

Posted: Saturday 17 August 2019 15:46
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

Re: Python Plugin: Zigbee2Mqtt

Posted: Sunday 18 August 2019 18:24
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?

Re: Python Plugin: Zigbee2Mqtt

Posted: Sunday 18 August 2019 19:58
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?

Re: Python Plugin: Zigbee2Mqtt

Posted: Sunday 18 August 2019 21:17
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 ?

Re: Python Plugin: Zigbee2Mqtt

Posted: Sunday 18 August 2019 21:22
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

Re: Python Plugin: Zigbee2Mqtt

Posted: Sunday 18 August 2019 22:05
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

Re: Python Plugin: Zigbee2Mqtt

Posted: Sunday 25 August 2019 15:01
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?

Re: Python Plugin: Zigbee2Mqtt

Posted: Thursday 29 August 2019 23:19
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?

Re: Python Plugin: Zigbee2Mqtt

Posted: Sunday 01 September 2019 16:30
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!

Re: Python Plugin: Zigbee2Mqtt

Posted: Wednesday 11 September 2019 10:17
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?

Re: Python Plugin: Zigbee2Mqtt

Posted: Monday 16 September 2019 8:52
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?

Re: Python Plugin: Zigbee2Mqtt

Posted: Thursday 19 September 2019 16:50
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.

Re: Python Plugin: Zigbee2Mqtt

Posted: Wednesday 02 October 2019 19:33
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

Re: Python Plugin: Zigbee2Mqtt

Posted: Wednesday 02 October 2019 22:08
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"}

Re: Python Plugin: Zigbee2Mqtt

Posted: Friday 04 October 2019 5:32
by josemi
Hi
I have fixed after removing device from zigbee2mqtt bridge mosquitto_pub and the payload of the device.

Re: Python Plugin: Zigbee2Mqtt

Posted: Wednesday 09 October 2019 21:35
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.