Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105697

G4 Chime & Google Cast

$
0
0

I’m trying to have My google mini play a mp3 door effect whenever the Door Bell button on the G4 is pressed. I’ve added the Google mini via the Google Cast option. If I do a “Run Action” the effect does play. If I go press the door bell button, the effect does not play. I’ve pasted below the YAML files below in both Trigger and action. I also pasted below the event occurrence whenever the doorbell is pressed. Sorry for my format, I’m all new to this

trigger: state
entity_id:
  - event.g4_doorbell_pro_doorbell
attribute: event_type
to: ring
from: ring
action: media_player.play_media
target:
  entity_id: media_player.dining_room_speaker
data:
  media_content_id: media-source://media_source/local/Door Bell Sound Effect.mp3
  media_content_type: audio/mpeg
metadata:
  title: Door Bell Sound Effect.mp3
  thumbnail: null
  media_class: music
  children_media_class: null
  navigateIds:
    - {}
    - media_content_type: app
      media_content_id: media-source://media_source

vent_type: state_changed
data:
  entity_id: event.g4_doorbell_pro_doorbell
  old_state:
    entity_id: event.g4_doorbell_pro_doorbell
    state: "2025-03-18T23:14:57.212+00:00"
    attributes:
      event_types:
        - ring
      event_type: ring
      event_id: 67d9fe7100c48003e40088dc
      attribution: Powered by UniFi Protect Server
      device_class: doorbell
      icon: mdi:doorbell-video
      friendly_name: G4 Doorbell Pro Doorbell
    last_changed: "2025-03-18T23:14:57.212996+00:00"
    last_reported: "2025-03-18T23:14:57.212996+00:00"
    last_updated: "2025-03-18T23:14:57.212996+00:00"
    context:
      id: 01JPNRKTHW1RTSR6S6EJRRCBXR
      parent_id: null
      user_id: null
  new_state:
    entity_id: event.g4_doorbell_pro_doorbell
    state: "2025-03-18T23:15:13.564+00:00"
    attributes:
      event_types:
        - ring
      event_type: ring
      event_id: 67d9fe8102218003e40088e1
      attribution: Powered by UniFi Protect Server
      device_class: doorbell
      icon: mdi:doorbell-video
      friendly_name: G4 Doorbell Pro Doorbell
    last_changed: "2025-03-18T23:15:13.564915+00:00"
    last_reported: "2025-03-18T23:15:13.564915+00:00"
    last_updated: "2025-03-18T23:15:13.564915+00:00"
    context:
      id: 01JPNRMAGWXBCXWC6WWVHE0A9B
      parent_id: null
      user_id: null
origin: LOCAL
time_fired: "2025-03-18T23:15:13.564915+00:00"
context:
  id: 01JPNRMAGWXBCXWC6WWVHE0A9B
  parent_id: null
  user_id: null

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 105697

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>