I'm looking for ways to set up basic state machines in my HomeKit automations, but I can't see how to do that.
Two simple examples-- though I'd like to be able to build more sophisticated non-binary states as well:
When I go to bed, I trigger a scene to shut off all the lights and adjust the thermostats. When I wake up, I trigger another scene. When I walk into the bathroom, I'd like the lights to turn on. If I've triggered the go-to-bed scene but before I trigger the wake-up scene, I'd like to lights to come on at minimum brightness. At other times I'd like them on at full brightness. I don't want to base it on time, I want to base it on state.
When I walk into a room, the lights should go on and turn off 5 minutes after not detecting motion-- unless I press the wall switch in which case they should remain on until manually turned off.
Is there anyway to do these things?
Two simple examples-- though I'd like to be able to build more sophisticated non-binary states as well:
When I go to bed, I trigger a scene to shut off all the lights and adjust the thermostats. When I wake up, I trigger another scene. When I walk into the bathroom, I'd like the lights to turn on. If I've triggered the go-to-bed scene but before I trigger the wake-up scene, I'd like to lights to come on at minimum brightness. At other times I'd like them on at full brightness. I don't want to base it on time, I want to base it on state.
When I walk into a room, the lights should go on and turn off 5 minutes after not detecting motion-- unless I press the wall switch in which case they should remain on until manually turned off.
Is there anyway to do these things?