Advertisement
Hoekeren

Hue Tap og blandede lyskilder

May 22nd, 2022
1,111
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Hue Tap (linket til HueHub) styrer blandede lyskilder. Både på hubben og direkte i Z2M.
  2.  
  3.  
  4.  
  5. alias: Lys_Spisestue - TAP - Toggle
  6. description: ''
  7. trigger:
  8.   - device_id: 46792b9c55d70e21a703bde5cd7e11d9
  9.     domain: hue
  10.     platform: device
  11.     type: initial_press
  12.     subtype: 1
  13.     unique_id: fece42f0-8722-4dac-a290-b05127e7ecfc
  14. condition: []
  15. action:
  16.   - choose:
  17.       - conditions:
  18.           - condition: state
  19.             entity_id: light.alt_lys_i_stuerne
  20.             state: 'on'
  21.         sequence:
  22.           - service: light.turn_off
  23.             data: {}
  24.             target:
  25.               area_id:
  26.                - 876c6787016111ebaf49e3176d40a048
  27.                 - 8c43adab016111ebbb70e15686aacf26
  28.               entity_id: light.ovnlys
  29.       - conditions:
  30.           - condition: state
  31.             entity_id: light.alt_lys_i_stuerne
  32.             state: 'off'
  33.         sequence:
  34.           - service: light.turn_on
  35.             data: {}
  36.             target:
  37.               area_id:
  38.                - 876c6787016111ebaf49e3176d40a048
  39.                 - 8c43adab016111ebbb70e15686aacf26
  40.               entity_id: light.ovnlys
  41.     default: []
  42. mode: single
  43.  
Advertisement
RAW Paste Data Copied
Advertisement