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

Why doesn't the condition with "and" work?

$
0
0

@Jaques-Ludwig wrote:

Hi,

I have this automation, but it doesn’t work. I don’t know why. Both conditions are true at my tests. This means, it was 21:30 o’clock and the switch was “on”.

What’s strange: If I programm these two conditions without “and” it seems to work.

So my question is, what is the difference between two conditions which stands one after another and two conditions combined with “and”?

The second question is, what can I do to make my automation runable?

- id: '1586202398633'
  alias: Nachtlicht EG Flur
  description: ''
  trigger:
  - device_id: 0c6fc392c2944669b6154b98a341f33c
    domain: light
    entity_id: light.eg_flur_2
    platform: device
    type: turned_on
  condition:
  - condition: and
    conditions:
    - after: '20:00:00'
      before: 06:00:00
      condition: time
    - condition: state
      entity_id: input_boolean.nachtlicht_eg_flur
      state: 'on'
  action:
  - device_id: 0c6fc392c2944669b6154b98a341f33c
    domain: light
    entity_id: light.eg_flur_2
    type: turn_off
  - brightness_pct: 10
    device_id: dc0b66f453714c4f9335ba568c1624f9
    domain: light
    entity_id: light.eg_flur_1
    type: turn_on

Thanks,

Jaques-Ludwig

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95413

Trending Articles



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