I have one light included in one group. The group as a wireless switch associated with it. Manually turning the light on and off works as expected. If i set up the rules (using Phoscon) to toggle the group when the switch is pressed it mostly does nothing although sometimes it works as expected.
Steps to reproduce the behavior
Add one light to one group and associate a switch with it. Create a rule to toggle the group if the button of the switch is pressed once.
Environment
- Host system: Raspberry Pi
- Running method: Raspbian
- Firmware version: 26700700
- deCONZ version: 2.12.4
- Device: ConBee II
- Do you use an USB extension cable: yes
- Is there any other USB or serial devices connected to the host system? no the case
deCONZ info
the group
"16": { "action": { "alert": "none", "bri": 127, "colormode": "hs", "ct": 0, "effect": "none", "hue": 0, "on": false, "sat": 127, "scene": null, "xy": [0, 0] }, "devicemembership": [], "etag": "40cee7810fff8b08897ef5232e087dee", "id": "16", "lights": ["4"], "name": "Office Group", "scenes": [], "state": { "all_on": false, "any_on": false }, "type": "LightGroup" },
the switch
"26": { "config": { "battery": 100, "on": true, "reachable": true, "temperature": 3300 }, "ep": 1, "etag": "967fa46f2fd96260605cef55b245ebd6", "lastannounced": null, "lastseen": "2021-08-11T12:41Z", "manufacturername": "LUMI", "mode": 1, "modelid": "lumi.remote.b1acn01", "name": "Office Switch", "state": { "buttonevent": 1002, "lastupdated": "2021-08-11T12:47:55.345" }, "swversion": "20180525", "type": "ZHASwitch", "uniqueid": "00:15:8d:00:04:04:e0:5d-01-0012" },
the light
"4": { "etag": "8ec9795ab473bddbf6379f59be60dd2b", "hascolor": false, "lastannounced": "2020-11-10T08:27:53Z", "lastseen": "2021-08-11T13:05Z", "manufacturername": "LUMI", "modelid": "lumi.relay.c2acn01", "name": "Office", "state": { "alert": "none", "on": false, "reachable": true }, "swversion": "09-20-2018", "type": "Dimmable light", "uniqueid": "00:15:8d:00:03:cf:00:89-01" }
the rules
"1": { "actions": [{ "address": "/groups/16/action", "body": { "on": true }, "method": "PUT" }], "conditions": [{ "address": "/sensors/00:15:8d:00:04:04:e0:5d-01-0012/state/buttonevent", "operator": "eq", "value": "1002" }, { "address": "/sensors/00:15:8d:00:04:04:e0:5d-01-0012/state/lastupdated", "operator": "dx" }, { "address": "/groups/16/state/any_on", "operator": "eq", "value": "false" }], "created": "2021-08-11T12:25:27", "etag": "c75f26772895e29cdc143be1a702cede", "lasttriggered": "2021-08-11T12:51:35", "name": "Rule TOOGLE_ON", "owner": "D007A3909D", "periodic": 0, "status": "enabled", "timestriggered": 3 }, "2": { "actions": [{ "address": "/groups/16/action", "body": { "on": false }, "method": "PUT" }], "conditions": [{ "address": "/sensors/00:15:8d:00:04:04:e0:5d-01-0012/state/buttonevent", "operator": "eq", "value": "1002" }, { "address": "/sensors/00:15:8d:00:04:04:e0:5d-01-0012/state/lastupdated", "operator": "dx" }, { "address": "/groups/16/state/any_on", "operator": "eq", "value": "true" }], "created": "2021-08-11T12:25:27", "etag": "e5b9b4a7736acaef41f7a9ac47984072", "lasttriggered": "2021-08-11T12:51:36", "name": "Rule TOOGLE_OFF", "owner": "D007A3909D", "periodic": 0, "status": "enabled", "timestriggered": 2 },
logs
https://pastebin.com/embed_js/VVLQjEC2
i was pointed here from github but i doubt this has something to do with phoscon as i tried more rules with no success