Action Group won’t stay on

mikejandreau
Posts: 79
Joined: Thu Jul 07, 2016 1:16 pm

Action Group won’t stay on

Post 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.
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Action Group won’t stay on

Post 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.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Bildhauer
Posts: 160
Joined: Mon Sep 30, 2019 2:10 pm
Location: 22113 Oststeinbek (near Hamburg), Germany

Re: Action Group won’t stay on

Post 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
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Action Group won’t stay on

Post 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.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Bildhauer
Posts: 160
Joined: Mon Sep 30, 2019 2:10 pm
Location: 22113 Oststeinbek (near Hamburg), Germany

Re: Action Group won’t stay on

Post by Bildhauer »

Do you have an example how to "to do it yourself in the action groups."?

Thanks in advance!

Bildhauer
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Action Group won’t stay on

Post by jay (support) »

It's the first sentence of that post - add the action to set the state to your action groups...
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Bildhauer
Posts: 160
Joined: Mon Sep 30, 2019 2:10 pm
Location: 22113 Oststeinbek (near Hamburg), Germany

Re: Action Group won’t stay on

Post by Bildhauer »

Please give an example. I do not understand what you mean!
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Action Group won’t stay on

Post 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.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Post Reply

Return to “HomeKit Bridge”