automation: #----------------------------------------------------------------------------------# # L/R #----------------------------------------------------------------------------------# # Button Left: Pos Left - alias: button_pos_left trigger: # Bed - platform: device domain: mqtt device_id: 4f9d195bf907da59e1461a5d2404f606 type: action subtype: arrow_left_click discovery_id: 0x0c4314fffee0bb44 action_arrow_left_click # Door - platform: device domain: mqtt device_id: 5e67efdee83ccceaac84046dfc6c735e type: action subtype: arrow_left_click discovery_id: 0x0c4314fffef68790 action_arrow_left_click action: #- service: script.pos_left_incr - service: scene.turn_on target: entity_id: scene.light_adaptive metadata: {} mode: single # Button Left: Pos Right - alias: button_pos_right trigger: # Desk - platform: device domain: mqtt device_id: 121e4230e41feb19254fa92ed5335760 type: action subtype: "on" discovery_id: 0x2c1165fffebebf6d action_on # Bed - platform: device domain: mqtt device_id: 4f9d195bf907da59e1461a5d2404f606 type: action subtype: arrow_right_click discovery_id: 0x0c4314fffee0bb44 action_arrow_right_click # Door - platform: device domain: mqtt device_id: 5e67efdee83ccceaac84046dfc6c735e type: action subtype: arrow_left_click discovery_id: 0x0c4314fffef68790 action_arrow_right_click action: #- service: script.pos_right_incr - service: scene.turn_on target: entity_id: scene.light_night metadata: {} # Button Desk: Up - alias: button_desk_up trigger: # Desk - platform: device domain: mqtt device_id: 121e4230e41feb19254fa92ed5335760 type: action subtype: "on" discovery_id: 0x2c1165fffebebf6d action_on action: - service: script.pos_right_incr metadata: {} #----------------------------------------------------------------------------------# # Up/Down #----------------------------------------------------------------------------------# # Up - alias: button_up trigger: # Desk #- platform: device # domain: mqtt # device_id: 121e4230e41feb19254fa92ed5335760 # type: action # subtype: "on" # discovery_id: 0x2c1165fffebebf6d action_on # Bed - platform: device domain: mqtt device_id: 4f9d195bf907da59e1461a5d2404f606 type: action subtype: "on" discovery_id: 0x0c4314fffee0bb44 action_on # Door - platform: device domain: mqtt device_id: 5e67efdee83ccceaac84046dfc6c735e type: action subtype: "on" discovery_id: 0x0c4314fffef68790 action_on action: #- service: script.pos_up - service: scene.turn_on target: entity_id: scene.light_bright metadata: {} mode: single # Down - alias: button_down trigger: # Desk - platform: device domain: mqtt device_id: 121e4230e41feb19254fa92ed5335760 type: action subtype: "off" discovery_id: 0x2c1165fffebebf6d action_off # Bed - platform: device domain: mqtt device_id: 4f9d195bf907da59e1461a5d2404f606 type: action subtype: "off" discovery_id: 0x0c4314fffee0bb44 action_off # Door - platform: device domain: mqtt device_id: 5e67efdee83ccceaac84046dfc6c735e type: action subtype: "off" discovery_id: 0x0c4314fffef68790 action_off action: #- service: script.pos_down - service: light.turn_off target: entity_id: light.all_lights mode: single