From 756a33999df9255deb1c08a443a5621d94da0126 Mon Sep 17 00:00:00 2001
From: "Suren A. Chilingaryan" <csa@suren.me>
Date: Sun, 9 Apr 2023 21:17:59 +0400
Subject: Fixes, multi-room sounds, motion tracking in rooms

---
 .storage/lovelace.lovelace_test | 214 ++++++++++++++++++++++++++++++++--------
 1 file changed, 171 insertions(+), 43 deletions(-)

(limited to '.storage/lovelace.lovelace_test')

diff --git a/.storage/lovelace.lovelace_test b/.storage/lovelace.lovelace_test
index 42bcdbf..fcdba8e 100644
--- a/.storage/lovelace.lovelace_test
+++ b/.storage/lovelace.lovelace_test
@@ -114,6 +114,33 @@
                                     ],
                                     "hours_to_show": 1,
                                     "title": "Vibration Sensor (1h)"
+                                },
+                                {
+                                    "type": "entities",
+                                    "entities": [
+                                        {
+                                            "entity": "input_number.knob_office_current"
+                                        },
+                                        {
+                                            "entity": "input_number.knob_office_brightness0"
+                                        },
+                                        {
+                                            "entity": "input_number.knob_office_temperature0"
+                                        },
+                                        {
+                                            "entity": "input_number.knob_office_hue0"
+                                        },
+                                        {
+                                            "entity": "input_number.knob_office_brightness1"
+                                        },
+                                        {
+                                            "entity": "input_number.knob_office_temperature1"
+                                        },
+                                        {
+                                            "entity": "input_number.knob_office_hue1"
+                                        }
+                                    ],
+                                    "title": "Knob Control"
                                 }
                             ]
                         },
@@ -132,11 +159,7 @@
                                         },
                                         {
                                             "entity": "binary_sensor.kitchen_motions_occupancy",
-                                            "name": "Kitchen/Table"
-                                        },
-                                        {
-                                            "entity": "binary_sensor.kitchen_motions2_occupancy",
-                                            "name": "Kitchen/Sink"
+                                            "name": "Kitchen"
                                         },
                                         {
                                             "type": "divider"
@@ -155,6 +178,28 @@
                                         {
                                             "entity": "binary_sensor.toilet_door_contact",
                                             "name": "Door"
+                                        },
+                                        {
+                                            "type": "divider"
+                                        },
+                                        {
+                                            "entity": "binary_sensor.presence_presence",
+                                            "name": "Living"
+                                        },
+                                        {
+                                            "entity": "sensor.presence_target_distance",
+                                            "name": "Distance"
+                                        },
+                                        {
+                                            "type": "divider"
+                                        },
+                                        {
+                                            "entity": "binary_sensor.bedroom_motions_occupancy",
+                                            "name": "Bedroom"
+                                        },
+                                        {
+                                            "entity": "binary_sensor.guestroom_motions_occupancy",
+                                            "name": "Guestroom"
                                         }
                                     ]
                                 },
@@ -167,11 +212,7 @@
                                         },
                                         {
                                             "entity": "binary_sensor.kitchen_motions_occupancy",
-                                            "name": "Kitchen/Table"
-                                        },
-                                        {
-                                            "entity": "binary_sensor.kitchen_motions2_occupancy",
-                                            "name": "Kitchen/Sink"
+                                            "name": "Kitchen"
                                         },
                                         {
                                             "entity": "binary_sensor.bathroom_motions_occupancy",
@@ -184,6 +225,18 @@
                                         {
                                             "entity": "binary_sensor.toilet_door_contact",
                                             "name": "Toilet Door"
+                                        },
+                                        {
+                                            "entity": "binary_sensor.presence_occupancy",
+                                            "name": "Living"
+                                        },
+                                        {
+                                            "entity": "binary_sensor.bedroom_motions_occupancy",
+                                            "name": "Bedroom"
+                                        },
+                                        {
+                                            "entity": "binary_sensor.guestroom_motions_occupancy",
+                                            "name": "Guestroom"
                                         }
                                     ],
                                     "hours_to_show": 1,
@@ -198,11 +251,7 @@
                                         },
                                         {
                                             "entity": "binary_sensor.kitchen_motions_occupancy",
-                                            "name": "Kitchen/Table"
-                                        },
-                                        {
-                                            "entity": "binary_sensor.kitchen_motions2_occupancy",
-                                            "name": "Kitchen/Sink"
+                                            "name": "Kitchen"
                                         },
                                         {
                                             "entity": "binary_sensor.bathroom_motions_occupancy",
@@ -215,10 +264,52 @@
                                         {
                                             "entity": "binary_sensor.toilet_door_contact",
                                             "name": "Toilet Door"
+                                        },
+                                        {
+                                            "entity": "binary_sensor.presence_occupancy",
+                                            "name": "Living"
+                                        },
+                                        {
+                                            "entity": "binary_sensor.bedroom_motions_occupancy",
+                                            "name": "Bedroom"
+                                        },
+                                        {
+                                            "entity": "binary_sensor.guestroom_motions_occupancy",
+                                            "name": "Guestroom"
                                         }
                                     ],
                                     "hours_to_show": 12,
                                     "title": "Motion Sensors (12h)"
+                                },
+                                {
+                                    "type": "history-graph",
+                                    "entities": [
+                                        {
+                                            "entity": "binary_sensor.presence_presence",
+                                            "name": "Prsence"
+                                        },
+                                        {
+                                            "entity": "sensor.presence_target_distance",
+                                            "name": "Distance"
+                                        }
+                                    ],
+                                    "hours_to_show": 1,
+                                    "title": "Presence (1h)"
+                                },
+                                {
+                                    "type": "history-graph",
+                                    "entities": [
+                                        {
+                                            "entity": "binary_sensor.presence_presence",
+                                            "name": "Presence"
+                                        },
+                                        {
+                                            "entity": "sensor.presence_target_distance",
+                                            "name": "Distance"
+                                        }
+                                    ],
+                                    "hours_to_show": 12,
+                                    "title": "Presence (12h)"
                                 }
                             ]
                         },
@@ -253,11 +344,7 @@
                                         },
                                         {
                                             "entity": "binary_sensor.kitchen_motions_occupancy",
-                                            "name": "Motions/Table"
-                                        },
-                                        {
-                                            "entity": "binary_sensor.kitchen_motions2_occupancy",
-                                            "name": "Motions/Sink"
+                                            "name": "Motions/Kitchen"
                                         },
                                         {
                                             "type": "divider"
@@ -268,11 +355,7 @@
                                         },
                                         {
                                             "entity": "sensor.kitchen_motions_illuminance_lux",
-                                            "name": "Lux/Table"
-                                        },
-                                        {
-                                            "entity": "sensor.kitchen_motions2_illuminance_lux",
-                                            "name": "Lux/Sink"
+                                            "name": "Lux/Kitchen"
                                         }
                                     ]
                                 },
@@ -356,19 +439,11 @@
                                         },
                                         {
                                             "entity": "binary_sensor.kitchen_motions_occupancy",
-                                            "name": "Motions/Table"
-                                        },
-                                        {
-                                            "entity": "binary_sensor.kitchen_motions2_occupancy",
-                                            "name": "Motions/Sink"
+                                            "name": "Motions"
                                         },
                                         {
                                             "entity": "sensor.kitchen_motions_illuminance_lux",
-                                            "name": "Lux/Table"
-                                        },
-                                        {
-                                            "entity": "sensor.kitchen_motions2_illuminance_lux",
-                                            "name": "Lux/Sink"
+                                            "name": "Lux"
                                         }
                                     ],
                                     "hours_to_show": 1,
@@ -506,28 +581,81 @@
                                     "type": "entities",
                                     "entities": [
                                         {
-                                            "entity": "input_number.knob_office_current"
+                                            "entity": "sensor.hall_motions_illuminance_lux",
+                                            "name": "Hall"
                                         },
                                         {
-                                            "entity": "input_number.knob_office_brightness0"
+                                            "entity": "sensor.kitchen_motions_illuminance_lux",
+                                            "name": "Kitchen"
                                         },
                                         {
-                                            "entity": "input_number.knob_office_temperature0"
+                                            "entity": "sensor.presence_illuminance_lux",
+                                            "name": "Living"
                                         },
                                         {
-                                            "entity": "input_number.knob_office_hue0"
+                                            "entity": "sensor.bedroom_motions_illuminance_lux",
+                                            "name": "Bedroom"
                                         },
                                         {
-                                            "entity": "input_number.knob_office_brightness1"
+                                            "entity": "sensor.guestroom_motions_illuminance_lux",
+                                            "name": "Guestroom"
+                                        }
+                                    ],
+                                    "title": "Illuminance"
+                                },
+                                {
+                                    "type": "history-graph",
+                                    "entities": [
+                                        {
+                                            "entity": "sensor.hall_motions_illuminance_lux",
+                                            "name": "Hall"
                                         },
                                         {
-                                            "entity": "input_number.knob_office_temperature1"
+                                            "entity": "sensor.kitchen_motions_illuminance_lux",
+                                            "name": "Kitchen"
                                         },
                                         {
-                                            "entity": "input_number.knob_office_hue1"
+                                            "entity": "sensor.presence_illuminance_lux",
+                                            "name": "Living"
+                                        },
+                                        {
+                                            "entity": "sensor.bedroom_motions_illuminance_lux",
+                                            "name": "Bedroom"
+                                        },
+                                        {
+                                            "entity": "sensor.guestroom_motions_illuminance_lux",
+                                            "name": "Guestroom"
                                         }
                                     ],
-                                    "title": "Knob Control"
+                                    "hours_to_show": 1,
+                                    "title": "Illuminance (1h)"
+                                },
+                                {
+                                    "type": "history-graph",
+                                    "entities": [
+                                        {
+                                            "entity": "sensor.hall_motions_illuminance_lux",
+                                            "name": "Hall"
+                                        },
+                                        {
+                                            "entity": "sensor.kitchen_motions_illuminance_lux",
+                                            "name": "Kitchen"
+                                        },
+                                        {
+                                            "entity": "sensor.presence_illuminance_lux",
+                                            "name": "Living"
+                                        },
+                                        {
+                                            "entity": "sensor.bedroom_motions_illuminance_lux",
+                                            "name": "Bedroom"
+                                        },
+                                        {
+                                            "entity": "sensor.guestroom_motions_illuminance_lux",
+                                            "name": "Guestroom"
+                                        }
+                                    ],
+                                    "hours_to_show": 12,
+                                    "title": "Illuminance (12h)"
                                 }
                             ]
                         }
-- 
cgit v1.2.3