rbisschops / homeassistant

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

Light scenes not selected correctly due to changed input.booleans #16

Closed rbisschops closed 4 years ago

rbisschops commented 4 years ago

package_hue.yaml: automation Light - scene lighting livingroom needs rework to match new input boolean names script light_hue_set_scene_from_buttons needs rework to match new input boolean names input_select.light_scene_current_state might need rework input_select.light_scene_old_state might need rework

rbisschops commented 4 years ago

File: package_hue.yaml Automation: Light - scene lighting livingroom

Replaced: {% set trigger = trigger.to_state.object_id|replace('scene_','') %} with: {% set trigger = trigger.to_state.object_id|replace("_scene","")|replace("light_","") %}

This will restore the composition of the correct mode from the input_boolean that triggered the light mode.

rbisschops commented 4 years ago

File: package_hue.yaml Script: light_hue_set_scene_from_buttons

Replaced: {% set entity = 'input_boolean.scene_' ~ old_scene %} with: {% set entity = "input_boolean.light_" ~ old_scene ~ "_scene" %}

This will restore the composition of the correct input_boolean for the light modes.