Hi there,
I’m looking for a media player which is working on Raspberry. I want to use for playing music (all day) + TTS notifications.
Nowadays I’m using Volumio. But its doesnt work without MPD integration for TTS messages. My existing automation like this:
- Pause Volumio
- Set Volumio volume level
- Play dingdong.mp3 with MPD
- Delay 2sec
- Call TTS and and speak messages
- Delay 15sec
- Set Volumio volume level
- Play Volumio and continue music playing
One of my automation as below:
alias: Hava Durumu
description: ""
trigger:
- platform: time
at: "09:00:00"
condition:
- condition: time
before: "00:00:00"
weekday:
- mon
- tue
- wed
- thu
- fri
after: "00:00:00"
action:
- service: media_player.media_pause
data: {}
target:
device_id: 3df8a2cdef629f975ea3dc2de2cdc621
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- service: media_player.volume_set
data:
volume_level: 0.89
target:
device_id: 3df8a2cdef629f975ea3dc2de2cdc621
- service: media_player.play_media
data:
media_content_id: https://ip:8123/local/dingdong.mp3
media_content_type: audio/mp3
enqueue: play
target:
entity_id: media_player.volumio_mpd
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: tts.google_cloud_say
data:
entity_id: media_player.volumio_mpd
message: >-
Herkese merhaba. İstanbul'da bugün hava {{
states("sensor.bugun_hava_durumu") }} ve hissedilecek en yüksek sıcaklık
ise {{ states("sensor.bugun_hava_sicakligi") }} derece.
- delay:
hours: 0
minutes: 0
seconds: 15
milliseconds: 0
- service: media_player.volume_set
data:
volume_level: 0.5
target:
device_id: 3df8a2cdef629f975ea3dc2de2cdc621
- service: media_player.media_play
data: {}
target:
entity_id: media_player.emc_snd_001
mode: parallel
max: 10
This automation works well. But sometimes passing TTS messages. Normally music volume level 0.5 and increasing while TTS active, then decrease to 0.5 again. When TTS passing, music playing very loudly.
I dont know why. I suspect Volumio and MPD. Because of I’m looking for different media player can handle play music and TTS with single entity ID (as you see Volumio and MPD has different entity IDs)
Thanks in advance for your comments and suggestions.
Belek