Entropy Reduction

Personal log of yet another digital native.


Project maintained by andre-abadi Hosted on GitHub Pages — Theme by mattgraham

Purpose

References

Error Message

Failed to cast media http://XXX.XXX.XXX.XXX:8123/media/local/doorbell.mp3?authSig=XXXXXXXXX from internal_url (http://XXX.XXX.XXX.XXX:8123). Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address

Actions

Reflections

Code

Service Call

service: media_player.play_media
data:
  media_content_id: media-source://media_source/local/doorbell.mp3
  media_content_type: media/mp3
target:
  entity_id: media_player.living_room_speaker

Automation

- id: 'XXXXX'
  alias: Virtual Doorbell
  description: 'If expecting arrival, ring doorbells'
  trigger:
  - platform: mqtt
    topic: frigate/events
  condition:
    - condition: or
      conditions:
        - condition: state
          entity_id: binary_sensor.XXXXX_person_motion
          state: 'on'
        - condition: state
          entity_id: binary_sensor.XXXXX_person_motion
          state: 'on'
  action:
    - service: media_player.volume_set
      data:
        volume_level: 0.75
      target:
        entity_id: media_player.living_room_speaker
    - service: media_player.play_media
      data:
        media_content_id: media-source://media_source/local/doorbell.mp3
        media_content_type: audio/mp3
      target:
        entity_id: media_player.living_room_speaker
  mode: single