Sandman Doppler Remote Snooze/Alarm Off

Automation to remotely snooze and turn off alarms with a button or other state trigger. You can use any entity and state to trigger these actions, not just buttons. For instance you can use a bed pressure sensor to automatically turn off your alarm when you get out of bed or your phone’s battery status changing to discharging when you pull it off the charger to snooze it. Get creative! Note that this blueprint is set up to update the alarm status of the first 10 alarm IDs (0-9). If you have more alarms on your Doppler, you will need to modify the blueprint. Be aware this blueprint sends the snooze and alarm off commands to all alarms with IDs 0-9 and there may be unintended side effects.

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

blueprint:
  name: Sandman Doppler Remote Snooze and Alarm Off
  description: Automation to remotely snooze and turn off alarms with a button or other state trigger. You can use any entity and state to trigger these actions, not just buttons. For instance you can use a bed pressure sensor to automatically turn off your alarm when you get out of bed or your phone's battery status changing to discharging when you pull it off the charger to snooze it. Get creative! Note that this blueprint is set up to update the alarm status of the first 10 alarm IDs (0-9). If you have more alarms on your Doppler, you will need to modify the blueprint. Be aware this blueprint sends the snooze and alarm off commands to all alarms with IDs 0-9 and there may be unintended side effects.
  domain: automation
  input:
    alarm_entity:
      name: Alarm Entity
      description: Any entity associated with your Doppler
      selector:
        entity:
          integration: sandman_doppler
    remote_snooze:
      name: Remote Snooze Entity
      description: Button or other entity you want to remotely snooze your alarms with
      selector:
        entity:
    remote_snooze_state:
      name: Remote Snooze Entity State
      description: State of the button or other entity you want to trigger the remote snooze
      selector:
        text:
    remote_alarm_off:
      name: Remote Alarm Off Entity
      description: Button or other entity you want to remotely turn off your alarms with
      selector:
        entity:
    remote_alarm_off_state:
      name: Remote Alarm Off Button State
      description: State of the button or other entity you want to trigger the remote alarm off
      selector:
        text:

mode: single
trigger:
  - platform: state
    entity_id: !input remote_snooze
    to: !input remote_snooze_state
    id: Remote Snooze
    alias: Remote Snooze
  - platform: state
    entity_id: !input remote_alarm_off
    to: !input remote_alarm_off_state
    id: Remote Alarm Off
    alias: Remote Alarm Off
action:
  - choose:
      - conditions:
          condition: trigger
          id: Remote Snooze
        sequence:
          parallel:
            - service: sandman_doppler.update_alarm
              data:
                id: 0
                status: snoozed
              target:
                entity_id: !input alarm_entity
            - service: sandman_doppler.update_alarm
              data:
                id: 1
                status: snoozed
              target:
                entity_id: !input alarm_entity
            - service: sandman_doppler.update_alarm
              data:
                id: 2
                status: snoozed
              target:
                entity_id: !input alarm_entity
            - service: sandman_doppler.update_alarm
              data:
                id: 3
                status: snoozed
              target:
                entity_id: !input alarm_entity
            - service: sandman_doppler.update_alarm
              data:
                id: 4
                status: snoozed
              target:
                entity_id: !input alarm_entity
            - service: sandman_doppler.update_alarm
              data:
                id: 5
                status: snoozed
              target:
                entity_id: !input alarm_entity
            - service: sandman_doppler.update_alarm
              data:
                id: 6
                status: snoozed
              target:
                entity_id: !input alarm_entity
            - service: sandman_doppler.update_alarm
              data:
                id: 7
                status: snoozed
              target:
                entity_id: !input alarm_entity
            - service: sandman_doppler.update_alarm
              data:
                id: 8
                status: snoozed
              target:
                entity_id: !input alarm_entity
            - service: sandman_doppler.update_alarm
              data:
                id: 9
                status: snoozed
              target:
                entity_id: !input alarm_entity
      - conditions:
          - condition: trigger
            id: Remote Alarm Off
        sequence:
          parallel:
            - service: sandman_doppler.update_alarm
              data:
                id: 0
                status: unarmed
              target:
                entity_id: !input alarm_entity
            - service: sandman_doppler.update_alarm
              data:
                id: 1
                status: unarmed
              target:
                entity_id: !input alarm_entity
            - service: sandman_doppler.update_alarm
              data:
                id: 2
                status: unarmed
              target:
                entity_id: !input alarm_entity
            - service: sandman_doppler.update_alarm
              data:
                id: 3
                status: unarmed
              target:
                entity_id: !input alarm_entity
            - service: sandman_doppler.update_alarm
              data:
                id: 4
                status: unarmed
              target:
                entity_id: !input alarm_entity
            - service: sandman_doppler.update_alarm
              data:
                id: 5
                status: unarmed
              target:
                entity_id: !input alarm_entity
            - service: sandman_doppler.update_alarm
              data:
                id: 6
                status: unarmed
              target:
                entity_id: !input alarm_entity
            - service: sandman_doppler.update_alarm
              data:
                id: 7
                status: unarmed
              target:
                entity_id: !input alarm_entity
            - service: sandman_doppler.update_alarm
              data:
                id: 8
                status: unarmed
              target:
                entity_id: !input alarm_entity
            - service: sandman_doppler.update_alarm
              data:
                id: 9
                status: unarmed
              target:
                entity_id: !input alarm_entity