Hey all. I’m still very new to Home Assistant.
I made an automation that plays music (Google Nest mini) via brightness sensor in the shower at volume 0.3. But then when I want to take a shower, I send my Nest mini the command “Hey Google, play my favorite music” → Spotify plays → “Hey Google, volume to 5”. Can I make it so that as soon as I say a voice command to my assistant, it automatically sets volume level 0.5? Thank you
itnassol
(Andrew)
January 5, 2023, 11:14am
2
Have you set this up in Google routines or HA, if HA can we have the YAML please.
I would like to set it up in HA.
Do you mean this YAML code?
alias: Dusche - Musik an bei Licht
description: ""
trigger:
- type: illuminance
platform: device
device_id: 7fc0fab735738f2ab143fffddbea6552
entity_id: sensor.aqara_lichtsensor_dusche_illuminance_lux
domain: sensor
above: 60
condition:
- condition: time
after: "07:00:00"
before: "22:15:00"
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
enabled: true
action:
- service: media_player.volume_set
data:
volume_level: 0.2
enabled: true
target:
entity_id: media_player.dusche
- service: media_player.play_media
target:
entity_id: media_player.mass_dusche
data:
media_content_id: media-source://mass/database://radio/23
media_content_type: audio/flac
metadata:
title: Radio Regenbogen - Soft & Lazy
thumbnail: >-
https://images.weserv.nl/?w=200&url=http://cdn-profiles.tunein.com/s142689/images/logoq.jpg?t=1
media_class: music
children_media_class: null
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://mass
- media_content_type: music
media_content_id: media-source://mass/radio
mode: single
Than you