How can I write an automation that looks at the percentage of the light.
Trigger:
Time is 8pm
Condition:
Light percentage is 30%
Action:
Do This
How can I write an automation that looks at the percentage of the light.
Trigger:
Time is 8pm
Condition:
Light percentage is 30%
Action:
Do This
Tried this and it dosent work.
Below works here. Brightness is an integer from 0 to 255, so calculate accordingly.
alias: New automation caseta brightness
description: ""
trigger:
- platform: time
at: "23:37:45"
condition:
- condition: numeric_state
entity_id: light.kitchen_table_lights
attribute: brightness
below: 204
action:
- service: persistent_notification.create
data:
message: barlight brightness below 80 pct
mode: single