I recently setup a motion sensor in the hallway that only turns on at full brightness when activated. In lieu of a weight-centric bed occupancy sensor, I’m looking to manually flick an input_boolean each night so that the light turns on at lower brightness when motion detected. Here’s what I’ve come up with, but I’m getting errors:
Hi mate. It’s a philips hue dimmable globe running on deconz. Just tried brightness_pct on the services tool and it works with either quotes or without quotes.
When you trigger the automation manually, does it execute the desired action? Just for your info, when an automation is triggered manually it skips the trigger and conditions and goes straight to the action part, this way we can find out if the problem is within the action part.
Yeah, I was following the documentation on templates and that’s why I indented the way I did. I’m running 1.02.3, so maybe there’s a breaking change in there?
And just be aware that the config checker doesn’t check the validity of templates since you can put anything in there and it be potentially valid depending on the interpretation of the template at run time.
If the template doesn’t return proper yaml syntax then you will get an error in your home-assistant.log file when the automation tries to execute.