Im trying to get a script working but gets this fail no matter what i do?:
2018-01-17 16:04:53 ERROR (Thread-2) [homeassistant.util.yaml] Unable to read file /home/homeassistant/.homeassistant/scripts.yaml: ‘utf-8’ codec can’t decode byte 0xe5 in position 42: invalid continuation byte
2018-01-17 16:04:53 ERROR (MainThread) [homeassistant.bootstrap] Error loading /home/homeassistant/.homeassistant/configuration.yaml: ‘utf-8’ codec can’t decode byte 0xe5 in position 42: invalid continuation byte
treno
(travis reno)
January 17, 2018, 3:53pm
2
you might have a unicode å in your file.
netradio:
alias: Afspil Radio på Chromecast Audio
sequence:
- service: media_player.volume_set
data:
entity_id: media_player.kkken__stue
volume_level: ‘0.30’
- service: media_player.volume_set
data:
entity_id: media_player.badevrelse
volume_level: ‘0.20’
- service: media_player.volume_set
data:
entity_id: media_player.garage_speaker
volume_level: ‘0.30’
- service: media_player.play_media
data:
entity_id: >
{% if is_state(“input_select.chromecast_radio”, “Køkken/stue”) %} media_player.kkken_stue
{% elif is_state(“input_select.chromecast_radio”, “Badeværelse”) %} media_player.badevrelse
{% elif is_state(“input_select.chromecast_radio”, “Garage”) %} media_player.garage_speaker
{% elif is_state(“input_select.chromecast_radio”, “Alle rum”) %} media_player.home_group
{% endif %}
media_content_id: >
{% if is_state(“input_select.radio_station”, “Det rigtige Faaborg”) %} http://stream.wlmm.dk/detrigtigefaaborg
{% elif is_state(“input_select.radio_station”, “myROCK”) %} http://tx-bauerdk.sharp-stream.com/http_live.php?i=myrock_dk_tunein_mp3
{% elif is_state(“input_select.radio_station”, “P3”) %} http://live-icy.gss.dr.dk/A/A05H.mp3
{% endif %}
media_content_type: ‘audio/mp4’
treno
(travis reno)
January 17, 2018, 4:31pm
5
It doesn’t like your alias :
alias: Afspil Radio på Chromecast Audio
because of the unicode character å
Try changing it to
alias: Afspil Radio pa Chromecast Audio
thanks. Now there is some other problem:
2018-01-17 17:32:50 ERROR (Thread-2) [homeassistant.util.yaml] Unable to read file /home/homeassistant/.homeassistant/scripts.yaml: ‘utf-8’ codec can’t decode byte 0xf8 in position 665: invalid start byte
2018-01-17 17:32:50 ERROR (MainThread) [homeassistant.bootstrap] Error loading /home/homeassistant/.homeassistant/configuration.yaml: ‘utf-8’ codec can’t decode byte 0xf8 in position 665: invalid start byte
treno
(travis reno)
January 17, 2018, 5:04pm
7
You need to take all the non-ascii characters out of your script.
I can see ø, and æ,
These have to go.
But it has been working with my old installation. Will try to update my hassbian first off
treno
(travis reno)
January 17, 2018, 6:50pm
9
What editor are you using. Be sure you are saving your files with an editor that supports UTF8 encoding.
does notepad++ support that?