Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rbisschops opened this issue Apr 5, 2020 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@rbisschops
Copy link
Owner

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 rbisschops changed the title Light scenes not selected correctly duu to changed input.booleans Light scenes not selected correctly due to changed input.booleans Apr 5, 2020
@rbisschops
Copy link
Owner Author

rbisschops commented Apr 5, 2020

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
Copy link
Owner Author

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.

@rbisschops rbisschops added the bug Something isn't working label Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant