@IvoryBalboa90
ich habes mal so gemacht,
Der vereinfachter Code, nur die beiden Tasten, links und rechts. Und das jeweilige Template.
Traces/ Timeline zu beiden Tasten sieht so aus:
![Bildschirmfoto 2022-10-25 um 09.37.12.png Bildschirmfoto 2022-10-25 um 09.37.12.png](https://forum.heimnetz.de/data/attachments/1/1840-02f796ff9a3d9156bea694119c0ca1f5.jpg)
![Bildschirmfoto 2022-10-25 um 09.39.42.png Bildschirmfoto 2022-10-25 um 09.39.42.png](https://forum.heimnetz.de/data/attachments/1/1841-36fcb66da8487c77e46b2e247b2728d5.jpg)
ich habes mal so gemacht,
Der vereinfachter Code, nur die beiden Tasten, links und rechts. Und das jeweilige Template.
YAML:
alias: Wandlampe Test
description: ""
trigger:
- device_id: a3a577d3755b927e738c7537e39d5cfb
domain: zha
platform: device
type: remote_button_short_press
subtype: left
id: Taste Kaltweiß
- device_id: a3a577d3755b927e738c7537e39d5cfb
domain: zha
platform: device
type: remote_button_short_press
subtype: right
id: Taste Warmweiß
condition: []
action:
- if:
- condition: trigger
id: Taste Kaltweiß
then:
- service: light.turn_on
data:
color_temp: >-
{{ iif ((state_attr('light.wand_lampe_gruppe', 'color_temp') | int >
50), (state_attr('light.wand_lampe_gruppe', 'color_temp')| int(0) -
50),1) }}
target:
entity_id: light.wand_lampe_gruppe
- if:
- condition: trigger
id: Taste Warmweiß
then:
- service: light.turn_on
data:
color_temp: >-
{{ iif ((state_attr('light.wand_lampe_gruppe', 'color_temp') | int <
616), (state_attr('light.wand_lampe_gruppe', 'color_temp')| int(0) +
50),666) }}
target:
entity_id: light.wand_lampe_gruppe
mode: single
![Bildschirmfoto 2022-10-25 um 09.37.12.png Bildschirmfoto 2022-10-25 um 09.37.12.png](https://forum.heimnetz.de/data/attachments/1/1840-02f796ff9a3d9156bea694119c0ca1f5.jpg)
![Bildschirmfoto 2022-10-25 um 09.39.42.png Bildschirmfoto 2022-10-25 um 09.39.42.png](https://forum.heimnetz.de/data/attachments/1/1841-36fcb66da8487c77e46b2e247b2728d5.jpg)