Untitled

mail@pastecode.io avatar
unknown
yaml
a month ago
6.6 kB
7
Indexable
Never
alias: Bouton Hue Lit
description: ""
trigger:
  - platform: device
    domain: mqtt
    device_id: ae46911258ce61842ae1ac1df01038f0
    type: action
    subtype: on_press
    id: ON PRESS
  - platform: device
    domain: mqtt
    device_id: ae46911258ce61842ae1ac1df01038f0
    type: action
    subtype: up_press
    id: UP PRESS
  - platform: device
    domain: mqtt
    device_id: ae46911258ce61842ae1ac1df01038f0
    type: action
    subtype: down_press
    id: DOWN PRESS
  - platform: device
    domain: mqtt
    device_id: ae46911258ce61842ae1ac1df01038f0
    type: action
    subtype: off_press
    id: HUE
condition: []
action:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - ON PRESS
        sequence:
          - service: light.toggle
            metadata: {}
            data:
              kelvin: 3025
            target:
              entity_id: light.plafond_loic
          - service: input_select.select_option
            metadata: {}
            data:
              option: NONE
            target:
              entity_id: input_select.effet_chambre_loic
      - conditions:
          - condition: trigger
            id:
              - UP PRESS
        sequence:
          - device_id: a8b6537567df33575ee23ef1ad578153
            domain: light
            entity_id: e7baeeef63f225a6ddb5dd94f80b17d9
            type: brightness_increase
          - device_id: 000e5ca5a8284269f90a01f51ae9221f
            domain: light
            entity_id: c5966a435dd7bd9c6267778d6012f141
            type: brightness_increase
          - device_id: 8f636ccc64f7a5282aa9b07c9d19fcc0
            domain: light
            entity_id: 19bb2f7bf9195a789fde9b953c54ef4a
            type: brightness_increase
          - device_id: f330379b79c38da178feddaebdfc409b
            domain: light
            entity_id: d8a40b57054e3e62a6e2e69a12134ba1
            type: brightness_increase
          - device_id: 3913a47ea827562ee554a80782b65c4e
            domain: light
            entity_id: ea4f2f08e7066b826bb4c235856b2495
            type: brightness_increase
      - conditions:
          - condition: trigger
            id:
              - DOWN PRESS
        sequence:
          - device_id: a8b6537567df33575ee23ef1ad578153
            domain: light
            entity_id: e7baeeef63f225a6ddb5dd94f80b17d9
            type: brightness_decrease
          - device_id: 000e5ca5a8284269f90a01f51ae9221f
            domain: light
            entity_id: c5966a435dd7bd9c6267778d6012f141
            type: brightness_decrease
          - device_id: 8f636ccc64f7a5282aa9b07c9d19fcc0
            domain: light
            entity_id: 19bb2f7bf9195a789fde9b953c54ef4a
            type: brightness_decrease
          - device_id: f330379b79c38da178feddaebdfc409b
            domain: light
            entity_id: d8a40b57054e3e62a6e2e69a12134ba1
            type: brightness_decrease
          - device_id: 3913a47ea827562ee554a80782b65c4e
            domain: light
            entity_id: ea4f2f08e7066b826bb4c235856b2495
            type: brightness_decrease
      - conditions:
          - condition: and
            conditions:
              - condition: trigger
                id:
                  - HUE
              - condition: state
                entity_id: input_select.effet_chambre_loic
                state: NONE
        sequence:
          - service: light.turn_off
            target:
              entity_id:
                - light.plafond_loic
            data:
              transition: 0
          - service: light.turn_on
            metadata: {}
            data:
              effect: candle
            target:
              entity_id: light.plafond_loic
          - service: input_select.select_option
            metadata: {}
            data:
              option: CANDLE
            target:
              entity_id: input_select.effet_chambre_loic
        alias: Hue Option 1 Candle
      - conditions:
          - condition: and
            conditions:
              - condition: trigger
                id:
                  - HUE
              - condition: state
                entity_id: input_select.effet_chambre_loic
                state: CANDLE
        sequence:
          - service: light.turn_off
            target:
              entity_id:
                - light.plafond_loic
            data:
              transition: 0
          - service: light.turn_on
            metadata: {}
            data:
              effect: fireplace
            target:
              entity_id: light.plafond_loic
          - service: input_select.select_option
            metadata: {}
            data:
              option: FIRE
            target:
              entity_id: input_select.effet_chambre_loic
        alias: Hue Option 2 Fire
      - conditions:
          - condition: and
            conditions:
              - condition: trigger
                id:
                  - HUE
              - condition: state
                entity_id: input_select.effet_chambre_loic
                state: FIRE
        sequence:
          - service: light.turn_off
            target:
              entity_id:
                - light.plafond_loic
            data:
              transition: 0
          - service: light.turn_on
            metadata: {}
            data:
              effect: colorloop
            target:
              entity_id: light.plafond_loic
          - service: input_select.select_option
            metadata: {}
            data:
              option: COLOR LOOP
            target:
              entity_id: input_select.effet_chambre_loic
        alias: Hue Option 3 Color Loop
      - conditions:
          - condition: and
            conditions:
              - condition: trigger
                id:
                  - HUE
              - condition: state
                entity_id: input_select.effet_chambre_loic
                state: COLOR LOOP
        sequence:
          - service: light.turn_off
            target:
              entity_id:
                - light.plafond_loic
            data:
              transition: 0
          - service: light.turn_on
            metadata: {}
            data:
              effect: candle
            target:
              entity_id: light.plafond_loic
          - service: input_select.select_option
            metadata: {}
            data:
              option: CANDLE
            target:
              entity_id: input_select.effet_chambre_loic
        alias: Hue Option 4 Back To Default
mode: single
Leave a Comment