Is anyone able to spot what is wrong with this rule?
IF state of Office Bulb = off and Office Motion present
THEN turn on the Office Bulb
this rule execute even when the Office Bulb is already on!
Conditional rule not working as expected
Is anyone able to spot what is wrong with this rule?
IF state of Office Bulb = off and Office Motion present
THEN turn on the Office Bulb
this rule execute even when the Office Bulb is already on!
Pimatic, smart home made by smart folks, for the rest of us!
And if you try this:
IF Office Bulb is turned off and Office Motion reports present
THEN turn Office Bulb on
Or:
IF $office-bulb.state = false and ...
@sweebee I am pretty sure I tried everything or almost. I am going home for lunch in few mintues, I’ll see if that syntax has any impact. Thanks
Pimatic, smart home made by smart folks, for the rest of us!
I have the same problem. I also tried the alternatives posted by sweebee (except the last one with $device which resulted in an error). Nothing worked.
Don’t know if its important, but the lamp I want to turn on is a shellswitch device provided by pimatic-shell-execute.
Would appreciate any help with this.
@sebastienvg Would be nice to know if the provided solutions by sweebee are working for you.
@okadesde , @sebastienvg What device do you use? (Plugin and device config.)
config.json:
...
"plugins": [
{
"plugin": "shell-execute"
},
{
"plugin": "gpio"
},
...
],
"devices": [
{
"id": "light",
"name": "Lamp",
"class": "ShellSwitch",
"onCommand": "pilight-send -p elro_800_switch -s 15 -u 8 -t",
"offCommand": "pilight-send -p elro_800_switch -s 15 -u 8 -f"
},
{
"id": "presence",
"class": "GpioPresence",
"name": "motion detect",
"gpio": 22
},
...
],
...
In the “Variables” overview it shows $light.state with the proper attribute “true” or “false” but even …
IF $light.state = false and ...
… didn’t work.
Thanks for the help.