Hi, I have a working automation with aqara opple 3 double buttons to control 3 differents covers. It´s too long… I need 3 actions for every cover: open, close and stop. Open with short push A button, close with short push B button and stop with A or B long push. The same thing with C and D buttons for second cover and the same with E and F buttons for third cover.
I would like to make it shorter, but i don´t know how to do it.
Any help it would be very appreciated.
Here it is the automation:
- alias: Control remoto estores despacho
id: control-remoto-estores-despacho
initial_state: 'on'
trigger:
- platform: event
event_type: deconz_event
event_data:
id: m_despacho_estores
event: 5002
id: subir_estore_exterior
- platform: event
event_type: deconz_event
event_data:
id: m_despacho_estores
event: 6002
id: bajar_estore_exterior
- platform: event
event_type: deconz_event
event_data:
id: m_despacho_estores
event: 5001
id: parar_estore_exterior
- platform: event
event_type: deconz_event
event_data:
id: m_despacho_estores
event: 6001
id: parar_estore_exterior
- platform: event
event_type: deconz_event
event_data:
id: m_despacho_estores
event: 3002
id: subir_estore_interior
- platform: event
event_type: deconz_event
event_data:
id: m_despacho_estores
event: 4002
id: bajar_estore_interior
- platform: event
event_type: deconz_event
event_data:
id: m_despacho_estores
event: 3001
id: parar_estore_interior
- platform: event
event_type: deconz_event
event_data:
id: m_despacho_estores
event: 4001
id: parar_estore_interior
- platform: event
event_type: deconz_event
event_data:
id: m_despacho_estores
event: 1002
id: subir_persiana_interior
- platform: event
event_type: deconz_event
event_data:
id: m_despacho_estores
event: 2002
id: bajar_persiana_interior
- platform: event
event_type: deconz_event
event_data:
id: m_despacho_estores
event: 1001
id: parar_persiana_interior
- platform: event
event_type: deconz_event
event_data:
id: m_despacho_estores
event: 2001
id: parar_persiana_interior
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: subir_estore_exterior
sequence:
- service: cover.open_cover
target:
entity_id:
- cover.node_12_roller_shutter_3_despacho_3
- conditions:
- condition: trigger
id: bajar_estore_exterior
sequence:
- service: cover.close_cover
target:
entity_id:
- cover.node_12_roller_shutter_3_despacho_3
- conditions:
- condition: trigger
id: parar_estore_exterior
sequence:
- service: cover.stop_cover
target:
entity_id:
- cover.node_12_roller_shutter_3_despacho_3
- conditions:
- condition: trigger
id: subir_estore_interior
sequence:
- service: cover.open_cover
target:
entity_id:
- cover.node_13_roller_shutter_3_despacho_4
- conditions:
- condition: trigger
id: bajar_estore_interior
- condition: state
entity_id: sensor.s_despacho_puerta
state: 'Cerrada'
sequence:
- service: cover.close_cover
target:
entity_id:
- cover.node_13_roller_shutter_3_despacho_4
- conditions:
- condition: trigger
id: parar_estore_interior
sequence:
- service: cover.stop_cover
target:
entity_id:
- cover.node_13_roller_shutter_3_despacho_4
- conditions:
- condition: trigger
id: subir_persiana_interior
sequence:
- service: cover.open_cover
target:
entity_id:
- cover.node_8_roller_shutter_3_dormitorio
- conditions:
- condition: trigger
id: bajar_persiana_interior
sequence:
- service: cover.close_cover
target:
entity_id:
- cover.node_8_roller_shutter_3_dormitorio
- conditions:
- condition: trigger
id: parar_persiana_interior
sequence:
- service: cover.stop_cover
target:
entity_id:
- cover.node_8_roller_shutter_3_dormitorio
mode: restart