esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 36 forks source link

effect_list doesn't show up in Home-assistant UI #55

Closed Yannik25 closed 5 years ago

Yannik25 commented 5 years ago

Operating environment/Installation (Hass.io/Docker/pip/etc.):

Hassbian

ESP (ESP32/ESP8266, Board/Sonoff):

Wemos D1 Mini

Affected component:

https://esphome.io/components/light/#light-effects

Description of problem:

effect_list doesn't show up in Home-assistant UI. Effects are listed under states, but while trying to set State under States in Home-assistant nothing happens. In the log you only can see changes, when change the color.

Problem-relevant YAML-configuration entries:

PASTE YAML FILE HERE

light:
  - platform: fastled_clockless
    chipset: WS2812B
    pin: GPIO0
    num_leds: 60
    rgb_order: GRB
    name: "Decken-LED"
    effects:
      - addressable_rainbow:

Traceback (if applicable):

Additional information and things you've tried:

Log: while changing Color with HA

[16:33:30][D][light.state:454]: 'Decken-LED' Turning ON
[16:33:30][D][light.state:486]:   Red=100%, Green=0%, Blue=0%
[16:33:30][D][light.state:496]:   Transition Length: 1000 ms
[16:33:31][D][light.state:454]: 'Decken-LED' Turning ON
[16:33:31][D][light.state:486]:   Red=0%, Green=0%, Blue=100%
[16:33:31][D][light.state:496]:   Transition Length: 1000 ms
[16:33:32][D][light.state:454]: 'Decken-LED' Turning ON
[16:33:32][D][light.state:486]:   Red=0%, Green=0%, Blue=100%
[16:33:32][D][light.state:496]:   Transition Length: 1000 ms
[16:33:32][D][light.state:454]: 'Decken-LED' Turning ON
[16:33:32][D][light.state:486]:   Red=100%, Green=100%, Blue=100%
[16:33:32][D][light.state:496]:   Transition Length: 1000 ms

State atrributes at Home-assistant State page

{
  "friendly_name": "Decken-LED",
  "supported_features": 61,
  "rgb_color": [
    0,
    0,
    255
  ],
  "effect_list": [
    "None",
    "Rainbow"
  ],
  "effect": "None",
  "hs_color": [
    240,
    100
  ],
  "brightness": 255,
  "xy_color": [
    0.136,
    0.04
  ]
}
OttoWinter commented 5 years ago

That is a home assistant error then. When it is listed under the effect_list esphome has done its part in getting it into HA.

Probably a simple HA restart or page reload should solve it though