Flo_R1der

Beleuchtung Waschtisch

Aug 24th, 2026
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.89 KB | Software | 0 0
  1. alias: Beleuchtung Waschtisch
  2. description: ''
  3. triggers:
  4.   - trigger: state
  5.     entity_id:
  6.      - binary_sensor.anwesenheit_bad_presence
  7.     id: presence_ON
  8.     to:
  9.      - 'on'
  10.   - trigger: state
  11.     entity_id:
  12.      - binary_sensor.anwesenheit_bad_presence
  13.     id: presence_OFF
  14.     to:
  15.      - 'off'
  16. conditions: []
  17. actions:
  18.   - choose:
  19.       - conditions:
  20.           - condition: trigger
  21.             id:
  22.              - presence_ON
  23.         sequence:
  24.           - choose:
  25.               - conditions:
  26.                   - condition: numeric_state
  27.                     entity_id: sensor.anwesenheit_bad_illuminance
  28.                     below: 150
  29.                   - condition: state
  30.                     entity_id: light.licht_badezimmer
  31.                     state:
  32.                      - 'off'
  33.                 sequence:
  34.                   - action: light.turn_on
  35.                     metadata: {}
  36.                     target:
  37.                       entity_id: light.waschtisch
  38.                     data:
  39.                       rgb_color:
  40.                        - 255
  41.                         - 255
  42.                         - 255
  43.                       brightness_pct: 1
  44.                       transition: 0.1
  45.                   - delay:
  46.                       hours: 0
  47.                       minutes: 0
  48.                       seconds: 0
  49.                       milliseconds: 300
  50.                   - action: light.turn_on
  51.                     metadata: {}
  52.                     target:
  53.                       entity_id: light.waschtisch
  54.                     data:
  55.                       rgb_color:
  56.                        - 255
  57.                         - 255
  58.                         - 255
  59.                       transition: 2
  60.                       brightness_pct: 70
  61.               - conditions:
  62.                   - condition: state
  63.                     entity_id: binary_sensor.ventilation_recommendation_badezimmer
  64.                     state:
  65.                      - 'on'
  66.                     enabled: true
  67.                 sequence:
  68.                   - action: light.turn_on
  69.                     metadata: {}
  70.                     target:
  71.                       entity_id: light.waschtisch
  72.                     data:
  73.                       brightness_pct: 1
  74.                       rgb_color:
  75.                        - 255
  76.                         - 0
  77.                         - 200
  78.                       effect: blink
  79.                       transition: 0.1
  80.                   - delay:
  81.                       hours: 0
  82.                       minutes: 0
  83.                       seconds: 0
  84.                       milliseconds: 300
  85.                   - repeat:
  86.                       count: 2
  87.                       sequence:
  88.                         - action: light.turn_on
  89.                           metadata: {}
  90.                           target:
  91.                             entity_id: light.waschtisch
  92.                           data:
  93.                             brightness_pct: 75
  94.                             rgb_color:
  95.                              - 255
  96.                               - 0
  97.                               - 200
  98.                             effect: blink
  99.                             transition: 1
  100.                         - delay:
  101.                             hours: 0
  102.                             minutes: 0
  103.                             seconds: 2
  104.                             milliseconds: 0
  105.                   - action: light.turn_off
  106.                     metadata: {}
  107.                     target:
  108.                       entity_id: light.waschtisch
  109.                     data:
  110.                       transition: 1
  111.       - conditions:
  112.           - condition: trigger
  113.             id:
  114.              - presence_OFF
  115.         sequence:
  116.           - action: light.turn_off
  117.             metadata: {}
  118.             target:
  119.               entity_id: light.waschtisch
  120.             data:
  121.               transition: 2
  122. mode: single
  123.  
Advertisement
Add Comment
Please, Sign In to add comment