oui j’ai reussi. mon code est au dessus j’ai 4 input booleen pour les 4 bouton en haut a droite qui me sert de condition et ils sont attribués a une ampoule.
quand je clique sur l’un des boutons l1, le l1 se mets sur on et le l2 l3 l4 sont off.
Ensuite pour les bouton on et off, j’ai cree une automatisation on l1 quand je clique sur l1 le input passe a on et le l2 l3 l4 passe off j’ai 10 seconde pour appuyer sur on ou off apres le input l1 repasse a off
et ainsi de suite pour tout les boutons, donc j’ai 4 automatisation On, et 4 automatisation off.
ainsi de suite pour brightness 4 automatisation brightness plus et 4 brightness moins.
j’espere etre clair.
regarde au dessous, il y a une grosse partie de mets automatisation.
les automatisationq des l1, l2, l3 et l4
alias: lexmark l1
description: ''
trigger:
- platform: device
domain: mqtt
device_id: 7581f8c02fe69c40c7fcf020f256a21c
type: action
subtype: scene_1
discovery_id: 0x60a423fffe68e11d action_scene_1
condition: []
action:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.lexmark_l1
- service: input_boolean.turn_off
target:
entity_id:
- input_boolean.lexmark_l2
- input_boolean.lexmark_l3
- input_boolean.lexmark_l4
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
- service: input_boolean.turn_off
target:
entity_id:
- input_boolean.lexmark_l1
- input_boolean.lexmark_l2
- input_boolean.lexmark_l3
- input_boolean.lexmark_l4
mode: single
alias: lexmark l2
description: ''
trigger:
- platform: device
domain: mqtt
device_id: 7581f8c02fe69c40c7fcf020f256a21c
type: action
subtype: scene_2
discovery_id: 0x60a423fffe68e11d action_scene_2
condition: []
action:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.lexmark_l2
- service: input_boolean.turn_off
target:
entity_id:
- input_boolean.lexmark_l1
- input_boolean.lexmark_l3
- input_boolean.lexmark_l4
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
- service: input_boolean.turn_off
target:
entity_id:
- input_boolean.lexmark_l1
- input_boolean.lexmark_l2
- input_boolean.lexmark_l3
- input_boolean.lexmark_l4
mode: single
j’ai mis uniquement les automatisation pour l1 et l2 tu n as plus que reproduire pour l3 et l4.
ca ne sert uniquement pour la selection.
ensuite tu cree les automatisation d’action on et off pour chaque l1 , l2,l3,l4
alias: Lexmark remote Off l1
description: ''
trigger:
- platform: device
domain: mqtt
device_id: 7581f8c02fe69c40c7fcf020f256a21c
type: action
subtype: 'off'
discovery_id: 0x60a423fffe68e11d action_off
condition:
- condition: state
entity_id: input_boolean.lexmark_l1
state: 'on'
action:
- service: light.turn_off
target:
entity_id: light.lampe_tv
mode: single
alias: Lexmark remote On l1
description: ''
trigger:
- platform: device
domain: mqtt
device_id: 7581f8c02fe69c40c7fcf020f256a21c
type: action
subtype: 'on'
discovery_id: 0x60a423fffe68e11d action_on
condition:
- condition: or
conditions:
- condition: state
entity_id: input_boolean.lexmark_l1
state: 'on'
action:
- service: light.turn_on
target:
entity_id: light.lampe_tv
mode: single
les automatisations ci dessus c’est uniquement pour l1 on et off
maintenant les automatisation pour le brightness moins et plus pour l1
alias: Remote Lexman Enki Brightness moins
description: ''
trigger:
- platform: device
domain: mqtt
device_id: 5d11525272d13a0952f38d7c9aaa3caf
type: action
subtype: brightness_step_down
discovery_id: 0x60a423fffe68e11d action_brightness_step_down
condition:
- condition: state
entity_id: input_boolean.lexmark_l1
state: 'on'
action:
- type: brightness_decrease
device_id: 072190376376f06b99ee30baf77d5745
entity_id: light.lampe_tv
domain: light
mode: single
alias: Remote Lexman Enki brightness Plus
description: ''
trigger:
- platform: device
domain: mqtt
device_id: 5d11525272d13a0952f38d7c9aaa3caf
type: action
subtype: brightness_step_up
discovery_id: 0x60a423fffe68e11d action_brightness_step_up
condition:
- condition: state
entity_id: input_boolean.lexmark_l1
state: 'on'
action:
- type: brightness_increase
device_id: 072190376376f06b99ee30baf77d5745
entity_id: light.lampe_tv
domain: light
mode: single
et faut faire ca pour chaque L et ainsi de suite pour color, saturation .
j’espere etre clair.
je pense qu’il y a plus simple.