Move desk sensor to hallway. Group up

This commit is contained in:
2021-03-27 17:15:44 +02:00
parent 29ab0aed62
commit e46b35d797
7 changed files with 24 additions and 35 deletions

View File

@@ -95,8 +95,6 @@ cards:
- type: vertical-stack
cards:
- type: entities
entities: [sensor.at_desk]
- type: entities
title: Quarantine
icon: mdi:biohazard

View File

@@ -43,7 +43,7 @@
name: Front door
- type: custom:button-card
template: [default, with_state_indicator]
entity: binary_sensor.hallway_motion_occupancy
entity: group.hallway_motion
name: Motion
variables:
state_indicator_id: automation.lighting_hallway_motion_on

View File

@@ -113,7 +113,7 @@
normal_value: 1000
- type: custom:button-card
template: [default, with_state_indicator]
entity: binary_sensor.hallway_motion_occupancy
entity: group.hallway_motion
name: Hallway
variables:
state_indicator_id: automation.lighting_hallway_motion_on

View File

@@ -124,7 +124,7 @@
- player: media_player.living_room
- player_name: Living room
- type: vertical-stack
title: Camera
title: Camera
cards:
- type: picture-glance
camera_image: camera.mercury_amcrest_1
@@ -141,17 +141,13 @@
template: default
entity: binary_sensor.living_room_right_window
name: Window
- type: custom:button-card
template: default
entity: binary_sensor.trisensor_motion
name: Desk
- type: custom:button-card
template: default
entity: binary_sensor.multisensor_motion
name: Door
- type: custom:button-card
template: [default, with_state_indicator]
entity: binary_sensor.hallway_motion_occupancy
entity: group.hallway_motion
name: Hallway
variables:
state_indicator_id: automation.lighting_hallway_motion_on
@@ -160,11 +156,11 @@
template: climate_card
variables:
- title: "Climate"
- main_entity: sensor.trisensor_temperature
- left_entity: sensor.multisensor_6_temperature
- left_name: Temperature (6)
- right_entity: sensor.multisensor_6_relative_humidity
- right_name: Humidity (6)
- main_entity: sensor.multisensor_6_temperature
- left_entity: sensor.multisensor_6_relative_humidity
- left_name: Humidity (6)
- right_entity: sensor.multisensor_6_luminance
- right_name: Luminance (6)
- type: custom:button-card
template: [regular, progress]

View File

@@ -224,10 +224,6 @@
template: default
entity: binary_sensor.multisensor_motion
name: Living room
- type: custom:button-card
template: default
entity: binary_sensor.trisensor_motion
name: Desk
- type: custom:button-card
template: [default, with_state_indicator]
entity: binary_sensor.kitchen_motion_occupancy
@@ -236,7 +232,7 @@
state_indicator_id: automation.lighting_kitchen_motion_on
- type: custom:button-card
template: [default, with_state_indicator]
entity: binary_sensor.hallway_motion_occupancy
entity: group.hallway_motion
name: Hallway
variables:
state_indicator_id: automation.lighting_hallway_motion_on

View File

@@ -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
@@ -33,15 +33,13 @@ automation:
- light.osram_1
- light.browser_hallway
data:
brightness_pct: 13
brightness_pct: 1
- alias: Lighting · Hallway · Motion Off
trigger:
platform: state
entity_id: binary_sensor.hallway_motion_occupancy
entity_id: group.hallway_motion
to: "off"
for:
minutes: 5
action:
- choose:
# Day Mode

View File

@@ -60,17 +60,15 @@ binary_sensor:
device_class: motion
value_template: "{{ is_state('sensor.multisensor_6_burglar', '8') }}"
group:
hallway_motion:
name: Hallway Motion
entities:
- binary_sensor.hallway_motion_occupancy
- binary_sensor.trisensor_motion
sensor:
- platform: history_stats
name: At Desk
entity_id: binary_sensor.trisensor_sensor
state: "on"
type: ratio
duration:
minutes: 5
end: '{{ now() }}'
- platform: history_stats
name: Quarantined percent
entity_id: device_tracker.carbon
@@ -177,3 +175,6 @@ homeassistant:
automation.presence_arrival_detecion:
icon: mdi:account-plus-outline
group.hallway_motion:
icon: mdi:motion-sensor