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:
|
target:
|
||||||
entity_id: "{{ lights_to_turn_on }}"
|
entity_id: "{{ lights_to_turn_on }}"
|
||||||
|
|
||||||
|
- service: switch.turn_on
|
||||||
|
data:
|
||||||
|
entity_id: switch.stik_indkorsel
|
||||||
|
|
||||||
- delay: "00:10:00"
|
- delay: "00:10:00"
|
||||||
|
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: "{{ lights_to_turn_on }}"
|
entity_id: "{{ lights_to_turn_on }}"
|
||||||
|
|
||||||
|
- service: switch.turn_off
|
||||||
|
data:
|
||||||
|
entity_id: switch.stik_indkorsel
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,9 @@
|
|||||||
- service: scene.turn_on
|
- service: scene.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id: scene.indkorsel_bright
|
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'
|
- alias: 'Sluk lys indkørsel når der er lys nok'
|
||||||
trigger:
|
trigger:
|
||||||
@@ -30,6 +33,9 @@
|
|||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
data:
|
data:
|
||||||
entity_id: light.indkorsel_2
|
entity_id: light.indkorsel_2
|
||||||
|
- service: switch.turn_off
|
||||||
|
data:
|
||||||
|
entity_id: switch.stik_indkorsel
|
||||||
|
|
||||||
- alias: 'Tænd lys indkørsel aften'
|
- alias: 'Tænd lys indkørsel aften'
|
||||||
trigger:
|
trigger:
|
||||||
@@ -43,6 +49,9 @@
|
|||||||
- service: scene.turn_on
|
- service: scene.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id: scene.indkorsel_bright
|
entity_id: scene.indkorsel_bright
|
||||||
|
- service: switch.turn_on
|
||||||
|
data:
|
||||||
|
entity_id: switch.stik_indkorsel
|
||||||
|
|
||||||
- alias: 'Sluk lys indkørsel aften'
|
- alias: 'Sluk lys indkørsel aften'
|
||||||
trigger:
|
trigger:
|
||||||
@@ -52,6 +61,9 @@
|
|||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
data:
|
data:
|
||||||
entity_id: light.indkorsel_2
|
entity_id: light.indkorsel_2
|
||||||
|
- service: switch.turn_off
|
||||||
|
data:
|
||||||
|
entity_id: switch.stik_indkorsel
|
||||||
|
|
||||||
|
|
||||||
- alias: 'Tænd lys indkørsel ved bevægelse'
|
- alias: 'Tænd lys indkørsel ved bevægelse'
|
||||||
@@ -78,6 +90,9 @@
|
|||||||
- service: scene.turn_on
|
- service: scene.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id: scene.indkorsel_bright
|
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'
|
- alias: 'Sluk lys indkørsel 15 min efter bevægelse'
|
||||||
trigger:
|
trigger:
|
||||||
@@ -97,8 +112,11 @@
|
|||||||
# entity_id: sun.sun
|
# entity_id: sun.sun
|
||||||
# state: below_horizon
|
# state: below_horizon
|
||||||
action:
|
action:
|
||||||
service: light.turn_off
|
- service: light.turn_off
|
||||||
data:
|
data:
|
||||||
entity_id: light.indkorsel_2
|
entity_id: light.indkorsel_2
|
||||||
|
- service: switch.turn_off
|
||||||
|
data:
|
||||||
|
entity_id: switch.stik_indkorsel
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -54,6 +54,10 @@
|
|||||||
- delay:
|
- delay:
|
||||||
seconds: "{{ range(30,180) | random }}"
|
seconds: "{{ range(30,180) | random }}"
|
||||||
|
|
||||||
|
- service: switch.turn_on
|
||||||
|
data:
|
||||||
|
entity_id: switch.stik_indkorsel
|
||||||
|
|
||||||
- delay:
|
- delay:
|
||||||
minutes: "{{ range(10,30) | random }}"
|
minutes: "{{ range(10,30) | random }}"
|
||||||
|
|
||||||
@@ -66,6 +70,10 @@
|
|||||||
- delay:
|
- delay:
|
||||||
seconds: "{{ range(20,120) | random }}"
|
seconds: "{{ range(20,120) | random }}"
|
||||||
|
|
||||||
|
- service: switch.turn_off
|
||||||
|
data:
|
||||||
|
entity_id: switch.stik_indkorsel
|
||||||
|
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: template
|
- condition: template
|
||||||
@@ -146,6 +154,10 @@
|
|||||||
- delay:
|
- delay:
|
||||||
seconds: "{{ range(20,120) | random }}"
|
seconds: "{{ range(20,120) | random }}"
|
||||||
|
|
||||||
|
- service: switch.turn_on
|
||||||
|
data:
|
||||||
|
entity_id: switch.stik_indkorsel
|
||||||
|
|
||||||
- delay:
|
- delay:
|
||||||
minutes: "{{ range(15,60) | random }}"
|
minutes: "{{ range(15,60) | random }}"
|
||||||
|
|
||||||
@@ -158,6 +170,10 @@
|
|||||||
- delay:
|
- delay:
|
||||||
seconds: "{{ range(20,120) | random }}"
|
seconds: "{{ range(20,120) | random }}"
|
||||||
|
|
||||||
|
- service: switch.turn_off
|
||||||
|
data:
|
||||||
|
entity_id: switch.stik_indkorsel
|
||||||
|
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: template
|
- condition: template
|
||||||
|
|||||||
@@ -105,7 +105,6 @@
|
|||||||
name: Indkørsel
|
name: Indkørsel
|
||||||
unique_id: lys_indkorsel
|
unique_id: lys_indkorsel
|
||||||
entities:
|
entities:
|
||||||
- light.indkorsel_plug
|
|
||||||
- light.udendors_forgang
|
- light.udendors_forgang
|
||||||
- light.hue_ambiance_lamp_1_2
|
- light.hue_ambiance_lamp_1_2
|
||||||
- light.hue_ambiance_lamp_1_3
|
- light.hue_ambiance_lamp_1_3
|
||||||
@@ -116,7 +115,6 @@
|
|||||||
unique_id: lys_udenfor
|
unique_id: lys_udenfor
|
||||||
entities:
|
entities:
|
||||||
- light.garage
|
- light.garage
|
||||||
- light.indkorsel_plug
|
|
||||||
- light.fordoer
|
- light.fordoer
|
||||||
- light.julelys
|
- light.julelys
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user