So, I have this automation:
- id: '1638138492565'
alias: Julbelysning ute
description: ''
trigger:
- platform: state
entity_id: binary_sensor.xmas_outdoor
id: 'on'
from: 'off'
to: 'on'
- platform: state
entity_id: binary_sensor.xmas_outdoor
id: 'off'
from: 'on'
to: 'off'
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: 'on'
sequence:
- service: switch.turn_on
target:
entity_id:
- switch.jul_balkong
- switch.jul_staket
- switch.jul_framsida
- conditions:
- condition: trigger
id: 'off'
sequence:
- service: switch.turn_off
target:
entity_id:
- switch.jul_balkong
- switch.jul_staket
- switch.jul_framsida
default: []
mode: single
Earlier I used one action for each switch, but had problems with it not turning some or all switches.
The above automation works, but checking it out it has multiple entries in the log.
From the Timeline
“Slogs av” => “Turned off”, “Slogs på” => “Turned on”
Why this “Turned on” after one second?
Checked out another automation, it is the same!
Is this a known issue?