Il faut prendre le pro pour avoir les 6 faces indépendantes il me semble…
J’ai récup cette télécommande Enki/Lexman (LeroyMerloche): voici l’automatisation dont je me sers.
J’ai créé un inpu_select à quatre options dont chacune est une entity_id de mes lumières.
Pour le moment, uniquement ON / OFF lumUP et lumDOWN., mais les triggers sont déjà créés, reste à définir les actions voulues pour HUE / SAT / TEMP up et down.
########################## CODE ##########################
alias: Light [living] Remote > Enki 4 lights
description: ""
trigger:
- platform: device
domain: mqtt
device_id: YOUR_DEVICE_ID
type: action
subtype: scene_1
id: light_1
- platform: device
domain: mqtt
device_id: YOUR_DEVICE_ID
type: action
subtype: scene_2
id: light_2
- platform: device
domain: mqtt
device_id: YOUR_DEVICE_ID
type: action
subtype: scene_3
id: light_3
- platform: device
domain: mqtt
device_id: YOUR_DEVICE_ID
type: action
subtype: scene_4
id: light_4
- platform: device
domain: mqtt
device_id: YOUR_DEVICE_ID
type: action
subtype: "on"
id: light_on
- platform: device
domain: mqtt
device_id: YOUR_DEVICE_ID
type: action
subtype: "off"
id: light_off
- platform: device
domain: mqtt
device_id: YOUR_DEVICE_ID
type: action
subtype: brightness_step_up
id: bright_up
- platform: device
domain: mqtt
device_id: YOUR_DEVICE_ID
type: action
subtype: brightness_step_down
id: bright_down
- platform: device
domain: mqtt
device_id: YOUR_DEVICE_ID
type: action
subtype: color_temperature_step_up
id: temp_up
- platform: device
domain: mqtt
device_id: YOUR_DEVICE_ID
type: action
subtype: color_temperature_step_down
id: temp_down
- platform: device
domain: mqtt
device_id: YOUR_DEVICE_ID
type: action
subtype: color_saturation_step_up
id: sat_up
- platform: device
domain: mqtt
device_id: YOUR_DEVICE_ID
type: action
subtype: color_saturation_step_down
id: sat_down
- platform: device
domain: mqtt
device_id: YOUR_DEVICE_ID
type: action
subtype: color_hue_step_up
id: hue_up
- platform: device
domain: mqtt
device_id: YOUR_DEVICE_ID
type: action
subtype: color_hue_step_down
id: hue_down
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: light_1
sequence:
- service: input_select.set_options
data:
options: YOUR_OPTION_1
target:
entity_id: YOUR_INPUT_SELECT_ENTITY_ID
- conditions:
- condition: trigger
id: light_2
sequence:
- service: input_select.set_options
data:
options: YOUR_OPTION_2
target:
entity_id: YOUR_INPUT_SELECT_ENTITY_ID
- conditions:
- condition: trigger
id: light_3
sequence:
- service: input_select.set_options
data:
options: YOUR_OPTION_3
target:
entity_id: YOUR_INPUT_SELECT_ENTITY_ID
- conditions:
- condition: trigger
id: light_4
sequence:
- service: input_select.set_options
data:
options: YOUR_OPTION_4
target:
entity_id: YOUR_INPUT_SELECT_ENTITY_ID
- conditions:
- condition: trigger
id: light_on
sequence:
- service: light.turn_on
metadata: {}
data: {}
target:
entity_id: >-
{{
states('YOUR_INPUT_SELECT_ENTITY_ID')
}}
- conditions:
- condition: trigger
id: light_off
sequence:
- service: light.turn_off
metadata: {}
data: {}
target:
entity_id: >-
{{
states('YOUR_INPUT_SELECT_ENTITY_ID')
}}
- conditions:
- condition: trigger
id: bright_up
sequence:
- service: light.turn_on
target:
entity_id: >-
{{
states('YOUR_INPUT_SELECT_ENTITY_ID')
}}
data:
brightness_step: 50
- conditions:
- condition: trigger
id: bright_down
sequence:
- service: light.turn_on
target:
entity_id: >-
{{
states('YOUR_INPUT_SELECT_ENTITY_ID')
}}
data:
brightness_step: -50
mode: parallel