Skip to content

Commit

Permalink
Redo entitys based on new names from fibaro api
Browse files Browse the repository at this point in the history
  • Loading branch information
riemers committed Jan 8, 2020
1 parent ed7031e commit eefcb87
Show file tree
Hide file tree
Showing 18 changed files with 147 additions and 166 deletions.
6 changes: 1 addition & 5 deletions extraconfig/automation/frontdoor/alert.yaml
@@ -1,14 +1,10 @@
- alias: Alert if door is open for longer then 5 minutes
trigger:
platform: state
entity_id: switch.voordeur_switch
entity_id: binary_sensor.unknown_162_1_166
to: 'on' # better to have from: 'off' aswell, but this device is always on when i reboot HA, go figure.
for:
minutes: 5
condition:
condition: state
entity_id: device_tracker.ierik
state: 'home'
action:
service: notify.notify_erik
data:
Expand Down
10 changes: 5 additions & 5 deletions extraconfig/automation/lights/motion/berging.yaml
@@ -1,23 +1,23 @@
- alias: Turn off storage light 2 minutes after last movement
trigger:
platform: state
entity_id: binary_sensor.motion_berging_sensor
entity_id: binary_sensor.berging_motion_110
to: 'off'
for:
minutes: 2
action:
service: homeassistant.turn_off
entity_id: switch.lamp_berging_switch
entity_id: light.berging_lamp_56

- alias: Turn on storage light when there is movement
trigger:
platform: state
entity_id: binary_sensor.motion_berging_sensor
entity_id: binary_sensor.berging_motion_110
to: 'on'
condition:
condition: state
entity_id: switch.lamp_berging_switch
entity_id: light.berging_lamp_56
state: 'off'
action:
service: homeassistant.turn_on
entity_id: switch.lamp_berging_switch
entity_id: light.berging_lamp_56
12 changes: 6 additions & 6 deletions extraconfig/automation/lights/motion/gang1e.yaml
@@ -1,27 +1,27 @@
- alias: Turn on 1e floor hallway light when there is movement
trigger:
platform: state
entity_id: binary_sensor.motion_gang_1e_sensor
entity_id: binary_sensor.nodeid_100_contact
to: 'on'
condition:
condition: state
entity_id: switch.lamp_bg1e_switch_2
entity_id: switch.nodeid_50_switch_0_2
state: 'off'
action:
service: homeassistant.turn_on
entity_id: switch.lamp_bg1e_switch_2
entity_id: switch.nodeid_50_switch_0_2

- alias: Turn off 1e floor hallway light 2 minutes after last movement
trigger:
platform: state
entity_id: binary_sensor.motion_gang_1e_sensor
entity_id: binary_sensor.nodeid_100_contact
to: 'off'
for:
minutes: 2
condition:
condition: state
entity_id: switch.lamp_bg1e_switch_2
entity_id: switch.nodeid_50_switch_0_2
state: 'on'
action:
service: homeassistant.turn_off
entity_id: switch.lamp_bg1e_switch_2
entity_id: switch.nodeid_50_switch_0_2
12 changes: 7 additions & 5 deletions extraconfig/automation/lights/motion/gang2e.yaml
@@ -1,14 +1,16 @@
- alias: Turn off any lights 2e floor after 45 minutes
trigger:
platform: state
entity_id: binary_sensor.motion_gang_2e_sensor
entity_id: binary_sensor.gang_2e_motion_125
to: 'off'
for:
minutes: 45
action:
service: homeassistant.turn_off
entity_id:
- switch.lamp_2e_switch
- switch.lamp_lex_switch
- switch.lamp_badkamer_switch
- switch.lamp_badkamer_switch_2
- light.gang_2e_lamp_32
- light.slaapkamer_lamp_77
- light.badkamer_lamp_87
- light.badkamer_lamp_spiegel_88
- light.lexs_lamp_95
- light.evi_s_lamp_27
10 changes: 5 additions & 5 deletions extraconfig/automation/lights/motion/gangbg.yaml
@@ -1,23 +1,23 @@
- alias: Turn on hallway light ground floor when there is movement
trigger:
platform: state
entity_id: binary_sensor.motion_gang_begane_grond_sensor
entity_id: binary_sensor.nodeid_76_contact
to: 'on'
condition:
condition: state
entity_id: switch.lamp_bg1e_switch
entity_id: switch.nodeid_50_switch
state: 'off'
action:
service: homeassistant.turn_on
entity_id: switch.lamp_bg1e_switch
entity_id: switch.nodeid_50_switch

- alias: Turn off ground floor hallway light 2 minutes after last movement
trigger:
platform: state
entity_id: binary_sensor.motion_gang_begane_grond_sensor
entity_id: binary_sensor.nodeid_76_contact
to: 'off'
for:
minutes: 2
action:
service: homeassistant.turn_off
entity_id: switch.lamp_bg1e_switch
entity_id: switch.nodeid_50_switch
20 changes: 10 additions & 10 deletions extraconfig/automation/lights/motion/sunandtime/entree.yaml
Expand Up @@ -6,16 +6,16 @@
- alias: Turn on entrance light when there is movement or the front door opens
trigger:
- platform: state
entity_id: binary_sensor.motion_entree_sensor
entity_id: binary_sensor.entree_motion_115
to: 'on'
- platform: state
entity_id: switch.voordeur_switch
entity_id: binary_sensor.unknown_162_1_166
to: 'on'
condition:
condition: and
conditions:
- condition: state
entity_id: light.lamp_entree_level
entity_id: light.entree_dimmer_lamp_72
state: 'off'
# - condition: sun
# after: sunset
Expand All @@ -28,32 +28,32 @@
below: 1.5
action:
- service: light.turn_on
entity_id: light.lamp_entree_level
entity_id: light.entree_dimmer_lamp_72

- alias: Turn off entrance light 3 minutes after last movement # just a fail safe, someone could open the door 'slightly' not enter the house and not triggering the motion sensor.
trigger:
- platform: state
entity_id: binary_sensor.motion_entree_sensor
entity_id: binary_sensor.entree_motion_115
to: 'off'
for:
minutes: 3
- platform: state
entity_id: switch.voordeur_switch
entity_id: binary_sensor.unknown_162_1_166
to: 'off'
for:
minutes: 3
condition:
condition: and
conditions:
- condition: state
entity_id: light.lamp_entree_level
entity_id: light.entree_dimmer_lamp_72
state: 'on'
- condition: state
entity_id: switch.voordeur_switch
entity_id: binary_sensor.unknown_162_1_166
state: 'off'
- condition: state
entity_id: binary_sensor.motion_entree_sensor
entity_id: binary_sensor.entree_motion_115
state: 'off'
action:
- service: light.turn_off
entity_id: light.lamp_entree_level
entity_id: light.entree_dimmer_lamp_72
14 changes: 7 additions & 7 deletions extraconfig/automation/lights/motion/sunandtime/keuken.yaml
@@ -1,7 +1,7 @@
- alias: Turn on kitchen lights
trigger:
platform: state
entity_id: binary_sensor.motion_keuken_sensor
entity_id: binary_sensor.keuken_motion_100
to: 'on'
condition:
condition: and
Expand All @@ -24,16 +24,16 @@
- alias: Turn off kitchen lights
trigger:
platform: state
entity_id: binary_sensor.motion_keuken_sensor
entity_id: binary_sensor.keuken_motion_100
to: 'off'
for:
minutes: 10
action:
- service: homeassistant.turn_off
entity_id: switch.lamp_keuken_switch
- service: light.turn_off
entity_id: light.keuken_rgb_vloerrand_level
entity_id: light.keuken_lamp_vloer_205
- service: light.turn_off
entity_id: light.kastjes
entity_id: light.keuken_lamp_45
- service: light.turn_off
entity_id: light.vide
entity_id: light.keuken_lamp_kastjes_62
- service: light.turn_off
entity_id: light.keuken_vide_lamp_49
@@ -1,13 +1,13 @@
- alias: Turn on kitchen floor lights
trigger:
platform: state
entity_id: binary_sensor.motion_keuken_sensor
entity_id: binary_sensor.keuken_motion_100
to: 'on'
condition:
condition: and
conditions:
- condition: state
entity_id: light.keuken_rgb_vloerrand_level
entity_id: light.keuken_lamp_vloer_205
state: 'off'
- condition: numeric_state
entity_id: sun.sun
Expand All @@ -18,15 +18,15 @@
before: '04:59:00'
action:
- service: light.turn_on
entity_id: light.keuken_rgb_vloerrand_level
entity_id: light.keuken_lamp_vloer_205
data:
brightness: 255
rgb_color: [0, 0, 255]

- alias: Turn off kitchen floor lights at night
trigger:
platform: state
entity_id: binary_sensor.motion_keuken_sensor
entity_id: binary_sensor.keuken_motion_100
to: 'off'
for:
minutes: 3
Expand All @@ -42,10 +42,10 @@
before: '04:59:00'
action:
- service: light.turn_off
entity_id: light.keuken_rgb_vloerrand_level
- service: homeassistant.turn_off
entity_id: switch.lamp_keuken_switch # just in case i manually turn on more light, it still need to turn off (since i want to be lazy and not have to press a button when i got booze and chips in my hands)
entity_id: light.keuken_lamp_vloer_205
- service: light.turn_off
entity_id: light.kastjes
entity_id: light.keuken_lamp_45 # just in case i manually turn on more light, it still need to turn off (since i want to be lazy and not have to press a button when i got booze and chips in my hands)
- service: light.turn_off
entity_id: light.vide
entity_id: light.keuken_lamp_kastjes_62
- service: light.turn_off
entity_id: light.keuken_vide_lamp_49
26 changes: 4 additions & 22 deletions extraconfig/automation/lights/sunandtime/mailbox.yaml
Expand Up @@ -3,40 +3,22 @@
- platform: sun
event: sunset
offset: '-00:30:00'
condition:
condition: and
conditions:
- condition: state
entity_id: switch.light_mailbox
state: 'off'
- condition: state
entity_id: switch.light_driveway_floor
state: 'off'
action:
- service: homeassistant.turn_on
data:
entity_id: switch.light_mailbox
entity_id: light.oprit_lamp_oprit_140
- service: homeassistant.turn_on
data:
entity_id: switch.light_driveway_floor
entity_id: light.oprit_lamp_brievenbus_158

- alias: Turn off driveway lights, nobody walks around this time anymore
trigger:
platform: time
at: '01:00:00'
condition:
condition: and
conditions:
- condition: state
entity_id: switch.light_mailbox
state: 'on'
- condition: state
entity_id: switch.light_driveway_floor
state: 'on'
action:
- service: homeassistant.turn_off
data:
entity_id: switch.light_mailbox
entity_id: light.oprit_lamp_oprit_140
- service: homeassistant.turn_off
data:
entity_id: switch.light_driveway_floor
entity_id: light.oprit_lamp_brievenbus_158
6 changes: 3 additions & 3 deletions extraconfig/automation/police/light-out-mailbox.yaml
@@ -1,7 +1,7 @@
- alias: Turn off light if sun is up outside brievenbus
trigger:
platform: state
entity_id: switch.light_mailbox
entity_id: light.oprit_lamp_brievenbus_158
to: 'on'
condition:
condition: numeric_state
Expand All @@ -11,10 +11,10 @@
action:
- service: homeassistant.turn_off
data:
entity_id: switch.light_mailbox
entity_id: light.oprit_lamp_brievenbus_158
- service: script.sonos_say
data:
sonos_entity: media_player.keuken
volume: 0.4
delay: '00:00:03'
message: "Laat die lamp uit, het is licht buiten."
message: "Brievenbus lamp gaat vanzelf aan, dus ik doe hem weer uit voor je."
6 changes: 3 additions & 3 deletions extraconfig/automation/police/light-out-patio.yaml
@@ -1,7 +1,7 @@
- alias: Turn off light if sun is up outside patio
trigger:
platform: state
entity_id: switch.light_patio
entity_id: light.keuken_lamp_51
to: 'on'
condition:
condition: numeric_state
Expand All @@ -11,10 +11,10 @@
action:
- service: homeassistant.turn_off
data:
entity_id: switch.light_patio
entity_id: light.keuken_lamp_51
- service: script.sonos_say
data:
sonos_entity: media_player.keuken
volume: 0.4
delay: '00:00:03'
message: "Laat die lamp uit, het is licht buiten."
message: "Het is nog licht buiten, dus ik doe de lamp buiten weer uit."
2 changes: 1 addition & 1 deletion extraconfig/automation/receiver/denon.yaml
Expand Up @@ -6,7 +6,7 @@
action:
- service: homeassistant.turn_on
data:
entity_id: switch.livingroom_subwoofer
entity_id: subwoof

- alias: Turn off subwoofer is receiver is turned off
trigger:
Expand Down

0 comments on commit eefcb87

Please sign in to comment.