How do you use brightness as a condition? (If lamp turns on to brightness 50, then do this action)

I’m going through all the examples but I can’t find anything on this. Debating on moving from the ISY or HomeSeer to HA and am trying to recreate my existing events but having trouble. Can someone please tell me how to do the following trigger/condition?

“If living room lamp turns on to 50% brightness, then…”

The actions I can do, but I can’t seem to figure this out, it seems like it just looks at it as ON or OFF but I’ve tried putting brightness: 50, brightness: 50%, brightness: '50" etc nothing seems to work. Thanks!

I’ll just hint you over to https://home-assistant.io/getting-started/automation-trigger/#template-trigger and https://home-assistant.io/topics/templating/

Let us know if you need further help.

Cheers :slight_smile:

Thank you but that example shows evaluating true or false if someone is home or not, not sure how that relates to brightness.

Hey,

I’m sorry. I just looked in the docs and I seem to be overthinking things. You could achieve what you want with a simple numeric state trigger using value_template like described here: https://home-assistant.io/cookbook/automation_sun/#automations-for-lights-and-blinds-based-on-solar-elevation

You can use the developer tools on the front end to check your states and also to try out your template.
Edit:
It’s always helpful to include the part of the config you try to get working.

Hope this helps.

Cheers