I am missing something an am lost to what it is to get media working. I can play the chime with aplay so I know the sound is working.
configuration.yaml
media_player:
- platform: vlc
name: speaker
arguments: ‘–alsa-audio-device=hw:0,0’
Text to speech
tts:
- platform: picotts
script.yaml
test_wave:
- service: media_player.play_media
data:
entity_id: media_player.speaker
media_content_id: /home/homeassistant/chime.wav
media_content_type: ‘music’
media_content_type: ‘audio/wav’
Errors. I have not stated to automation yet.
hass --script check_config -c /home/homeassistant/.homeassistant/
Testing configuration at /home/homeassistant/.homeassistant/
ERROR:homeassistant.config:Invalid config for [script]: expected a dictionary for dictionary value @ data[‘script’][‘test_wave’]. Got [OrderedDict([(‘service’, ‘media_player.play_media’),
(‘data’, OrderedDict([(‘entity_id’, ‘media_player.speaker’),
(‘media_content_id’, ‘/home/homeassistant/chime.wav’),
(‘media_content_type’, ‘music’)]))])]. (See /home/homeassistant/.homeassistant/configuration.yaml, line 92).
Please check the docs at https://home-assistant.io/components/script/
ERROR:homeassistant.setup:Setup failed for script: Invalid config.
Failed config
script:
test_wave: [source /home/homeassistant/.homeassistant/scripts.yaml:1]
- data: [source /home/homeassistant/.homeassistant/scripts.yaml:3]
entity_id: media_player.speaker
media_content_id: /home/homeassistant/chime.wav
media_content_type: music
service: media_player.play_media
General Errors:
- Setup failed for script: Invalid config.