Add motion sensors from mqtt

This commit is contained in:
2020-06-10 20:10:36 +03:00
parent f1a8c1db78
commit 5ea6a19372
12 changed files with 114 additions and 68 deletions
@@ -69,6 +69,10 @@ cards:
- automation.lighting_hallway_night_mode_motion_turn_lights_off
- type: divider
- automation.lighting_sync_tasmota_states_on_start_up
- type: divider
- automation.trust_remote_dimming
- automation.trust_remote_turn_on
- automation.trust_remote_turn_off
- type: entities
title: Media
@@ -44,7 +44,9 @@ cards:
- type: custom:battery-entity
entity: sensor.front_door_battery
- type: custom:battery-entity
entity: sensor.living_room_right_window_power
entity: sensor.desk_switch_battery
# - type: custom:battery-entity
# entity: sensor.living_room_right_window_power
- type: divider
- type: custom:battery-entity
entity: sensor.bedroom_door_battery
@@ -59,25 +61,26 @@ cards:
entity: sensor.kitchen_window_battery
- type: custom:battery-entity
entity: sensor.kitchen_weather_battery
- type: custom:battery-entity
entity: sensor.kitchen_motion_battery
- type: divider
- type: custom:battery-entity
entity: sensor.bathroom_weather_battery
- type: custom:battery-entity
entity: sensor.hallway_weather_battery
- type: custom:battery-entity
entity: sensor.motion_1_power
- type: custom:battery-entity
entity: sensor.motion_2_power
entity: sensor.hallway_motion_battery
- type: entities
title: Aqara Devices
entities:
- type: custom:battery-entity
entity: sensor.desk_switch_battery
- type: custom:battery-entity
entity: sensor.master_bedroom_bedside_switch_power
- type: custom:battery-entity
entity: sensor.bathroom_switch_power
- type: custom:battery-entity
entity: sensor.cube_power
# - type: custom:battery-entity
# entity: sensor.master_bedroom_bedside_switch_power
# - type: custom:battery-entity
# entity: sensor.bathroom_switch_power
# - type: custom:battery-entity
# entity: sensor.cube_power
- type: vertical-stack
cards:
- type: entities
@@ -93,9 +96,11 @@ cards:
- type: divider
- sensor.kitchen_window_lqi
- sensor.kitchen_weather_lqi
- sensor.kitchen_motion_lqi
- type: divider
- sensor.bathroom_weather_lqi
- sensor.hallway_weather_lqi
- sensor.hallway_motion_lqi
- type: custom:vertical-stack-in-card
cards:
- type: entities
@@ -133,7 +133,7 @@
- type: custom:decluttering-card
template: floorplan_state_icon
variables:
- entity: binary_sensor.motion_2_ias_zone
- entity: binary_sensor.hallway_motion_occupancy
- top: 34%
- left: 54%
- tap_action:
@@ -46,7 +46,7 @@
template:
- default
- with_state_indicator
entity: binary_sensor.motion_2_ias_zone
entity: binary_sensor.hallway_motion_occupancy
name: Motion
variables:
state_indicator_id: automation.lighting_hallway_day_mode_motion_turn_lights_on
@@ -54,7 +54,7 @@
template:
- small
- progress
entity: sensor.motion_2_illuminance
entity: sensor.hallway_motion_illuminance
name: Lux
variables:
min_value: 0
@@ -100,7 +100,7 @@
template:
- default
- with_state_indicator
entity: binary_sensor.motion_1_ias_zone
entity: binary_sensor.kitchen_motion_occupancy
name: Motion
variables:
state_indicator_id: automation.lighting_kitchen_day_mode_motion_turn_lights_on
@@ -108,7 +108,7 @@
template:
- small
- progress
entity: sensor.motion_1_illuminance
entity: sensor.kitchen_motion_illuminance
name: Lux
variables:
min_value: 0
@@ -118,7 +118,7 @@
template:
- default
- with_state_indicator
entity: binary_sensor.motion_2_ias_zone
entity: binary_sensor.hallway_motion_occupancy
name: Hallway
variables:
state_indicator_id: automation.lighting_hallway_day_mode_motion_turn_lights_on
@@ -123,7 +123,7 @@
template:
- default
- with_state_indicator
entity: binary_sensor.motion_2_ias_zone
entity: binary_sensor.hallway_motion_occupancy
name: Hallway
variables:
state_indicator_id: automation.lighting_hallway_day_mode_motion_turn_lights_on
@@ -215,7 +215,7 @@
template:
- default
- with_state_indicator
entity: binary_sensor.motion_1_ias_zone
entity: binary_sensor.kitchen_motion_occupancy
name: Kitchen
variables:
state_indicator_id: automation.lighting_kitchen_day_mode_motion_turn_lights_on
@@ -223,7 +223,7 @@
template:
- default
- with_state_indicator
entity: binary_sensor.motion_2_ias_zone
entity: binary_sensor.hallway_motion_occupancy
name: Hallway
variables:
state_indicator_id: automation.lighting_hallway_day_mode_motion_turn_lights_on
+10 -12
View File
@@ -11,7 +11,7 @@ binary_sensor.house_mode:
entities:
- input_select.house_mode
binary_sensor.motion_1_ias_zone:
binary_sensor.kitchen_motion_occupancy:
title: Kitchen motion
auto_close: true
style: &broad_popup_style
@@ -25,10 +25,9 @@ binary_sensor.motion_1_ias_zone:
cards:
- type: glance
entities:
- entity: binary_sensor.motion_1_ias_zone
- entity: sensor.motion_1_illuminance
- entity: binary_sensor.motion_1_occupancy
- entity: sensor.motion_1_power
- entity: binary_sensor.kitchen_motion_occupancy
- entity: sensor.kitchen_motion_illuminance
- entity: sensor.kitchen_motion_battery
- type: "custom:mini-graph-card"
animate: true
points_per_hour: 1
@@ -38,9 +37,9 @@ binary_sensor.motion_1_ias_zone:
average: true
extrema: true
entities:
- entity: sensor.motion_1_illuminance
- entity: sensor.kitchen_motion_illuminance
binary_sensor.motion_2_ias_zone:
binary_sensor.hallway_motion_occupancy:
title: Hallway motion
style: *broad_popup_style
auto_close: true
@@ -49,10 +48,9 @@ binary_sensor.motion_2_ias_zone:
cards:
- type: glance
entities:
- entity: binary_sensor.motion_2_ias_zone
- entity: sensor.motion_2_illuminance
- entity: binary_sensor.motion_2_occupancy
- entity: sensor.motion_2_power
- entity: binary_sensor.hallway_motion_occupancy
- entity: sensor.hallway_motion_illuminance
- entity: sensor.hallway_motion_battery
- type: "custom:mini-graph-card"
animate: true
@@ -63,7 +61,7 @@ binary_sensor.motion_2_ias_zone:
average: true
extrema: true
entities:
- entity: sensor.motion_2_illuminance
- entity: sensor.hallway_motion_illuminance
sensor.synology_type_volume_1:
title: Platinum