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 operation on the intial state on_set have no effect #39

Open
majkrzak opened this issue Jan 31, 2023 · 0 comments
Open

Light operation on the intial state on_set have no effect #39

majkrzak opened this issue Jan 31, 2023 · 0 comments

Comments

@majkrzak
Copy link

I'm trying to set light status in on_set of the initial state, but it does not have effect.

  - light.turn_on:
      id: status
      transition_length: 0s
      brightness: 25%
      red: 100%
      green: 100%
      blue: 100%
light:
- id: status
  platform: neopixelbus
  restore_mode: ALWAYS_ON
  variant: SK6812
  num_leds: 1
  default_transition_length: 0s
  pin: GPIO27

Probably initial state transition happens to early. In my logs I see it way before setup finishes and config is dumped.
Light transition is visible in logs but ignored:

[21:23:06][D][light:035]: 'status' Setting:
[21:23:06][D][light:040]:   Color mode: RGB
[21:23:06][D][light:046]:   State: ON
[21:23:06][D][state_machine:085]: State set to STARTING
[21:23:06][D][light:035]: 'status' Setting:
[21:23:06][D][light:050]:   Brightness: 25%
[21:23:06][D][light:058]:   Red: 100%, Green: 100%, Blue: 100%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant