mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-21 10:57:43 +00:00
Add hallway_motion_2
This commit is contained in:
@@ -74,6 +74,8 @@ cards:
|
|||||||
entity: sensor.hallway_weather_battery
|
entity: sensor.hallway_weather_battery
|
||||||
- type: custom:battery-entity-row
|
- type: custom:battery-entity-row
|
||||||
entity: sensor.hallway_motion_battery
|
entity: sensor.hallway_motion_battery
|
||||||
|
- type: custom:battery-entity-row
|
||||||
|
entity: sensor.hallway_motion_2_battery
|
||||||
- type: custom:battery-entity-row
|
- type: custom:battery-entity-row
|
||||||
entity: sensor.guest_bedroom_weather_battery
|
entity: sensor.guest_bedroom_weather_battery
|
||||||
- type: custom:battery-entity-row
|
- type: custom:battery-entity-row
|
||||||
@@ -124,6 +126,7 @@ cards:
|
|||||||
- sensor.front_door_lqi
|
- sensor.front_door_lqi
|
||||||
- sensor.hallway_weather_lqi
|
- sensor.hallway_weather_lqi
|
||||||
- sensor.hallway_motion_lqi
|
- sensor.hallway_motion_lqi
|
||||||
|
- sensor.hallway_motion_2_lqi
|
||||||
- type: divider
|
- type: divider
|
||||||
- sensor.guest_bedroom_weather_lqi
|
- sensor.guest_bedroom_weather_lqi
|
||||||
- sensor.router_1_lqi
|
- sensor.router_1_lqi
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
entity: binary_sensor.hallway_motion_occupancy
|
entity: binary_sensor.hallway_motion_occupancy
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_badge_icon
|
template: v3_badge_icon
|
||||||
entity: binary_sensor.trisensor_home_security_motion_detection
|
entity: binary_sensor.hallway_motion_2_occupancy
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_badge_icon
|
template: v3_badge_icon
|
||||||
entity: binary_sensor.front_door
|
entity: binary_sensor.front_door
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ group.hallway_motion:
|
|||||||
- type: glance
|
- type: glance
|
||||||
entities:
|
entities:
|
||||||
- entity: binary_sensor.hallway_motion_occupancy
|
- entity: binary_sensor.hallway_motion_occupancy
|
||||||
|
- entity: binary_sensor.hallway_motion_2_occupancy
|
||||||
- entity: sensor.hallway_motion_illuminance
|
- entity: sensor.hallway_motion_illuminance
|
||||||
- entity: sensor.hallway_motion_battery
|
- entity: sensor.hallway_motion_battery
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ automation:
|
|||||||
|
|
||||||
- sensor.hallway_weather_battery
|
- sensor.hallway_weather_battery
|
||||||
- sensor.hallway_motion_battery
|
- sensor.hallway_motion_battery
|
||||||
|
- sensor.hallway_motion_2_battery
|
||||||
|
|
||||||
- sensor.guest_bedroom_weather_battery
|
- sensor.guest_bedroom_weather_battery
|
||||||
- sensor.terrarium_weather_battery
|
- sensor.terrarium_weather_battery
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ automation:
|
|||||||
- alias: Lighting · Hallway · Motion On
|
- alias: Lighting · Hallway · Motion On
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: binary_sensor.hallway_motion_occupancy
|
entity_id: group.hallway_motion
|
||||||
to: "on"
|
to: "on"
|
||||||
condition:
|
condition:
|
||||||
condition: state
|
condition: state
|
||||||
@@ -35,7 +35,7 @@ automation:
|
|||||||
- alias: Lighting · Hallway · Motion Off
|
- alias: Lighting · Hallway · Motion Off
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: binary_sensor.hallway_motion_occupancy
|
entity_id: group.hallway_motion
|
||||||
to: "off"
|
to: "off"
|
||||||
for: "00:01:00"
|
for: "00:01:00"
|
||||||
action:
|
action:
|
||||||
|
|||||||
@@ -11,7 +11,8 @@ group:
|
|||||||
name: Hallway Motion
|
name: Hallway Motion
|
||||||
entities:
|
entities:
|
||||||
- binary_sensor.hallway_motion_occupancy
|
- binary_sensor.hallway_motion_occupancy
|
||||||
- binary_sensor.trisensor_home_security_motion_detection
|
- binary_sensor.hallway_motion_2_occupancy
|
||||||
|
# - binary_sensor.trisensor_home_security_motion_detection
|
||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
@@ -22,6 +23,14 @@ binary_sensor:
|
|||||||
payload_off: false
|
payload_off: false
|
||||||
value_template: "{{ value_json.occupancy }}"
|
value_template: "{{ value_json.occupancy }}"
|
||||||
device_class: "motion"
|
device_class: "motion"
|
||||||
|
- platform: mqtt
|
||||||
|
name: "Hallway motion 2 occupancy"
|
||||||
|
state_topic: "z2m_deconz/hallway_motion_2"
|
||||||
|
availability_topic: "z2m_deconz/bridge/state"
|
||||||
|
payload_on: true
|
||||||
|
payload_off: false
|
||||||
|
value_template: "{{ value_json.occupancy }}"
|
||||||
|
device_class: "motion"
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Kitchen motion occupancy"
|
name: "Kitchen motion occupancy"
|
||||||
state_topic: "z2m_deconz/kitchen_motion"
|
state_topic: "z2m_deconz/kitchen_motion"
|
||||||
@@ -54,6 +63,28 @@ sensor:
|
|||||||
device_class: "signal_strength"
|
device_class: "signal_strength"
|
||||||
value_template: "{{ value_json.linkquality }}"
|
value_template: "{{ value_json.linkquality }}"
|
||||||
|
|
||||||
|
# Hallway Motion 2
|
||||||
|
- platform: mqtt
|
||||||
|
name: "Hallway motion 2 illuminance"
|
||||||
|
state_topic: "z2m_deconz/hallway_motion_2"
|
||||||
|
availability_topic: "z2m_deconz/bridge/state"
|
||||||
|
device_class: "illuminance"
|
||||||
|
value_template: "{{ value_json.illuminance_lux }}"
|
||||||
|
- platform: mqtt
|
||||||
|
name: "Hallway motion 2 battery"
|
||||||
|
state_topic: "z2m_deconz/hallway_motion_2"
|
||||||
|
availability_topic: "z2m_deconz/bridge/state"
|
||||||
|
unit_of_measurement: "%"
|
||||||
|
device_class: "battery"
|
||||||
|
value_template: "{{ value_json.battery }}"
|
||||||
|
- platform: mqtt
|
||||||
|
name: "Hallway motion 2 LQI"
|
||||||
|
state_topic: "z2m_deconz/hallway_motion_2"
|
||||||
|
availability_topic: "z2m_deconz/bridge/state"
|
||||||
|
unit_of_measurement: "lqi"
|
||||||
|
device_class: "signal_strength"
|
||||||
|
value_template: "{{ value_json.linkquality }}"
|
||||||
|
|
||||||
# Kitchen Motion
|
# Kitchen Motion
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "Kitchen motion illuminance"
|
name: "Kitchen motion illuminance"
|
||||||
|
|||||||
Reference in New Issue
Block a user