Indkørsel: erstat Hue plug med Zigbee stik_indkorsel
- grupper.yaml: fjern light.indkorsel_plug fra Indkørsel og Udendørslamper grupper - lysindkorsel.yaml: tilføj switch.stik_indkorsel turn_on/off ved alle 6 handlinger - presence_simulation.yaml: tilføj switch.stik_indkorsel i morgen/aften sekvenser - andreas_kommer_hjem: tilføj switch.stik_indkorsel turn_on/off
This commit is contained in:
@@ -48,9 +48,17 @@
|
||||
target:
|
||||
entity_id: "{{ lights_to_turn_on }}"
|
||||
|
||||
- service: switch.turn_on
|
||||
data:
|
||||
entity_id: switch.stik_indkorsel
|
||||
|
||||
- delay: "00:10:00"
|
||||
|
||||
- service: light.turn_off
|
||||
target:
|
||||
entity_id: "{{ lights_to_turn_on }}"
|
||||
|
||||
- service: switch.turn_off
|
||||
data:
|
||||
entity_id: switch.stik_indkorsel
|
||||
|
||||
|
||||
@@ -16,6 +16,9 @@
|
||||
- service: scene.turn_on
|
||||
data:
|
||||
entity_id: scene.indkorsel_bright
|
||||
- service: switch.turn_on
|
||||
data:
|
||||
entity_id: switch.stik_indkorsel
|
||||
|
||||
- alias: 'Sluk lys indkørsel når der er lys nok'
|
||||
trigger:
|
||||
@@ -30,6 +33,9 @@
|
||||
- service: light.turn_off
|
||||
data:
|
||||
entity_id: light.indkorsel_2
|
||||
- service: switch.turn_off
|
||||
data:
|
||||
entity_id: switch.stik_indkorsel
|
||||
|
||||
- alias: 'Tænd lys indkørsel aften'
|
||||
trigger:
|
||||
@@ -43,6 +49,9 @@
|
||||
- service: scene.turn_on
|
||||
data:
|
||||
entity_id: scene.indkorsel_bright
|
||||
- service: switch.turn_on
|
||||
data:
|
||||
entity_id: switch.stik_indkorsel
|
||||
|
||||
- alias: 'Sluk lys indkørsel aften'
|
||||
trigger:
|
||||
@@ -52,6 +61,9 @@
|
||||
- service: light.turn_off
|
||||
data:
|
||||
entity_id: light.indkorsel_2
|
||||
- service: switch.turn_off
|
||||
data:
|
||||
entity_id: switch.stik_indkorsel
|
||||
|
||||
|
||||
- alias: 'Tænd lys indkørsel ved bevægelse'
|
||||
@@ -78,6 +90,9 @@
|
||||
- service: scene.turn_on
|
||||
data:
|
||||
entity_id: scene.indkorsel_bright
|
||||
- service: switch.turn_on
|
||||
data:
|
||||
entity_id: switch.stik_indkorsel
|
||||
|
||||
- alias: 'Sluk lys indkørsel 15 min efter bevægelse'
|
||||
trigger:
|
||||
@@ -97,8 +112,11 @@
|
||||
# entity_id: sun.sun
|
||||
# state: below_horizon
|
||||
action:
|
||||
service: light.turn_off
|
||||
- service: light.turn_off
|
||||
data:
|
||||
entity_id: light.indkorsel_2
|
||||
- service: switch.turn_off
|
||||
data:
|
||||
entity_id: switch.stik_indkorsel
|
||||
|
||||
|
||||
|
||||
@@ -54,6 +54,10 @@
|
||||
- delay:
|
||||
seconds: "{{ range(30,180) | random }}"
|
||||
|
||||
- service: switch.turn_on
|
||||
data:
|
||||
entity_id: switch.stik_indkorsel
|
||||
|
||||
- delay:
|
||||
minutes: "{{ range(10,30) | random }}"
|
||||
|
||||
@@ -66,6 +70,10 @@
|
||||
- delay:
|
||||
seconds: "{{ range(20,120) | random }}"
|
||||
|
||||
- service: switch.turn_off
|
||||
data:
|
||||
entity_id: switch.stik_indkorsel
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: template
|
||||
@@ -146,6 +154,10 @@
|
||||
- delay:
|
||||
seconds: "{{ range(20,120) | random }}"
|
||||
|
||||
- service: switch.turn_on
|
||||
data:
|
||||
entity_id: switch.stik_indkorsel
|
||||
|
||||
- delay:
|
||||
minutes: "{{ range(15,60) | random }}"
|
||||
|
||||
@@ -158,6 +170,10 @@
|
||||
- delay:
|
||||
seconds: "{{ range(20,120) | random }}"
|
||||
|
||||
- service: switch.turn_off
|
||||
data:
|
||||
entity_id: switch.stik_indkorsel
|
||||
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: template
|
||||
|
||||
@@ -105,7 +105,6 @@
|
||||
name: Indkørsel
|
||||
unique_id: lys_indkorsel
|
||||
entities:
|
||||
- light.indkorsel_plug
|
||||
- light.udendors_forgang
|
||||
- light.hue_ambiance_lamp_1_2
|
||||
- light.hue_ambiance_lamp_1_3
|
||||
@@ -116,7 +115,6 @@
|
||||
unique_id: lys_udenfor
|
||||
entities:
|
||||
- light.garage
|
||||
- light.indkorsel_plug
|
||||
- light.fordoer
|
||||
- light.julelys
|
||||
|
||||
|
||||
Reference in New Issue
Block a user