Play audio to G4 Doorbell Pro or Instant? YAML

Play audio to G4 Doorbell Pro or Instant? YAML

Is it doable to play an audio file, and even only a tone to both the Unifi G4 Instant or the G4 Pro doorbell?
I’ve an automation to unlock my August deadbolt with fingerprints from the G4 Pro, however no indication that the lock is open.
I’ve a TTS alert, nevertheless it’s loud. Maybe there’s a approach to decrease the quantity?

description: ""
triggers:
  - set off: webhook
    allowed_methods:
      - POST
      - PUT
    local_only: true
    webhook_id: "- asdfgafsdasdfasdfa"
situations: []
actions:
  - select:
      - situations:
          - situation: system
            device_id: asdfasdfasdf
            area: lock
            entity_id: asdfasdfsdf
            sort: is_locked
        sequence:
          - motion: lock.unlock
            metadata: {}
            information: {}
            goal:
              device_id: asdfasdfasdf
      - situations:
          - situation: system
            device_id: asdfasdfasdf
            area: lock
            entity_id: asdfasdfasdf
            sort: is_unlocked
        sequence:
          - motion: lock.lock
            metadata: {}
            information: {}
            goal:
              device_id: asdfasdfasdf
  - motion: media_player.volume_set
    metadata: {}
    information:
      volume_level: 0.5
    goal:
      device_id: asdfasdfasdf
  - if:
      - situation: system
        device_id: asdfasdfasdf
        area: lock
        entity_id: asdfasdfasdf
        sort: is_unlocked
    then:
      - motion: tts.converse
        metadata: {}
        information:
          cache: true
          media_player_entity_id: media_player.doorbell_speaker
          message: Door unlocked
          choices: {}
        goal:
          entity_id: tts.google_en_com
mode: single
sort or paste code right here

Is there a greater manner to do that?

1 submit – 1 participant

Read full subject

HI-FI News

by way of Home Assistant Community – Latest matters https://ift.tt/za5J184

December 18, 2024 at 04:22AM