I’m trying to set up an automation that only triggers when certain conditions are fulfilled:
- the sun is at a certain elevation (above 25 degrees), and
- the weather is either sunny or partly cloudy.
I’m getting an error saying “Invalid config for [automation]: Unexpected value for condition: ‘numeric.state’.”
I’ve isolated it to the first condition (the sun’s elevation).
Any help appreciated. Thanks!
condition:
- condition: numeric.state
entity_id: sun.sun
attribute: elevation
above: '25.0'
- condition: or
conditions:
- condition: state
entity_id: weather.home
state: partlycloudy
- condition: state
entity_id: weather.home
state: sunny