From 3d8850fefa8a6dd395aae9a83453593dc38d0751 Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 21 Dec 2024 20:29:32 -0600 Subject: [PATCH] Add weather forecast to ha config --- volumes/config/.storage/auth | 21 ++++++++++ volumes/config/.storage/core.area_registry | 23 +++++++++-- volumes/config/.storage/core.config | 5 ++- volumes/config/.storage/core.config_entries | 31 ++------------ volumes/config/.storage/core.device_registry | 12 ++++++ volumes/config/.storage/core.entity_registry | 41 +++++++------------ volumes/config/.storage/core.restore_state | 20 +-------- ...user_data_e85fc7b7b8924dc9b024ce90ad23799e | 2 + volumes/config/.storage/http | 13 ++++-- volumes/config/configuration.yaml | 1 + 10 files changed, 87 insertions(+), 82 deletions(-) create mode 100644 volumes/config/.storage/core.device_registry diff --git a/volumes/config/.storage/auth b/volumes/config/.storage/auth index 2233a3f..a095fe2 100644 --- a/volumes/config/.storage/auth +++ b/volumes/config/.storage/auth @@ -77,6 +77,7 @@ "jwt_key": "d8213eff81721687a0ea17e8d56e29f8c140015bd046c3924b2b2b4e2b8d77c095e80de14610e955d52650f503a5ec701f46626700496d2021b653f42dff8982", "last_used_at": "2023-03-11T22:29:03.495460+00:00", "last_used_ip": "127.0.0.1", + "expire_at": null, "credential_id": "711894da0c83415095b3a6314ff20d86", "version": "2023.3.3" }, @@ -93,6 +94,7 @@ "jwt_key": "66b526e5aea268d6751e986e2d486c62ef0274113c1f660d6716b33c347db39591f11ce6be6f3af63d2afa4febc5f2322fac581f05c2e4b6d24060c79631be65", "last_used_at": "2023-03-11T22:35:32.104562+00:00", "last_used_ip": "127.0.0.1", + "expire_at": null, "credential_id": "711894da0c83415095b3a6314ff20d86", "version": "2023.3.3" }, @@ -109,9 +111,27 @@ "jwt_key": "254697dbff6aafdda02191c86a90529745f774c0e122dd6bdbc22bf0790698f2bb7d4c956736aa8d7c804c8d92266c6b365cce3b191f8d6f10aa706ca3863aa7", "last_used_at": "2023-03-11T22:41:41.322766+00:00", "last_used_ip": null, + "expire_at": null, "credential_id": null, "version": "2023.3.3" }, + { + "id": "701b4cc2befd4b72ac99a06d7b38181e", + "user_id": "e85fc7b7b8924dc9b024ce90ad23799e", + "client_id": "http://localhost:8123/", + "client_name": null, + "client_icon": null, + "token_type": "normal", + "created_at": "2024-12-20T22:49:28.919077+00:00", + "access_token_expiration": 1800.0, + "token": "783a5dd38b8e987a6dc7263605d2ae9629487fff7a48884e4b83f39983064a49e89474b7ba0d47ec78b76af8c7ab0e5a0ecce3c0d6ec751af62355a8a3611b72", + "jwt_key": "dab8d894766cbdc856cc2475b7f3fd4cb7c1279fbb499a6c1709d5f4264d11842882a28cb3b67259cc983ff7b156781063835d81d76f0356ad0d477d1b09404d", + "last_used_at": "2024-12-20T22:49:28.919136+00:00", + "last_used_ip": "172.18.0.1", + "expire_at": 1742510968.919136, + "credential_id": "711894da0c83415095b3a6314ff20d86", + "version": "2024.12.3" + }, { "id": "cabbfc0d5e024c2f90b998ffdbea7e61", "user_id": "6ebcf011775a47c1bc279a1777a1e5a7", @@ -125,6 +145,7 @@ "jwt_key": "fdeaf63844d1b702572ce014db18ff05074e775f04460ea5674653cee999b7fc0733f9eb99c835b7d6e6317e84bf418c21fcf2ceb65060675782be333896e135", "last_used_at": null, "last_used_ip": null, + "expire_at": null, "credential_id": null, "version": "2022.12.9" } diff --git a/volumes/config/.storage/core.area_registry b/volumes/config/.storage/core.area_registry index 660ab76..2e08d5c 100644 --- a/volumes/config/.storage/core.area_registry +++ b/volumes/config/.storage/core.area_registry @@ -1,6 +1,6 @@ { "version": 1, - "minor_version": 1, + "minor_version": 7, "key": "core.area_registry", "data": { "areas": [ @@ -8,19 +8,34 @@ "name": "Living Room", "id": "living_room", "picture": null, - "aliases": [] + "aliases": [], + "icon": null, + "floor_id": null, + "labels": [], + "created_at": "1970-01-01T00:00:00+00:00", + "modified_at": "1970-01-01T00:00:00+00:00" }, { "name": "Kitchen", "id": "kitchen", "picture": null, - "aliases": [] + "aliases": [], + "icon": null, + "floor_id": null, + "labels": [], + "created_at": "1970-01-01T00:00:00+00:00", + "modified_at": "1970-01-01T00:00:00+00:00" }, { "name": "Bedroom", "id": "bedroom", "picture": null, - "aliases": [] + "aliases": [], + "icon": null, + "floor_id": null, + "labels": [], + "created_at": "1970-01-01T00:00:00+00:00", + "modified_at": "1970-01-01T00:00:00+00:00" } ] } diff --git a/volumes/config/.storage/core.config b/volumes/config/.storage/core.config index e02abd3..a17e6aa 100644 --- a/volumes/config/.storage/core.config +++ b/volumes/config/.storage/core.config @@ -1,6 +1,6 @@ { "version": 1, - "minor_version": 3, + "minor_version": 4, "key": "core.config", "data": { "latitude": 52.3731339, @@ -13,6 +13,7 @@ "internal_url": null, "currency": "USD", "country": "US", - "language": "en" + "language": "en", + "radius": 100 } } \ No newline at end of file diff --git a/volumes/config/.storage/core.config_entries b/volumes/config/.storage/core.config_entries index 3486ee3..22d6390 100644 --- a/volumes/config/.storage/core.config_entries +++ b/volumes/config/.storage/core.config_entries @@ -1,35 +1,12 @@ { "version": 1, - "minor_version": 1, + "minor_version": 4, "key": "core.config_entries", "data": { "entries": [ - { - "entry_id": "5f8426fa502435857743f302651753c9", - "version": 1, - "domain": "sun", - "title": "Sun", - "data": {}, - "options": {}, - "pref_disable_new_entities": false, - "pref_disable_polling": false, - "source": "import", - "unique_id": null, - "disabled_by": null - }, - { - "entry_id": "bb18b688994e8cfa5e4e880452735628", - "version": 1, - "domain": "radio_browser", - "title": "Radio Browser", - "data": {}, - "options": {}, - "pref_disable_new_entities": false, - "pref_disable_polling": false, - "source": "onboarding", - "unique_id": null, - "disabled_by": null - } + {"created_at":"1970-01-01T00:00:00+00:00","data":{},"disabled_by":null,"discovery_keys":{},"domain":"sun","entry_id":"5f8426fa502435857743f302651753c9","minor_version":1,"modified_at":"1970-01-01T00:00:00+00:00","options":{},"pref_disable_new_entities":false,"pref_disable_polling":false,"source":"import","title":"Sun","unique_id":null,"version":1}, + {"created_at":"1970-01-01T00:00:00+00:00","data":{},"disabled_by":null,"discovery_keys":{},"domain":"radio_browser","entry_id":"bb18b688994e8cfa5e4e880452735628","minor_version":1,"modified_at":"1970-01-01T00:00:00+00:00","options":{},"pref_disable_new_entities":false,"pref_disable_polling":false,"source":"onboarding","title":"Radio Browser","unique_id":null,"version":1}, + {"created_at":"2024-12-20T17:06:07.193748+00:00","data":{"elevation":1000.0,"latitude":52.3731339,"longitude":4.8903147,"name":"Home"},"disabled_by":null,"discovery_keys":{},"domain":"met","entry_id":"01JFJGH76SD417XC4YJTG8QJWB","minor_version":1,"modified_at":"2024-12-20T17:06:07.193752+00:00","options":{},"pref_disable_new_entities":false,"pref_disable_polling":false,"source":"user","title":"Home","unique_id":null,"version":1} ] } } \ No newline at end of file diff --git a/volumes/config/.storage/core.device_registry b/volumes/config/.storage/core.device_registry new file mode 100644 index 0000000..192d9d5 --- /dev/null +++ b/volumes/config/.storage/core.device_registry @@ -0,0 +1,12 @@ +{ + "version": 1, + "minor_version": 8, + "key": "core.device_registry", + "data": { + "devices": [ + {"area_id":null,"config_entries":["5f8426fa502435857743f302651753c9"],"configuration_url":null,"connections":[],"created_at":"2024-12-17T01:58:48.779854+00:00","disabled_by":null,"entry_type":"service","hw_version":null,"id":"b3d3fadee11d077d99d948c173631abc","identifiers":[["sun","5f8426fa502435857743f302651753c9"]],"labels":[],"manufacturer":null,"model":null,"model_id":null,"modified_at":"2024-12-17T01:58:48.779886+00:00","name_by_user":null,"name":"Sun","primary_config_entry":"5f8426fa502435857743f302651753c9","serial_number":null,"sw_version":null,"via_device_id":null}, + {"area_id":null,"config_entries":["01JFJGH76SD417XC4YJTG8QJWB"],"configuration_url":"https://www.met.no/en","connections":[],"created_at":"2024-12-20T17:06:07.780759+00:00","disabled_by":null,"entry_type":"service","hw_version":null,"id":"6586dbdeb10a88ae4603b47e600c6124","identifiers":[["met","01JFJGH76SD417XC4YJTG8QJWB"]],"labels":[],"manufacturer":"Met.no","model":"Forecast","model_id":null,"modified_at":"2024-12-20T17:06:07.780798+00:00","name_by_user":null,"name":"Forecast","primary_config_entry":"01JFJGH76SD417XC4YJTG8QJWB","serial_number":null,"sw_version":null,"via_device_id":null} + ], + "deleted_devices": [] + } +} \ No newline at end of file diff --git a/volumes/config/.storage/core.entity_registry b/volumes/config/.storage/core.entity_registry index 3f870b6..2d82025 100644 --- a/volumes/config/.storage/core.entity_registry +++ b/volumes/config/.storage/core.entity_registry @@ -1,34 +1,21 @@ { "version": 1, - "minor_version": 8, + "minor_version": 15, "key": "core.entity_registry", "data": { "entities": [ - { - "area_id": null, - "capabilities": null, - "config_entry_id": null, - "device_class": null, - "device_id": null, - "disabled_by": null, - "entity_category": null, - "entity_id": "person.test_user", - "hidden_by": null, - "icon": null, - "id": "e6de57e591560fad68f1c3b52bf0b295", - "has_entity_name": false, - "name": null, - "options": {}, - "original_device_class": null, - "original_icon": null, - "original_name": "Test User", - "platform": "person", - "supported_features": 0, - "unique_id": "test_user", - "unit_of_measurement": null, - "translation_key": null, - "aliases": [] - } - ] + {"aliases":[],"area_id":null,"categories":{},"capabilities":null,"config_entry_id":null,"created_at":"1970-01-01T00:00:00+00:00","device_class":null,"device_id":null,"disabled_by":null,"entity_category":null,"entity_id":"person.test_user","hidden_by":null,"icon":null,"id":"e6de57e591560fad68f1c3b52bf0b295","has_entity_name":false,"labels":[],"modified_at":"1970-01-01T00:00:00+00:00","name":null,"options":{},"original_device_class":null,"original_icon":null,"original_name":"Test User","platform":"person","supported_features":0,"translation_key":null,"unique_id":"test_user","previous_unique_id":null,"unit_of_measurement":null}, + {"aliases":[],"area_id":null,"categories":{},"capabilities":null,"config_entry_id":"5f8426fa502435857743f302651753c9","created_at":"2024-12-17T01:58:48.780004+00:00","device_class":null,"device_id":"b3d3fadee11d077d99d948c173631abc","disabled_by":null,"entity_category":"diagnostic","entity_id":"sensor.sun_next_dawn","hidden_by":null,"icon":null,"id":"d7e14c775a20078d98703325848bd203","has_entity_name":true,"labels":[],"modified_at":"2024-12-17T01:58:48.780072+00:00","name":null,"options":{},"original_device_class":"timestamp","original_icon":null,"original_name":"Next dawn","platform":"sun","supported_features":0,"translation_key":"next_dawn","unique_id":"5f8426fa502435857743f302651753c9-next_dawn","previous_unique_id":null,"unit_of_measurement":null}, + {"aliases":[],"area_id":null,"categories":{},"capabilities":null,"config_entry_id":"5f8426fa502435857743f302651753c9","created_at":"2024-12-17T01:58:48.780360+00:00","device_class":null,"device_id":"b3d3fadee11d077d99d948c173631abc","disabled_by":null,"entity_category":"diagnostic","entity_id":"sensor.sun_next_dusk","hidden_by":null,"icon":null,"id":"e1a35874a09227109783c6d1301a10cf","has_entity_name":true,"labels":[],"modified_at":"2024-12-17T01:58:48.780404+00:00","name":null,"options":{},"original_device_class":"timestamp","original_icon":null,"original_name":"Next dusk","platform":"sun","supported_features":0,"translation_key":"next_dusk","unique_id":"5f8426fa502435857743f302651753c9-next_dusk","previous_unique_id":null,"unit_of_measurement":null}, + {"aliases":[],"area_id":null,"categories":{},"capabilities":null,"config_entry_id":"5f8426fa502435857743f302651753c9","created_at":"2024-12-17T01:58:48.780603+00:00","device_class":null,"device_id":"b3d3fadee11d077d99d948c173631abc","disabled_by":null,"entity_category":"diagnostic","entity_id":"sensor.sun_next_midnight","hidden_by":null,"icon":null,"id":"9ec059b13886380e2d5d4a9002e89879","has_entity_name":true,"labels":[],"modified_at":"2024-12-17T01:58:48.780633+00:00","name":null,"options":{},"original_device_class":"timestamp","original_icon":null,"original_name":"Next midnight","platform":"sun","supported_features":0,"translation_key":"next_midnight","unique_id":"5f8426fa502435857743f302651753c9-next_midnight","previous_unique_id":null,"unit_of_measurement":null}, + {"aliases":[],"area_id":null,"categories":{},"capabilities":null,"config_entry_id":"5f8426fa502435857743f302651753c9","created_at":"2024-12-17T01:58:48.780796+00:00","device_class":null,"device_id":"b3d3fadee11d077d99d948c173631abc","disabled_by":null,"entity_category":"diagnostic","entity_id":"sensor.sun_next_noon","hidden_by":null,"icon":null,"id":"04bc6ee0081da1191cb27e2ee5842148","has_entity_name":true,"labels":[],"modified_at":"2024-12-17T01:58:48.780832+00:00","name":null,"options":{},"original_device_class":"timestamp","original_icon":null,"original_name":"Next noon","platform":"sun","supported_features":0,"translation_key":"next_noon","unique_id":"5f8426fa502435857743f302651753c9-next_noon","previous_unique_id":null,"unit_of_measurement":null}, + {"aliases":[],"area_id":null,"categories":{},"capabilities":null,"config_entry_id":"5f8426fa502435857743f302651753c9","created_at":"2024-12-17T01:58:48.780976+00:00","device_class":null,"device_id":"b3d3fadee11d077d99d948c173631abc","disabled_by":null,"entity_category":"diagnostic","entity_id":"sensor.sun_next_rising","hidden_by":null,"icon":null,"id":"ec87eec8ebe365ec0cd1119962627570","has_entity_name":true,"labels":[],"modified_at":"2024-12-17T01:58:48.781008+00:00","name":null,"options":{},"original_device_class":"timestamp","original_icon":null,"original_name":"Next rising","platform":"sun","supported_features":0,"translation_key":"next_rising","unique_id":"5f8426fa502435857743f302651753c9-next_rising","previous_unique_id":null,"unit_of_measurement":null}, + {"aliases":[],"area_id":null,"categories":{},"capabilities":null,"config_entry_id":"5f8426fa502435857743f302651753c9","created_at":"2024-12-17T01:58:48.781147+00:00","device_class":null,"device_id":"b3d3fadee11d077d99d948c173631abc","disabled_by":null,"entity_category":"diagnostic","entity_id":"sensor.sun_next_setting","hidden_by":null,"icon":null,"id":"594acbedee290ea279f1d63cf6efbb3b","has_entity_name":true,"labels":[],"modified_at":"2024-12-17T01:58:48.781172+00:00","name":null,"options":{},"original_device_class":"timestamp","original_icon":null,"original_name":"Next setting","platform":"sun","supported_features":0,"translation_key":"next_setting","unique_id":"5f8426fa502435857743f302651753c9-next_setting","previous_unique_id":null,"unit_of_measurement":null}, + {"aliases":[],"area_id":null,"categories":{},"capabilities":{"state_class":"measurement"},"config_entry_id":"5f8426fa502435857743f302651753c9","created_at":"2024-12-17T01:58:48.781300+00:00","device_class":null,"device_id":"b3d3fadee11d077d99d948c173631abc","disabled_by":"integration","entity_category":"diagnostic","entity_id":"sensor.sun_solar_elevation","hidden_by":null,"icon":null,"id":"0df1d222a5fedd8d5e62a2ff2be79094","has_entity_name":true,"labels":[],"modified_at":"2024-12-17T01:58:48.781322+00:00","name":null,"options":{},"original_device_class":null,"original_icon":null,"original_name":"Solar elevation","platform":"sun","supported_features":0,"translation_key":"solar_elevation","unique_id":"5f8426fa502435857743f302651753c9-solar_elevation","previous_unique_id":null,"unit_of_measurement":"°"}, + {"aliases":[],"area_id":null,"categories":{},"capabilities":{"state_class":"measurement"},"config_entry_id":"5f8426fa502435857743f302651753c9","created_at":"2024-12-17T01:58:48.781397+00:00","device_class":null,"device_id":"b3d3fadee11d077d99d948c173631abc","disabled_by":"integration","entity_category":"diagnostic","entity_id":"sensor.sun_solar_azimuth","hidden_by":null,"icon":null,"id":"104de75b64e950af398ec4fe9998338c","has_entity_name":true,"labels":[],"modified_at":"2024-12-17T01:58:48.781417+00:00","name":null,"options":{},"original_device_class":null,"original_icon":null,"original_name":"Solar azimuth","platform":"sun","supported_features":0,"translation_key":"solar_azimuth","unique_id":"5f8426fa502435857743f302651753c9-solar_azimuth","previous_unique_id":null,"unit_of_measurement":"°"}, + {"aliases":[],"area_id":null,"categories":{},"capabilities":null,"config_entry_id":"5f8426fa502435857743f302651753c9","created_at":"2024-12-17T01:58:48.781483+00:00","device_class":null,"device_id":"b3d3fadee11d077d99d948c173631abc","disabled_by":"integration","entity_category":"diagnostic","entity_id":"sensor.sun_solar_rising","hidden_by":null,"icon":null,"id":"888993d87923ff452ad1e53f6b3a943f","has_entity_name":true,"labels":[],"modified_at":"2024-12-17T01:58:48.781506+00:00","name":null,"options":{},"original_device_class":null,"original_icon":null,"original_name":"Solar rising","platform":"sun","supported_features":0,"translation_key":"solar_rising","unique_id":"5f8426fa502435857743f302651753c9-solar_rising","previous_unique_id":null,"unit_of_measurement":null}, + {"aliases":[],"area_id":null,"categories":{},"capabilities":null,"config_entry_id":"01JFJGH76SD417XC4YJTG8QJWB","created_at":"2024-12-20T17:06:07.780994+00:00","device_class":null,"device_id":"6586dbdeb10a88ae4603b47e600c6124","disabled_by":null,"entity_category":null,"entity_id":"weather.forecast_home","hidden_by":null,"icon":null,"id":"6ae588672696a2601b0152f22ee235f3","has_entity_name":true,"labels":[],"modified_at":"2024-12-20T17:06:07.781055+00:00","name":null,"options":{},"original_device_class":null,"original_icon":null,"original_name":"Home","platform":"met","supported_features":3,"translation_key":null,"unique_id":"52.3731339-4.8903147","previous_unique_id":null,"unit_of_measurement":null} + ], + "deleted_entities": [] } } \ No newline at end of file diff --git a/volumes/config/.storage/core.restore_state b/volumes/config/.storage/core.restore_state index 32d5f53..803d1e2 100644 --- a/volumes/config/.storage/core.restore_state +++ b/volumes/config/.storage/core.restore_state @@ -4,25 +4,9 @@ "key": "core.restore_state", "data": [ { - "state": { - "entity_id": "person.test_user", - "state": "unknown", - "attributes": { - "editable": true, - "id": "test_user", - "user_id": "e85fc7b7b8924dc9b024ce90ad23799e", - "friendly_name": "Test User" - }, - "last_changed": "2023-03-11T22:49:37.025955+00:00", - "last_updated": "2023-03-11T22:49:38.001160+00:00", - "context": { - "id": "01GV9DV0YHA545RWX832E5W3XW", - "parent_id": null, - "user_id": null - } - }, + "state": {"entity_id":"person.test_user","state":"unknown","attributes":{"editable":true,"id":"test_user","device_trackers":[],"user_id":"e85fc7b7b8924dc9b024ce90ad23799e","friendly_name":"Test User"},"last_changed":"2024-12-20T16:29:12.365217+00:00","last_reported":"2024-12-20T16:29:13.064958+00:00","last_updated":"2024-12-20T16:29:13.064958+00:00","context":{"id":"01JFJEDMZ89PTCR8TSCGBK4PP6","parent_id":null,"user_id":null}}, "extra_data": null, - "last_seen": "2023-03-11T22:49:38.002949+00:00" + "last_seen": "2024-12-22T02:24:58.979320+00:00" } ] } \ No newline at end of file diff --git a/volumes/config/.storage/frontend.user_data_e85fc7b7b8924dc9b024ce90ad23799e b/volumes/config/.storage/frontend.user_data_e85fc7b7b8924dc9b024ce90ad23799e index 2a759c5..97f5c02 100644 --- a/volumes/config/.storage/frontend.user_data_e85fc7b7b8924dc9b024ce90ad23799e +++ b/volumes/config/.storage/frontend.user_data_e85fc7b7b8924dc9b024ce90ad23799e @@ -7,6 +7,8 @@ "language": "en", "number_format": "language", "time_format": "language", + "date_format": "language", + "time_zone": "local", "first_weekday": "language" } } diff --git a/volumes/config/.storage/http b/volumes/config/.storage/http index b517dac..06543f7 100644 --- a/volumes/config/.storage/http +++ b/volumes/config/.storage/http @@ -7,12 +7,17 @@ "127.0.0.1" ], "use_x_forwarded_for": true, - "ssl_profile": "modern", - "ip_ban_enabled": true, "login_attempts_threshold": -1, - "server_port": 8123, + "server_host": [ + "0.0.0.0", + "::" + ], + "ip_ban_enabled": true, + "use_x_frame_options": true, "cors_allowed_origins": [ "https://cast.home-assistant.io" - ] + ], + "server_port": 8123, + "ssl_profile": "modern" } } \ No newline at end of file diff --git a/volumes/config/configuration.yaml b/volumes/config/configuration.yaml index 8677662..0db73a0 100644 --- a/volumes/config/configuration.yaml +++ b/volumes/config/configuration.yaml @@ -12,6 +12,7 @@ trace: counter: tag: notify: +weather: logger: default: info