rbisschops / homeassistant

My current homeassistant configuration
MIT License
0 stars 0 forks source link

Errors in media control (due to changed input booleans) #10

Closed rbisschops closed 4 years ago

rbisschops commented 4 years ago

HA error report:

Invalid option: Televisie (input Lovelace) (possible options: Televisie, Smart-TV, Netflix, Spotify, Mediaplayer, Apple-TV, Radio, Muziek, DVD, Teletekst, PowerOff)

Logger: homeassistant.components.input_select Source: components/input_select/init.py:259 Integration: Invoer selectie (documentation, issues) First occurred: 4 april 2020 19:57:59 (3 occurrences) Last logged: 4 april 2020 20:22:14

Invalid option: Televisie (input Lovelace) (possible options: Televisie, Smart-TV, Netflix, Spotify, Mediaplayer, Apple-TV, Radio, Muziek, DVD, Teletekst, PowerOff) Invalid option: light_normal_scene (possible options: normal, relax, reading, concentrate, cleaning, dimmed, energy, clear, nightlight, christmas)

Solution: revert renamed input booleans.

rbisschops commented 4 years ago

Reverted friendly name to original name.

rbisschops commented 4 years ago

reverted back friendly names. However some templates are building wrong entity_id's for this devices.

script media_media_settings_mode_generic in package_media_center.yaml {% set entity = ["input_boolean",media_devices[old_state]]|join(".") %} changes to: {% set entity = ["input_boolean.media_",media_devices[old_state]]|join %}

and

script media_set_media_input_mode in package_media_center.yaml {% set entity = ['input_boolean',name]|join('.') %} changes to: {% set entity = ["input_boolean.media_",name]|join %}

rbisschops commented 4 years ago

Reverted input_boolean names: power_off to poweroff smart_tv to smarttv apple_tv to appletv When changed the link with the voice commands via Alexa is broken. Also UI buttons are failing. Rework will be reapplied later (after root cause analysis)