Page 1 of 1

Action Group won’t stay on

PostPosted: Fri Apr 23, 2021 2:22 pm
by mikejandreau
Our new Sleep Number bed just arrived. I’m using the SleepyIQ plugin to control it from within Indigo.

Since there’s no HomeKit support, I wanted to add it myself through Homebridge.

I set up an Action group that changes the bed position to Watch TV and another Action Group that sets the bed to Lay Flat.

Then I added a Virtual on/off Device that sets on Action Group for On and the other for Off.

Then added that Virtual Device to HomeKit.

It works for “on” but won’t stay on. I press it, it switches the bed to position 1, but then turns off in the Home app, so I can’t turn it “off” to go back to the other position.

Any help would be appreciated.

Re: Action Group won’t stay on

PostPosted: Sat Apr 24, 2021 1:58 pm
by jay (support)
You either need to add a status variable and update the variable in each of the action groups, or add an action to each group to actually turn the device on/off using the Set Virtual On/Off Device State action.

Virtual On/Off devices don't automatically maintain their state, you have to do it yourself in the action groups.

Re: Action Group won’t stay on

PostPosted: Sun Jul 25, 2021 4:11 am
by Bildhauer
Maybe I have a similar issue: I've python script I would like to start using a HomeKit button. It should stay "switched on" the time the script is running. Where can I update the status of this HomeKit button?

Best regards

Bildhauer

Re: Action Group won’t stay on

PostPosted: Sun Jul 25, 2021 11:31 am
by jay (support)
Whatever Indigo device is being presented as the HomeKit button needs to have its status updated. If it's a Virtual On/Off device (as specified in the OP) then you need to update the state as specified in my post above.

Re: Action Group won’t stay on

PostPosted: Sun Jul 25, 2021 12:56 pm
by Bildhauer
Do you have an example how to "to do it yourself in the action groups."?

Thanks in advance!

Bildhauer

Re: Action Group won’t stay on

PostPosted: Sun Jul 25, 2021 2:46 pm
by jay (support)
It's the first sentence of that post - add the action to set the state to your action groups...

Re: Action Group won’t stay on

PostPosted: Sun Jul 25, 2021 4:50 pm
by Bildhauer
Please give an example. I do not understand what you mean!

Re: Action Group won’t stay on

PostPosted: Mon Jul 26, 2021 9:23 am
by jay (support)
You Add a new Action to one of your action groups. For the Type of the action select Device Actions->Virtual Device Controls->Set Virtual On/Off Device State. Select your virtual device from the Device popup and in the action settings specify on or off as the new state.

You might want to review the documentation as it will give you the basics of Indigo operations like this.