Unifi Doorbell HACS

Home   »   Unifi Doorbell HACS

- id: doorbell_chime
  alias: Doorbell chime
  trigger:
    entity_id: binary_sensor.doorbell_doorbell
    platform: state
    to: ‘on’
  condition: []
  action:
  - service: media_player.volume_set
    entity_id: group.doorbell
    data:
      volume_level: 0.0
  - service: media_player.turn_on
    entity_id: group.doorbell
  - service: media_player.volume_set
    entity_id: group.doorbell
    data:
      volume_level: 0.9
  - service: media_player.play_media
    entity_id: group.doorbell
    data:
      media_content_id: /local/audio/doorbell.mp3
      media_content_type: music
  - delay:
      seconds: 5
  - service: media_player.volume_set
    entity_id: group.doorbell
    data:
      volume_level: 0.3
  - service: media_player.turn_off
    entity_id: group.doorbell

Leave a Reply

Your email address will not be published. Required fields are marked *