From 35e1d7fd0ee093c362de3663e0fccc049434565a Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 6 Jun 2024 06:06:33 +0400 Subject: Configure influxdb & re-enable purging of old data. New historical dashboards. Hass upgrade. --- .gitignore | 1 + .storage/core.area_registry | 140 ++- .storage/core.config | 30 +- .storage/lovelace.air_quality | 309 ++++++ .storage/lovelace.dashboard_test | 85 ++ .storage/lovelace.lovelace_climate | 572 +++++------ .storage/lovelace.lovelace_control | 770 +++++++-------- .storage/lovelace.lovelace_power | 904 +++++++++++------- .storage/lovelace.lovelace_status | 726 +++++++------- .storage/lovelace.lovelace_test | 1824 ++++++++++++++++++------------------ .storage/lovelace.map | 12 + .storage/lovelace_dashboards | 164 ++-- .storage/map | 8 + .storage/person | 31 +- certs/ca.crt | 19 + configuration.yaml | 50 +- custom/binary_sensor.yaml | 20 +- 17 files changed, 3245 insertions(+), 2420 deletions(-) create mode 100644 .storage/lovelace.air_quality create mode 100644 .storage/lovelace.dashboard_test create mode 100644 .storage/lovelace.map create mode 100644 .storage/map create mode 100644 certs/ca.crt diff --git a/.gitignore b/.gitignore index ee8a9f4..a59c6c1 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ themes www .storage/auth +.storage/auth.session .storage/auth_module.totp .storage/auth_provider.homeassistant .storage/core.analytics diff --git a/.storage/core.area_registry b/.storage/core.area_registry index cfdf7e7..a7348bb 100644 --- a/.storage/core.area_registry +++ b/.storage/core.area_registry @@ -1,54 +1,90 @@ { - "version": 1, - "minor_version": 1, - "key": "core.area_registry", - "data": { - "areas": [ - { - "name": "Living Room", - "id": "living_room", - "picture": null - }, - { - "name": "Kitchen", - "id": "kitchen", - "picture": null - }, - { - "name": "Bedroom", - "id": "bedroom", - "picture": null - }, - { - "name": "Hall", - "id": "hall", - "picture": null - }, - { - "name": "Virtual", - "id": "virtual", - "picture": null - }, - { - "name": "Bathroom", - "id": "bathroom", - "picture": null - }, - { - "name": "Portable", - "id": "portable", - "picture": null - }, - { - "name": "Guestroom", - "id": "guestroom", - "picture": null - }, - { - "name": "KIT", - "id": "kit", - "picture": null - } - ] - } + "version": 1, + "minor_version": 6, + "key": "core.area_registry", + "data": { + "areas": [ + { + "name": "Living Room", + "id": "living_room", + "picture": null, + "aliases": [], + "icon": null, + "floor_id": null, + "labels": [] + }, + { + "name": "Kitchen", + "id": "kitchen", + "picture": null, + "aliases": [], + "icon": null, + "floor_id": null, + "labels": [] + }, + { + "name": "Bedroom", + "id": "bedroom", + "picture": null, + "aliases": [], + "icon": null, + "floor_id": null, + "labels": [] + }, + { + "name": "Hall", + "id": "hall", + "picture": null, + "aliases": [], + "icon": null, + "floor_id": null, + "labels": [] + }, + { + "name": "Virtual", + "id": "virtual", + "picture": null, + "aliases": [], + "icon": null, + "floor_id": null, + "labels": [] + }, + { + "name": "Bathroom", + "id": "bathroom", + "picture": null, + "aliases": [], + "icon": null, + "floor_id": null, + "labels": [] + }, + { + "name": "Portable", + "id": "portable", + "picture": null, + "aliases": [], + "icon": null, + "floor_id": null, + "labels": [] + }, + { + "name": "Guestroom", + "id": "guestroom", + "picture": null, + "aliases": [], + "icon": null, + "floor_id": null, + "labels": [] + }, + { + "name": "KIT", + "id": "kit", + "picture": null, + "aliases": [], + "icon": null, + "floor_id": null, + "labels": [] + } + ] + } } \ No newline at end of file diff --git a/.storage/core.config b/.storage/core.config index 40052c9..41e6d44 100644 --- a/.storage/core.config +++ b/.storage/core.config @@ -1,16 +1,18 @@ { - "version": 1, - "minor_version": 1, - "key": "core.config", - "data": { - "latitude": 40.20199333859466, - "longitude": 44.48050969769397, - "elevation": 1050, - "unit_system": "metric", - "location_name": "Halabyan24", - "time_zone": "Asia/Yerevan", - "external_url": null, - "internal_url": null, - "currency": "EUR" - } + "version": 1, + "minor_version": 3, + "key": "core.config", + "data": { + "latitude": 40.20199333859466, + "longitude": 44.48050969769397, + "elevation": 1050, + "unit_system_v2": "metric", + "location_name": "Halabyan24", + "time_zone": "Asia/Yerevan", + "external_url": null, + "internal_url": null, + "currency": "EUR", + "country": "AM", + "language": "en" + } } \ No newline at end of file diff --git a/.storage/lovelace.air_quality b/.storage/lovelace.air_quality new file mode 100644 index 0000000..b067bee --- /dev/null +++ b/.storage/lovelace.air_quality @@ -0,0 +1,309 @@ +{ + "version": 1, + "minor_version": 1, + "key": "lovelace.air_quality", + "data": { + "config": { + "views": [ + { + "theme": "Backend-selected", + "title": "Home", + "type": "custom:grid-layout", + "layout": { + "max_cols": 3, + "grid-template-columns": "32% 34% 34%", + "grid-template-rows": "auto", + "mediaquery": { + "(max-width: 600px)": { + "grid-template-columns": "100%" + }, + "(max-width: 1200px)": { + "grid-template-columns": "50% 50%" + } + } + }, + "cards": [ + { + "type": "vertical-stack", + "cards": [ + { + "title": "Awair Score (3m)", + "type": "statistics-graph", + "chart_type": "line", + "period": "day", + "days_to_show": 90, + "hide_legend": true, + "logarithmic_scale": false, + "stat_types": [ + "min", + "mean" + ], + "entities": [ + { + "entity": "sensor.air_monitor_awair_score", + "name": "Score" + } + ] + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "title": "CO2 (3m)", + "type": "statistics-graph", + "chart_type": "line", + "period": "day", + "days_to_show": 90, + "hide_legend": true, + "logarithmic_scale": false, + "stat_types": [ + "max", + "mean" + ], + "entities": [ + { + "entity": "sensor.air_monitor_carbon_dioxide", + "name": "CO2" + } + ] + }, + { + "title": "PM2.5 (3m)", + "type": "statistics-graph", + "chart_type": "line", + "period": "day", + "days_to_show": 90, + "hide_legend": true, + "logarithmic_scale": false, + "stat_types": [ + "max", + "mean" + ], + "entities": [ + { + "entity": "sensor.air_monitor_pm2_5", + "name": "PM2.5" + } + ] + }, + { + "title": "VOCs (3m)", + "type": "statistics-graph", + "chart_type": "line", + "period": "day", + "days_to_show": 90, + "hide_legend": true, + "logarithmic_scale": false, + "stat_types": [ + "max", + "mean" + ], + "entities": [ + { + "entity": "sensor.air_monitor_volatile_organic_compounds", + "name": "VOCs" + } + ] + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "title": "Temperature (3m)", + "type": "statistics-graph", + "chart_type": "line", + "period": "day", + "days_to_show": 90, + "hide_legend": false, + "logarithmic_scale": false, + "stat_types": [ + "min", + "max", + "mean" + ], + "entities": [ + { + "entity": "sensor.air_monitor_temperature", + "name": "Bedroom" + }, + { + "entity": "sensor.ble_temperature_a4c138bfa169", + "name": "Living" + }, + { + "entity": "sensor.hall_smoke_temperature", + "name": "Hall" + } + ] + }, + { + "title": "Humidity (3m)", + "type": "statistics-graph", + "chart_type": "line", + "period": "day", + "days_to_show": 90, + "hide_legend": false, + "logarithmic_scale": false, + "stat_types": [ + "min", + "max", + "mean" + ], + "entities": [ + { + "entity": "sensor.air_monitor_humidity", + "name": "Humidity" + } + ] + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "title": "Awair Score (1y)", + "type": "statistics-graph", + "chart_type": "line", + "period": "week", + "days_to_show": 365, + "hide_legend": true, + "logarithmic_scale": false, + "stat_types": [ + "min", + "mean" + ], + "entities": [ + { + "entity": "sensor.air_monitor_awair_score", + "name": "Score" + } + ] + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "title": "CO2 (1y)", + "type": "statistics-graph", + "chart_type": "line", + "period": "week", + "days_to_show": 365, + "hide_legend": true, + "logarithmic_scale": true, + "stat_types": [ + "max", + "mean" + ], + "entities": [ + { + "entity": "sensor.air_monitor_carbon_dioxide", + "name": "CO2" + } + ] + }, + { + "title": "PM2.5 (1y)", + "type": "statistics-graph", + "chart_type": "line", + "period": "week", + "days_to_show": 365, + "hide_legend": true, + "logarithmic_scale": true, + "stat_types": [ + "max", + "mean" + ], + "entities": [ + { + "entity": "sensor.air_monitor_pm2_5", + "name": "PM2.5" + } + ] + }, + { + "chart_type": "line", + "period": "week", + "title": "VOCs (1y)", + "type": "statistics-graph", + "days_to_show": 365, + "hide_legend": true, + "logarithmic_scale": true, + "stat_types": [ + "max", + "mean" + ], + "entities": [ + { + "entity": "sensor.air_monitor_volatile_organic_compounds", + "name": "VOCs" + } + ] + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "title": "Temperature (1y)", + "type": "statistics-graph", + "chart_type": "line", + "period": "week", + "days_to_show": 365, + "hide_legend": false, + "logarithmic_scale": false, + "stat_types": [ + "min", + "max", + "mean" + ], + "entities": [ + { + "entity": "sensor.air_monitor_temperature", + "name": "Bedroom" + }, + { + "entity": "sensor.ble_temperature_a4c138bfa169", + "name": "Living" + }, + { + "entity": "sensor.hall_smoke_temperature", + "name": "Hall" + } + ] + }, + { + "title": "Humidity (1y)", + "type": "statistics-graph", + "chart_type": "line", + "period": "week", + "days_to_show": 365, + "hide_legend": false, + "logarithmic_scale": false, + "stat_types": [ + "min", + "max", + "mean" + ], + "entities": [ + { + "entity": "sensor.air_monitor_humidity", + "name": "Humidity" + } + ] + } + ] + } + ] + } + ] + } + } +} \ No newline at end of file diff --git a/.storage/lovelace.dashboard_test b/.storage/lovelace.dashboard_test new file mode 100644 index 0000000..24554fe --- /dev/null +++ b/.storage/lovelace.dashboard_test @@ -0,0 +1,85 @@ +{ + "version": 1, + "minor_version": 1, + "key": "lovelace.dashboard_test", + "data": { + "config": { + "views": [ + { + "theme": "Backend-selected", + "title": "Home", + "type": "custom:grid-layout", + "layout": { + "max_cols": 3, + "grid-template-columns": "32% 34% 34%", + "grid-template-rows": "auto", + "mediaquery": { + "(max-width: 600px)": { + "grid-template-columns": "100%" + }, + "(max-width: 1200px)": { + "grid-template-columns": "50% 50%" + } + } + }, + "cards": [ + { + "type": "vertical-stack", + "cards": [ + { + "title": "Max Voltage (3m)", + "type": "statistics-graph", + "chart_type": "line", + "period": "day", + "days_to_show": 90, + "hide_legend": false, + "logarithmic_scale": false, + "stat_types": [ + "max" + ], + "entities": [ + { + "entity": "sensor.bedroom_tablelamp_voltage", + "name": "L1/Lamp" + }, + { + "entity": "sensor.living_tablelampsocket_voltage", + "name": "L2/Lamp" + } + ] + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "title": "Min Voltage (3m)", + "type": "statistics-graph", + "chart_type": "line", + "period": "day", + "days_to_show": 90, + "hide_legend": false, + "logarithmic_scale": false, + "stat_types": [ + "min" + ], + "entities": [ + { + "entity": "sensor.bedroom_tablelamp_voltage", + "name": "L1/Lamp" + }, + { + "entity": "sensor.living_tablelampsocket_voltage", + "name": "L2/Lamp" + } + ] + } + ] + } + ] + } + ] + } + } +} \ No newline at end of file diff --git a/.storage/lovelace.lovelace_climate b/.storage/lovelace.lovelace_climate index 19cf92c..98b8efd 100644 --- a/.storage/lovelace.lovelace_climate +++ b/.storage/lovelace.lovelace_climate @@ -1,289 +1,295 @@ { - "version": 1, - "minor_version": 1, - "key": "lovelace.lovelace_climate", - "data": { - "config": { - "views": [ + "version": 1, + "minor_version": 1, + "key": "lovelace.lovelace_climate", + "data": { + "config": { + "views": [ + { + "theme": "Backend-selected", + "title": "Climate", + "type": "custom:grid-layout", + "layout": { + "max_cols": 4, + "grid-template-columns": "25% 25% 25% 25%", + "grid-template-rows": "auto", + "mediaquery": { + "(max-width: 600px)": { + "grid-template-columns": "100%" + }, + "(max-width: 1200px)": { + "grid-template-columns": "50% 50%" + }, + "(max-width: 1800px)": { + "grid-template-columns": "33% 33% 33%" + } + } + }, + "cards": [ + { + "type": "vertical-stack", + "cards": [ { - "theme": "Backend-selected", - "title": "Climate", - "type": "custom:grid-layout", - "layout": { - "max_cols": 4, - "grid-template-columns": "25% 25% 25% 25%", - "grid-template-rows": "auto", - "mediaquery": { - "(max-width: 600px)": { - "grid-template-columns": "100%" - }, - "(max-width: 1200px)": { - "grid-template-columns": "50% 50%" - }, - "(max-width: 1800px)": { - "grid-template-columns": "33% 33% 33%" - } - } - }, - "cards": [ - { - "type": "vertical-stack", - "cards": [ - { - "type": "entities", - "title": "Office Climate", - "entities": [ - { - "entity": "sensor.ble_temperature_a4c138bfa169" - }, - { - "entity": "sensor.ble_humidity_a4c138bfa169" - } - ] - }, - { - "type": "entities", - "title": "Office Climate Control", - "entities": [ - { - "entity": "switch.office_aircon" - }, - { - "entity": "scene.lg_aircon_cool_18" - }, - { - "entity": "scene.lg_aircon_warm_25" - }, - { - "entity": "scene.lg_aircon_power_off" - } - ] - }, - { - "type": "history-graph", - "entities": [ - { - "entity": "sensor.ble_temperature_a4c138bfa169" - }, - { - "entity": "sensor.ble_humidity_a4c138bfa169" - } - ], - "title": "Office Progress", - "hours_to_show": 2 - } - ] - }, - { - "type": "vertical-stack", - "cards": [ - { - "type": "entities", - "title": "Bedroom Climate", - "entities": [ - { - "entity": "sensor.bedroom_temp_temperature" - }, - { - "entity": "sensor.bedroom_temp_humidity" - }, - { - "entity": "sensor.bedroom_temp_pressure" - } - ] - }, - { - "type": "entities", - "entities": [ - { - "entity": "switch.bedroom_aircon" - }, - { - "entity": "scene.hyundai_aircon_cool_18" - }, - { - "entity": "scene.hyundai_aircon_warm_28" - }, - { - "entity": "scene.hyundai_aircon_off" - } - ], - "title": "Bedroom Climate Control" - }, - { - "type": "history-graph", - "entities": [ - { - "entity": "sensor.bedroom_temp_temperature" - }, - { - "entity": "sensor.bedroom_temp_humidity" - }, - { - "entity": "sensor.bedroom_temp_pressure" - } - ], - "title": "Bedroom Progress", - "hours_to_show": 2 - } - ] - }, - { - "type": "vertical-stack", - "cards": [ - { - "type": "entities", - "entities": [ - { - "entity": "sensor.hall_smoke_temperature" - } - ], - "title": "Hall Climate" - }, - { - "show_current": true, - "show_forecast": true, - "type": "weather-forecast", - "entity": "weather.halabyan24", - "name": "Yerevan" - }, - { - "type": "history-graph", - "title": "Trends", - "hours_to_show": 72, - "entities": [ - { - "entity": "sensor.bedroom_temp_temperature" - }, - { - "entity": "sensor.bedroom_temp_humidity" - }, - { - "entity": "sensor.bedroom_temp_pressure" - }, - { - "entity": "sensor.ble_temperature_a4c138bfa169" - }, - { - "entity": "sensor.ble_humidity_a4c138bfa169" - }, - { - "entity": "sensor.hall_smoke_temperature" - }, - { - "entity": "sensor.air_monitor_humidity" - }, - { - "entity": "sensor.air_monitor_temperature" - } - ] - } - ] - }, - { - "type": "vertical-stack", - "cards": [ - { - "type": "entities", - "entities": [ - { - "entity": "sensor.air_monitor_awair_score", - "name": "Score" - }, - { - "entity": "sensor.kitchen_gas_carbon_monoxide", - "name": "CO" - }, - { - "entity": "sensor.air_monitor_carbon_dioxide", - "name": "CO2" - }, - { - "entity": "sensor.air_monitor_pm2_5", - "name": "PM2.5" - }, - { - "entity": "sensor.air_monitor_volatile_organic_compounds", - "name": "VOCs" - }, - { - "entity": "sensor.air_monitor_humidity", - "name": "Humidity" - }, - { - "entity": "sensor.air_monitor_temperature", - "name": "Temperature" - } - ], - "title": "Air Quality" - }, - { - "type": "history-graph", - "title": "Air Quality (2h)", - "hours_to_show": 2, - "entities": [ - { - "entity": "sensor.air_monitor_awair_score", - "name": "Score" - }, - { - "entity": "sensor.kitchen_gas_carbon_monoxide", - "name": "CO" - }, - { - "entity": "sensor.air_monitor_carbon_dioxide", - "name": "CO2" - }, - { - "entity": "sensor.air_monitor_pm2_5", - "name": "PM2.5" - }, - { - "entity": "sensor.air_monitor_volatile_organic_compounds", - "name": "VOCs" - }, - { - "entity": "sensor.air_monitor_humidity", - "name": "Humidity" - }, - { - "entity": "sensor.air_monitor_temperature", - "name": "Temperature" - } - ] - }, - { - "type": "history-graph", - "title": "Air Quality (72h)", - "hours_to_show": 72, - "entities": [ - { - "entity": "sensor.air_monitor_awair_score", - "name": "Score" - }, - { - "entity": "sensor.kitchen_gas_carbon_monoxide", - "name": "CO" - }, - { - "entity": "sensor.air_monitor_carbon_dioxide", - "name": "CO2" - }, - { - "entity": "sensor.air_monitor_pm2_5", - "name": "PM2.5" - }, - { - "entity": "sensor.air_monitor_volatile_organic_compounds", - "name": "VOCs" - } - ] - } - ] - } - ] + "type": "entities", + "title": "Office Climate", + "entities": [ + { + "entity": "sensor.ble_temperature_a4c138bfa169" + }, + { + "entity": "sensor.ble_humidity_a4c138bfa169" + } + ] + }, + { + "type": "entities", + "title": "Office Climate Control", + "entities": [ + { + "entity": "switch.office_aircon" + }, + { + "entity": "scene.lg_aircon_cool_18" + }, + { + "entity": "scene.lg_aircon_warm_25" + }, + { + "entity": "scene.lg_aircon_power_off" + } + ] + }, + { + "type": "history-graph", + "entities": [ + { + "entity": "sensor.ble_temperature_a4c138bfa169" + }, + { + "entity": "sensor.ble_humidity_a4c138bfa169" + } + ], + "title": "Office Progress", + "hours_to_show": 12 + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "entities", + "title": "Bedroom Climate", + "entities": [ + { + "entity": "sensor.bedroom_temp_temperature" + }, + { + "entity": "sensor.bedroom_temp_humidity" + }, + { + "entity": "sensor.bedroom_temp_pressure" + } + ] + }, + { + "type": "entities", + "entities": [ + { + "entity": "switch.bedroom_aircon" + }, + { + "entity": "scene.hyundai_aircon_cool_18" + }, + { + "entity": "scene.hyundai_aircon_warm_28" + }, + { + "entity": "scene.hyundai_aircon_off" + } + ], + "title": "Bedroom Climate Control" + }, + { + "type": "history-graph", + "entities": [ + { + "entity": "sensor.bedroom_temp_temperature" + }, + { + "entity": "sensor.bedroom_temp_humidity" + }, + { + "entity": "sensor.bedroom_temp_pressure" + }, + { + "entity": "sensor.air_monitor_humidity" + }, + { + "entity": "sensor.air_monitor_temperature" + } + ], + "title": "Bedroom Progress", + "hours_to_show": 12 + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "entities", + "entities": [ + { + "entity": "sensor.hall_smoke_temperature" + } + ], + "title": "Hall Climate" + }, + { + "show_current": true, + "show_forecast": true, + "type": "weather-forecast", + "entity": "weather.halabyan24", + "name": "Yerevan" + }, + { + "type": "history-graph", + "title": "Trends", + "hours_to_show": 168, + "entities": [ + { + "entity": "sensor.bedroom_temp_temperature" + }, + { + "entity": "sensor.bedroom_temp_humidity" + }, + { + "entity": "sensor.bedroom_temp_pressure" + }, + { + "entity": "sensor.ble_temperature_a4c138bfa169" + }, + { + "entity": "sensor.ble_humidity_a4c138bfa169" + }, + { + "entity": "sensor.hall_smoke_temperature" + }, + { + "entity": "sensor.air_monitor_humidity" + }, + { + "entity": "sensor.air_monitor_temperature" + } + ] + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "entities", + "entities": [ + { + "entity": "sensor.air_monitor_awair_score", + "name": "Score" + }, + { + "entity": "sensor.kitchen_gas_carbon_monoxide", + "name": "CO" + }, + { + "entity": "sensor.air_monitor_carbon_dioxide", + "name": "CO2" + }, + { + "entity": "sensor.air_monitor_pm2_5", + "name": "PM2.5" + }, + { + "entity": "sensor.air_monitor_volatile_organic_compounds", + "name": "VOCs" + }, + { + "entity": "sensor.air_monitor_humidity", + "name": "Humidity" + }, + { + "entity": "sensor.air_monitor_temperature", + "name": "Temperature" + } + ], + "title": "Air Quality" + }, + { + "type": "history-graph", + "title": "Air Quality (12h)", + "hours_to_show": 12, + "entities": [ + { + "entity": "sensor.air_monitor_awair_score", + "name": "Score" + }, + { + "entity": "sensor.kitchen_gas_carbon_monoxide", + "name": "CO" + }, + { + "entity": "sensor.air_monitor_carbon_dioxide", + "name": "CO2" + }, + { + "entity": "sensor.air_monitor_pm2_5", + "name": "PM2.5" + }, + { + "entity": "sensor.air_monitor_volatile_organic_compounds", + "name": "VOCs" + }, + { + "entity": "sensor.air_monitor_humidity", + "name": "Humidity" + }, + { + "entity": "sensor.air_monitor_temperature", + "name": "Temperature" + } + ] + }, + { + "type": "history-graph", + "title": "Air Quality (week)", + "hours_to_show": 72, + "entities": [ + { + "entity": "sensor.air_monitor_awair_score", + "name": "Score" + }, + { + "entity": "sensor.kitchen_gas_carbon_monoxide", + "name": "CO" + }, + { + "entity": "sensor.air_monitor_carbon_dioxide", + "name": "CO2" + }, + { + "entity": "sensor.air_monitor_pm2_5", + "name": "PM2.5" + }, + { + "entity": "sensor.air_monitor_volatile_organic_compounds", + "name": "VOCs" + } + ] } - ] + ] + } + ] } + ] } + } } \ No newline at end of file diff --git a/.storage/lovelace.lovelace_control b/.storage/lovelace.lovelace_control index d8a9a6c..ad27fd3 100644 --- a/.storage/lovelace.lovelace_control +++ b/.storage/lovelace.lovelace_control @@ -1,397 +1,397 @@ { - "version": 1, - "minor_version": 1, - "key": "lovelace.lovelace_control", - "data": { - "config": { - "views": [ + "version": 1, + "minor_version": 1, + "key": "lovelace.lovelace_control", + "data": { + "config": { + "views": [ + { + "title": "Control", + "cards": [ + { + "type": "vertical-stack", + "cards": [ { - "title": "Control", - "cards": [ + "type": "custom:restriction-card", + "restrictions": { + "confirm": { + "exemptions": null + } + }, + "card": { + "type": "entities", + "entities": [ + { + "entity": "input_boolean.mode_away", + "name": "Away" + }, + { + "entity": "input_boolean.mode_production", + "name": "Loud" + }, + { + "type": "divider" + }, + { + "entity": "input_boolean.mode_house_sleep", + "name": "House Sleep" + }, + { + "entity": "input_boolean.mode_house_hibernate", + "name": "House Hibernate" + }, + { + "type": "divider" + }, + { + "entity": "input_boolean.mode_bright", + "name": "Bright Mode" + }, + { + "entity": "input_boolean.mode_multiroom_manual", + "name": "Multiroom/No Auto" + }, + { + "entity": "input_boolean.mode_hall_manual", + "name": "Keep Hall Lights" + }, + { + "type": "divider" + }, + { + "entity": "input_boolean.mode_alone", + "name": "Alone" + }, + { + "entity": "input_boolean.mode_guests", + "name": "Guests" + } + ], + "title": "Modes" + } + }, + { + "type": "custom:restriction-card", + "restrictions": { + "block": { + "exemptions": null + } + }, + "card": { + "type": "entities", + "entities": [ + { + "entity": "switch.office_power_strip_socket_1", + "name": "SmartPI" + }, + { + "entity": "switch.office_smartpi", + "name": "SmartPI/Measure" + }, + { + "entity": "switch.bedroom_router", + "name": "Asgard" + }, + { + "entity": "switch.bedroom_roof", + "name": "Roof" + }, + { + "entity": "switch.hall_infra", + "name": "Office" + }, + { + "entity": "switch.hall_camera", + "name": "Camera" + } + ], + "title": "Infrastructure" + } + }, + { + "type": "entities", + "entities": [ + { + "entity": "switch.entrance_lights_left", + "name": "Toilet" + }, + { + "entity": "switch.entrance_lights_center", + "name": "Entrance" + }, + { + "entity": "switch.hall_lights_left", + "name": "Hall" + }, + { + "entity": "switch.bathroom_lights_left", + "name": "Bathroom" + }, + { + "entity": "switch.bathroom_lights_center", + "name": "Sauna" + }, + { + "entity": "light.aqara_hub_m1s_426c", + "name": "M1S" + } + ], + "title": "Lights" + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "square": true, + "columns": 2, + "type": "grid", + "cards": [ + { + "type": "light", + "entity": "light.yeelight_color_0x7caaf86", + "name": "Office Bulb" + }, + { + "type": "light", + "entity": "light.smart_light", + "name": "Bedroom Bulb" + } + ] + }, + { + "type": "media-control", + "entity": "media_player.smartpi" + }, + { + "square": true, + "columns": 2, + "type": "grid", + "cards": [ + { + "type": "entities", + "entities": [ + { + "entity": "switch.living_lights_left", + "name": "Lustre-1" + }, + { + "entity": "switch.living_lights_center", + "name": "Lustre-2" + }, + { + "entity": "light.yeelight_color_0x7caaf86", + "name": "Bulb" + }, + { + "entity": "switch.living_tablelampsocket", + "name": "DeskLamp" + } + ], + "title": "Living Lights" + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "entities", + "entities": [ + { + "entity": "switch.office_aircon", + "name": "AirCon" + } + ], + "title": "Living Plugs" + }, + { + "type": "custom:restriction-card", + "restrictions": { + "confirm": { + "exemptions": null + } + }, + "card": { + "type": "entities", + "entities": [ + { + "entity": "switch.office_power_strip_socket_1", + "name": "UPS" + }, + { + "entity": "switch.office_power_strip_socket_2", + "name": "Table" + }, + { + "entity": "switch.office_table", + "name": "Power" + }, + { + "entity": "switch.office_power_strip_socket_4", + "name": "Top" + }, + { + "entity": "switch.office_shelftop", + "name": "Power" + }, + { + "entity": "switch.office_sven", + "name": "Top/Sven" + }, + { + "entity": "switch.office_power_strip_socket_3", + "name": "Bottom" + }, + { + "entity": "switch.office_shelfbottom", + "name": "Power" + }, + { + "entity": "switch.office_power_strip_usb_1", + "name": "USB" + } + ], + "title": "Office Plugs" + } + } + ] + } + ] + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "square": true, + "columns": 2, + "type": "grid", + "cards": [ + { + "type": "entities", + "entities": [ { - "type": "vertical-stack", - "cards": [ - { - "type": "custom:restriction-card", - "restrictions": { - "confirm": { - "exemptions": null - } - }, - "card": { - "type": "entities", - "entities": [ - { - "entity": "input_boolean.mode_away", - "name": "Away" - }, - { - "entity": "input_boolean.mode_production", - "name": "Loud" - }, - { - "type": "divider" - }, - { - "entity": "input_boolean.mode_house_sleep", - "name": "House Sleep" - }, - { - "entity": "input_boolean.mode_house_hibernate", - "name": "House Hibernate" - }, - { - "type": "divider" - }, - { - "entity": "input_boolean.mode_bright", - "name": "Bright Mode" - }, - { - "entity": "input_boolean.mode_multiroom_manual", - "name": "Multiroom/No Auto" - }, - { - "entity": "input_boolean.mode_hall_manual", - "name": "Keep Hall Lights" - }, - { - "type": "divider" - }, - { - "entity": "input_boolean.mode_alone", - "name": "Alone" - }, - { - "entity": "input_boolean.mode_guests", - "name": "Guests" - } - ], - "title": "Modes" - } - }, - { - "type": "custom:restriction-card", - "restrictions": { - "block": { - "exemptions": null - } - }, - "card": { - "type": "entities", - "entities": [ - { - "entity": "switch.smart_power_strip_pro_usb_1", - "name": "SmartPI" - }, - { - "entity": "switch.office_smartpi", - "name": "SmartPI/Monitor" - }, - { - "entity": "switch.bedroom_router", - "name": "Asgard" - }, - { - "entity": "switch.bedroom_roof", - "name": "Roof" - }, - { - "entity": "switch.hall_infra", - "name": "Office" - }, - { - "entity": "switch.hall_camera", - "name": "Camera" - } - ], - "title": "Infrastructure" - } - }, - { - "type": "entities", - "entities": [ - { - "entity": "switch.entrance_lights_left", - "name": "Toilet" - }, - { - "entity": "switch.entrance_lights_center", - "name": "Entrance" - }, - { - "entity": "switch.hall_lights_left", - "name": "Hall" - }, - { - "entity": "switch.bathroom_lights_left", - "name": "Bathroom" - }, - { - "entity": "switch.bathroom_lights_center", - "name": "Sauna" - }, - { - "entity": "light.aqara_hub_m1s_426c", - "name": "M1S" - } - ], - "title": "Lights" - } - ] + "entity": "switch.bedroom_lights_left", + "name": "Lustre-1" }, { - "type": "vertical-stack", - "cards": [ - { - "square": true, - "columns": 2, - "type": "grid", - "cards": [ - { - "type": "light", - "entity": "light.yeelight_color_0x7caaf86", - "name": "Office Bulb" - }, - { - "type": "light", - "entity": "light.smart_light", - "name": "Bedroom Bulb" - } - ] - }, - { - "type": "media-control", - "entity": "media_player.smartpi" - }, - { - "square": true, - "columns": 2, - "type": "grid", - "cards": [ - { - "type": "entities", - "entities": [ - { - "entity": "switch.living_lights_left", - "name": "Lustre-1" - }, - { - "entity": "switch.living_lights_center", - "name": "Lustre-2" - }, - { - "entity": "light.yeelight_color_0x7caaf86", - "name": "Bulb" - }, - { - "entity": "switch.living_tablelampsocket", - "name": "DeskLamp" - } - ], - "title": "Living Lights" - }, - { - "type": "vertical-stack", - "cards": [ - { - "type": "entities", - "entities": [ - { - "entity": "switch.smart_power_strip_pro_socket_2", - "name": "AirCon" - }, - { - "entity": "switch.office_aircon", - "name": "Power" - } - ], - "title": "Living Plugs" - }, - { - "type": "custom:restriction-card", - "restrictions": { - "confirm": { - "exemptions": null - } - }, - "card": { - "type": "entities", - "entities": [ - { - "entity": "switch.smart_power_strip_pro_socket_2", - "name": "UPS" - }, - { - "entity": "switch.smart_power_strip_pro_socket_2", - "name": "Table" - }, - { - "entity": "switch.office_table", - "name": "Power" - }, - { - "entity": "switch.smart_power_strip_pro_socket_4", - "name": "Top" - }, - { - "entity": "switch.office_svensocket", - "name": "Top/Sven" - }, - { - "entity": "switch.office_shelftop", - "name": "Power" - }, - { - "entity": "switch.smart_power_strip_pro_socket_3", - "name": "Bottom" - }, - { - "entity": "switch.office_shelfbottom", - "name": "Power" - } - ], - "title": "Office Plugs" - } - } - ] - } - ] - } - ] + "entity": "switch.bedroom_lights_center", + "name": "Lustre-2" + }, + { + "entity": "light.smart_light", + "name": "Bulb" + }, + { + "entity": "switch.bedroom_tablelamp", + "name": "DeskLamp" + }, + { + "entity": "binary_sensor.bedroom_bedsidelamp", + "name": "BedLED" + } + ], + "title": "Bedroom Lights" + }, + { + "type": "entities", + "entities": [ + { + "entity": "switch.bedroom_aircon", + "name": "AirCon" + }, + { + "entity": "switch.bedroom_bedsidelampsocket", + "name": "BedLamp" + } + ], + "title": "Bedroom Plugs" + } + ] + }, + { + "square": true, + "columns": 2, + "type": "grid", + "cards": [ + { + "type": "entities", + "entities": [ + { + "entity": "switch.kitchen_lights_left", + "name": "Lustre" + }, + { + "entity": "switch.kitchen_ledlights", + "name": "LED" + } + ], + "title": "Kitchen Lights" + }, + { + "type": "custom:restriction-card", + "restrictions": { + "confirm": { + "exemptions": null + } + }, + "card": { + "type": "entities", + "entities": [ + { + "entity": "switch.kitchen_oven", + "name": "Oven" + }, + { + "entity": "switch.kitchen_wash", + "name": "Wash" + }, + { + "entity": "switch.kitchen_teatable", + "name": "Table" + }, + { + "entity": "switch.kitchen_fridge", + "name": "Fridge" + } + ], + "title": "Kitchen Plugs" + } + } + ] + }, + { + "square": true, + "columns": 2, + "type": "grid", + "cards": [ + { + "type": "entities", + "entities": [ + { + "entity": "switch.guestroom_lights_left", + "name": "Lustre-1" }, { - "type": "vertical-stack", - "cards": [ - { - "square": true, - "columns": 2, - "type": "grid", - "cards": [ - { - "type": "entities", - "entities": [ - { - "entity": "switch.bedroom_lights_left", - "name": "Lustre-1" - }, - { - "entity": "switch.bedroom_lights_center", - "name": "Lustre-2" - }, - { - "entity": "light.smart_light", - "name": "Bulb" - }, - { - "entity": "switch.bedroom_tablelamp", - "name": "DeskLamp" - }, - { - "entity": "binary_sensor.bedroom_bedsidelamp", - "name": "BedLED" - } - ], - "title": "Bedroom Lights" - }, - { - "type": "entities", - "entities": [ - { - "entity": "switch.bedroom_aircon", - "name": "AirCon" - }, - { - "entity": "switch.bedroom_bedsidelampsocket", - "name": "BedLamp" - } - ], - "title": "Bedroom Plugs" - } - ] - }, - { - "square": true, - "columns": 2, - "type": "grid", - "cards": [ - { - "type": "entities", - "entities": [ - { - "entity": "switch.kitchen_lights_left", - "name": "Lustre" - }, - { - "entity": "switch.kitchen_ledlights", - "name": "LED" - } - ], - "title": "Kitchen Lights" - }, - { - "type": "custom:restriction-card", - "restrictions": { - "confirm": { - "exemptions": null - } - }, - "card": { - "type": "entities", - "entities": [ - { - "entity": "switch.kitchen_oven", - "name": "Oven" - }, - { - "entity": "switch.kitchen_wash", - "name": "Wash" - }, - { - "entity": "switch.kitchen_teatable", - "name": "Table" - }, - { - "entity": "switch.kitchen_fridge", - "name": "Fridge" - } - ], - "title": "Kitchen Plugs" - } - } - ] - }, - { - "square": true, - "columns": 2, - "type": "grid", - "cards": [ - { - "type": "entities", - "entities": [ - { - "entity": "switch.guestroom_lights_left", - "name": "Lustre-1" - }, - { - "entity": "switch.guestroom_lights_right", - "name": "Lustre-2" - } - ], - "title": "Guest Lights" - }, - { - "type": "entities", - "entities": [], - "title": "Guest Plugs" - } - ] - } - ] + "entity": "switch.guestroom_lights_right", + "name": "Lustre-2" } - ] + ], + "title": "Guest Lights" + }, + { + "type": "entities", + "entities": [], + "title": "Guest Plugs" + } + ] } - ] + ] + } + ] } + ] } + } } \ No newline at end of file diff --git a/.storage/lovelace.lovelace_power b/.storage/lovelace.lovelace_power index 196e118..2046dad 100644 --- a/.storage/lovelace.lovelace_power +++ b/.storage/lovelace.lovelace_power @@ -1,344 +1,572 @@ { - "version": 1, - "minor_version": 1, - "key": "lovelace.lovelace_power", - "data": { - "config": { - "views": [ - { - "theme": "Backend-selected", - "title": "Home", - "type": "custom:grid-layout", - "layout": { - "max_cols": 4, - "grid-template-columns": "25% 25% 25% 25%", - "grid-template-rows": "auto", - "mediaquery": { - "(max-width: 600px)": { - "grid-template-columns": "100%" - }, - "(max-width: 1200px)": { - "grid-template-columns": "50% 50%" - } - } + "version": 1, + "minor_version": 1, + "key": "lovelace.lovelace_power", + "data": { + "config": { + "views": [ + { + "theme": "Backend-selected", + "title": "Home", + "type": "custom:grid-layout", + "layout": { + "max_cols": 4, + "grid-template-columns": "25% 25% 25% 25%", + "grid-template-rows": "auto", + "mediaquery": { + "(max-width: 600px)": { + "grid-template-columns": "100%" + }, + "(max-width: 1200px)": { + "grid-template-columns": "50% 50%" + } + } + }, + "badges": [], + "cards": [ + { + "type": "entities", + "title": "Office", + "entities": [ + { + "entity": "sensor.office_table_power", + "name": "Table" + }, + { + "entity": "sensor.office_shelftop_power", + "name": "Top" + }, + { + "entity": "sensor.office_shelfbottom_power", + "name": "Bottom" + } + ] + }, + { + "type": "entities", + "title": "Appliances", + "entities": [ + { + "entity": "sensor.kitchen_oven_power", + "name": "Oven" + }, + { + "entity": "sensor.kitchen_wash_power", + "name": "Washers" + }, + { + "entity": "sensor.kitchen_teatable_power", + "name": "Tea Table" + }, + { + "entity": "sensor.kitchen_fridge_power", + "name": "Fridge" + }, + { + "entity": "sensor.office_aircon_power", + "name": "AirCon Office" + }, + { + "entity": "sensor.bedroom_aircon_power", + "name": "AirCon Bedroom" + } + ] + }, + { + "type": "entities", + "title": "Lights", + "entities": [ + { + "entity": "sensor.kitchen_ledlights_power", + "name": "Kitchen LEDs" + }, + { + "entity": "sensor.bedroom_bedsidelampsocket_power", + "name": "Bedroom Bedside" + }, + { + "entity": "sensor.bedroom_tablelamp_power", + "name": "Bedroom Table" + }, + { + "entity": "sensor.living_tablelampsocket_power", + "name": "Living Table" + } + ] + }, + { + "type": "entities", + "title": "Infrastructure", + "entities": [ + { + "entity": "sensor.office_smartpi_energy_power", + "name": "SmartPI" + }, + { + "entity": "sensor.bedroom_router_power", + "name": "Asgard" + }, + { + "entity": "sensor.bedroom_roof_power", + "name": "Roof" + }, + { + "entity": "sensor.hall_infra_power", + "name": "Hall" + }, + { + "entity": "sensor.hall_camera_power", + "name": "AubergineView" + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "title": "Office (1y)", + "type": "statistics-graph", + "chart_type": "line", + "period": "week", + "days_to_show": 365, + "stat_types": [ + "mean" + ], + "entities": [ + { + "entity": "sensor.office_table_power", + "name": "Table" + }, + { + "entity": "sensor.office_shelftop_power", + "name": "Top" + }, + { + "entity": "sensor.office_shelfbottom_power", + "name": "Bottom" + } + ] + }, + { + "title": "Office (3m)", + "type": "statistics-graph", + "chart_type": "line", + "period": "day", + "days_to_show": 90, + "stat_types": [ + "mean" + ], + "entities": [ + { + "entity": "sensor.office_table_power", + "name": "Table" + }, + { + "entity": "sensor.office_shelftop_power", + "name": "Top" + }, + { + "entity": "sensor.office_shelfbottom_power", + "name": "Bottom" + } + ] + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "title": "Kitchen (1y)", + "type": "statistics-graph", + "chart_type": "line", + "period": "week", + "days_to_show": 365, + "stat_types": [ + "mean" + ], + "entities": [ + { + "entity": "sensor.kitchen_oven_power", + "name": "Oven" + }, + { + "entity": "sensor.kitchen_wash_power", + "name": "Washers" + }, + { + "entity": "sensor.kitchen_teatable_power", + "name": "Tea Table" + }, + { + "entity": "sensor.kitchen_fridge_power", + "name": "Fridge" + } + ] + }, + { + "title": "Kitchen (3m)", + "type": "statistics-graph", + "chart_type": "line", + "period": "day", + "days_to_show": 90, + "stat_types": [ + "mean" + ], + "entities": [ + { + "entity": "sensor.kitchen_oven_power", + "name": "Oven" + }, + { + "entity": "sensor.kitchen_wash_power", + "name": "Washers" + }, + { + "entity": "sensor.kitchen_teatable_power", + "name": "Tea Table" + }, + { + "entity": "sensor.kitchen_fridge_power", + "name": "Fridge" + } + ] + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "title": "Climate (1y)", + "type": "statistics-graph", + "chart_type": "line", + "period": "week", + "days_to_show": 365, + "stat_types": [ + "mean" + ], + "entities": [ + { + "entity": "sensor.office_aircon_power", + "name": "Office" + }, + { + "entity": "sensor.bedroom_aircon_power", + "name": "Bedroom" + } + ] + }, + { + "title": "Climate (3m)", + "type": "statistics-graph", + "chart_type": "line", + "period": "day", + "days_to_show": 90, + "stat_types": [ + "mean" + ], + "entities": [ + { + "entity": "sensor.office_aircon_power", + "name": "Office" + }, + { + "entity": "sensor.bedroom_aircon_power", + "name": "Bedroom" + } + ] + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "title": "Infrastructure (1y)", + "type": "statistics-graph", + "chart_type": "line", + "period": "week", + "days_to_show": 365, + "stat_types": [ + "mean" + ], + "entities": [ + { + "entity": "sensor.office_smartpi_energy_power", + "name": "SmartPI" + }, + { + "entity": "sensor.bedroom_router_power", + "name": "Asgard" + }, + { + "entity": "sensor.bedroom_roof_power", + "name": "Roof" + }, + { + "entity": "sensor.hall_infra_power", + "name": "Hall" + }, + { + "entity": "sensor.hall_camera_power", + "name": "AubergineView" + } + ] + }, + { + "title": "Infrastructure (3m)", + "type": "statistics-graph", + "chart_type": "line", + "period": "day", + "days_to_show": 90, + "stat_types": [ + "mean" + ], + "entities": [ + { + "entity": "sensor.office_smartpi_energy_power", + "name": "SmartPI" + }, + { + "entity": "sensor.bedroom_router_power", + "name": "Asgard" + }, + { + "entity": "sensor.bedroom_roof_power", + "name": "Roof" + }, + { + "entity": "sensor.hall_infra_power", + "name": "Hall" + }, + { + "entity": "sensor.hall_camera_power", + "name": "AubergineView" + } + ] + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "history-graph", + "entities": [ + { + "entity": "sensor.office_table_power", + "name": "Table" + }, + { + "entity": "sensor.office_shelftop_power", + "name": "Top" + }, + { + "entity": "sensor.office_shelfbottom_power", + "name": "Bottom" + } + ], + "hours_to_show": 24, + "title": "Office (24h)" + }, + { + "hours_to_show": 24, + "graph": "line", + "type": "sensor", + "entity": "sensor.office_table_power", + "detail": 2, + "name": "Table" + }, + { + "hours_to_show": 24, + "graph": "line", + "type": "sensor", + "entity": "sensor.office_shelftop_power", + "detail": 2, + "name": "Top" + }, + { + "hours_to_show": 24, + "graph": "line", + "type": "sensor", + "entity": "sensor.office_shelfbottom_power", + "detail": 2, + "name": "Bottom" + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "history-graph", + "entities": [ + { + "entity": "sensor.kitchen_oven_power", + "name": "Oven" + }, + { + "entity": "sensor.kitchen_wash_power", + "name": "Washers" }, - "badges": [], - "cards": [ - { - "type": "entities", - "title": "Office", - "entities": [ - { - "entity": "sensor.office_table_power", - "name": "Table" - }, - { - "entity": "sensor.office_shelftop_power", - "name": "Top" - }, - { - "entity": "sensor.office_shelfbottom_power", - "name": "Bottom" - } - ] - }, - { - "type": "entities", - "title": "Appliances", - "entities": [ - { - "entity": "sensor.kitchen_oven_power", - "name": "Oven" - }, - { - "entity": "sensor.kitchen_wash_power", - "name": "Washers" - }, - { - "entity": "sensor.kitchen_teatable_power", - "name": "Tea Table" - }, - { - "entity": "sensor.kitchen_fridge_power", - "name": "Fridge" - }, - { - "entity": "sensor.office_aircon_power", - "name": "AirCon Office" - }, - { - "entity": "sensor.bedroom_aircon_power", - "name": "AirCon Bedroom" - } - ] - }, - { - "type": "entities", - "title": "Lights", - "entities": [ - { - "entity": "sensor.kitchen_ledlights_power", - "name": "Kitchen LEDs" - }, - { - "entity": "sensor.bedroom_bedsidelampsocket_power", - "name": "Bedroom Bedside" - }, - { - "entity": "sensor.bedroom_tablelamp_power", - "name": "Bedroom Table" - }, - { - "entity": "sensor.living_tablelampsocket_power", - "name": "Living Table" - } - ] - }, - { - "type": "entities", - "title": "Infrastructure", - "entities": [ - { - "entity": "sensor.office_smartpi_energy_power", - "name": "SmartPI" - }, - { - "entity": "sensor.bedroom_router_power", - "name": "Asgard" - }, - { - "entity": "sensor.bedroom_roof_power", - "name": "Roof" - }, - { - "entity": "sensor.hall_infra_power", - "name": "Hall" - }, - { - "entity": "sensor.hall_camera_power", - "name": "AubergineView" - } - ] - }, - { - "type": "vertical-stack", - "cards": [ - { - "type": "history-graph", - "entities": [ - { - "entity": "sensor.office_table_power", - "name": "Table" - }, - { - "entity": "sensor.office_shelftop_power", - "name": "Top" - }, - { - "entity": "sensor.office_shelfbottom_power", - "name": "Bottom" - } - ], - "hours_to_show": 24, - "title": "Office (24h)" - }, - { - "hours_to_show": 24, - "graph": "line", - "type": "sensor", - "entity": "sensor.office_table_power", - "detail": 2, - "name": "Table" - }, - { - "hours_to_show": 24, - "graph": "line", - "type": "sensor", - "entity": "sensor.office_shelftop_power", - "detail": 2, - "name": "Top" - }, - { - "hours_to_show": 24, - "graph": "line", - "type": "sensor", - "entity": "sensor.office_shelfbottom_power", - "detail": 2, - "name": "Bottom" - } - ] - }, - { - "type": "vertical-stack", - "cards": [ - { - "type": "history-graph", - "entities": [ - { - "entity": "sensor.kitchen_oven_power", - "name": "Oven" - }, - { - "entity": "sensor.kitchen_wash_power", - "name": "Washers" - }, - { - "entity": "sensor.kitchen_teatable_power", - "name": "Tea Table" - }, - { - "entity": "sensor.kitchen_fridge_power", - "name": "Fridge" - } - ], - "hours_to_show": 24, - "title": "Kitchen (24h)" - }, - { - "hours_to_show": 24, - "graph": "line", - "type": "sensor", - "entity": "sensor.kitchen_oven_power", - "detail": 2, - "name": "Oven" - }, - { - "hours_to_show": 24, - "graph": "line", - "type": "sensor", - "entity": "sensor.kitchen_wash_power", - "detail": 2, - "name": "Washers" - }, - { - "hours_to_show": 24, - "graph": "line", - "type": "sensor", - "entity": "sensor.kitchen_teatable_power", - "detail": 2, - "name": "Tea Table" - }, - { - "hours_to_show": 24, - "graph": "line", - "type": "sensor", - "entity": "sensor.kitchen_fridge_power", - "detail": 2, - "name": "Fridge" - } - ] - }, - { - "type": "vertical-stack", - "cards": [ - { - "type": "history-graph", - "entities": [ - { - "entity": "sensor.office_aircon_power", - "name": "Office" - }, - { - "entity": "sensor.bedroom_aircon_power", - "name": "Bedroom" - } - ], - "hours_to_show": 24, - "title": "Climate (24h)" - }, - { - "hours_to_show": 24, - "graph": "line", - "type": "sensor", - "entity": "sensor.office_aircon_power", - "detail": 2, - "name": "AirCon Office" - }, - { - "hours_to_show": 24, - "graph": "line", - "type": "sensor", - "entity": "sensor.bedroom_aircon_power", - "detail": 2, - "name": "AirCon Bedroom" - } - ] - }, - { - "type": "vertical-stack", - "cards": [ - { - "type": "history-graph", - "entities": [ - { - "entity": "sensor.office_smartpi_energy_power", - "name": "SmartPI" - }, - { - "entity": "sensor.bedroom_router_power", - "name": "Asgard" - }, - { - "entity": "sensor.bedroom_roof_power", - "name": "Roof" - }, - { - "entity": "sensor.hall_infra_power", - "name": "Hall" - }, - { - "entity": "sensor.hall_camera_power", - "name": "AubergineView" - } - ], - "hours_to_show": 24, - "title": "Infrastructure (24h)" - }, - { - "hours_to_show": 24, - "graph": "line", - "type": "sensor", - "entity": "sensor.office_smartpi_energy_power", - "detail": 2, - "name": "SmartPI" - }, - { - "hours_to_show": 24, - "graph": "line", - "type": "sensor", - "entity": "sensor.bedroom_router_power", - "detail": 2, - "name": "Asgard" - }, - { - "hours_to_show": 24, - "graph": "line", - "type": "sensor", - "entity": "sensor.bedroom_roof_power", - "detail": 2, - "name": "Roof" - }, - { - "hours_to_show": 24, - "graph": "line", - "type": "sensor", - "entity": "sensor.hall_infra_power", - "detail": 2, - "name": "Hall Infra" - }, - { - "hours_to_show": 24, - "graph": "line", - "type": "sensor", - "entity": "sensor.hall_camera_power", - "detail": 2, - "name": "AubergineView" - } - ] - } - ] + { + "entity": "sensor.kitchen_teatable_power", + "name": "Tea Table" + }, + { + "entity": "sensor.kitchen_fridge_power", + "name": "Fridge" + } + ], + "hours_to_show": 24, + "title": "Kitchen (24h)" + }, + { + "hours_to_show": 24, + "graph": "line", + "type": "sensor", + "entity": "sensor.kitchen_oven_power", + "detail": 2, + "name": "Oven" + }, + { + "hours_to_show": 24, + "graph": "line", + "type": "sensor", + "entity": "sensor.kitchen_wash_power", + "detail": 2, + "name": "Washers" + }, + { + "hours_to_show": 24, + "graph": "line", + "type": "sensor", + "entity": "sensor.kitchen_teatable_power", + "detail": 2, + "name": "Tea Table" + }, + { + "hours_to_show": 24, + "graph": "line", + "type": "sensor", + "entity": "sensor.kitchen_fridge_power", + "detail": 2, + "name": "Fridge" + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "history-graph", + "entities": [ + { + "entity": "sensor.office_aircon_power", + "name": "Office" + }, + { + "entity": "sensor.bedroom_aircon_power", + "name": "Bedroom" + } + ], + "hours_to_show": 24, + "title": "Climate (24h)" + }, + { + "hours_to_show": 24, + "graph": "line", + "type": "sensor", + "entity": "sensor.office_aircon_power", + "detail": 2, + "name": "AirCon Office" + }, + { + "hours_to_show": 24, + "graph": "line", + "type": "sensor", + "entity": "sensor.bedroom_aircon_power", + "detail": 2, + "name": "AirCon Bedroom" + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "history-graph", + "entities": [ + { + "entity": "sensor.office_smartpi_energy_power", + "name": "SmartPI" + }, + { + "entity": "sensor.bedroom_router_power", + "name": "Asgard" + }, + { + "entity": "sensor.bedroom_roof_power", + "name": "Roof" + }, + { + "entity": "sensor.hall_infra_power", + "name": "Hall" + }, + { + "entity": "sensor.hall_camera_power", + "name": "AubergineView" + } + ], + "hours_to_show": 24, + "title": "Infrastructure (24h)" + }, + { + "hours_to_show": 24, + "graph": "line", + "type": "sensor", + "entity": "sensor.office_smartpi_energy_power", + "detail": 2, + "name": "SmartPI" + }, + { + "hours_to_show": 24, + "graph": "line", + "type": "sensor", + "entity": "sensor.bedroom_router_power", + "detail": 2, + "name": "Asgard" + }, + { + "hours_to_show": 24, + "graph": "line", + "type": "sensor", + "entity": "sensor.bedroom_roof_power", + "detail": 2, + "name": "Roof" + }, + { + "hours_to_show": 24, + "graph": "line", + "type": "sensor", + "entity": "sensor.hall_infra_power", + "detail": 2, + "name": "Hall Infra" + }, + { + "hours_to_show": 24, + "graph": "line", + "type": "sensor", + "entity": "sensor.hall_camera_power", + "detail": 2, + "name": "AubergineView" } - ] + ] + } + ] } + ] } + } } \ No newline at end of file diff --git a/.storage/lovelace.lovelace_status b/.storage/lovelace.lovelace_status index 2e2faf3..202ad33 100644 --- a/.storage/lovelace.lovelace_status +++ b/.storage/lovelace.lovelace_status @@ -1,370 +1,370 @@ { - "version": 1, - "minor_version": 1, - "key": "lovelace.lovelace_status", - "data": { - "config": { - "views": [ + "version": 1, + "minor_version": 1, + "key": "lovelace.lovelace_status", + "data": { + "config": { + "views": [ + { + "title": "Home", + "cards": [ + { + "type": "vertical-stack", + "cards": [ { - "title": "Home", - "cards": [ - { - "type": "vertical-stack", - "cards": [ - { - "type": "entities", - "title": "Locks", - "entities": [ - { - "entity": "switch.hall_speakerphone", - "name": "Halabyan24" - } - ] - }, - { - "type": "custom:restriction-card", - "restrictions": { - "confirm": { - "exemptions": null - } - }, - "card": { - "type": "entities", - "entities": [ - { - "entity": "input_boolean.mode_away", - "name": "Away/Security" - }, - { - "entity": "switch.hall_lights_center", - "name": "Camera" - }, - { - "entity": "binary_sensor.network_route_crd", - "name": "CRD net" - }, - { - "entity": "binary_sensor.network_route_vivacell", - "name": "LTE net" - } - ] - } - }, - { - "type": "custom:restriction-card", - "restrictions": { - "block": { - "exemptions": null - } - }, - "card": { - "type": "entities", - "title": "Plugs", - "entities": [ - { - "entity": "switch.plugs_infrastructure", - "name": "Infrastructure" - }, - { - "entity": "switch.plugs_manual", - "name": "Manual Sockets" - }, - { - "entity": "switch.plugs_controlled", - "name": "Controlled Sockets" - }, - { - "entity": "switch.plugs_office", - "name": "Office Sockets" - } - ] - } - }, - { - "type": "custom:restriction-card", - "restrictions": { - "confirm": { - "exemptions": null - } - }, - "card": { - "type": "entities", - "title": "Manual Plugs", - "entities": [ - { - "entity": "switch.plugs_kitchen", - "name": "Kitchen" - }, - { - "entity": "switch.plugs_office", - "name": "Office All" - }, - { - "entity": "switch.smart_power_strip_pro_socket_2", - "name": "Office Desk" - }, - { - "entity": "switch.bedroom_bedsidelampsocket", - "name": "Bedside" - } - ] - } - }, - { - "type": "entities", - "title": "Lights", - "entities": [ - { - "entity": "switch.lights_living", - "name": "Living Room" - }, - { - "entity": "switch.lights_bedroom", - "name": "Bedroom" - }, - { - "entity": "binary_sensor.bedroom_bedsidelamp", - "name": "Bedside LED" - }, - { - "entity": "switch.lights_guest", - "name": "Guestroom" - }, - { - "entity": "switch.lights_kitchen", - "name": "Kitchen" - }, - { - "entity": "switch.lights_bathroom", - "name": "Bathroom/Toilet" - }, - { - "entity": "switch.lights_hall", - "name": "Hall" - } - ] - }, - { - "type": "history-graph", - "title": "Networks (8 hours)", - "hours_to_show": 8, - "entities": [ - { - "entity": "binary_sensor.network_route_crd", - "name": "CRD" - }, - { - "entity": "binary_sensor.network_route_vivacell", - "name": "LTE" - } - ] - } - ] - }, - { - "type": "vertical-stack", - "cards": [ - { - "type": "entities", - "entities": [ - { - "entity": "input_boolean.occupancy_toilet", - "name": "Toilet" - }, - { - "entity": "input_boolean.occupancy_bathroom", - "name": "Bathroom" - } - ], - "title": "Occupancy" - }, - { - "type": "entities", - "title": "Doors", - "entities": [ - { - "entity": "binary_sensor.entrance_door_contact", - "name": "Entrance" - }, - { - "entity": "binary_sensor.balcony_doors", - "name": "Balconies" - }, - { - "entity": "binary_sensor.toilet_door_contact", - "name": "Toilet" - }, - { - "entity": "binary_sensor.kit_shelve_contact", - "name": "KIT Shelve" - } - ] - }, - { - "type": "entities", - "entities": [ - { - "entity": "binary_sensor.hall_motions_occupancy", - "name": "Hall" - }, - { - "entity": "binary_sensor.kitchen_motions_occupancy", - "name": "Kitchen" - }, - { - "entity": "binary_sensor.bathroom_motions_occupancy", - "name": "Bathroom" - }, - { - "entity": "binary_sensor.toilet_motions_occupancy", - "name": "Toilet" - }, - { - "entity": "binary_sensor.guestroom_motions_occupancy", - "name": "Guestroom" - }, - { - "entity": "binary_sensor.bedroom_motions_occupancy", - "name": "Bedroom" - }, - { - "entity": "binary_sensor.presence_presence", - "name": "Living" - } - ], - "title": "Motions" - }, - { - "type": "history-graph", - "entities": [ - { - "entity": "binary_sensor.entrance_door_contact", - "name": "Entrance" - }, - { - "entity": "binary_sensor.balcony_doors", - "name": "Balconies" - }, - { - "entity": "binary_sensor.hall_motions_occupancy", - "name": "Hall" - }, - { - "entity": "binary_sensor.kitchen_motions_occupancy", - "name": "Kitchen" - }, - { - "entity": "binary_sensor.bathroom_motions_occupancy", - "name": "Bathroom" - }, - { - "entity": "binary_sensor.toilet_motions_occupancy", - "name": "Toilet" - }, - { - "entity": "binary_sensor.guestroom_motions_occupancy", - "name": "Guestroom" - }, - { - "entity": "binary_sensor.bedroom_motions_occupancy", - "name": "Bedroom" - }, - { - "entity": "binary_sensor.presence_presence", - "name": "Living" - } - ], - "hours_to_show": 2, - "title": "2 hours" - }, - { - "type": "entities", - "entities": [ - { - "entity": "sensor.192_168_50_1_devices_connected", - "name": "Asgard clients" - }, - { - "entity": "device_tracker.legion8", - "name": "Legion8/Asgard" - }, - { - "entity": "device_tracker.lm_g810", - "name": "Legion8/Hass" - }, - { - "entity": "device_tracker.nyx", - "name": "Nyx/Asgard" - } - ] - } - ] - }, - { - "type": "vertical-stack", - "cards": [ - { - "type": "history-graph", - "title": "Power (24h -> 2h)", - "entities": [ - { - "entity": "sensor.power_infrastructure" - }, - { - "entity": "sensor.power_office" - }, - { - "entity": "sensor.power_kitchen" - }, - { - "entity": "sensor.power_climate" - }, - { - "entity": "sensor.power_lights" - } - ], - "hours_to_show": 24 - }, - { - "hours_to_show": 2, - "graph": "line", - "type": "sensor", - "entity": "sensor.power_infrastructure", - "detail": 2 - }, - { - "hours_to_show": 2, - "graph": "line", - "type": "sensor", - "entity": "sensor.power_office", - "detail": 2 - }, - { - "hours_to_show": 2, - "graph": "line", - "type": "sensor", - "entity": "sensor.power_kitchen", - "detail": 2 - }, - { - "hours_to_show": 2, - "graph": "line", - "type": "sensor", - "entity": "sensor.power_climate", - "detail": 2 - }, - { - "hours_to_show": 2, - "graph": "line", - "type": "sensor", - "entity": "sensor.power_lights", - "detail": 2 - } - ] - } + "type": "entities", + "title": "Locks", + "entities": [ + { + "entity": "switch.hall_speakerphone", + "name": "Halabyan24" + } + ] + }, + { + "type": "custom:restriction-card", + "restrictions": { + "confirm": { + "exemptions": null + } + }, + "card": { + "type": "entities", + "entities": [ + { + "entity": "input_boolean.mode_away", + "name": "Away/Security" + }, + { + "entity": "switch.hall_lights_center", + "name": "Camera" + }, + { + "entity": "binary_sensor.network_route_crd", + "name": "CRD net" + }, + { + "entity": "binary_sensor.network_route_vivacell", + "name": "LTE net" + } + ] + } + }, + { + "type": "custom:restriction-card", + "restrictions": { + "block": { + "exemptions": null + } + }, + "card": { + "type": "entities", + "title": "Plugs", + "entities": [ + { + "entity": "switch.plugs_infrastructure", + "name": "Infrastructure" + }, + { + "entity": "switch.plugs_manual", + "name": "Manual Sockets" + }, + { + "entity": "switch.plugs_controlled", + "name": "Controlled Sockets" + }, + { + "entity": "switch.plugs_office", + "name": "Office Sockets" + } + ] + } + }, + { + "type": "custom:restriction-card", + "restrictions": { + "confirm": { + "exemptions": null + } + }, + "card": { + "type": "entities", + "title": "Manual Plugs", + "entities": [ + { + "entity": "switch.plugs_kitchen", + "name": "Kitchen" + }, + { + "entity": "switch.plugs_office", + "name": "Office All" + }, + { + "entity": "switch.office_power_strip_socket_2", + "name": "Office Desk" + }, + { + "entity": "switch.bedroom_bedsidelampsocket", + "name": "Bedside" + } ] + } + }, + { + "type": "entities", + "title": "Lights", + "entities": [ + { + "entity": "switch.lights_living", + "name": "Living Room" + }, + { + "entity": "switch.lights_bedroom", + "name": "Bedroom" + }, + { + "entity": "binary_sensor.bedroom_bedsidelamp", + "name": "Bedside LED" + }, + { + "entity": "switch.lights_guest", + "name": "Guestroom" + }, + { + "entity": "switch.lights_kitchen", + "name": "Kitchen" + }, + { + "entity": "switch.lights_bathroom", + "name": "Bathroom/Toilet" + }, + { + "entity": "switch.lights_hall", + "name": "Hall" + } + ] + }, + { + "type": "history-graph", + "title": "Networks (8 hours)", + "hours_to_show": 8, + "entities": [ + { + "entity": "binary_sensor.network_route_crd", + "name": "CRD" + }, + { + "entity": "binary_sensor.network_route_vivacell", + "name": "LTE" + } + ] + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "entities", + "entities": [ + { + "entity": "input_boolean.occupancy_toilet", + "name": "Toilet" + }, + { + "entity": "input_boolean.occupancy_bathroom", + "name": "Bathroom" + } + ], + "title": "Occupancy" + }, + { + "type": "entities", + "title": "Doors", + "entities": [ + { + "entity": "binary_sensor.entrance_door_contact", + "name": "Entrance" + }, + { + "entity": "binary_sensor.balcony_doors", + "name": "Balconies" + }, + { + "entity": "binary_sensor.toilet_door_contact", + "name": "Toilet" + }, + { + "entity": "binary_sensor.kit_shelve_contact", + "name": "KIT Shelve" + } + ] + }, + { + "type": "entities", + "entities": [ + { + "entity": "binary_sensor.hall_motions_occupancy", + "name": "Hall" + }, + { + "entity": "binary_sensor.kitchen_motions_occupancy", + "name": "Kitchen" + }, + { + "entity": "binary_sensor.bathroom_motions_occupancy", + "name": "Bathroom" + }, + { + "entity": "binary_sensor.toilet_motions_occupancy", + "name": "Toilet" + }, + { + "entity": "binary_sensor.guestroom_motions_occupancy", + "name": "Guestroom" + }, + { + "entity": "binary_sensor.bedroom_motions_occupancy", + "name": "Bedroom" + }, + { + "entity": "binary_sensor.presence_presence", + "name": "Living" + } + ], + "title": "Motions" + }, + { + "type": "history-graph", + "entities": [ + { + "entity": "binary_sensor.entrance_door_contact", + "name": "Entrance" + }, + { + "entity": "binary_sensor.balcony_doors", + "name": "Balconies" + }, + { + "entity": "binary_sensor.hall_motions_occupancy", + "name": "Hall" + }, + { + "entity": "binary_sensor.kitchen_motions_occupancy", + "name": "Kitchen" + }, + { + "entity": "binary_sensor.bathroom_motions_occupancy", + "name": "Bathroom" + }, + { + "entity": "binary_sensor.toilet_motions_occupancy", + "name": "Toilet" + }, + { + "entity": "binary_sensor.guestroom_motions_occupancy", + "name": "Guestroom" + }, + { + "entity": "binary_sensor.bedroom_motions_occupancy", + "name": "Bedroom" + }, + { + "entity": "binary_sensor.presence_presence", + "name": "Living" + } + ], + "hours_to_show": 2, + "title": "2 hours" + }, + { + "type": "entities", + "entities": [ + { + "entity": "sensor.192_168_50_1_devices_connected", + "name": "Asgard clients" + }, + { + "entity": "device_tracker.legion8", + "name": "Legion8/Asgard" + }, + { + "entity": "device_tracker.lm_g810", + "name": "Legion8/Hass" + }, + { + "entity": "device_tracker.nyx", + "name": "Nyx/Asgard" + } + ] + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "history-graph", + "title": "Power (24h -> 2h)", + "entities": [ + { + "entity": "sensor.power_infrastructure" + }, + { + "entity": "sensor.power_office" + }, + { + "entity": "sensor.power_kitchen" + }, + { + "entity": "sensor.power_climate" + }, + { + "entity": "sensor.power_lights" + } + ], + "hours_to_show": 24 + }, + { + "hours_to_show": 2, + "graph": "line", + "type": "sensor", + "entity": "sensor.power_infrastructure", + "detail": 2 + }, + { + "hours_to_show": 2, + "graph": "line", + "type": "sensor", + "entity": "sensor.power_office", + "detail": 2 + }, + { + "hours_to_show": 2, + "graph": "line", + "type": "sensor", + "entity": "sensor.power_kitchen", + "detail": 2 + }, + { + "hours_to_show": 2, + "graph": "line", + "type": "sensor", + "entity": "sensor.power_climate", + "detail": 2 + }, + { + "hours_to_show": 2, + "graph": "line", + "type": "sensor", + "entity": "sensor.power_lights", + "detail": 2 } - ] + ] + } + ] } + ] } + } } \ No newline at end of file diff --git a/.storage/lovelace.lovelace_test b/.storage/lovelace.lovelace_test index 47039a9..13e6952 100644 --- a/.storage/lovelace.lovelace_test +++ b/.storage/lovelace.lovelace_test @@ -1,896 +1,940 @@ { - "version": 1, - "minor_version": 1, - "key": "lovelace.lovelace_test", - "data": { - "config": { - "views": [ + "version": 1, + "minor_version": 1, + "key": "lovelace.lovelace_test", + "data": { + "config": { + "views": [ + { + "theme": "Backend-selected", + "title": "Home", + "type": "custom:grid-layout", + "layout": { + "max_cols": 4, + "grid-template-columns": "25% 25% 25% 25%", + "grid-template-rows": "auto", + "mediaquery": { + "(max-width: 600px)": { + "grid-template-columns": "100%" + }, + "(max-width: 1200px)": { + "grid-template-columns": "50% 50%" + }, + "(max-width: 1800px)": { + "grid-template-columns": "33% 33% 33%" + } + } + }, + "badges": [], + "cards": [ + { + "type": "vertical-stack", + "cards": [ { - "theme": "Backend-selected", - "title": "Home", - "type": "custom:grid-layout", - "layout": { - "max_cols": 4, - "grid-template-columns": "25% 25% 25% 25%", - "grid-template-rows": "auto", - "mediaquery": { - "(max-width: 600px)": { - "grid-template-columns": "100%" - }, - "(max-width: 1200px)": { - "grid-template-columns": "50% 50%" - }, - "(max-width: 1800px)": { - "grid-template-columns": "33% 33% 33%" - } - } - }, - "badges": [], - "cards": [ - { - "type": "vertical-stack", - "cards": [ - { - "type": "entities", - "entities": [ - { - "entity": "group.master_phones", - "name": "Phones" - }, - { - "entity": "group.master_laptops", - "name": "Laptops" - }, - { - "entity": "sensor.192_168_50_1_devices_connected", - "name": "Asgard clients" - }, - { - "type": "divider" - }, - { - "entity": "device_tracker.legion8", - "name": "Legion8/Asgard" - }, - { - "entity": "device_tracker.lm_g810", - "name": "Legion8/Hass" - }, - { - "entity": "device_tracker.nyx", - "name": "Nyx/Asgard" - } - ] - }, - { - "type": "history-graph", - "entities": [ - { - "entity": "group.master_phones", - "name": "Phones" - }, - { - "entity": "group.master_laptops", - "name": "Laptops" - }, - { - "entity": "device_tracker.legion8", - "name": "Legion8/Asgard" - }, - { - "entity": "device_tracker.lm_g810", - "name": "Legion8/Hass" - }, - { - "entity": "device_tracker.nyx", - "name": "Nyx/Asgard" - }, - { - "entity": "sensor.192_168_50_1_devices_connected", - "name": "Asgard clients" - } - ], - "hours_to_show": 12 - }, - { - "type": "history-graph", - "entities": [ - { - "entity": "binary_sensor.entrance_door_contact", - "name": "Contact" - }, - { - "entity": "binary_sensor.hall_motions_occupancy", - "name": "Motions" - }, - { - "entity": "binary_sensor.entrance_vibrations_vibration", - "name": "Vibration" - }, - { - "entity": "sensor.entrance_vibrations_strength", - "name": "Strength" - } - ], - "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" - } - ] - }, - { - "type": "vertical-stack", - "cards": [ - { - "type": "entities", - "entities": [ - { - "entity": "input_boolean.occupancy_toilet", - "name": "Toilet" - }, - { - "entity": "input_boolean.occupancy_bathroom", - "name": "Bathroom" - } - ], - "title": "Occupancy" - }, - { - "type": "entities", - "entities": [ - { - "entity": "binary_sensor.hall_motions_occupancy", - "name": "Hall" - }, - { - "type": "divider" - }, - { - "entity": "binary_sensor.kitchen_motions_occupancy", - "name": "Kitchen" - }, - { - "entity": "binary_sensor.kitchen_presence_presence", - "name": "Presence" - }, - { - "type": "divider" - }, - { - "entity": "binary_sensor.bathroom_motions2_occupancy", - "name": "Bathroom" - }, - { - "entity": "binary_sensor.bathroom_motions_occupancy", - "name": "Door" - }, - { - "type": "divider" - }, - { - "entity": "binary_sensor.toilet_motions_occupancy", - "name": "Toilet" - }, - { - "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.bedroom_presence_presence", - "name": "Presence" - }, - { - "entity": "binary_sensor.guestroom_motions_occupancy", - "name": "Guestroom" - } - ] - }, - { - "type": "history-graph", - "entities": [ - { - "entity": "binary_sensor.hall_motions_occupancy", - "name": "Hall" - }, - { - "entity": "binary_sensor.kitchen_motions_occupancy", - "name": "Kitchen" - }, - { - "entity": "binary_sensor.kitchen_presence_presence", - "name": "Presence" - }, - { - "entity": "binary_sensor.bathroom_motions2_occupancy", - "name": "Bathroom" - }, - { - "entity": "binary_sensor.bathroom_motions_occupancy", - "name": "Door" - }, - { - "entity": "binary_sensor.toilet_motions_occupancy", - "name": "Toilet" - }, - { - "entity": "binary_sensor.toilet_door_contact", - "name": "Door" - }, - { - "entity": "binary_sensor.presence_presence", - "name": "Living" - }, - { - "entity": "binary_sensor.bedroom_motions_occupancy", - "name": "Bedroom" - }, - { - "entity": "binary_sensor.bedroom_presence_presence", - "name": "Presence" - }, - { - "entity": "binary_sensor.guestroom_motions_occupancy", - "name": "Guestroom" - } - ], - "hours_to_show": 1, - "title": "Motion Sensors (1h)" - }, - { - "type": "history-graph", - "entities": [ - { - "entity": "binary_sensor.hall_motions_occupancy", - "name": "Hall" - }, - { - "entity": "binary_sensor.kitchen_motions_occupancy", - "name": "Kitchen" - }, - { - "entity": "binary_sensor.kitchen_presence_presence", - "name": "Presence" - }, - { - "entity": "binary_sensor.bathroom_motions2_occupancy", - "name": "Bathroom" - }, - { - "entity": "binary_sensor.bathroom_motions_occupancy", - "name": "Door" - }, - { - "entity": "binary_sensor.toilet_motions_occupancy", - "name": "Toilet" - }, - { - "entity": "binary_sensor.toilet_door_contact", - "name": "Door" - }, - { - "entity": "binary_sensor.presence_presence", - "name": "Living" - }, - { - "entity": "binary_sensor.bedroom_motions_occupancy", - "name": "Bedroom" - }, - { - "entity": "binary_sensor.bedroom_presence_presence", - "name": "Presence" - }, - { - "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": "Living" - }, - { - "entity": "sensor.presence_target_distance", - "name": "Living" - }, - { - "entity": "binary_sensor.bedroom_presence_presence", - "name": "Bedroom" - }, - { - "entity": "sensor.bedroom_presence_target_distance", - "name": "Bedroom" - }, - { - "entity": "binary_sensor.kitchen_presence_presence", - "name": "Kitchen" - }, - { - "entity": "sensor.kitchen_presence_target_distance", - "name": "Kitchen" - } - ], - "hours_to_show": 1, - "title": "Presence (1h)" - }, - { - "type": "history-graph", - "entities": [ - { - "entity": "binary_sensor.presence_presence", - "name": "Living" - }, - { - "entity": "sensor.presence_target_distance", - "name": "Living" - }, - { - "entity": "binary_sensor.bedroom_presence_presence", - "name": "Bedroom" - }, - { - "entity": "sensor.bedroom_presence_target_distance", - "name": "Bedroom" - }, - { - "entity": "binary_sensor.kitchen_presence_presence", - "name": "Kitchen" - }, - { - "entity": "sensor.kitchen_presence_target_distance", - "name": "Kitchen" - } - ], - "hours_to_show": 12, - "title": "Presence (12h)" - } - ] - }, - { - "type": "vertical-stack", - "cards": [ - { - "type": "entities", - "entities": [ - { - "entity": "sensor.bedroom_tablelamp_voltage", - "name": "L1/Lamp" - }, - { - "entity": "sensor.living_tablelampsocket_voltage", - "name": "L2/Lamp" - }, - { - "type": "divider" - }, - { - "entity": "sensor.hall_camera_voltage", - "name": "L1/Camera" - }, - { - "entity": "sensor.hall_infra_voltage", - "name": "L1/Infra" - }, - { - "type": "divider" - }, - { - "entity": "sensor.kitchen_oven_voltage", - "name": "L2/Kitchen/Oven" - }, - { - "entity": "sensor.kitchen_wash_voltage", - "name": "L2/Kitchen/Washers" - }, - { - "entity": "sensor.kitchen_teatable_voltage", - "name": "L2/Kitchen/Tea" - }, - { - "entity": "sensor.office_table_voltage", - "name": "L2/Office/Table" - }, - { - "entity": "sensor.office_shelftop_voltage", - "name": "L2/Office/Top" - }, - { - "entity": "sensor.office_shelfbottom_voltage", - "name": "L2/Office/Bottom" - }, - { - "entity": "sensor.office_smartpi_energy_voltage", - "name": "L2/Office/SmartPI" - }, - { - "type": "divider" - }, - { - "entity": "sensor.bedroom_aircon_voltage", - "name": "L1/AirCon" - }, - { - "entity": "sensor.office_aircon_voltage", - "name": "L2/AirCon" - } - ], - "title": "Voltages" - }, - { - "type": "history-graph", - "hours_to_show": 24, - "title": "L1 vs L2 (24h)", - "entities": [ - { - "entity": "sensor.bedroom_tablelamp_voltage", - "name": "L1/Lamp" - }, - { - "entity": "sensor.living_tablelampsocket_voltage", - "name": "L2/Lamp" - } - ] - }, - { - "type": "history-graph", - "hours_to_show": 24, - "title": "L1 (24h)", - "entities": [ - { - "entity": "sensor.bedroom_tablelamp_voltage", - "name": "L1/Lamp" - }, - { - "entity": "sensor.hall_camera_voltage", - "name": "L1/Camera" - }, - { - "entity": "sensor.hall_infra_voltage", - "name": "L1/Infra" - } - ] - }, - { - "type": "history-graph", - "hours_to_show": 24, - "title": "L2 (24h)", - "entities": [ - { - "entity": "sensor.living_tablelampsocket_voltage", - "name": "L2/Lamp" - }, - { - "entity": "sensor.kitchen_oven_voltage", - "name": "L2/Kitchen/Oven" - }, - { - "entity": "sensor.kitchen_wash_voltage", - "name": "L2/Kitchen/Washers" - }, - { - "entity": "sensor.kitchen_teatable_voltage", - "name": "L2/Kitchen/Tea" - }, - { - "entity": "sensor.office_table_voltage", - "name": "L2/Office/Table" - }, - { - "entity": "sensor.office_shelftop_voltage", - "name": "L2/Office/Top" - }, - { - "entity": "sensor.office_shelfbottom_voltage", - "name": "L2/Office/Bottom" - } - ] - }, - { - "type": "history-graph", - "hours_to_show": 24, - "title": "Strange (24h)", - "entities": [ - { - "entity": "sensor.office_smartpi_energy_voltage", - "name": "L2/Office/SmartPI" - } - ] - } - ] - }, - { - "type": "vertical-stack", - "cards": [ - { - "type": "entities", - "entities": [ - { - "entity": "switch.hall_lights_left", - "name": "Hall Light" - }, - { - "entity": "switch.entrance_lights_left", - "name": "Entrance Light" - }, - { - "entity": "switch.kitchen_lights_left", - "name": "Kitchen/Lustre" - }, - { - "entity": "switch.kitchen_lights_center", - "name": "Kitchen/LED" - }, - { - "type": "divider" - }, - { - "entity": "binary_sensor.hall_motions_occupancy", - "name": "Motions/Hall" - }, - { - "entity": "binary_sensor.kitchen_motions_occupancy", - "name": "Motions/Kitchen" - }, - { - "type": "divider" - }, - { - "entity": "sensor.hall_motions_illuminance_lux", - "name": "Lux/Hall" - }, - { - "entity": "sensor.kitchen_motions_illuminance_lux", - "name": "Lux/Kitchen" - } - ] - }, - { - "type": "entities", - "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" - } - ], - "title": "Illuminance" - }, - { - "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": 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)" - }, - { - "type": "history-graph", - "entities": [ - { - "entity": "switch.hall_lights_left", - "name": "Hall Light" - }, - { - "entity": "switch.entrance_lights_left", - "name": "Entrance Light" - }, - { - "entity": "switch.kitchen_lights_left", - "name": "Kitchen/Lustre" - }, - { - "entity": "switch.kitchen_lights_center", - "name": "Kitchen/LED" - }, - { - "entity": "switch.living_lights_left", - "name": "Living/Lustre1" - }, - { - "entity": "switch.living_lights_center", - "name": "Living/Lustre2" - }, - { - "entity": "switch.living_lights_right", - "name": "Living/Office" - }, - { - "entity": "switch.bathroom_lights_left", - "name": "Bedroom/Lustre1" - }, - { - "entity": "switch.bedroom_lights_center", - "name": "Bedroom/Lustre1" - }, - { - "entity": "switch.bathroom_lights_left", - "name": "Bathroom/Light" - }, - { - "entity": "switch.entrance_lights_left", - "name": "Toilet/Light" - }, - { - "entity": "binary_sensor.hall_motions_occupancy", - "name": "Motions" - }, - { - "entity": "sensor.hall_motions_illuminance_lux", - "name": "Lux" - } - ], - "hours_to_show": 1, - "title": "Hall Illuminance (1h)" - }, - { - "type": "history-graph", - "entities": [ - { - "entity": "switch.kitchen_lights_left", - "name": "Lustre" - }, - { - "entity": "switch.kitchen_lights_center", - "name": "LED" - }, - { - "entity": "switch.hall_lights_left", - "name": "Hall Light" - }, - { - "entity": "switch.entrance_lights_left", - "name": "Entrance Light" - }, - { - "entity": "binary_sensor.kitchen_motions_occupancy", - "name": "Motions" - }, - { - "entity": "sensor.kitchen_motions_illuminance_lux", - "name": "Lux" - } - ], - "hours_to_show": 1, - "title": "Kitchen Illuminance (1h)" - } - ] - }, - { - "type": "conditional", - "conditions": [ - { - "entity": "binary_sensor.kitchen_motions_illuminance_lux", - "state": "3333" - } - ], - "card": { - "type": "vertical-stack", - "cards": [ - { - "type": "history-graph", - "entities": [ - { - "entity": "switch.living_lights_left", - "name": "Lustre 1" - }, - { - "entity": "switch.living_lights_center", - "name": "Lustre 2" - }, - { - "entity": "switch.living_lights_right", - "name": "Smart Bulb" - }, - { - "entity": "switch.living_tablelamp", - "name": "DeskLamp" - }, - { - "entity": "binary_sensor.living_motions_occupancy", - "name": "Room Motions" - }, - { - "entity": "sensor.living_motions_illuminance_lux", - "name": "Room Lux" - }, - { - "entity": "binary_sensor.office_motions_occupancy", - "name": "Office Motions" - }, - { - "entity": "sensor.office_motions_illuminance_lux", - "name": "Office Lux" - } - ], - "hours_to_show": 1, - "title": "Living Illuminance (1h)" - }, - { - "type": "history-graph", - "entities": [ - { - "entity": "switch.bedroom_lights_left", - "name": "Lustre 1" - }, - { - "entity": "switch.bedroom_lights_center", - "name": "Lustre 2" - }, - { - "entity": "switch.bedroom_lights_right", - "name": "Smart Bulb" - }, - { - "entity": "switch.bedroom_tablelamp", - "name": "DeskLamp" - }, - { - "entity": "binary_sensor.bedroom_bedsidelamp", - "name": "BedLamp" - }, - { - "entity": "binary_sensor.bedroom_motions_occupancy", - "name": "Motions" - }, - { - "entity": "sensor.bedroom_motions_illuminance_lux", - "name": "Lux" - } - ], - "hours_to_show": 1, - "title": "Bedroom Illuminance (1h)" - }, - { - "type": "history-graph", - "entities": [ - { - "entity": "switch.bedroom_lights_left", - "name": "Lustre 1" - }, - { - "entity": "switch.bedroom_lights_center", - "name": "Lustre 2" - }, - { - "entity": "switch.bedroom_lights_right", - "name": "Smart Bulb" - }, - { - "entity": "switch.bedroom_tablelamp", - "name": "DeskLamp" - }, - { - "entity": "binary_sensor.bedroom_bedsidelamp", - "name": "BedLamp" - }, - { - "entity": "binary_sensor.bedroom_motions_occupancy", - "name": "Motions" - }, - { - "entity": "sensor.bedroom_motions_illuminance_lux", - "name": "Lux" - } - ], - "hours_to_show": 12, - "title": "Bedroom Illuminance (12h)" - } - ] - } - } - ] + "type": "entities", + "entities": [ + { + "entity": "group.master_phones", + "name": "Phones" + }, + { + "entity": "group.master_laptops", + "name": "Laptops" + }, + { + "entity": "sensor.192_168_50_1_devices_connected", + "name": "Asgard clients" + }, + { + "type": "divider" + }, + { + "entity": "device_tracker.legion8", + "name": "Legion8/Asgard" + }, + { + "entity": "device_tracker.lm_g810", + "name": "Legion8/Hass" + }, + { + "entity": "device_tracker.nyx", + "name": "Nyx/Asgard" + } + ] + }, + { + "type": "history-graph", + "entities": [ + { + "entity": "group.master_phones", + "name": "Phones" + }, + { + "entity": "group.master_laptops", + "name": "Laptops" + }, + { + "entity": "device_tracker.legion8", + "name": "Legion8/Asgard" + }, + { + "entity": "device_tracker.lm_g810", + "name": "Legion8/Hass" + }, + { + "entity": "device_tracker.nyx", + "name": "Nyx/Asgard" + }, + { + "entity": "sensor.192_168_50_1_devices_connected", + "name": "Asgard clients" + } + ], + "hours_to_show": 12 + }, + { + "type": "history-graph", + "entities": [ + { + "entity": "binary_sensor.entrance_door_contact", + "name": "Contact" + }, + { + "entity": "binary_sensor.hall_motions_occupancy", + "name": "Motions" + }, + { + "entity": "binary_sensor.entrance_vibrations_vibration", + "name": "Vibration" + }, + { + "entity": "sensor.entrance_vibrations_strength", + "name": "Strength" + } + ], + "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" + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "entities", + "entities": [ + { + "entity": "input_boolean.occupancy_toilet", + "name": "Toilet" + }, + { + "entity": "input_boolean.occupancy_bathroom", + "name": "Bathroom" + } + ], + "title": "Occupancy" + }, + { + "type": "entities", + "entities": [ + { + "entity": "binary_sensor.hall_motions_occupancy", + "name": "Hall" + }, + { + "type": "divider" + }, + { + "entity": "binary_sensor.kitchen_motions_occupancy", + "name": "Kitchen" + }, + { + "entity": "binary_sensor.kitchen_presence_presence", + "name": "Presence" + }, + { + "type": "divider" + }, + { + "entity": "binary_sensor.bathroom_motions2_occupancy", + "name": "Bathroom" + }, + { + "entity": "binary_sensor.bathroom_motions_occupancy", + "name": "Door" + }, + { + "type": "divider" + }, + { + "entity": "binary_sensor.toilet_motions_occupancy", + "name": "Toilet" + }, + { + "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.bedroom_presence_presence", + "name": "Presence" + }, + { + "entity": "binary_sensor.guestroom_motions_occupancy", + "name": "Guestroom" + } + ] + }, + { + "type": "history-graph", + "entities": [ + { + "entity": "binary_sensor.hall_motions_occupancy", + "name": "Hall" + }, + { + "entity": "binary_sensor.kitchen_motions_occupancy", + "name": "Kitchen" + }, + { + "entity": "binary_sensor.kitchen_presence_presence", + "name": "Presence" + }, + { + "entity": "binary_sensor.bathroom_motions2_occupancy", + "name": "Bathroom" + }, + { + "entity": "binary_sensor.bathroom_motions_occupancy", + "name": "Door" + }, + { + "entity": "binary_sensor.toilet_motions_occupancy", + "name": "Toilet" + }, + { + "entity": "binary_sensor.toilet_door_contact", + "name": "Door" + }, + { + "entity": "binary_sensor.presence_presence", + "name": "Living" + }, + { + "entity": "binary_sensor.bedroom_motions_occupancy", + "name": "Bedroom" + }, + { + "entity": "binary_sensor.bedroom_presence_presence", + "name": "Presence" + }, + { + "entity": "binary_sensor.guestroom_motions_occupancy", + "name": "Guestroom" + } + ], + "hours_to_show": 1, + "title": "Motion Sensors (1h)" + }, + { + "type": "history-graph", + "entities": [ + { + "entity": "binary_sensor.hall_motions_occupancy", + "name": "Hall" + }, + { + "entity": "binary_sensor.kitchen_motions_occupancy", + "name": "Kitchen" + }, + { + "entity": "binary_sensor.kitchen_presence_presence", + "name": "Presence" + }, + { + "entity": "binary_sensor.bathroom_motions2_occupancy", + "name": "Bathroom" + }, + { + "entity": "binary_sensor.bathroom_motions_occupancy", + "name": "Door" + }, + { + "entity": "binary_sensor.toilet_motions_occupancy", + "name": "Toilet" + }, + { + "entity": "binary_sensor.toilet_door_contact", + "name": "Door" + }, + { + "entity": "binary_sensor.presence_presence", + "name": "Living" + }, + { + "entity": "binary_sensor.bedroom_motions_occupancy", + "name": "Bedroom" + }, + { + "entity": "binary_sensor.bedroom_presence_presence", + "name": "Presence" + }, + { + "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": "Living" + }, + { + "entity": "sensor.presence_target_distance", + "name": "Living" + }, + { + "entity": "binary_sensor.bedroom_presence_presence", + "name": "Bedroom" + }, + { + "entity": "sensor.bedroom_presence_target_distance", + "name": "Bedroom" + }, + { + "entity": "binary_sensor.kitchen_presence_presence", + "name": "Kitchen" + }, + { + "entity": "sensor.kitchen_presence_target_distance", + "name": "Kitchen" + } + ], + "hours_to_show": 1, + "title": "Presence (1h)" + }, + { + "type": "history-graph", + "entities": [ + { + "entity": "binary_sensor.presence_presence", + "name": "Living" + }, + { + "entity": "sensor.presence_target_distance", + "name": "Living" + }, + { + "entity": "binary_sensor.bedroom_presence_presence", + "name": "Bedroom" + }, + { + "entity": "sensor.bedroom_presence_target_distance", + "name": "Bedroom" + }, + { + "entity": "binary_sensor.kitchen_presence_presence", + "name": "Kitchen" + }, + { + "entity": "sensor.kitchen_presence_target_distance", + "name": "Kitchen" + } + ], + "hours_to_show": 12, + "title": "Presence (12h)" + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "entities", + "entities": [ + { + "entity": "sensor.bedroom_tablelamp_voltage", + "name": "L1/Lamp" + }, + { + "entity": "sensor.living_tablelampsocket_voltage", + "name": "L2/Lamp" + }, + { + "type": "divider" + }, + { + "entity": "sensor.hall_camera_voltage", + "name": "L1/Camera" + }, + { + "entity": "sensor.hall_infra_voltage", + "name": "L1/Infra" + }, + { + "type": "divider" + }, + { + "entity": "sensor.kitchen_oven_voltage", + "name": "L2/Kitchen/Oven" + }, + { + "entity": "sensor.kitchen_wash_voltage", + "name": "L2/Kitchen/Washers" + }, + { + "entity": "sensor.kitchen_teatable_voltage", + "name": "L2/Kitchen/Tea" + }, + { + "entity": "sensor.office_table_voltage", + "name": "L2/Office/Table" + }, + { + "entity": "sensor.office_shelftop_voltage", + "name": "L2/Office/Top" + }, + { + "entity": "sensor.office_shelfbottom_voltage", + "name": "L2/Office/Bottom" + }, + { + "entity": "sensor.office_smartpi_energy_voltage", + "name": "L2/Office/SmartPI" + }, + { + "type": "divider" + }, + { + "entity": "sensor.bedroom_aircon_voltage", + "name": "L1/AirCon" + }, + { + "entity": "sensor.office_aircon_voltage", + "name": "L2/AirCon" + } + ], + "title": "Voltages" + }, + { + "title": "Max Voltage (3m)", + "type": "statistics-graph", + "chart_type": "line", + "period": "day", + "days_to_show": 90, + "hide_legend": false, + "logarithmic_scale": false, + "stat_types": [ + "max" + ], + "entities": [ + { + "entity": "sensor.bedroom_tablelamp_voltage", + "name": "L1/Lamp" + }, + { + "entity": "sensor.living_tablelampsocket_voltage", + "name": "L2/Lamp" + } + ] + }, + { + "title": "Min Voltage (3m)", + "type": "statistics-graph", + "chart_type": "line", + "period": "day", + "days_to_show": 90, + "hide_legend": false, + "logarithmic_scale": false, + "stat_types": [ + "min" + ], + "entities": [ + { + "entity": "sensor.bedroom_tablelamp_voltage", + "name": "L1/Lamp" + }, + { + "entity": "sensor.living_tablelampsocket_voltage", + "name": "L2/Lamp" + } + ] + }, + { + "type": "history-graph", + "hours_to_show": 24, + "title": "L1 vs L2 (24h)", + "entities": [ + { + "entity": "sensor.bedroom_tablelamp_voltage", + "name": "L1/Lamp" + }, + { + "entity": "sensor.living_tablelampsocket_voltage", + "name": "L2/Lamp" + } + ] + }, + { + "type": "history-graph", + "hours_to_show": 24, + "title": "L1 (24h)", + "entities": [ + { + "entity": "sensor.bedroom_tablelamp_voltage", + "name": "L1/Lamp" + }, + { + "entity": "sensor.hall_camera_voltage", + "name": "L1/Camera" + }, + { + "entity": "sensor.hall_infra_voltage", + "name": "L1/Infra" + } + ] + }, + { + "type": "history-graph", + "hours_to_show": 24, + "title": "L2 (24h)", + "entities": [ + { + "entity": "sensor.living_tablelampsocket_voltage", + "name": "L2/Lamp" + }, + { + "entity": "sensor.kitchen_oven_voltage", + "name": "L2/Kitchen/Oven" + }, + { + "entity": "sensor.kitchen_wash_voltage", + "name": "L2/Kitchen/Washers" + }, + { + "entity": "sensor.kitchen_teatable_voltage", + "name": "L2/Kitchen/Tea" + }, + { + "entity": "sensor.office_table_voltage", + "name": "L2/Office/Table" + }, + { + "entity": "sensor.office_shelftop_voltage", + "name": "L2/Office/Top" + }, + { + "entity": "sensor.office_shelfbottom_voltage", + "name": "L2/Office/Bottom" + } + ] + }, + { + "type": "history-graph", + "hours_to_show": 24, + "title": "Strange (24h)", + "entities": [ + { + "entity": "sensor.office_smartpi_energy_voltage", + "name": "L2/Office/SmartPI" + } + ] + } + ] + }, + { + "type": "vertical-stack", + "cards": [ + { + "type": "entities", + "entities": [ + { + "entity": "switch.hall_lights_left", + "name": "Hall Light" + }, + { + "entity": "switch.entrance_lights_left", + "name": "Entrance Light" + }, + { + "entity": "switch.kitchen_lights_left", + "name": "Kitchen/Lustre" + }, + { + "entity": "switch.kitchen_lights_center", + "name": "Kitchen/LED" + }, + { + "type": "divider" + }, + { + "entity": "binary_sensor.hall_motions_occupancy", + "name": "Motions/Hall" + }, + { + "entity": "binary_sensor.kitchen_motions_occupancy", + "name": "Motions/Kitchen" + }, + { + "type": "divider" + }, + { + "entity": "sensor.hall_motions_illuminance_lux", + "name": "Lux/Hall" + }, + { + "entity": "sensor.kitchen_motions_illuminance_lux", + "name": "Lux/Kitchen" + } + ] + }, + { + "type": "entities", + "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" + } + ], + "title": "Illuminance" + }, + { + "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": 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)" + }, + { + "type": "history-graph", + "entities": [ + { + "entity": "switch.hall_lights_left", + "name": "Hall Light" + }, + { + "entity": "switch.entrance_lights_left", + "name": "Entrance Light" + }, + { + "entity": "switch.kitchen_lights_left", + "name": "Kitchen/Lustre" + }, + { + "entity": "switch.kitchen_lights_center", + "name": "Kitchen/LED" + }, + { + "entity": "switch.living_lights_left", + "name": "Living/Lustre1" + }, + { + "entity": "switch.living_lights_center", + "name": "Living/Lustre2" + }, + { + "entity": "switch.living_lights_right", + "name": "Living/Office" + }, + { + "entity": "switch.bathroom_lights_left", + "name": "Bedroom/Lustre1" + }, + { + "entity": "switch.bedroom_lights_center", + "name": "Bedroom/Lustre1" + }, + { + "entity": "switch.bathroom_lights_left", + "name": "Bathroom/Light" + }, + { + "entity": "switch.entrance_lights_left", + "name": "Toilet/Light" + }, + { + "entity": "binary_sensor.hall_motions_occupancy", + "name": "Motions" + }, + { + "entity": "sensor.hall_motions_illuminance_lux", + "name": "Lux" + } + ], + "hours_to_show": 1, + "title": "Hall Illuminance (1h)" + }, + { + "type": "history-graph", + "entities": [ + { + "entity": "switch.kitchen_lights_left", + "name": "Lustre" + }, + { + "entity": "switch.kitchen_lights_center", + "name": "LED" + }, + { + "entity": "switch.hall_lights_left", + "name": "Hall Light" + }, + { + "entity": "switch.entrance_lights_left", + "name": "Entrance Light" + }, + { + "entity": "binary_sensor.kitchen_motions_occupancy", + "name": "Motions" + }, + { + "entity": "sensor.kitchen_motions_illuminance_lux", + "name": "Lux" + } + ], + "hours_to_show": 1, + "title": "Kitchen Illuminance (1h)" + } + ] + }, + { + "type": "conditional", + "conditions": [ + { + "entity": "binary_sensor.kitchen_motions_illuminance_lux", + "state": "3333" } - ] + ], + "card": { + "type": "vertical-stack", + "cards": [ + { + "type": "history-graph", + "entities": [ + { + "entity": "switch.living_lights_left", + "name": "Lustre 1" + }, + { + "entity": "switch.living_lights_center", + "name": "Lustre 2" + }, + { + "entity": "switch.living_lights_right", + "name": "Smart Bulb" + }, + { + "entity": "switch.living_tablelamp", + "name": "DeskLamp" + }, + { + "entity": "binary_sensor.living_motions_occupancy", + "name": "Room Motions" + }, + { + "entity": "sensor.living_motions_illuminance_lux", + "name": "Room Lux" + }, + { + "entity": "binary_sensor.office_motions_occupancy", + "name": "Office Motions" + }, + { + "entity": "sensor.office_motions_illuminance_lux", + "name": "Office Lux" + } + ], + "hours_to_show": 1, + "title": "Living Illuminance (1h)" + }, + { + "type": "history-graph", + "entities": [ + { + "entity": "switch.bedroom_lights_left", + "name": "Lustre 1" + }, + { + "entity": "switch.bedroom_lights_center", + "name": "Lustre 2" + }, + { + "entity": "switch.bedroom_lights_right", + "name": "Smart Bulb" + }, + { + "entity": "switch.bedroom_tablelamp", + "name": "DeskLamp" + }, + { + "entity": "binary_sensor.bedroom_bedsidelamp", + "name": "BedLamp" + }, + { + "entity": "binary_sensor.bedroom_motions_occupancy", + "name": "Motions" + }, + { + "entity": "sensor.bedroom_motions_illuminance_lux", + "name": "Lux" + } + ], + "hours_to_show": 1, + "title": "Bedroom Illuminance (1h)" + }, + { + "type": "history-graph", + "entities": [ + { + "entity": "switch.bedroom_lights_left", + "name": "Lustre 1" + }, + { + "entity": "switch.bedroom_lights_center", + "name": "Lustre 2" + }, + { + "entity": "switch.bedroom_lights_right", + "name": "Smart Bulb" + }, + { + "entity": "switch.bedroom_tablelamp", + "name": "DeskLamp" + }, + { + "entity": "binary_sensor.bedroom_bedsidelamp", + "name": "BedLamp" + }, + { + "entity": "binary_sensor.bedroom_motions_occupancy", + "name": "Motions" + }, + { + "entity": "sensor.bedroom_motions_illuminance_lux", + "name": "Lux" + } + ], + "hours_to_show": 12, + "title": "Bedroom Illuminance (12h)" + } + ] + } + } + ] } + ] } + } } \ No newline at end of file diff --git a/.storage/lovelace.map b/.storage/lovelace.map new file mode 100644 index 0000000..693208b --- /dev/null +++ b/.storage/lovelace.map @@ -0,0 +1,12 @@ +{ + "version": 1, + "minor_version": 1, + "key": "lovelace.map", + "data": { + "config": { + "strategy": { + "type": "map" + } + } + } +} \ No newline at end of file diff --git a/.storage/lovelace_dashboards b/.storage/lovelace_dashboards index 1e3e35f..7dba7f8 100644 --- a/.storage/lovelace_dashboards +++ b/.storage/lovelace_dashboards @@ -1,71 +1,97 @@ { - "version": 1, - "minor_version": 1, - "key": "lovelace_dashboards", - "data": { - "items": [ - { - "show_in_sidebar": true, - "title": "Security", - "require_admin": false, - "mode": "storage", - "url_path": "lovelace-research", - "id": "lovelace_research", - "icon": "mdi:security" - }, - { - "show_in_sidebar": true, - "icon": "mdi:lamps", - "title": "Status", - "require_admin": false, - "mode": "storage", - "url_path": "lovelace-status", - "id": "lovelace_status" - }, - { - "show_in_sidebar": true, - "icon": "mdi:air-conditioner", - "title": "Climate", - "require_admin": false, - "mode": "storage", - "url_path": "lovelace-climate", - "id": "lovelace_climate" - }, - { - "show_in_sidebar": true, - "icon": "mdi:gesture-tap", - "title": "Control", - "require_admin": false, - "mode": "storage", - "url_path": "lovelace-control", - "id": "lovelace_control" - }, - { - "show_in_sidebar": true, - "icon": "mdi:sine-wave", - "title": "Power", - "require_admin": false, - "mode": "storage", - "url_path": "lovelace-power", - "id": "lovelace_power" - }, - { - "show_in_sidebar": true, - "icon": "mdi:flask-outline", - "title": "Research", - "require_admin": false, - "mode": "storage", - "url_path": "lovelace-test", - "id": "lovelace_test" - }, - { - "show_in_sidebar": true, - "title": "KIT", - "require_admin": false, - "mode": "storage", - "url_path": "lovelace-kit", - "id": "lovelace_kit" - } - ] - } + "version": 1, + "minor_version": 1, + "key": "lovelace_dashboards", + "data": { + "items": [ + { + "show_in_sidebar": true, + "title": "Security", + "require_admin": false, + "mode": "storage", + "url_path": "lovelace-research", + "id": "lovelace_research", + "icon": "mdi:security" + }, + { + "show_in_sidebar": true, + "icon": "mdi:lamps", + "title": "Status", + "require_admin": false, + "mode": "storage", + "url_path": "lovelace-status", + "id": "lovelace_status" + }, + { + "show_in_sidebar": true, + "icon": "mdi:air-conditioner", + "title": "Climate", + "require_admin": false, + "mode": "storage", + "url_path": "lovelace-climate", + "id": "lovelace_climate" + }, + { + "show_in_sidebar": true, + "icon": "mdi:gesture-tap", + "title": "Control", + "require_admin": false, + "mode": "storage", + "url_path": "lovelace-control", + "id": "lovelace_control" + }, + { + "show_in_sidebar": true, + "icon": "mdi:sine-wave", + "title": "Power", + "require_admin": false, + "mode": "storage", + "url_path": "lovelace-power", + "id": "lovelace_power" + }, + { + "show_in_sidebar": true, + "icon": "mdi:flask-outline", + "title": "Research", + "require_admin": false, + "mode": "storage", + "url_path": "lovelace-test", + "id": "lovelace_test" + }, + { + "show_in_sidebar": true, + "title": "KIT", + "require_admin": false, + "mode": "storage", + "url_path": "lovelace-kit", + "id": "lovelace_kit" + }, + { + "id": "map", + "icon": "mdi:map", + "title": "Map", + "url_path": "map", + "show_in_sidebar": true, + "require_admin": false, + "mode": "storage" + }, + { + "id": "dashboard_test", + "show_in_sidebar": false, + "title": "test", + "require_admin": false, + "mode": "storage", + "url_path": "dashboard-test" + }, + { + "id": "air_quality", + "show_in_sidebar": true, + "title": "Air Quality", + "require_admin": false, + "mode": "storage", + "url_path": "air-quality", + "icon": "mdi:air-filter" + } + ] + } } \ No newline at end of file diff --git a/.storage/map b/.storage/map new file mode 100644 index 0000000..cccd9fe --- /dev/null +++ b/.storage/map @@ -0,0 +1,8 @@ +{ + "version": 1, + "minor_version": 1, + "key": "map", + "data": { + "migrated": true + } +} \ No newline at end of file diff --git a/.storage/person b/.storage/person index 4ed5236..4913fd8 100644 --- a/.storage/person +++ b/.storage/person @@ -1,17 +1,18 @@ { - "version": 2, - "minor_version": 1, - "key": "person", - "data": { - "items": [ - { - "name": "Suren A. Chilingaryan", - "user_id": "31a296cc30a243089f121cef93b46cc0", - "device_trackers": [ - "device_tracker.lm_g810" - ], - "id": "suren_a_chilingaryan" - } - ] - } + "version": 2, + "minor_version": 1, + "key": "person", + "data": { + "items": [ + { + "name": "Suren A. Chilingaryan", + "user_id": "31a296cc30a243089f121cef93b46cc0", + "device_trackers": [ + "device_tracker.lm_g810", + "device_tracker.control" + ], + "id": "suren_a_chilingaryan" + } + ] + } } \ No newline at end of file diff --git a/certs/ca.crt b/certs/ca.crt new file mode 100644 index 0000000..6f447ad --- /dev/null +++ b/certs/ca.crt @@ -0,0 +1,19 @@ +-----BEGIN CERTIFICATE----- +MIIDKzCCAhOgAwIBAgIJAIkqtj+jOu7bMA0GCSqGSIb3DQEBCwUAMBMxETAPBgNV +BAMMCERhcmtTb2Z0MB4XDTE1MDUyNzE2MDgwN1oXDTQ3MDUxOTE2MDgwN1owEzER +MA8GA1UEAwwIRGFya1NvZnQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB +AQDYnpxWj0Esyd0XF1g1SvrwCicrMpYT0wlg512ZfP5Z9W2myjpiAu34tHqGHs7z +o/Mk0/lpPjZOZN8lDOW1TzLYww6Oqov098r4jc+Bjqb+jqw+XHneM1hvyor1+76G +FbsJRR5dT8Ar4pR8cHC9JE6xNPG8ktfb3jqIFks/jBuoGb/E2Mb0XXBFsdVeNxYP +ypeAmdN1jhazLjWPg2jFWSGCRZL8ZOcnVcwweFQRff9nM6bvWYJXh3gsHKoujhmD +JEyLWMNM+90Q2XVWotDUMxIJ/VUTLRD5iDmmdjHkW0MghsSjIHAHnsu08gTXq4ZT +O8oZJNBU89lBTQKsUDfBlaWJAgMBAAGjgYEwfzAdBgNVHQ4EFgQUeyc5im6Tqmrm +zYhDPYkCkpGNZtgwQwYDVR0jBDwwOoAUeyc5im6TqmrmzYhDPYkCkpGNZtihF6QV +MBMxETAPBgNVBAMMCERhcmtTb2Z0ggkAiSq2P6M67tswDAYDVR0TBAUwAwEB/zAL +BgNVHQ8EBAMCAQYwDQYJKoZIhvcNAQELBQADggEBAC5wozbIl5Te3fH8iveEX/3M +OsCaIQd8qshAvu3D0QKkr9MPc+E8MuwqHF65wflEEbxO3w4orqi9PFgz21vti0YU +++ry0YoTTLVQHdFdQfotgV2S8DRzp7Umreo5nGXPeSYMTLnak6aSHgkL05aTR4Ia +Xg0phZ/k34OZwfDWx5mgxS9pX7QCooEoAVLP57CTBBkdSWC29khBk80uRuYBi83p +sBOMiFtyYBGE4TmG9Oq32+CxfFk0eGajAZ+VCZbXph45XX+WV7XXeoKWnKz/Crgr +42ovn3I9s6uPQoevEGZAvIu2dCuYfqsgPnds035GDpqJLzjOUU29YAOO5qQ/SU0= +-----END CERTIFICATE----- diff --git a/configuration.yaml b/configuration.yaml index 034b3f0..fb53037 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -5,6 +5,11 @@ default_config: #logger: # default: debug +logger: + default: warning + logs: + homeassistant.components.recorder: info + lovelace: mode: yaml resources: @@ -16,6 +21,49 @@ lovelace: frontend: themes: !include_dir_merge_named themes +recorder: + auto_purge: true + auto_repack: true + purge_keep_days: 20 + +influxdb: + api_version: 2 + host: suren.me + port: 8086 + ssl: true + verify_ssl: true + ssl_ca_cert: /config/certs/ca.crt + token: ldzUdZynt3sPfCC4YetZzD5Z9D3J-WlqKOYeTK9nooMf51ly5wbSzozhyYDII8ROhCLH-eeJuFlPWs83DS_xQg== + organization: SmartPI + bucket: smartpi + tags: + source: SmartPI + measurement_attr: "entity_id" + default_measurement: "state" + include: + domains: + - sensor + - binary_sensor + - switch + ignore_attributes: + - attribution + - device_class + - entity_id + - entity_prefix + - friendly_name + - host + - hostname + - icon + - max_msg_size + - port + - secure + - state_class + - unit_of_measurement + - uuid + - verify_ssl + - battery + + logbook: exclude: entities: @@ -63,6 +111,7 @@ telegram_bot: allowed_chat_ids: - -1001582338242 + notify: - platform: telegram name: SmartPI @@ -85,7 +134,6 @@ sensor: - 'date_time_iso' - 'time_date' - 'time_utc' - - 'beat' automation ui: !include automations.yaml diff --git a/custom/binary_sensor.yaml b/custom/binary_sensor.yaml index 08232b4..e6526e9 100644 --- a/custom/binary_sensor.yaml +++ b/custom/binary_sensor.yaml @@ -1,12 +1,12 @@ #binary_sensor: - - platform: ping - host: 192.168.0.1 - name: "network_route/crd" - count: 1 - scan_interval: 300 +# - platform: ping +# host: 192.168.0.1 +# name: "network_route/crd" +# count: 1 +# scan_interval: 300 - - platform: ping - host: 192.168.1.1 - name: "network_route/vivacell" - count: 1 - scan_interval: 300 +# - platform: ping +# host: 192.168.1.1 +# name: "network_route/vivacell" +# count: 1 +# scan_interval: 300 -- cgit v1.2.3