Skip to content

Commit

Permalink
Replace HA light template white_value
Browse files Browse the repository at this point in the history
This is a workaround for the removed `set_white_value` action in HA 2022.9
Instead of white value this demo light offers now color temperature.

Relates to #10
  • Loading branch information
zehnm committed Mar 18, 2023
1 parent aca0a73 commit c673717
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docker/hass_config/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ light:
service: script.non_existent
data:
brightness: "{{ brightness }}"
set_white_value:
set_temperature:
service: input_number.set_value
data:
value: "{{ white_value }}"
entity_id: input_number.white_value_input
value: "{{ color_temp }}"
entity_id: input_number.temperature_input
set_color:
- service: input_number.set_value
data:
Expand All @@ -113,13 +113,13 @@ light:
data:
value: "{{ s }}"
entity_id: input_number.s_input
- service: light.turn_on
data_template:
entity_id:
- light.led_strip
hs_color:
- "{{ hs[0] }}"
- "{{ hs[1] }}"
# - service: light.turn_on
# data_template:
# entity_id:
# - light.led_strip
# hs_color:
# - "{{ hs[0] }}"
# - "{{ hs[1] }}"

- platform: template
lights:
Expand Down

0 comments on commit c673717

Please sign in to comment.