Skip to content

Instantly share code, notes, and snippets.

@fwartner
Created August 7, 2023 17:27
Show Gist options
  • Save fwartner/f533ef68e1aa40140497d92423a15b65 to your computer and use it in GitHub Desktop.
Save fwartner/f533ef68e1aa40140497d92423a15b65 to your computer and use it in GitHub Desktop.
alias: WLED Flur Arbeitszeit
description: ""
trigger:
- type: turned_on
platform: device
device_id: 66a6f5fa4a209f0d9089ac798a143838
entity_id: 2aa74d546a0bdc67e47539fa04b65813
domain: binary_sensor
id: macbookCameraOn
- type: turned_on
platform: device
device_id: 299c39650758d4769659d21912cb10a6
entity_id: 9fc0bd9cfaef246c9b944e1aa17ea255
domain: binary_sensor
id: macminiCameraOn
- type: turned_off
platform: device
device_id: 66a6f5fa4a209f0d9089ac798a143838
entity_id: 2aa74d546a0bdc67e47539fa04b65813
domain: binary_sensor
id: macbookCameraOff
- type: turned_off
platform: device
device_id: 299c39650758d4769659d21912cb10a6
entity_id: 9fc0bd9cfaef246c9b944e1aa17ea255
domain: binary_sensor
id: macminiCameraOff
- platform: time
at: "07:30:00"
id: workOn
- platform: time
at: "17:30:00"
id: workOff
enabled: true
condition:
- condition: time
after: "07:30:00"
weekday:
- mon
- tue
- wed
- thu
- fri
before: "17:30:00"
enabled: true
action:
- choose:
- conditions:
- condition: trigger
id:
- macbookCameraOn
- macminiCameraOn
sequence:
- service: light.turn_on
data:
color_name: red
brightness_pct: 100
target:
device_id: b242b37d70eea718b06968a7a60789c5
- conditions:
- condition: trigger
id:
- macbookCameraOff
- macminiCameraOff
sequence:
- service: light.turn_on
data:
color_name: white
brightness_pct: 100
target:
device_id: b242b37d70eea718b06968a7a60789c5
- conditions:
- condition: trigger
id:
- workOn
sequence:
- service: light.turn_on
data:
color_name: white
brightness_pct: 100
target:
device_id: b242b37d70eea718b06968a7a60789c5
- conditions:
- condition: trigger
id:
- workOff
sequence:
- type: turn_off
device_id: b242b37d70eea718b06968a7a60789c5
entity_id: 51b64cc148eab02c75d1455a2b621fa2
domain: light
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment