Define motion sensors. Add new sensors on living room dashboard.

This commit is contained in:
2020-05-06 03:48:43 +03:00
parent 4294bbc06f
commit 94581b73b9
3 changed files with 86 additions and 35 deletions
@@ -51,18 +51,6 @@ cards:
extrema: true extrema: true
fill: true fill: true
- type: "custom:mini-graph-card"
entities:
- sensor.trisensor_burglar
cache: false
group_by: hour
hours_to_show: 72
line_width: 2
show:
average: true
extrema: true
fill: true
- type: entities - type: entities
entities: entities:
- zwave.aeotec_limited_zwa005_trisensor - zwave.aeotec_limited_zwa005_trisensor
@@ -103,18 +91,6 @@ cards:
extrema: true extrema: true
fill: true fill: true
- type: "custom:mini-graph-card"
entities:
- sensor.multisensor_6_burglar
cache: false
group_by: hour
hours_to_show: 72
line_width: 2
show:
average: true
extrema: true
fill: true
- type: "custom:mini-graph-card" - type: "custom:mini-graph-card"
entities: entities:
- sensor.multisensor_6_relative_humidity - sensor.multisensor_6_relative_humidity
@@ -100,6 +100,18 @@
- player_name: Living room - player_name: Living room
- type: vertical-stack
title: Camera
cards:
- type: picture-glance
camera_image: camera.amcrest_camera
entities:
- entity: camera.amcrest_camera
- entity: switch.camera
show_state: false
- entity: binary_sensor.amcrest_camera_online
show_state: false
- type: vertical-stack - type: vertical-stack
cards: cards:
- type: horizontal-stack - type: horizontal-stack
@@ -128,15 +140,66 @@
max_value: 800 max_value: 800
normal_value: 100 normal_value: 100
high_value: 300 high_value: 300
- type: vertical-stack
title: Camera - type: horizontal-stack
cards: title: Tri Sensor
- type: picture-glance cards:
camera_image: camera.amcrest_camera - type: custom:button-card
entities: template:
- entity: camera.amcrest_camera - small
- entity: switch.camera - progress
show_state: false entity: sensor.trisensor_temperature
- entity: binary_sensor.amcrest_camera_online name: Temperature
show_state: false - type: custom:button-card
template:
- small
- progress
entity: sensor.trisensor_luminance
name: Lux
- type: custom:button-card
template: default
entity: binary_sensor.trisensor_motion
name: Motion
- type: horizontal-stack
title: Multi Sensor
cards:
- type: custom:button-card
template:
- small
- progress
entity: sensor.multisensor_6_temperature
name: Temperature
- type: custom:button-card
template:
- small
- progress
entity: sensor.multisensor_6_luminance
name: Lux
- type: custom:button-card
template: default
entity: binary_sensor.multisensor_motion
name: Motion
- type: horizontal-stack
title: More
cards:
- type: custom:button-card
template:
- small
- progress
entity: sensor.living_room_thermostat_temperature
name: Radiator temperature
- type: custom:button-card
template:
- small
- progress
entity: sensor.multisensor_6_relative_humidity
name: Multi Humidity
- type: custom:button-card
template:
- small
- progress
entity: sensor.multisensor_6_ultraviolet
name: Multi UV
+12
View File
@@ -51,6 +51,18 @@ binary_sensor:
{% else %} mdi:account-off-outline {% else %} mdi:account-off-outline
{% endif %} {% endif %}
trisensor_motion:
friendly_name: TriSensor motion
device_class: motion
entity_id: sensor.trisensor_burglar
value_template: "{{ is_state('sensor.trisensor_burglar', 8) }}"
multisensor_motion:
friendly_name: MultiSensor motion
device_class: motion
entity_id: sensor.multisensor_6_burglar
value_template: "{{ is_state('sensor.multisensor_6_burglar', 8) }}"
sensor: sensor:
- platform: history_stats - platform: history_stats
name: Quarantined percent name: Quarantined percent