Skip to content

Commit

Permalink
feat: add motion control for bathroom lights
Browse files Browse the repository at this point in the history
  • Loading branch information
TribuneX committed Jul 20, 2024
1 parent 2c4f08d commit 1c6642d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions automation/lights/bathroom_lights.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- alias: Trigger bathroom lights with motion sensor
use_blueprint:
path: motion_lights.yaml
input:
motion_sensor: binary_sensor.bathroom_eg_hue
target_light:
entity_id: light.bathroom_eg
11 changes: 11 additions & 0 deletions includes/lights.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,14 @@
entities:
- light.bed_1
- light.bed_2

- platform: template
lights:
bathroom_eg:
value_template: "{{ states('switch.shelly_bad_eg') }}"
turn_on:
service: switch.turn_on
entity_id: switch.shelly_bad_eg
turn_off:
service: switch.turn_off
entity_id: switch.shelly_bad_eg

0 comments on commit 1c6642d

Please sign in to comment.