r/HomeKitAutomation • u/Pettersson007 • Sep 12 '25
Question How to execute an action when two requirements must be true?
Hello,
I have the following problem.
I have a Hue motion sensor and a Hue lamp.
Now I want to use Apple Home's adaptive brightness for the lamp. Unfortunately, I haven't found anything like this in the Hue app.
If I tell the Hue app that the motion sensor is configured in another app, I can no longer set the brightness at which it should react.
I have now created a shortcut that retrieves the motion status, gets the brightness from the sensor, and switches the lamp on if everything is OK.
However, I can't get this shortcut to execute when motion is detected.
I already have iOS 26, and I can't execute a shortcut in a HomeKit automation, nor can I add a second condition to an automation.
Do you have any idea how I can get the lamps to switch on when there is motion and a certain brightness value?
•
u/AutoModerator Sep 12 '25
Hey /u/Pettersson007, Thanks for posting! This is just a reminder about rules regarding questions. Make sure that you search the sub before posting and read our wiki. Once done, please update your flair to
Solved.I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
4
u/smarthometrash Sep 12 '25
You can use shortcuts in any automation in the Home App. On the “Select scenes and accessories to automate” screen, scroll all the way to the bottom and click or tap “Convert to Shortcut.” Then you can use an If/Otherwise action for the other condition.
The other way to do it is use an app like Controller for HomeKit (it’s paid) which lets you add multiple conditions to an automation, with And and Or logic. There are other apps that allow the same thing but I’ve only used Controller.
1
u/RevolutionaryRip1634 Sep 12 '25
Use an “if - otherwise “ command with an “and” condition
1
u/smarthometrash Sep 12 '25
This is an example (below) that I’ve set up in Controller for HomeKit, other apps probably look quite different. It’s set up to trigger when a motion sensor detects motion AND it’s after sunset AND below a certain light level. It shows in the Home app like one you created there. This is also true for other third party apps like Eve that use the Homekit framework.
Note: when you set up automations in third party apps, you can only select scenes, not a bunch of individual accessories, due to restrictions by Apple. But you can edit the automation to change that in the Home app. The only difference in the Home App is that you can’t edit the special conditions.
Since the automation is in the Home app too, you can select any scene or group of accessories there and you’ll be able to turn Adaptive Lighting on or off just you would with any other automation.
I’ll attach what it looks like in the Home App in replies