Python Plugin: Zigbee2Mqtt Topic is solved
Moderator: leecollings
-
- Posts: 170
- Joined: Monday 22 January 2018 21:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: Zigbee2Mqtt
Group support has been added to Zigbee2MQTT in january I think. Right now if I make a group, changing the state in Domoticz of one device of that group is not changing the whole group. Could this be supported by the Domoticz plugin also?
Domoticz beta, on Raspberry Pi 3B, Raspian Buster
Zwave, Zigate, RFlink etc.
Zwave, Zigate, RFlink etc.
-
- Posts: 4
- Joined: Wednesday 15 January 2020 12:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: Poland
- Contact:
Re: Python Plugin: Zigbee2Mqtt
Hi,
I wanted to add a TUYA Temperature & Humidity Zigbee Sensor via Plugin to Domoticz, but I become an information in logs, that that's is an unsupported device. It's called in dokumentation of zigbee2mqtt TT001ZAV20. It's almost the same sensor like supported Xiaomi temperature & humidity zigbee sensor WSDCGQ01LM.
Could anybody please help me & tell if is there any possible way to successfull pair it with Domoticz somehow?
I wanted to add a TUYA Temperature & Humidity Zigbee Sensor via Plugin to Domoticz, but I become an information in logs, that that's is an unsupported device. It's called in dokumentation of zigbee2mqtt TT001ZAV20. It's almost the same sensor like supported Xiaomi temperature & humidity zigbee sensor WSDCGQ01LM.
Could anybody please help me & tell if is there any possible way to successfull pair it with Domoticz somehow?
Code: Select all
020-01-05 19:22:28.208 (zigbee2mqtt) MqttClient::ping
2020-01-05 19:22:29.461 (zigbee2mqtt) MQTT message: zigbee2mqtt/bridge/log {'type': 'device_connected', 'message': {'friendly_name': '0x086bd7fffef3b24a'}}
2020-01-05 19:22:29.461 (zigbee2mqtt) MqttClient::publish zigbee2mqtt/bridge/config/devices ()
2020-01-05 19:22:29.461 (zigbee2mqtt) MQTT message: zigbee2mqtt/bridge/log {'type': 'pairing', 'message': 'interview_started', 'meta': {'friendly_name': '0x086bd7fffef3b24a'}}
2020-01-05 19:22:29.512 (zigbee2mqtt) MQTT message: zigbee2mqtt/bridge/config/devices
2020-01-05 19:22:29.512 (zigbee2mqtt) MQTT message: zigbee2mqtt/bridge/log {'type': 'devices', 'message': [{'ieeeAddr': '0x00124b0014b943ff', 'type': 'Coordinator', 'networkAddress': 0, 'friendly_name': 'Coordinator', 'softwareBuildID': 'zStack12', 'dateCode': '20180815', 'lastSeen': 1578248549464}, {'ieeeAddr': '0x086bd7fffef3b24a', 'networkAddress': 44684, 'friendly_name': '0x086bd7fffef3b24a', 'lastSeen': 1578248549439}]}
2020-01-05 19:22:29.512 (zigbee2mqtt) Received available devices list from bridge
2020-01-05 19:22:29.512 (zigbee2mqtt) Coordinator address is 0x00124b0014b943ff
2020-01-05 19:22:29.512 (zigbee2mqtt) Device 0x086bd7fffef3b24a (0x086bd7fffef3b24a) doesn't have "model" attribute, skipped
2020-01-05 19:22:31.417 (zigbee2mqtt) [MQTT message: zigbee2mqtt/0x086bd7fffef3b24a {'battery': 100, 'voltage': 3000, 'linkquality': 34, 'temperature': 22.34, 'humidity': 54.28}
2020-01-05 19:22:31.417 (zigbee2mqtt) Unhandled message from zigbee2mqtt: zigbee2mqtt/0x086bd7fffef3b24a {'battery': 100, 'voltage': 3000, 'linkquality': 34, 'temperature': 22.34, 'humidity': 54.28}
-
- Posts: 229
- Joined: Wednesday 30 April 2014 20:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: The Netherlands
- Contact:
Re: Python Plugin: Zigbee2Mqtt
Hi,
After some effort I thought that the zigbee2mqtt bridge was running. But I cannot pair my first device (Ikea bulb). The log indicates that the bulb is being paired.
But the bulb does not appear in the devices list of domoticz. What am I doing wrong?
Thanks in advance!
(issue solved, works great!)
After some effort I thought that the zigbee2mqtt bridge was running. But I cannot pair my first device (Ikea bulb). The log indicates that the bulb is being paired.
Code: Select all
[size=85]2020-01-21 15:14:37.474 (Zigbee2MQTT interface) MqttClient::ping
2020-01-21 15:14:47.505 (Zigbee2MQTT interface) MqttClient::ping
2020-01-21 15:14:49.097 Status: New sensors allowed for 5 minutes...
2020-01-21 15:14:57.489 (Zigbee2MQTT interface) MqttClient::ping
2020-01-21 15:15:07.526 (Zigbee2MQTT interface) MqttClient::ping
2020-01-21 15:15:14.549 (Zigbee2MQTT interface) MQTT message: zigbee2mqtt/bridge/log {'type': 'device_removed', 'message': 'left_network', 'meta': {'friendly_name': '0xec1bbdfffed0adf8'}}
2020-01-21 15:15:14.549 (Zigbee2MQTT interface) MqttClient::publish zigbee2mqtt/bridge/config/devices ()
2020-01-21 15:15:14.553 (Zigbee2MQTT interface) MQTT message: zigbee2mqtt/bridge/config/devices
2020-01-21 15:15:14.605 (Zigbee2MQTT interface) MQTT message: zigbee2mqtt/bridge/log {'type': 'devices', 'message': [{'ieeeAddr': '0x00124b0001537370', 'type': 'Coordinator', 'networkAddress': 0, 'friendly_name': 'Coordinator', 'softwareBuildID': 'zStack12', 'dateCode': '20190608', 'lastSeen': 1579616114564}]}
2020-01-21 15:15:14.606 (Zigbee2MQTT interface) Received available devices list from bridge
2020-01-21 15:15:14.606 (Zigbee2MQTT interface) Coordinator address is 0x00124b0001537370
2020-01-21 15:15:17.515 (Zigbee2MQTT interface) MqttClient::ping
2020-01-21 15:15:25.948 (Zigbee2MQTT interface) MQTT message: zigbee2mqtt/bridge/log {'type': 'device_connected', 'message': {'friendly_name': '0xec1bbdfffed0adf8'}}
2020-01-21 15:15:25.948 (Zigbee2MQTT interface) MqttClient::publish zigbee2mqtt/bridge/config/devices ()
2020-01-21 15:15:25.949 (Zigbee2MQTT interface) MQTT message: zigbee2mqtt/bridge/log {'type': 'pairing', 'message': 'interview_started', 'meta': {'friendly_name': '0xec1bbdfffed0adf8'}}
2020-01-21 15:15:25.957 (Zigbee2MQTT interface) MQTT message: zigbee2mqtt/bridge/config/devices
2020-01-21 15:15:26.009 (Zigbee2MQTT interface) MQTT message: zigbee2mqtt/bridge/log {'type': 'devices', 'message': [{'ieeeAddr': '0x00124b0001537370', 'type': 'Coordinator', 'networkAddress': 0, 'friendly_name': 'Coordinator', 'softwareBuildID': 'zStack12', 'dateCode': '20190608', 'lastSeen': 1579616125960}, {'ieeeAddr': '0xec1bbdfffed0adf8', 'networkAddress': 6195, 'friendly_name': '0xec1bbdfffed0adf8', 'lastSeen': 1579616125882}]}
2020-01-21 15:15:26.010 (Zigbee2MQTT interface) Received available devices list from bridge
2020-01-21 15:15:26.010 (Zigbee2MQTT interface) Coordinator address is 0x00124b0001537370
2020-01-21 15:15:26.010 (Zigbee2MQTT interface) Device 0xec1bbdfffed0adf8 (0xec1bbdfffed0adf8) doesn't have "model" attribute, skipped
2020-01-21 15:15:27.515 (Zigbee2MQTT interface) MqttClient::ping
2020-01-21 15:15:36.806 (Zigbee2MQTT interface) MQTT message: zigbee2mqtt/bridge/log {'type': 'pairing', 'message': 'interview_successful', 'meta': {'friendly_name': '0xec1bbdfffed0adf8', 'model': 'LED1836G9', 'vendor': 'IKEA', 'description': 'TRADFRI LED bulb E26/E27 806 lumen, dimmable, warm white', 'supported': True}}
2020-01-21 15:15:37.509 (Zigbee2MQTT interface) MqttClient::ping
2020-01-21 15:15:47.489 (Zigbee2MQTT interface) MqttClient::ping[/size]
Thanks in advance!
(issue solved, works great!)
Last edited by Jan Jansen on Thursday 30 January 2020 14:05, edited 1 time in total.
-
- Posts: 82
- Joined: Monday 01 December 2014 13:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: London, UK
- Contact:
Re: Python Plugin: Zigbee2Mqtt
Hi
I've got this plugin installed and working just great on my Domoticz R-Pi. My problem is that this Pi is down the bottom of the garden and the Zigbee network doesn't reach the house.
I'd like to setup a 2nd Zigbee network on another R-Pi to cover the main house.
How do I configure this to work with both zigbee2mqtt instances? Do I just make sure they both use the same topic and point to the same MQTT broker?
I've got this plugin installed and working just great on my Domoticz R-Pi. My problem is that this Pi is down the bottom of the garden and the Zigbee network doesn't reach the house.
I'd like to setup a 2nd Zigbee network on another R-Pi to cover the main house.
How do I configure this to work with both zigbee2mqtt instances? Do I just make sure they both use the same topic and point to the same MQTT broker?
-
- Posts: 59
- Joined: Saturday 14 January 2017 21:37
- Target OS: Linux
- Domoticz version: Beta
- Location: Ukraine
- Contact:
Re: Python Plugin: Zigbee2Mqtt
I'd recommend to use 2 different MQTT topics and create 2 instances of plugin in Domoticz (on Hardware page)
-
- Posts: 82
- Joined: Monday 01 December 2014 13:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: London, UK
- Contact:
Re: Python Plugin: Zigbee2Mqtt
Perfect - thank you!StasDemydiuk wrote: ↑Wednesday 29 January 2020 21:26 I'd recommend to use 2 different MQTT topics and create 2 instances of plugin in Domoticz (on Hardware page)
-
- Posts: 742
- Joined: Saturday 30 May 2015 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Re: Python Plugin: Zigbee2Mqtt
Another recommendation is to add a zigbee device in the middle of your garden, any device that is permanently powered, like a light bulb. Since zigbee creates a mesh network, it will extend the signals from the house to your pi.doh wrote:Perfect - thank you!StasDemydiuk wrote: ↑Wednesday 29 January 2020 21:26 I'd recommend to use 2 different MQTT topics and create 2 instances of plugin in Domoticz (on Hardware page)
-
- Posts: 82
- Joined: Monday 01 December 2014 13:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: London, UK
- Contact:
Re: Python Plugin: Zigbee2Mqtt
Hi
Loving Zigbee2MQTT, but having a problem with one specific bulb.
The bulb is an Ikea dimmable colour and white, and setup in __init__.py as:
Everything is working fine for this bulb - I can turn it on, off, change to different colours, etc.
But, I have Alexa controlling Domoticz (via Controlicz). Again, I can control the bulb just fine, but if I try to change it to any shade of white, nothing happens.
Here's the output from the Domoticz log when I say "Alexa, change <light> to white:
And this is what I get from the zigbee2mqtt log file:
I'm not quite sure where the problem lies. It looks like Alexa/Controlicz is trying to set the device to white, but is this being interpreted correctly by the plugin? Should I be using an adapter other than RGBAdapter for this bulb? (I've also tried the RGBWAdapter, but no difference).
Any idea how to resolve this?
Thanks
Loving Zigbee2MQTT, but having a problem with one specific bulb.
The bulb is an Ikea dimmable colour and white, and setup in __init__.py as:
Code: Select all
'LED1624G9': RGBAdapter, # IKEA TRADFRI LED bulb E27 600 lumen, dimmable, color, opal white
But, I have Alexa controlling Domoticz (via Controlicz). Again, I can control the bulb just fine, but if I try to change it to any shade of white, nothing happens.
Here's the output from the Domoticz log when I say "Alexa, change <light> to white:
Code: Select all
2020-02-05 14:21:08.706 Status: setkelvinlevel: t: 100.000000, color: '{m: 2, RGB: 000000, CWWW: 00ff, CT: 255}'
Code: Select all
info 2020-02-05 14:24:41: MQTT publish: topic 'zigbee2mqtt/Snug_Lamp', payload '{"state":"ON","brightness":255,"color":{"x":0.4442,"y":0.5166}}'
error 2020-02-05 14:24:41: No converter available for 'color_temp' (500)
Any idea how to resolve this?
Thanks
- Hesitated
- Posts: 42
- Joined: Monday 04 June 2018 21:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V4.11665
- Location: Ede
- Contact:
Re: Python Plugin: Zigbee2Mqtt
I'm using several Aqara switches and two motionsensors.
Now i would like to add a third motionsensor, but although i've enabled "Accept new Hardware Devices" no device is added.
Instead i get the message:
Now i would like to add a third motionsensor, but although i've enabled "Accept new Hardware Devices" no device is added.
Instead i get the message:
Am i missing something?2020-04-04 18:50:28.076 (Zigbee2MQTT) MQTT message: zigbee2mqtt/MotionSensor3 {'illuminance': 29, 'voltage': 3025, 'illuminance_lux': 29, 'occupancy': False, 'linkquality': 0, 'battery': 100}
2020-04-04 18:50:28.076 (Zigbee2MQTT) Unhandled message from zigbee2mqtt: zigbee2mqtt/MotionSensor3 {'illuminance': 29, 'voltage': 3025, 'illuminance_lux': 29, 'occupancy': False, 'linkquality': 0, 'battery': 100}
2020-04-04 18:50:28.127 (Zigbee2MQTT) MQTT message: zigbee2mqtt/MotionSensor3 {'illuminance': 29, 'voltage': 3025, 'illuminance_lux': 29, 'occupancy': True, 'linkquality': 0, 'battery': 100}
2020-04-04 18:50:28.127 (Zigbee2MQTT) Unhandled message from zigbee2mqtt: zigbee2mqtt/MotionSensor3 {'illuminance': 29, 'voltage': 3025, 'illuminance_lux': 29, 'occupancy': True, 'linkquality': 0, 'battery': 100}
Domoticz 2020.2 - RPi3B+ - RFXtrx433XL - P1 - CC2531 - Somfy - Xiaomi - Hue - Omron - MQTT
-
- Posts: 70
- Joined: Monday 14 December 2015 22:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Mierlo
- Contact:
Re: Python Plugin: Zigbee2Mqtt
Hi,
Thanks for the nice plugin, using it for a while now without any issues.
Until today,
I bought a Ikea Blind, which works flawless in domoticz with zigbee2mqtt and your plugin.
With the blind came a remote for Up/Down, i paired it and it shows up, now i need to connect the actions to the blind actions.
But when i click the UP or Down button (even with no acctions configured) i get an error in my log :
Maybe something wrong in one of the module's ?
Regard
Peer
Thanks for the nice plugin, using it for a while now without any issues.
Until today,
I bought a Ikea Blind, which works flawless in domoticz with zigbee2mqtt and your plugin.
With the blind came a remote for Up/Down, i paired it and it shows up, now i need to connect the actions to the blind actions.
But when i click the UP or Down button (even with no acctions configured) i get an error in my log :
Code: Select all
2020-05-02 08:26:41.015 [72cfa220] Status: User: Admin initiated a switch command (1165/Rol Gordijn Bediening/Set Level)
2020-05-02 08:26:41.101 [74afe220] Error: (Zigbee2MQTT) 'onCommand' failed 'NameError':'name 'json' is not defined'.
2020-05-02 08:26:41.102 [74afe220] Error: (Zigbee2MQTT) ----> Line 231 in '/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py', function onCommand
2020-05-02 08:26:41.102 [74afe220] Error: (Zigbee2MQTT) ----> Line 79 in '/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py', function onCommand
2020-05-02 08:26:41.102 [74afe220] Error: (Zigbee2MQTT) ----> Line 80 in '/home/pi/domoticz/plugins/zigbee2mqtt/devices_manager.py', function handle_command
2020-05-02 08:26:41.102 [74afe220] Error: (Zigbee2MQTT) ----> Line 24 in '/home/pi/domoticz/plugins/zigbee2mqtt/adapters/ikea/tradfri_remote_close_open.py', function handleCommand
Regard
Peer
-
- 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
I had the same problems, only different error lines because the use of a different device.
My solution was to update zigbee2mqtt, i was not running the last version. Do you run the last version?
I mean the last version of zigbee2mqtt , not the last domoticz version
If you are running the last version. Go to the /opt directory on your pi. There is somewhere a zigbee2mqtt directory in the /opt directory. In there, there is a zigbee2mqtt logfile. This logfile can give more information what the problem is. In my case it said that the command was not recogniced. The update made the solution
My solution was to update zigbee2mqtt, i was not running the last version. Do you run the last version?
I mean the last version of zigbee2mqtt , not the last domoticz version
If you are running the last version. Go to the /opt directory on your pi. There is somewhere a zigbee2mqtt directory in the /opt directory. In there, there is a zigbee2mqtt logfile. This logfile can give more information what the problem is. In my case it said that the command was not recogniced. The update made the solution
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
-
- Posts: 70
- Joined: Monday 14 December 2015 22:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Mierlo
- Contact:
Re: Python Plugin: Zigbee2Mqtt
Hi hoeby,
Thanks for the answer.
I am running the latest version of the plugin, and the latest version of zigbee2mqtt.
And a domotcz version compiled 30-4
The errors are coming from the plugin and not from zigbee2mqtt it self (no entry's of errors in the zigbee2mqtt logs)
regards
Peer
Thanks for the answer.
I am running the latest version of the plugin, and the latest version of zigbee2mqtt.
And a domotcz version compiled 30-4
The errors are coming from the plugin and not from zigbee2mqtt it self (no entry's of errors in the zigbee2mqtt logs)
regards
Peer
-
- 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
Could you activate the button.
Then go to this directory "/opt/zigbee2mqtt/data/log"
Open logfile in the last directory, you should see you activate button. Copy those lines and post them here.
Copy the first +/- 10 lines of this logfile, where you could see the starting of zigbee and post those here.
Also give an exact type information about your remote.
On 5-feb this year there was a bug fix for the Ikea E1743 switch.
#2772 Fix E1743 IKEA TRADFRI ON/OFF switch controlling other devices
Then go to this directory "/opt/zigbee2mqtt/data/log"
Open logfile in the last directory, you should see you activate button. Copy those lines and post them here.
Copy the first +/- 10 lines of this logfile, where you could see the starting of zigbee and post those here.
Also give an exact type information about your remote.
On 5-feb this year there was a bug fix for the Ikea E1743 switch.
#2772 Fix E1743 IKEA TRADFRI ON/OFF switch controlling other devices
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
-
- Posts: 70
- Joined: Monday 14 December 2015 22:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Mierlo
- Contact:
Re: Python Plugin: Zigbee2Mqtt
Hi,
Here are the +/- the first ten lines of the log :
Unfortunately i dont get any messages in the log after operating the switch.
I removed the switch from zigbee2mqtt, and did the pairing again.
The switch did reappear, but still no messages in the log after operating it.
This is my remote :
Rgeards
Peer
Here are the +/- the first ten lines of the log :
Code: Select all
info 2020-05-02 10:23:07: Logging to console and directory: '/opt/zigbee2mqtt/data/log/2020-05-02.10-23-07' filename: log.txt
info 2020-05-02 10:23:09: Starting zigbee2mqtt version 1.13.0 (commit #55e6283)
info 2020-05-02 10:23:09: Starting zigbee-herdsman...
info 2020-05-02 10:23:13: zigbee-herdsman started
info 2020-05-02 10:23:13: Coordinator firmware version: '{"type":"zStack12","meta":{"transportrev":2,"product":0,"majorrel":2,"minorrel":6,"maintrel":3,"revision":20190608}}'
info 2020-05-02 10:23:13: Currently 15 devices are joined:
info 2020-05-02 10:23:13: Toilet Lamp (0x000b3cfffef2b365): LED1623G12 - IKEA TRADFRI LED bulb E27 1000 lumen, dimmable, opal white (Router)
info 2020-05-02 10:23:13: Kamer achter 01 (0xccccccfffe331b29): LED1837R5 - IKEA TRADFRI LED bulb GU10 400 lumen, dimmable (Router)
info 2020-05-02 10:23:13: Kamer achter 02 (0x14b457fffe548b92): LED1837R5 - IKEA TRADFRI LED bulb GU10 400 lumen, dimmable (Router)
info 2020-05-02 10:23:13: Kamer voor 01 (0xccccccfffe4c88b2): LED1837R5 - IKEA TRADFRI LED bulb GU10 400 lumen, dimmable (Router)
info 2020-05-02 10:23:13: Kamer voor 02 (0xccccccfffe3eef6c): LED1837R5 - IKEA TRADFRI LED bulb GU10 400 lumen, dimmable (Router)
info 2020-05-02 10:23:13: Kamer voor 03 (0xccccccfffe3eeccf): LED1837R5 - IKEA TRADFRI LED bulb GU10 400 lumen, dimmable (Router)
info 2020-05-02 10:23:13: Gledopto No 1 (0x00124b001d43e264): GL-C-008 - Gledopto Zigbee LED controller RGB + CCT (Router)
info 2020-05-02 10:23:13: Poort Lamp (0x000b3cfffef2aedc): LED1623G12 - IKEA TRADFRI LED bulb E27 1000 lumen, dimmable, opal white (Router)
info 2020-05-02 10:23:13: Keuken Blok (0x00124b001ee8d574): GL-C-006 - Gledopto Zigbee LED controller WW/CW (Router)
info 2020-05-02 10:23:13: Kamer PIR 01 (0xd0cf5efffeffa80b): E1525/E1745 - IKEA TRADFRI motion sensor (EndDevice)
info 2020-05-02 10:23:13: Lux Sensor 01 (0x04cf8cdf3c772525): GZCGQ01LM - Xiaomi MiJia light intensity sensor (EndDevice)
info 2020-05-02 10:23:13: Kamer Temperatuur (0x00158d0004210781): WSDCGQ11LM - Xiaomi Aqara temperature, humidity and pressure sensor (EndDevice)
info 2020-05-02 10:23:13: Signal Repeater Buiten (0x680ae2fffe372c77): E1746 - IKEA TRADFRI signal repeater (Router)
info 2020-05-02 10:23:13: Rol Gordijn Overkapping (0x680ae2fffe3f15f2): E1926 - IKEA KADRILJ roller blind (EndDevice)
info 2020-05-02 10:23:13: Rol Gordijn Bediening (0x680ae2fffe785feb): E1766 - IKEA TRADFRI open/close remote (EndDevice)
warn 2020-05-02 10:23:13: `permit_join` set to `true` in configuration.yaml.
warn 2020-05-02 10:23:13: Allowing new devices to join.
warn 2020-05-02 10:23:13: Set `permit_join` to `false` once you joined all devices.
info 2020-05-02 10:23:13: Zigbee: allowing new devices to join.
I removed the switch from zigbee2mqtt, and did the pairing again.
The switch did reappear, but still no messages in the log after operating it.
This is my remote :
Code: Select all
Rol Gordijn Bediening (0x680ae2fffe785feb): E1766 - IKEA TRADFRI open/close remote (EndDevice)
Peer
-
- 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
When searching for it, when you pushes the button it gives a json.dumps command back
This is what it returns in the code, when you push the button.
But it looks like it is missing the "import json…." row in the code. But this is going to deep in zigbee2mqtt that i must stop here.
This is the complete zigbee2mqtt code for E1766 file (tradfri_remote_close_open.py) in zigbee2mqtt V1.13
Trigger 'E1766': TradfriRemoteCloseOpen, # IKEA TRADFRI open close remote
This is what it returns in the code, when you push the button.
But it looks like it is missing the "import json…." row in the code. But this is going to deep in zigbee2mqtt that i must stop here.
Code: Select all
return {
'topic': device_data['friendly_name'] + '/set',
'payload': json.dumps({
"state": command.upper()
})
}
Trigger 'E1766': TradfriRemoteCloseOpen, # IKEA TRADFRI open close remote
Code: Select all
from adapters.adapter_with_battery import AdapterWithBattery
from devices.switch.selector_switch import SelectorSwitch
import Domoticz
class TradfriRemoteCloseOpen(AdapterWithBattery):
def __init__(self, devices):
super().__init__(devices)
self.switch = SelectorSwitch(devices, 'switch', 'click')
self.switch.add_level('Up', 'open')
self.switch.add_level('Down', 'close')
self.switch.add_level('Release', 'release')
self.switch.set_selector_style(SelectorSwitch.SELECTOR_TYPE_BUTTONS)
self.switch.disable_value_check_on_update()
self.devices.append(self.switch)
def handleCommand(self, alias, device, device_data, command, level, color):
Domoticz.Debug(str(command)+str(level)+str(color))
self.switch.handle_command(device_data, command, level, color)
return {
'topic': device_data['friendly_name'] + '/set',
'payload': json.dumps({
"state": command.upper()
})
}
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
-
- 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
A last try
, try updating your plugin
Go to plugin folder and pull new version
In march there is an update done on the tradfri_remote_close_open.py which is in your plugin, because of a bug
maybe it helps
I just did my update
You can see it updated the adapters/Ikea/tradfri_remote_clos_open.py which your E1766 uses

Go to plugin folder and pull new version
Code: Select all
cd domoticz/plugins/zigbee2mqtt
git pull
Restart domoticz
maybe it helps
I just did my update
You can see it updated the adapters/Ikea/tradfri_remote_clos_open.py which your E1766 uses
Code: Select all
pi@raspberrypi:~ $ cd domoticz/plugins/zigbee2mqtt
pi@raspberrypi:~/domoticz/plugins/zigbee2mqtt $ git pull
remote: Enumerating objects: 15, done.
remote: Counting objects: 100% (15/15), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 16 (delta 8), reused 12 (delta 8), pack-reused 1
Unpacking objects: 100% (16/16), done.
From https://github.com/stas-demydiuk/domoticz-zigbee2mqtt-plugin
8068dbb..0d070ec master -> origin/master
Updating 8068dbb..0d070ec
Fast-forward
adapters/__init__.py | 2 ++
adapters/ikea/tradfri_remote_close_open.py | 4 ++-
adapters/sinope/TH1124ZB.py | 45 ++++++++++++++++++++++++++++++
adapters/sinope/__init__.py | 6 ++++
frontend/zigbee2mqtt.js | 3 +-
5 files changed, 58 insertions(+), 2 deletions(-)
create mode 100644 adapters/sinope/TH1124ZB.py
create mode 100644 adapters/sinope/__init__.py
pi@raspberrypi:~/domoticz/plugins/zigbee2mqtt $ sudo reboot
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
-
- Posts: 59
- Joined: Saturday 14 January 2017 21:37
- Target OS: Linux
- Domoticz version: Beta
- Location: Ukraine
- Contact:
-
- 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
That was a quick fix (thumbs up)
Run an update of your zigbee2mqtt plugin and reboot.
the changed code, only copied the start
Code: Select all
import Domoticz
import json
from adapters.adapter_with_battery import AdapterWithBattery
from devices.switch.selector_switch import SelectorSwitch
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
-
- Posts: 70
- Joined: Monday 14 December 2015 22:16
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Mierlo
- Contact:
Re: Python Plugin: Zigbee2Mqtt
Kudos to you StasDemydiuk for the quick fix, and to hoeby for the support.
I updated, and restarted domoticz, the error is gone.
Thank you
Peer
I updated, and restarted domoticz, the error is gone.
Thank you
Peer
-
- 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
How did you removed the device?peerkersezuuker wrote: ↑Saturday 02 May 2020 10:37 I removed the switch from zigbee2mqtt, and did the pairing again.
Everytime i want to remove a device it is a big fight. Keeps getting back in the configuration.yaml file
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
Who is online
Users browsing this forum: Bing [Bot] and 1 guest