I want to use the state for sun.sun entity as a condition in an automation. However, whatever I set according to https://www.home-assistant.io/docs/scripts/conditions/, somehow the condition always ends up being TRUE.
So I created a simple Sun Test Automation, to check if the sun condition works :
- id: '123'
alias: test sun
description: ''
trigger: []
condition:
- condition: state
entity_id: sun.sun
state: below_horizon
action:
- service: notify.mobile_app
data:
message: sun test done
mode: single
What ever I use, like a not condition: above_horizon, or include state with ‘quotes’, it just doesn’t work. The condition keeps on being TRUE, so action is triggered
And for the funny guys; yes, the state for entity sun.sun is above_horizon
Help me out, because I asume it is a simple stupid mistake I am making…