home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.32k stars 30.26k forks source link

Labels dissapired after reboot #127242

Open leruetkins opened 1 week ago

leruetkins commented 1 week ago

The problem

I assign a label "Light_at_home" to my switches and add this label to automation and scripts and everything works fine. But after rebooting HA, the label disappear from the devices and automation stops working. I use HA in docker. Version 2024.9.3

What version of Home Assistant Core has the issue?

2024.9.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

sOnU1002 commented 1 week ago

i can work on this please assgn me task

joostlek commented 1 week ago

You're talking about both labels and shortcuts, can you please be more clear about what you mean? Maybe add screenshots

leruetkins commented 1 week ago

Sorry, I mean a label like this: IMG_20241001_215418 Screenshot_2024-10-01-21-53-38-039_io homeassistant companion android-edit

sOnU1002 commented 1 week ago

assing this to me

joostlek commented 1 week ago

If those dissapeared, can you show what files you have in /config/.storage? (I don't need the content, I just want to know what files you have)

leruetkins commented 1 week ago

Hi, sure:

.storage$ ls -l
итого 1064
-rw-r--r-- 1 root root    610 авг 17 19:27 assist_pipeline.pipelines
-rw------- 1 root root  22566 окт  2 15:29 auth
-rw------- 1 root root    266 авг 17 19:31 auth_provider.homeassistant
-rw-r--r-- 1 root root    101 окт  2 16:31 bluetooth.passive_update_processor
-rw-r--r-- 1 root root    147 авг 17 19:31 core.analytics
-rw-r--r-- 1 root root   1357 сен 21 23:03 core.area_registry
-rw-r--r-- 1 root root    435 сен 26 23:01 core.category_registry
-rw------- 1 root root    472 окт  1 19:42 core.config
-rw-r--r-- 1 root root  16808 окт  2 15:58 core.config_entries
-rw-r--r-- 1 root root  23694 окт  2 13:50 core.device_registry
-rw-r--r-- 1 root root 308703 окт  2 15:34 core.entity_registry
-rw-r--r-- 1 root root   1297 окт  1 18:30 core.label_registry
-rw-r--r-- 1 root root     96 окт  2 13:49 core.logger
-rw-r--r-- 1 root root  42942 окт  2 16:32 core.restore_state
-rw------- 1 root root    126 авг 17 19:27 core.uuid
-rw-r--r-- 1 root root    692 авг 29 18:45 counter
-rw-r--r-- 1 root root   2068 авг 25 22:54 esphome.01J64W8C4YHFA4FBJ3FC4YJPPF
-rw-r--r-- 1 root root   1726 сен  4 17:10 esphome.01J6VXQVSCR436KTJ3MKPQ3C7P
-rw-r--r-- 1 root root   1728 сен  3 22:40 esphome.01J6WC6X9YG080PYDRE2N799ZE
-rw-r--r-- 1 root root    380 сен 28 09:14 frontend.user_data_9a5adb37a4f64539a58e70159093c3b8
-rw-r--r-- 1 root root   1048 авг 31 21:11 homeassistant.exposed_entities
-rw-r--r-- 1 root root    442 окт  2 13:49 http
-rw-r--r-- 1 root root    134 авг 17 19:27 http.auth
-rw-r--r-- 1 root root  17067 окт  2 13:11 lovelace
-rw-r--r-- 1 root root    222 авг 21 09:54 lovelace.dashboard_configurator
-rw-r--r-- 1 root root    218 авг 30 23:23 lovelace.dashboard_ewelink
-rw-r--r-- 1 root root   1069 авг 31 11:53 lovelace_dashboards
-rw-r--r-- 1 root root    154 авг 17 19:31 lovelace.map
-rw-r--r-- 1 root root    208 авг 31 11:53 lovelace.node_red
-rw-r--r-- 1 root root     94 авг 17 19:27 map
-rw------- 1 root root    174 авг 17 19:31 onboarding
-rw-r--r-- 1 root root    103 авг 19 11:14 panel_iframe
-rw-r--r-- 1 root root    293 авг 17 21:49 person
-rw-r--r-- 1 root root   1346 сен 30 18:05 repairs.issue_registry
drwxr-xr-x 2 root root   4096 окт  2 13:46 sonoff
-rw-r--r-- 1 root root 520194 окт  2 13:45 trace.saved_traces

Also core.label_registry :

.storage$ cat core.label_registry 
{
  "version": 1,
  "minor_version": 2,
  "key": "core.label_registry",
  "data": {
    "labels": [
      {
        "color": "primary",
        "description": null,
        "icon": "mdi:bathtub",
        "label_id": "monitor",
        "name": "Monitor",
        "created_at": "2024-08-19T20:27:11.005899+00:00",
        "modified_at": "2024-08-19T20:27:11.005923+00:00"
      },
      {
        "color": null,
        "description": null,
        "icon": "mdi:desk-lamp",
        "label_id": "svet_v_kvartire",
        "name": "Свет в квартире",
        "created_at": "2024-09-21T20:04:46.148945+00:00",
        "modified_at": "2024-09-21T20:04:46.148971+00:00"
      },
      {
        "color": null,
        "description": null,
        "icon": "mdi:motion-sensor",
        "label_id": "datchik_dvizheniia",
        "name": "Датчик движения",
        "created_at": "2024-09-27T20:01:16.875706+00:00",
        "modified_at": "2024-09-27T20:01:16.875730+00:00"
      },
      {
        "color": null,
        "description": null,
        "icon": "mdi:alarm-light",
        "label_id": "light_at_home",
        "name": "Light_at_home",
        "created_at": "2024-10-01T15:30:32.129980+00:00",
        "modified_at": "2024-10-01T15:30:32.130003+00:00"
      }
    ]
  }
}
joostlek commented 1 week ago

Can you try to add a label to another entity from another integration and try again?

leruetkins commented 1 week ago

Ok. I will try it a little bit later.

leruetkins commented 6 days ago

I have checked. Labels disappeared only in Tuya integrations after reboot. Other integrations works correctly.

home-assistant[bot] commented 6 days ago

Hey there @tuya, @zlinoliver, @frenck, mind taking a look at this issue as it has been labeled with an integration (tuya) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `tuya` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign tuya` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


tuya documentation tuya source (message by IssueLinks)