Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106456

Am i creating a NOT condition wrong in automations?

$
0
0

I created an automation with a condition so that the actions would process for any other sun-state than ‘above_horizon’

in yaml
condition: not
conditions:

  • condition: state
    entity_id: sun.sun
    state: above_horizon

The trace shows that it has ignored the NOT

It then didnt continue to the actions.

How did i do this wrong ? What would be the correct method ?
Please dont get hung up on the entity used, its more about the use of a Not-Condition

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106456

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>