sp108e_ws2815 icon indicating copy to clipboard operation
sp108e_ws2815 copied to clipboard

Changing effect in HA Automation not working

Open H0nzik1 opened this issue 3 years ago • 2 comments

I am trying to change color effect in automation and it is not working, only brightness changes. Any idea?

  • id: '1615791873421' alias: Automatizace kuchyn podsviceni zapnout description: '' trigger:
    • platform: sun event: sunset condition: [] action:
    • type: turn_on device_id: 5609b13d8195cc33830ae068eeb10ec3 entity_id: switch.kuchyn_podsviceni_led_e8db84c66253 domain: switch
    • service: light.turn_on data: brightness_pct: 80 effect: Rainbow target: entity_id: light.kuchyne_podsviceni_sp108e mode: single** obrazek

H0nzik1 avatar Mar 28 '21 18:03 H0nzik1

Помогите:

lenta50: alias: Потолок вкл 50 sequence:

  • service: light.turn_on target: entity_id: light.lenta data: brightness: 50
  • service: light.turn_on target: entity_id: light.lenta data: {} mode: single

Этот скрипт работает.

lenta100: alias: Потолок вкл 100 sequence:

  • service: light.turn_on target: entity_id: light.lenta data: brightness: 255 rgb_color: 255, 255, 255
  • service: light.turn_on target: entity_id: light.lenta data: {} mode: single

Этот не хочет работать, выдаёт ошибку:

2021-04-13 00:42:28 ERROR (MainThread) [homeassistant.components.script.lenta100] Потолок вкл 100: Error executing script. Invalid data for call_service at pos 1: None for dictionary value @ data['rgb_color']

Как надо указать параметр для цвета?

kusok18 avatar Apr 12 '21 21:04 kusok18

not sure, i have not had much success with automations either, i think it may be something to do with sending the command, thinking that it may need to verify the state after command is sent to make sure it got done or retry...

samhstein avatar Apr 23 '21 00:04 samhstein