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

[LifX] set_state not working on groups #31659

Open
Luzifer opened this issue Feb 9, 2020 · 0 comments
Open

[LifX] set_state not working on groups #31659

Luzifer opened this issue Feb 9, 2020 · 0 comments

Comments

@Luzifer
Copy link

@Luzifer Luzifer commented Feb 9, 2020

The problem

When setting a brightness_pct (or any other attribute) using the lifx.set_state service on a group (auto-generated group.all_lights or platform: group in lights) nothing happens while the same call on a single light.my_name is working fine.

With light.lifx_set_state on 0.102.x the call was working on groups.

Environment

  • Home Assistant release with the issue: 0.105.2 (official Docker image)
  • Last working Home Assistant release (if known): n/a
  • Operating environment (Hass.io/Docker/Windows/etc.): Docker
  • Integration causing this issue: LifX
  • Link to integration documentation on our website: integrations/lifx

Problem-relevant configuration.yaml

automations:
- alias: Change light brightness on nightmode change
  trigger:
    - platform: state                                                                                                                                                                                                                                                                                                                                                   
      entity_id: switch.nightmode
  action:
    service: lifx.set_state
    data_template:
      entity_id: group.all_lights
      transition: 10
      brightness_pct: '{{ 75 if trigger.to_state.state == "off" else 25 }}'

lights:
- platform: group
  name: Livingroom Light
  entities:
    - light.wohnzimmer_links
    - light.wohnzimmer_rechts

Simplified data for WebUI Developer Tools with service lifx.set_state

Not working:

entity_id: light.livingroom_light
brightness_pct: 75

Working:

entity_id: light.wohnzimmer_links
brightness_pct: 75

Traceback/Error logs

none

Additional information

All mentioned groups only contains LifX lights, no other integrations are present in those groups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.