alias: Bedroom Light Control Fuga
description: ""
trigger:
  - platform: device
    domain: mqtt
    device_id: a7e9e87f9849ade2c230ead1ee7697e7
    type: action
    subtype: press_1
    discovery_id: 0x0000000001716704 action_press_1
    id: "1"
  - platform: device
    domain: mqtt
    device_id: a7e9e87f9849ade2c230ead1ee7697e7
    type: action
    subtype: press_3
    discovery_id: 0x0000000001716704 action_press_3
    id: "3"
  - platform: device
    domain: mqtt
    device_id: a7e9e87f9849ade2c230ead1ee7697e7
    type: action
    subtype: press_2
    discovery_id: 0x0000000001716704 action_press_2
    id: "2"
  - platform: device
    domain: mqtt
    device_id: a7e9e87f9849ade2c230ead1ee7697e7
    type: action
    subtype: press_4
    discovery_id: 0x0000000001716704 action_press_4
    id: "4"
condition: []
action:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - "1"
        sequence:
          - service: light.turn_on
            metadata: {}
            data: {}
            target:
              area_id: bedroom
      - conditions:
          - condition: trigger
            id:
              - "3"
        sequence:
          - service: light.turn_off
            metadata: {}
            data: {}
            target:
              area_id: bedroom
      - conditions:
          - condition: trigger
            id:
              - "2"
        sequence:
          - service: light.turn_on
            metadata: {}
            data:
              brightness_step_pct: 15
            target:
              area_id: bedroom
      - conditions:
          - condition: trigger
            id:
              - "4"
        sequence:
          - service: light.turn_on
            metadata: {}
            data:
              brightness_step_pct: -15
            target:
              area_id: bedroom
mode: single