script:
  guest_bedroom_bedside_confirm:
    sequence:
      - service: scene.create
        data:
          scene_id: guest_bedroom_before_confirm
          snapshot_entities:
            - light.tradfri_large
      - service: light.turn_on
        entity_id: light.tradfri_large
        data:
          color_temp: 500
          # rgb_color: [110, 255, 0]
      - delay: 00:00:02
      - service: light.turn_on
        entity_id: light.tradfri_large
        data_template:
          color_temp: "{{ states('input_number.guest_bedroom_light_temp') }}"
      - delay: 00:00:02
      - service: scene.turn_on
        entity_id: scene.guest_bedroom_before_confirm
      - delay: 00:00:01
