adding new files

This commit is contained in:
2023-12-19 15:47:05 +01:00
parent 9663410354
commit 2a45576a80
3 changed files with 149 additions and 0 deletions
+68
View File
@@ -0,0 +1,68 @@
- id: '1691939802290'
alias: Åbn garage ved tryk på 1
description: ''
trigger:
- device_id: 5f6b41e54f3226acd9c9ab54a3acb527
domain: hue
platform: device
type: initial_press
subtype: 1
unique_id: 4b8a056e-973f-48cf-8a19-3586f6b05dcf
condition: []
action:
- device_id: 3bc3eab99b46dae3e469bfa4060ce0f5
domain: cover
entity_id: 4bd9c13b7bb0cc3245e38211ded2be92
type: open
mode: single
- id: '1691941083623'
alias: Sluk alt lys ved tryk på 0
description: ''
trigger:
- device_id: 5f6b41e54f3226acd9c9ab54a3acb527
domain: hue
platform: device
type: initial_press
subtype: 4
unique_id: f97d54a1-2283-4fb0-8709-b873a310732b
condition: []
action:
- service: light.turn_off
data: {}
target:
entity_id: light.alle_lys
mode: single
- id: '1691941222856'
alias: Tænd alt lyset ved langt tryk på 0
description: ''
trigger:
- device_id: 5f6b41e54f3226acd9c9ab54a3acb527
domain: hue
platform: device
type: long_press
subtype: 4
unique_id: f97d54a1-2283-4fb0-8709-b873a310732b
condition: []
action:
- service: light.turn_on
data: {}
target:
entity_id: light.alle_lys
mode: single
- id: '1692023138692'
alias: Luk garage ved langt tryk på '1'
description: ''
trigger:
- device_id: 5f6b41e54f3226acd9c9ab54a3acb527
domain: hue
platform: device
type: long_press
subtype: 1
unique_id: 4b8a056e-973f-48cf-8a19-3586f6b05dcf
condition: []
action:
- device_id: 3bc3eab99b46dae3e469bfa4060ce0f5
domain: cover
entity_id: 4bd9c13b7bb0cc3245e38211ded2be92
type: close
mode: single
+47
View File
@@ -0,0 +1,47 @@
- alias: 'Lys Garage'
trigger:
platform: state
entity_id: binary_sensor.garage_sensor_motion
to: 'on'
action:
- service: scene.turn_on
data:
entity_id: scene.garage_bright
- alias: 'Sluk lys i garage'
trigger:
platform: state
entity_id: binary_sensor.garage_sensor_motion
to: 'off'
for:
minutes: 5
action:
- service: homeassistant.turn_off
data:
entity_id:
- light.garage
- alias: 'Lys Garage - tænd hvis garage åbner'
trigger:
platform: state
entity_id: cover.anne
to: 'open'
action:
- service: scene.turn_on
data:
entity_id: scene.garage_bright
- alias: 'Sluk lys garage 5 min efter lukning'
trigger:
platform: state
entity_id: cover.anne
to: 'closed'
for:
minutes: 5
action:
service: light.turn_off
data:
entity_id: light.garage
+34
View File
@@ -0,0 +1,34 @@
###################################
## Turn on terasse light
#
#
###################################
- alias: 'Lys terasse, aften'
trigger:
platform: numeric_state
entity_id: sensor.indkorsel_sensor_illuminance
below: 90
for:
minutes: 3
# - platform: sun
# event: sunset
# offset: "00:10:00"
condition:
- condition: time
after: '15:00:00'
before: '23:00:00'
action:
- service: light.turn_on
entity_id:
- light.terasse
- alias: 'Sluk lys terasse aften'
trigger:
platform: time
at: "23:00:00"
action:
- service: light.turn_off
data:
entity_id: light.terasse