Page 1 of 1

Off actions not working

PostPosted: Sun Nov 08, 2020 3:21 pm
by petematheson
I realised I can use this to replace my Life360 location for when me & my wife are home / away.

I've created 3 Action groups that modify 1 variables. One sets home, one sets away, one toggles.
I've created the Virtual On/off device that sets each action group for On/Off as well as the Toggle and monitor status of the variable it's changing.

But if I go into Home and tap the device, only the 'On' action works. Off never actually switches the device off.

Have I missed something please? :)

Re: Off actions not working

PostPosted: Mon Nov 09, 2020 7:23 pm
by rehafer
Did you create a variable to track on off state? That tripped me up once with something similar


Sent from my iPhone using Tapatalk

Re: Off actions not working

PostPosted: Tue Nov 10, 2020 12:52 am
by petematheson
I have 1 variable that is being set by 3 action groups.
On / Off and Toggle

Mind explaining how the extra variable to track the off state works?


Sent from my iPhone using Tapatalk

Off actions not working

PostPosted: Tue Nov 10, 2020 3:39 am
by rehafer
When you configure your Virtual On/Off Device there a check box for support status, below that a drop down menu to choose which variable the On/Off is stored in.
It’s my understanding that, in HomeKit, a switch can’t be turned “Off” unless it’s currently “On”, and that state information comes from that variable.


Sent from my iPhone using Tapatalk

Re: Off actions not working

PostPosted: Tue Nov 10, 2020 3:42 am
by petematheson
Ah yep I have that set, so I have 3 action groups but pointing at just 1 variable.

Action group to set the variable on
One for off
And one to toggle the variable


Sent from my iPhone using Tapatalk

Re: Off actions not working

PostPosted: Tue Nov 10, 2020 4:17 am
by rehafer
I think the status has to be Boolean, True/False; but that’s about the limit of my experience with Virtual Devices.


Sent from my iPhone using Tapatalk

Re: Off actions not working

PostPosted: Tue Nov 10, 2020 5:03 am
by petematheson
Ahhh good point.
Tried changing to True/False and that seems to be at least changing back to false now.

Will give that a test today to see how it plays - cheers!