diverse
This commit is contained in:
@@ -1,43 +0,0 @@
|
||||
# Turns on lights at sunset
|
||||
- alias: 'Lys i glasskab i forgang'
|
||||
trigger:
|
||||
- platform: sun
|
||||
event: sunset
|
||||
condition:
|
||||
- condition: time
|
||||
before: '21:30:00'
|
||||
action:
|
||||
service: homeassistant.turn_on
|
||||
entity_id: light.sonoff_100069a6cc
|
||||
|
||||
# Turns off lights
|
||||
- alias: 'Sluk lys i glasskab i forgang'
|
||||
trigger:
|
||||
- platform: time
|
||||
at: '22:00:00'
|
||||
action:
|
||||
service: homeassistant.turn_off
|
||||
entity_id: light.sonoff_100069a6cc
|
||||
|
||||
# Turns on lights at 06:00
|
||||
- alias: 'Lys i glasskab i forgang morgen'
|
||||
trigger:
|
||||
- platform: time
|
||||
at: '06:00:00'
|
||||
condition:
|
||||
- condition: state # from sunset until sunrise
|
||||
entity_id: sun.sun
|
||||
state: 'below_horizon'
|
||||
action:
|
||||
service: homeassistant.turn_on
|
||||
entity_id: light.sonoff_100069a6cc
|
||||
|
||||
# Turns off lights at sunrise
|
||||
- alias: 'Sluk lys i glasskab i forgang morgen'
|
||||
trigger:
|
||||
- platform: sun
|
||||
event: sunrise
|
||||
action:
|
||||
service: homeassistant.turn_off
|
||||
entity_id: light.sonoff_100069a6cc
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
entity_id: sensor.gang_sensor_illuminance
|
||||
below: '70'
|
||||
- condition: time
|
||||
before: '20:00:00'
|
||||
before: '21:30:00'
|
||||
- condition: time
|
||||
after: '06:30:00'
|
||||
action:
|
||||
@@ -27,7 +27,7 @@
|
||||
entity_id: binary_sensor.gang_sensor_motion
|
||||
to: 'off'
|
||||
for:
|
||||
minutes: 2
|
||||
minutes: 3
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdag
|
||||
@@ -35,7 +35,7 @@
|
||||
- condition: time
|
||||
after: '06:30:10'
|
||||
- condition: time
|
||||
before: '20:00:00'
|
||||
before: '21:30:00'
|
||||
action:
|
||||
service: light.turn_off
|
||||
data:
|
||||
@@ -56,7 +56,7 @@
|
||||
- condition: time
|
||||
after: '08:00:00'
|
||||
- condition: time
|
||||
before: '20:30:00'
|
||||
before: '22:00:00'
|
||||
action:
|
||||
- service: scene.turn_on
|
||||
data:
|
||||
@@ -70,7 +70,7 @@
|
||||
entity_id: binary_sensor.gang_sensor_motion
|
||||
to: 'off'
|
||||
for:
|
||||
minutes: 2
|
||||
minutes: 3
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdag
|
||||
@@ -78,7 +78,7 @@
|
||||
- condition: time
|
||||
after: '08:00:10'
|
||||
- condition: time
|
||||
before: '20:30:00'
|
||||
before: '22:00:00'
|
||||
action:
|
||||
service: light.turn_off
|
||||
data:
|
||||
@@ -100,7 +100,7 @@
|
||||
below: '70'
|
||||
- condition: time
|
||||
before: '06:30:00'
|
||||
after: '20:00:00'
|
||||
after: '21:30:00'
|
||||
action:
|
||||
- service: scene.turn_on
|
||||
data:
|
||||
@@ -120,7 +120,7 @@
|
||||
entity_id: binary_sensor.arbejdsdag
|
||||
state: 'on'
|
||||
- condition: time
|
||||
after: '20:00:10'
|
||||
after: '21:30:10'
|
||||
before: '06:30:00'
|
||||
action:
|
||||
service: light.turn_off
|
||||
@@ -140,7 +140,7 @@
|
||||
# entity_id: sensor.gang_sensor_light_level
|
||||
# below: '70'
|
||||
- condition: time
|
||||
after: '20:30:00'
|
||||
after: '22:00:00'
|
||||
before: '08:00:00'
|
||||
action:
|
||||
- service: scene.turn_on
|
||||
@@ -162,7 +162,7 @@
|
||||
entity_id: binary_sensor.arbejdsdag
|
||||
state: 'off'
|
||||
- condition: time
|
||||
after: '20:30:10'
|
||||
after: '22:00:10'
|
||||
before: '08:00:00'
|
||||
action:
|
||||
- service: light.turn_off
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
entity_id: binary_sensor.garage_sensor_motion
|
||||
to: 'off'
|
||||
for:
|
||||
minutes: 5
|
||||
minutes: 15
|
||||
action:
|
||||
- service: homeassistant.turn_off
|
||||
data:
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
condition:
|
||||
- condition: time
|
||||
before: '22:00:00'
|
||||
after: '15:00:00'
|
||||
action:
|
||||
# - delay: '00:{{ (range(1, 20)|random|int) }}:00'
|
||||
- service: script.have_color_scene
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
entity_id: binary_sensor.sauna_motion_motion
|
||||
to: 'off'
|
||||
for:
|
||||
minutes: 2
|
||||
minutes: 3
|
||||
action:
|
||||
- service: homeassistant.turn_off
|
||||
data:
|
||||
|
||||
@@ -156,11 +156,11 @@
|
||||
entity_id: binary_sensor.hue_motion_sensor_1_motion_2
|
||||
to: 'off'
|
||||
for:
|
||||
minutes: 1
|
||||
minutes: 5
|
||||
condition:
|
||||
- condition: time
|
||||
after: '06:30:00'
|
||||
before: '20:00:00'
|
||||
before: '22:00:00'
|
||||
action:
|
||||
- service: homeassistant.turn_off
|
||||
data:
|
||||
|
||||
@@ -13,11 +13,11 @@
|
||||
# entity_id: sun.sun
|
||||
# state: 'below_horizon'
|
||||
action:
|
||||
- service: light.turn_on
|
||||
- service: scene.turn_on
|
||||
data:
|
||||
entity_id: light.indkorsel_2
|
||||
entity_id: scene.indkorsel_bright
|
||||
|
||||
- alias: 'Sluk lys indkørsel morgen'
|
||||
- alias: 'Sluk lys indkørsel når der er lys nok'
|
||||
trigger:
|
||||
platform: numeric_state
|
||||
entity_id: sensor.indkorsel_sensor_illuminance
|
||||
@@ -37,11 +37,12 @@
|
||||
event: sunset
|
||||
condition:
|
||||
- condition: time
|
||||
after: '08:00:00'
|
||||
before: '22:00:00'
|
||||
action:
|
||||
- service: light.turn_on
|
||||
- service: scene.turn_on
|
||||
data:
|
||||
entity_id: light.indkorsel_2
|
||||
entity_id: scene.indkorsel_bright
|
||||
|
||||
- alias: 'Sluk lys indkørsel aften'
|
||||
trigger:
|
||||
@@ -74,9 +75,9 @@
|
||||
# entity_id: sun.sun
|
||||
# state: below_horizon
|
||||
action:
|
||||
- service: light.turn_on
|
||||
- service: scene.turn_on
|
||||
data:
|
||||
entity_id: light.indkorsel_2
|
||||
entity_id: scene.indkorsel_bright
|
||||
|
||||
- alias: 'Sluk lys indkørsel 15 min efter bevægelse'
|
||||
trigger:
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
entity_id:
|
||||
- light.drivhus
|
||||
- light.paradis
|
||||
- light.extended_color_light_1
|
||||
|
||||
- alias: 'Sluk lys ved garage'
|
||||
trigger:
|
||||
@@ -33,6 +34,7 @@
|
||||
entity_id:
|
||||
- light.drivhus
|
||||
- light.paradis
|
||||
- light.extended_color_light_1
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user