Add hallway_motion_2

This commit is contained in:
2022-05-31 13:18:09 +03:00
parent 87913fb512
commit 2971f64d22
6 changed files with 40 additions and 4 deletions
@@ -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
+1
View File
@@ -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
+1
View File
@@ -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:
+32 -1
View File
@@ -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"