Skip to content

Commit

Permalink
Add another outdoor sensor
Browse files Browse the repository at this point in the history
Renamed Hue sensors
  • Loading branch information
golles committed Nov 29, 2024
1 parent 44694f0 commit 08a7500
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 21 deletions.
2 changes: 1 addition & 1 deletion automations/badkamer/verlichting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
motion_entity: binary_sensor.badkamer_beweging
cool_down: 120
light_entity: light.badkamer
illuminance_entity: sensor.badkamer_beweging_licht
illuminance_entity: sensor.badkamer_sensor_licht
illuminance_below: 15
day_start_time: 08:00:00
day_scene: scene.badkamer_helder
Expand Down
2 changes: 1 addition & 1 deletion automations/keuken/rolgordijn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- trigger: time
at: input_datetime.covers_down
- trigger: numeric_state # For days when it turns dark early.
entity_id: sensor.achtertuin_sensor_licht
entity_id: sensor.achtertuin_sensor_1_licht
below: 40
for:
minutes: 5
Expand Down
2 changes: 1 addition & 1 deletion automations/overloop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
mode: single
triggers:
- trigger: state
entity_id: binary_sensor.zoldertrap_beweging_beweging
entity_id: binary_sensor.zoldertrap_sensor_beweging
to: "on"
conditions:
condition: and
Expand Down
6 changes: 3 additions & 3 deletions automations/tuin/achtertuin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
triggers:
- trigger: numeric_state
id: xmas_on
entity_id: sensor.achtertuin_sensor_licht
entity_id: sensor.achtertuin_sensor_1_licht
below: 60
for:
minutes: 5
Expand Down Expand Up @@ -43,12 +43,12 @@
from: "off"
to: "on"
- trigger: state
entity_id: binary_sensor.achtertuin_sensor_beweging
entity_id: binary_sensor.achtertuin_beweging
from: "off"
to: "on"
conditions:
- condition: numeric_state
entity_id: sensor.achtertuin_sensor_licht
entity_id: sensor.achtertuin_sensor_1_licht
below: 10
actions:
- alias: Lights on
Expand Down
4 changes: 2 additions & 2 deletions automations/tuin/voortuin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
to: home
conditions:
- condition: numeric_state
entity_id: sensor.achtertuin_sensor_licht
entity_id: sensor.achtertuin_sensor_1_licht
below: 10
actions:
- action: scene.turn_on
Expand Down Expand Up @@ -46,7 +46,7 @@
to: "on"
conditions:
- condition: numeric_state
entity_id: sensor.achtertuin_sensor_licht
entity_id: sensor.achtertuin_sensor_1_licht
below: 10
actions:
- alias: Lights on
Expand Down
19 changes: 16 additions & 3 deletions lovelace/views/achtertuin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,27 @@ sections:
- type: grid
cards:
- type: heading
heading: Sensoren
heading: Sensoren huis
heading_style: subtitle
- type: tile
entity: binary_sensor.achtertuin_sensor_beweging
entity: binary_sensor.achtertuin_sensor_1_beweging
name: Beweging
icon: mdi:motion-sensor
- type: tile
entity: sensor.achtertuin_sensor_licht
entity: sensor.achtertuin_sensor_1_licht
name: Lichtsterkte

- type: grid
cards:
- type: heading
heading: Sensoren poort
heading_style: subtitle
- type: tile
entity: binary_sensor.achtertuin_sensor_2_beweging
name: Beweging
icon: mdi:motion-sensor
- type: tile
entity: sensor.achtertuin_sensor_2_licht
name: Lichtsterkte

- type: grid
Expand Down
8 changes: 4 additions & 4 deletions lovelace/views/alarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ sections:
# Eerste verdieping.
- binary_sensor.overloop_sensor_2_beweging
- binary_sensor.kledingkamer_beweging_occupancy
- binary_sensor.badkamer_beweging_beweging
- binary_sensor.badkamer_sensor_beweging
- binary_sensor.logeerkamer_beweging_occupancy
- binary_sensor.slaapkamer_beweging_occupancy
# Tweede verdieping.
- binary_sensor.zoldertrap_beweging_beweging
- binary_sensor.zoldertrap_sensor_beweging
- binary_sensor.zolder_beweging_1_occupancy
- binary_sensor.zolder_beweging_2_occupancy
hours_to_show: 3
Expand Down Expand Up @@ -180,7 +180,7 @@ sections:
state: "on"
options:
type: tile
- entity_id: binary_sensor.badkamer_beweging_beweging
- entity_id: binary_sensor.badkamer_sensor_beweging
state: "on"
options:
type: tile
Expand All @@ -193,7 +193,7 @@ sections:
options:
type: tile
# Tweede verdieping.
- entity_id: binary_sensor.zoldertrap_beweging_beweging
- entity_id: binary_sensor.zoldertrap_sensor_beweging
state: "on"
options:
type: tile
Expand Down
4 changes: 2 additions & 2 deletions lovelace/views/badkamer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ sections:
heading: Sensoren
heading_style: subtitle
- type: tile
entity: binary_sensor.badkamer_beweging_beweging
entity: binary_sensor.badkamer_sensor_beweging
name: Beweging
icon: mdi:motion-sensor
- type: tile
Expand All @@ -67,7 +67,7 @@ sections:
entity: sensor.badkamer_luchtvochtigheid
name: Luchtvochtigheid
- type: tile
entity: sensor.badkamer_beweging_licht
entity: sensor.badkamer_sensor_licht
name: Lichtsterkte
- type: tile
entity: sensor.tandenborstel_battery
Expand Down
4 changes: 2 additions & 2 deletions lovelace/views/welkom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ sections:
- type: entity
show_state: false
show_icon: true
entity: binary_sensor.badkamer_beweging_beweging
entity: binary_sensor.badkamer_sensor_beweging
icon: mdi:motion-sensor
color: state
- type: entity
Expand Down Expand Up @@ -502,7 +502,7 @@ sections:
- type: entity
show_state: false
show_icon: true
entity: binary_sensor.achtertuin_sensor_beweging
entity: binary_sensor.achtertuin_beweging
icon: mdi:motion-sensor
color: state
- type: entity
Expand Down
12 changes: 10 additions & 2 deletions packages/kamers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ template:
icon: mdi:motion-sensor
state: >
{{
is_state("binary_sensor.badkamer_beweging_beweging", "on") or is_state("binary_sensor.douche_beweging_occupancy", "on")
is_state("binary_sensor.badkamer_sensor_beweging", "on") or is_state("binary_sensor.douche_beweging_occupancy", "on")
}}
- name: Badkamer beweging
device_class: motion
icon: mdi:motion-sensor
state: >
{{
is_state("binary_sensor.badkamer_beweging_beweging", "on") or is_state("binary_sensor.douche_beweging_occupancy", "on")
is_state("binary_sensor.badkamer_sensor_beweging", "on") or is_state("binary_sensor.douche_beweging_occupancy", "on")
}}
- name: Zolder beweging
Expand All @@ -75,6 +75,14 @@ template:
is_state("binary_sensor.overloop_sensor_1_beweging", "on") or is_state("binary_sensor.overloop_sensor_1_beweging", "on")
}}
- name: Achtertuin beweging
device_class: motion
icon: mdi:motion-sensor
state: >
{{
is_state("binary_sensor.achtertuin_sensor_1_beweging", "on") or is_state("binary_sensor.achtertuin_sensor_2_beweging", "on")
}}
- name: Woonkamer bezetting
device_class: occupancy
icon: mdi:motion-sensor
Expand Down

0 comments on commit 08a7500

Please sign in to comment.