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