I bought a Zigbee remote to be able to control devices without the need for a phone or tablet. With help of Thorgal I have been able to add the "switch" to Domoticz but the behavior is unexpected.
The facts:
MOES Scene Remote - 4 button remote with three modes per button (
https://www.moeshouse.com/collections/z ... nt-control)
Conbee2 stick with DeCONZ bridge by Thargal
The findings:
The Domoticz logs shows two sets of data depending on how I look at it. If I filter on the "MAC address" I get predictable results. If I filter on the device name (Scene Remote as I called it) the results are less logical (that's the Vulcan in me

)
Results based on MAC address:
Code: Select all
2021-05-22 12:49:52.491 Status: ConBee2: (ConBee2) ### Device 60:a4:23:ff:fe:d2:23:2e-02-0006(ConBee2 - Switch 54) Not in deCONZ ATM, the device is deleted or not ready.
2021-05-22 12:52:39.985 ConBee2: (ConBee2) ### WebSocket Data : {'e': 'changed', 'id': '57', 'r': 'sensors', 'state': {'buttonevent': 1002, 'lastupdated': '2021-05-22T10:52:39.943'}, 't': 'event', 'uniqueid': '60:a4:23:ff:fe:d2:23:2e-01-0006'} (button 1 - single press)
2021-05-22 12:52:46.271 ConBee2: (ConBee2) ### WebSocket Data : {'e': 'changed', 'id': '57', 'r': 'sensors', 'state': {'buttonevent': 2002, 'lastupdated': '2021-05-22T10:52:46.261'}, 't': 'event', 'uniqueid': '60:a4:23:ff:fe:d2:23:2e-01-0006'} (button 2 - single press)
2021-05-22 12:52:50.806 ConBee2: (ConBee2) ### WebSocket Data : {'e': 'changed', 'id': '57', 'r': 'sensors', 'state': {'buttonevent': 3002, 'lastupdated': '2021-05-22T10:52:50.779'}, 't': 'event', 'uniqueid': '60:a4:23:ff:fe:d2:23:2e-01-0006'} (button 3 - single press)
2021-05-22 12:52:54.647 ConBee2: (ConBee2) ### WebSocket Data : {'e': 'changed', 'id': '57', 'r': 'sensors', 'state': {'buttonevent': 4002, 'lastupdated': '2021-05-22T10:52:54.612'}, 't': 'event', 'uniqueid': '60:a4:23:ff:fe:d2:23:2e-01-0006'} (button 4 - single press)
2021-05-22 12:54:32.335 ConBee2: (ConBee2) ### WebSocket Data : {'e': 'changed', 'id': '57', 'r': 'sensors', 'state': {'buttonevent': 1004, 'lastupdated': '2021-05-22T10:54:32.299'}, 't': 'event', 'uniqueid': '60:a4:23:ff:fe:d2:23:2e-01-0006'} (button 1 - double press)
2021-05-22 12:54:36.169 ConBee2: (ConBee2) ### WebSocket Data : {'e': 'changed', 'id': '57', 'r': 'sensors', 'state': {'buttonevent': 2004, 'lastupdated': '2021-05-22T10:54:36.160'}, 't': 'event', 'uniqueid': '60:a4:23:ff:fe:d2:23:2e-01-0006'} (button 2 - double press)
2021-05-22 12:54:40.605 ConBee2: (ConBee2) ### WebSocket Data : {'e': 'changed', 'id': '57', 'r': 'sensors', 'state': {'buttonevent': 3004, 'lastupdated': '2021-05-22T10:54:40.575'}, 't': 'event', 'uniqueid': '60:a4:23:ff:fe:d2:23:2e-01-0006'} (button 3 - double press)
2021-05-22 12:54:45.757 ConBee2: (ConBee2) ### WebSocket Data : {'e': 'changed', 'id': '57', 'r': 'sensors', 'state': {'buttonevent': 4004, 'lastupdated': '2021-05-22T10:54:45.733'}, 't': 'event', 'uniqueid': '60:a4:23:ff:fe:d2:23:2e-01-0006'} (button 4 - double press)
2021-05-22 12:55:05.787 ConBee2: (ConBee2) ### WebSocket Data : {'e': 'changed', 'id': '57', 'r': 'sensors', 'state': {'buttonevent': 1003, 'lastupdated': '2021-05-22T10:55:05.771'}, 't': 'event', 'uniqueid': '60:a4:23:ff:fe:d2:23:2e-01-0006'} (button 1 - long press)
2021-05-22 12:55:13.259 ConBee2: (ConBee2) ### WebSocket Data : {'e': 'changed', 'id': '57', 'r': 'sensors', 'state': {'buttonevent': 2003, 'lastupdated': '2021-05-22T10:55:13.222'}, 't': 'event', 'uniqueid': '60:a4:23:ff:fe:d2:23:2e-01-0006'} (button 2 - long press)
2021-05-22 12:55:20.584 ConBee2: (ConBee2) ### WebSocket Data : {'e': 'changed', 'id': '57', 'r': 'sensors', 'state': {'buttonevent': 3003, 'lastupdated': '2021-05-22T10:55:20.527'}, 't': 'event', 'uniqueid': '60:a4:23:ff:fe:d2:23:2e-01-0006'} (button 3 - long press)
2021-05-22 12:55:28.617 ConBee2: (ConBee2) ### WebSocket Data : {'e': 'changed', 'id': '57', 'r': 'sensors', 'state': {'buttonevent': 4003, 'lastupdated': '2021-05-22T10:55:28.571'}, 't': 'event', 'uniqueid': '60:a4:23:ff:fe:d2:23:2e-01-0006'} (button 4 - long press)
Results based on device:
Code: Select all
2021-05-22 13:29:53.277 ConBee2: (ConBee2) ### Update device (Scene Remote) : {'nValue': 10, 'sValue': '10'} (button 1 - single press)
2021-05-22 13:29:57.453 ConBee2: (ConBee2) ### Update device (Scene Remote) : {'nValue': 20, 'sValue': '20'} (button 2 - single press) *
2021-05-22 13:30:02.032 ConBee2: (ConBee2) ### Update device (Scene Remote) : {'nValue': 30, 'sValue': '30'} (button 3 - single press) *
2021-05-22 13:30:06.252 ConBee2: (ConBee2) ### Update device (Scene Remote) : {'nValue': 40, 'sValue': '40'} (button 4 - single press) *
2021-05-22 13:30:09.294 ConBee2: (ConBee2) ### Update device (Scene Remote) : {'nValue': 30, 'sValue': '30'} (button 1 - double press) *
2021-05-22 13:30:12.092 ConBee2: (ConBee2) ### Update device (Scene Remote) : {'nValue': 60, 'sValue': '60'} (button 2 - double press) *
2021-05-22 13:30:14.992 ConBee2: (ConBee2) ### Update device (Scene Remote) : {'nValue': 90, 'sValue': '90'} (button 3 - double press)
2021-05-22 13:30:18.217 ConBee2: (ConBee2) ### Update device (Scene Remote) : {'nValue': 120, 'sValue': '120'} (button 4 - double press)
2021-05-22 13:30:25.497 ConBee2: (ConBee2) ### Update device (Scene Remote) : {'nValue': 20, 'sValue': '20'} (button 1 - long press) *
2021-05-22 13:30:30.785 ConBee2: (ConBee2) ### Update device (Scene Remote) : {'nValue': 40, 'sValue': '40'} (button 2 - long press) *
2021-05-22 13:30:36.139 ConBee2: (ConBee2) ### Update device (Scene Remote) : {'nValue': 60, 'sValue': '60'} (button 3 - long press) *
2021-05-22 13:30:41.075 ConBee2: (ConBee2) ### Update device (Scene Remote) : {'nValue': 80, 'sValue': '80'} (button 4 - long press)
I have added an * behind every duplicated nValue/sValue.
The question:
If I can assign lights to the remote using ID combined with button event, that would be fine. Otherwise I would need to find a way to assign unique nValues/sValues to the device.
Any help greatly appreciated!
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode