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
|
entity_id: sensor.gang_sensor_illuminance
|
||||||
below: '70'
|
below: '70'
|
||||||
- condition: time
|
- condition: time
|
||||||
before: '20:00:00'
|
before: '21:30:00'
|
||||||
- condition: time
|
- condition: time
|
||||||
after: '06:30:00'
|
after: '06:30:00'
|
||||||
action:
|
action:
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
entity_id: binary_sensor.gang_sensor_motion
|
entity_id: binary_sensor.gang_sensor_motion
|
||||||
to: 'off'
|
to: 'off'
|
||||||
for:
|
for:
|
||||||
minutes: 2
|
minutes: 3
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.arbejdsdag
|
entity_id: binary_sensor.arbejdsdag
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
- condition: time
|
- condition: time
|
||||||
after: '06:30:10'
|
after: '06:30:10'
|
||||||
- condition: time
|
- condition: time
|
||||||
before: '20:00:00'
|
before: '21:30:00'
|
||||||
action:
|
action:
|
||||||
service: light.turn_off
|
service: light.turn_off
|
||||||
data:
|
data:
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
- condition: time
|
- condition: time
|
||||||
after: '08:00:00'
|
after: '08:00:00'
|
||||||
- condition: time
|
- condition: time
|
||||||
before: '20:30:00'
|
before: '22:00:00'
|
||||||
action:
|
action:
|
||||||
- service: scene.turn_on
|
- service: scene.turn_on
|
||||||
data:
|
data:
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
entity_id: binary_sensor.gang_sensor_motion
|
entity_id: binary_sensor.gang_sensor_motion
|
||||||
to: 'off'
|
to: 'off'
|
||||||
for:
|
for:
|
||||||
minutes: 2
|
minutes: 3
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.arbejdsdag
|
entity_id: binary_sensor.arbejdsdag
|
||||||
@@ -78,7 +78,7 @@
|
|||||||
- condition: time
|
- condition: time
|
||||||
after: '08:00:10'
|
after: '08:00:10'
|
||||||
- condition: time
|
- condition: time
|
||||||
before: '20:30:00'
|
before: '22:00:00'
|
||||||
action:
|
action:
|
||||||
service: light.turn_off
|
service: light.turn_off
|
||||||
data:
|
data:
|
||||||
@@ -100,7 +100,7 @@
|
|||||||
below: '70'
|
below: '70'
|
||||||
- condition: time
|
- condition: time
|
||||||
before: '06:30:00'
|
before: '06:30:00'
|
||||||
after: '20:00:00'
|
after: '21:30:00'
|
||||||
action:
|
action:
|
||||||
- service: scene.turn_on
|
- service: scene.turn_on
|
||||||
data:
|
data:
|
||||||
@@ -120,7 +120,7 @@
|
|||||||
entity_id: binary_sensor.arbejdsdag
|
entity_id: binary_sensor.arbejdsdag
|
||||||
state: 'on'
|
state: 'on'
|
||||||
- condition: time
|
- condition: time
|
||||||
after: '20:00:10'
|
after: '21:30:10'
|
||||||
before: '06:30:00'
|
before: '06:30:00'
|
||||||
action:
|
action:
|
||||||
service: light.turn_off
|
service: light.turn_off
|
||||||
@@ -140,7 +140,7 @@
|
|||||||
# entity_id: sensor.gang_sensor_light_level
|
# entity_id: sensor.gang_sensor_light_level
|
||||||
# below: '70'
|
# below: '70'
|
||||||
- condition: time
|
- condition: time
|
||||||
after: '20:30:00'
|
after: '22:00:00'
|
||||||
before: '08:00:00'
|
before: '08:00:00'
|
||||||
action:
|
action:
|
||||||
- service: scene.turn_on
|
- service: scene.turn_on
|
||||||
@@ -162,7 +162,7 @@
|
|||||||
entity_id: binary_sensor.arbejdsdag
|
entity_id: binary_sensor.arbejdsdag
|
||||||
state: 'off'
|
state: 'off'
|
||||||
- condition: time
|
- condition: time
|
||||||
after: '20:30:10'
|
after: '22:00:10'
|
||||||
before: '08:00:00'
|
before: '08:00:00'
|
||||||
action:
|
action:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
entity_id: binary_sensor.garage_sensor_motion
|
entity_id: binary_sensor.garage_sensor_motion
|
||||||
to: 'off'
|
to: 'off'
|
||||||
for:
|
for:
|
||||||
minutes: 5
|
minutes: 15
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_off
|
- service: homeassistant.turn_off
|
||||||
data:
|
data:
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
condition:
|
condition:
|
||||||
- condition: time
|
- condition: time
|
||||||
before: '22:00:00'
|
before: '22:00:00'
|
||||||
|
after: '15:00:00'
|
||||||
action:
|
action:
|
||||||
# - delay: '00:{{ (range(1, 20)|random|int) }}:00'
|
# - delay: '00:{{ (range(1, 20)|random|int) }}:00'
|
||||||
- service: script.have_color_scene
|
- service: script.have_color_scene
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
entity_id: binary_sensor.sauna_motion_motion
|
entity_id: binary_sensor.sauna_motion_motion
|
||||||
to: 'off'
|
to: 'off'
|
||||||
for:
|
for:
|
||||||
minutes: 2
|
minutes: 3
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_off
|
- service: homeassistant.turn_off
|
||||||
data:
|
data:
|
||||||
|
|||||||
@@ -156,11 +156,11 @@
|
|||||||
entity_id: binary_sensor.hue_motion_sensor_1_motion_2
|
entity_id: binary_sensor.hue_motion_sensor_1_motion_2
|
||||||
to: 'off'
|
to: 'off'
|
||||||
for:
|
for:
|
||||||
minutes: 1
|
minutes: 5
|
||||||
condition:
|
condition:
|
||||||
- condition: time
|
- condition: time
|
||||||
after: '06:30:00'
|
after: '06:30:00'
|
||||||
before: '20:00:00'
|
before: '22:00:00'
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_off
|
- service: homeassistant.turn_off
|
||||||
data:
|
data:
|
||||||
|
|||||||
@@ -13,11 +13,11 @@
|
|||||||
# entity_id: sun.sun
|
# entity_id: sun.sun
|
||||||
# state: 'below_horizon'
|
# state: 'below_horizon'
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: scene.turn_on
|
||||||
data:
|
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:
|
trigger:
|
||||||
platform: numeric_state
|
platform: numeric_state
|
||||||
entity_id: sensor.indkorsel_sensor_illuminance
|
entity_id: sensor.indkorsel_sensor_illuminance
|
||||||
@@ -37,11 +37,12 @@
|
|||||||
event: sunset
|
event: sunset
|
||||||
condition:
|
condition:
|
||||||
- condition: time
|
- condition: time
|
||||||
|
after: '08:00:00'
|
||||||
before: '22:00:00'
|
before: '22:00:00'
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: scene.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id: light.indkorsel_2
|
entity_id: scene.indkorsel_bright
|
||||||
|
|
||||||
- alias: 'Sluk lys indkørsel aften'
|
- alias: 'Sluk lys indkørsel aften'
|
||||||
trigger:
|
trigger:
|
||||||
@@ -74,9 +75,9 @@
|
|||||||
# entity_id: sun.sun
|
# entity_id: sun.sun
|
||||||
# state: below_horizon
|
# state: below_horizon
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: scene.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id: light.indkorsel_2
|
entity_id: scene.indkorsel_bright
|
||||||
|
|
||||||
- alias: 'Sluk lys indkørsel 15 min efter bevægelse'
|
- alias: 'Sluk lys indkørsel 15 min efter bevægelse'
|
||||||
trigger:
|
trigger:
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
entity_id:
|
entity_id:
|
||||||
- light.drivhus
|
- light.drivhus
|
||||||
- light.paradis
|
- light.paradis
|
||||||
|
- light.extended_color_light_1
|
||||||
|
|
||||||
- alias: 'Sluk lys ved garage'
|
- alias: 'Sluk lys ved garage'
|
||||||
trigger:
|
trigger:
|
||||||
@@ -33,6 +34,7 @@
|
|||||||
entity_id:
|
entity_id:
|
||||||
- light.drivhus
|
- light.drivhus
|
||||||
- light.paradis
|
- light.paradis
|
||||||
|
- light.extended_color_light_1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user