Hi, I thought dynamic scenes were supposed to overwrite the old one, but I’m getting multiple creations. See image. Do you all see anything I’m doing wrong? intermittently, the scene will not be recalled correctly and I’m wondering if it’s because it’s calling the wrong one of these.
I’m using an automation to change my driveway lights when someone comes home here:
if:
- condition: state
entity_id: input_boolean.driveway_don_t_change_yet
state: "off"
then:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.driveway_don_t_change_yet
- service: scene.create
data:
scene_id: before1
snapshot_entities:
- light.driveway1left_ledvance_a19_rgbw_light
- light.driveway2center_ledvance_a19_rgbw_sylv_light
- light.driveway_right_ledvance_light
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- if:
- condition: state
entity_id: binary_sensor.opengarage1_vehicle
state: "on"
for:
hours: 0
minutes: 1
seconds: 0
then:
- service: scene.turn_on
target:
entity_id: scene.left_spot_green
metadata: {}
- if:
- condition: state
entity_id: binary_sensor.opengarage2_vehicle
state: "on"
for:
hours: 0
minutes: 1
seconds: 0
then:
- service: scene.turn_on
target:
entity_id: scene.right_spot_green
metadata: {}
- delay:
hours: 0
minutes: 2
seconds: 0
milliseconds: 0
- service: scene.turn_on
data: {}
target:
entity_id: scene.before1
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.driveway_don_t_change_yet
