I’m a volunteer firefighter. I want to create an automation that turns on a smart lightbulb in my house when I open another app. This part I’ve figured out simply enough.
What I’d ideally like is for it to only happen during certain hours (9p-5a). Any help with that?
Presumably you are using Shortcuts automations for the logic and trigger you have working. If so, also check the time and choose whether to do something or not.
It’s not HomeKit, it’s the phillipshue app and the automation worked before I added the time periods. I’ll check to see if something else works with the rest of the conditions the same.
Something is wrong with the if portion because I’m not getting any action to happen. And if I remove the conditions, the Hue app runs and does what it’s supposed to.
This seems to have worked. I created a new automation such that when I open a specific app, it runs the shortcut you sent me (modified to my times and lights). I’ll check it tonight after 9pm to confirm.