2024年11月21日星期四 下午6:39:00

Where Is Current Configuration Stored while Home Assistant helpers created in the gui? (.storage directory)

10 个月 前
#24106 引用
.storage/bluetooth.passive_update_processor

for rpi bluetooth adapter proxy



"minor_version": 1,
  "key": "bluetooth.passive_update_processor",
  "data": {
    "5158f9e1a9f315480a3d03f66b09fbe7": {
      "binary_sensor": {
        "devices": {
          "": {
            "name": "Motion Sensor BF13",
            "manufacturer": "Xiaomi",
            "model": "RTCGQ02LM"
          }
        },
        "entity_descriptions": {
          "light___": {
            "key": "light",
            "device_class": "light",

0
10 个月 前
#24107 引用
.storage/core.config_entries



"domain": "broadlink",
        "title": "Broadlink Smart Plug  SP4L-CN 30056  by Broadlink Integration",
        "data": {
          "host": "192.168.2.115",
          "mac": "24dfa7",
          "type": 30056,
          "timeout": 10

0
7 个月 前
#31949 引用
.storage/hacs.hacs



"minor_version": 1,
  "key": "hacs.hacs",
  "data": {
    "archived_repositories": [
      "alexarch21/history-explorer-card",
      "Thomas55555/husqvarna_automower",
      "speleolontra/daikin_residential_altherma",
      "chaptergy/noctis-grey",
      "digitaljamie/google-theme"
    ],
    "renamed_repositories": {
      "arjenvrh/audi_connect_ha": "audiconnect/audi_connect_ha"
    },
    "ignored_repositories": []

0
7 个月 前
#31996 引用
del

They are listed in Settings>Devices>Entities, but the icon is of a lined-through pencil, indicating read-only.

del sensor.212a01_cloud_285062_voltage

.storage/core.entity_registry

del


{
        "aliases": [],
        "area_id": null,
        "capabilities": null,
        "config_entry_id": "cf46024ed9667e123443ae23c24deca4",
        "device_class": null,
        "device_id": "71fe2520f7c9a2d6fbc4d87d522f405e",
        "disabled_by": null,
        "entity_category": null,
        "entity_id": "sensor.212a01_cloud_285062_voltage",
        "hidden_by": null,
        "icon": null,
        "id": "314a50ca7dd08cbfa67345b83dc392d8",
        "has_entity_name": false,
        "name": "米家智能插座2 蓝牙网关版2 by xiaomi miot raw Power cons voltage",
        "options": {
          "conversation": {
            "should_expose": false
          }
        },
        "original_device_class": "voltage",
        "original_icon": null,
        "original_name": "米家智能插座2 蓝牙网关版2 Power cons voltage",
        "platform": "xiaomi_miot_raw",
        "supported_features": 0,
        "translation_key": null,
        "unique_id": "212a01-cloud-285062-power_cons_voltage",
        "previous_unique_id": null,
        "unit_of_measurement": null
      },


add


  {
        "config_entry_id": "cf46024ed9667e123443ae23c24deca4",
        "entity_id": "sensor.212a01_cloud_285062_voltage",
        "id": "314a50ca7dd08cbfa67345b83dc392d8",
        "orphaned_timestamp": null,
        "platform": "xiaomi_miot_raw",
        "unique_id": "212a01-cloud-285062-power_cons_voltage"
      }



https://github.com/mslycn/Home-AssistantConfig20221103/commit/15dbb35129902e4b10e5f6c81fc9c017db80816b

https://blog.matterxiaomi.com/blog/how-deleting-devices-and-entities-in-home-assistant-part1/
0
7 个月 前
#31997 引用
del device 米家智能插座2 蓝牙网关版2 by xiaomi miot raw

  modified:   .storage/core.config_entries
  modified:   .storage/core.device_registry
  modified:   .storage/core.entity_registry


.storage/core.config_entries

deleted in .storage/core.config_entries


{
        "entry_id": "d07a29d8184ba85c3069cf8ac38b9d81",
        "version": 1,
        "minor_version": 1,
        "domain": "switch_as_x",
        "title": "米家智能插座2 蓝牙网关版2 by xiaomi miot raw",
        "data": {},
        "options": {
          "entity_id": "switch.212a01_cloud_285062",
          "target_domain": "siren"
        },
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "user",
        "unique_id": null,
        "disabled_by": null
      },



deleted in .storage/core.device_registry


"d07a29d8184ba85c3069cf8ac38b9d81",


deleted in .storage/core.entity_registry


{
        "aliases": [],
        "area_id": null,
        "capabilities": null,
        "config_entry_id": "d07a29d8184ba85c3069cf8ac38b9d81",
        "device_class": null,
        "device_id": "71fe2520f7c9a2d6fbc4d87d522f405e",
        "disabled_by": null,
        "entity_category": null,
        "entity_id": "siren.mi_jia_zhi_neng_cha_zuo_2_lan_ya_wang_guan_ban_2_by_xiaomi_miot_raw",
        "hidden_by": null,
        "icon": null,
        "id": "d979603371ae14a74b86ca3b81485319",
        "has_entity_name": false,
        "name": null,
        "options": {
          "conversation": {
            "should_expose": false
          },
          "switch_as_x": {
            "entity_id": "switch.212a01_cloud_285062"
          }
        },
        "original_device_class": null,
        "original_icon": null,
        "original_name": "米家智能插座2 蓝牙网关版2",
        "platform": "switch_as_x",
        "supported_features": 3,
        "translation_key": null,
        "unique_id": "d07a29d8184ba85c3069cf8ac38b9d81",
        "previous_unique_id": null,
        "unit_of_measurement": null
      },



https://github.com/mslycn/Home-AssistantConfig20221103/commit/8d1aff6c21136558974ead8d201f49cf13cdba46
0
7 个月 前
#31998 引用
Removing all entries from known_devices.yaml
Removing all entries from known_devices.yaml worked for me. I had played around with the BLE device tracker a while ago and left it running, over time it had put 1,000’s of BLE device entries in the file. After disabling the Bluetooth LE Tracker service in my configuration.yaml, clearing the known_devices.yaml, and restarting HA, the entities are gone and the startup time and overall performance seems to have improved dramatically.
0
7 个月 前
#31999 引用
go to “Development tools” → “Services” and select “Purge Entities”
0