thx, I have this code now
- id: '1660461912977'
alias: test larm
trigger:
- platform: state
entity_id: binary_sensor.motion_bromma_entre
to: 'on'
from: 'off'
id: ent
- platform: state
entity_id: binary_sensor.motion_bromma_kallartrappa
to: 'on'
from: 'off'
id: kal
action:
- choose:
- conditions: >
- '{{ (trigger.id == ''ent''' }}'
- '{{ is_state(''sun.sun'', ''below_horizon'') }}'
- sequence:
- service: scene.turn_on
target:
entity_id: scene.larm_entre
- conditions: >
- '{{ (trigger.id == ''kal''' }}'
- '{{ is_state(''sun.sun'', ''below_horizon'') }}'
- sequence:
- service: scene.turn_on
target:
entity_id: scene.larm_kallardorr
mode: parallel
Have not got it to work as desired just yet but still learning