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.
Action Group won’t stay on
- 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
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.
Virtual On/Off devices don't automatically maintain their state, you have to do it yourself in the action groups.
-
Bildhauer
- Posts: 160
- Joined: Mon Sep 30, 2019 2:10 pm
- Location: 22113 Oststeinbek (near Hamburg), Germany
Re: Action Group won’t stay on
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
Best regards
Bildhauer
- 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
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.
-
Bildhauer
- Posts: 160
- Joined: Mon Sep 30, 2019 2:10 pm
- Location: 22113 Oststeinbek (near Hamburg), Germany
Re: Action Group won’t stay on
Do you have an example how to "to do it yourself in the action groups."?
Thanks in advance!
Bildhauer
Thanks in advance!
Bildhauer
- 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
It's the first sentence of that post - add the action to set the state to your action groups...
-
Bildhauer
- Posts: 160
- Joined: Mon Sep 30, 2019 2:10 pm
- Location: 22113 Oststeinbek (near Hamburg), Germany
Re: Action Group won’t stay on
Please give an example. I do not understand what you mean!
- 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
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.
You might want to review the documentation as it will give you the basics of Indigo operations like this.