diff --git a/automations/badkamer/verlichting.yaml b/automations/badkamer/verlichting.yaml index ffa55cf..69bee25 100644 --- a/automations/badkamer/verlichting.yaml +++ b/automations/badkamer/verlichting.yaml @@ -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 diff --git a/automations/keuken/rolgordijn.yaml b/automations/keuken/rolgordijn.yaml index 2e03bad..3c9a41e 100644 --- a/automations/keuken/rolgordijn.yaml +++ b/automations/keuken/rolgordijn.yaml @@ -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 diff --git a/automations/overloop.yaml b/automations/overloop.yaml index d7c8b0c..501bb9e 100644 --- a/automations/overloop.yaml +++ b/automations/overloop.yaml @@ -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 diff --git a/automations/tuin/achtertuin.yaml b/automations/tuin/achtertuin.yaml index 762a5c4..79decdb 100644 --- a/automations/tuin/achtertuin.yaml +++ b/automations/tuin/achtertuin.yaml @@ -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 @@ -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 diff --git a/automations/tuin/voortuin.yaml b/automations/tuin/voortuin.yaml index 78b57d7..1057792 100644 --- a/automations/tuin/voortuin.yaml +++ b/automations/tuin/voortuin.yaml @@ -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 @@ -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 diff --git a/lovelace/views/achtertuin.yaml b/lovelace/views/achtertuin.yaml index 3b930fb..d007f89 100644 --- a/lovelace/views/achtertuin.yaml +++ b/lovelace/views/achtertuin.yaml @@ -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 diff --git a/lovelace/views/alarm.yaml b/lovelace/views/alarm.yaml index 2b3f2fb..87a614b 100644 --- a/lovelace/views/alarm.yaml +++ b/lovelace/views/alarm.yaml @@ -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 @@ -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 @@ -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 diff --git a/lovelace/views/badkamer.yaml b/lovelace/views/badkamer.yaml index 1fdd39a..1e4be7e 100644 --- a/lovelace/views/badkamer.yaml +++ b/lovelace/views/badkamer.yaml @@ -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 @@ -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 diff --git a/lovelace/views/welkom.yaml b/lovelace/views/welkom.yaml index d6c8078..6fa5f1b 100644 --- a/lovelace/views/welkom.yaml +++ b/lovelace/views/welkom.yaml @@ -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 @@ -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 diff --git a/packages/kamers.yaml b/packages/kamers.yaml index 0e64f87..a36e112 100644 --- a/packages/kamers.yaml +++ b/packages/kamers.yaml @@ -48,7 +48,7 @@ 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 @@ -56,7 +56,7 @@ 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: Zolder beweging @@ -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