How can I find out the ID of an integration that doesn’t have any devices? There is nothing in the address bar.
add entry . and click on it . you will have id in adresse bar
ex. 8.1.77:8123/config/devices/device/344a5ffe665eabe14e8514783a
The “ID” of an integration is the last word of the URL in your screenshot (dataplicity
).
Unlike a device, an integration isn’t identified by a string like a34be9cf58dff2a33.
What would you like to do with the integration’s identifier?
For example, do you want to list its entities? (In this case it would produce an empty list because the integration has no entities).
{{ integration_entities('dataplicity') }}
You can also find them if you follow
Settings > System > Repairs > select “Integration Startup Times” from the 3-dot/expansion menu
Thank. But were is the ID on this page?
dataplicity
is wrong ID.
I want to do automation with reload this integration. This code is not working.
action: homeassistant.reload_config_entry
data:
entry_id: dataplicity
enabled: true
Thank you for clarifying what you want to do.
You want the integration’s entry_id
.
Normally you can use the config_entry_id
to get an integration’s entry_id
.
config_entry_id(entity_id)
returns the config entry ID for a given entity ID. Can also be used as a filter.
However, config_entry_id
requires you to provide it with the entity_id
of one of the integration’s entities but the Dataplicity integration doesn’t produce any. So you can’t use config_entry_id
to get Dataplicity’s entry_id
.
You will have to get it by searching the contents of the following file. It’s located in the hidden .storage
folder within the config
directory of your Home Assistant server.
config/.storage/core.config_entries
The contents of core.config_entries
are in JSON format. Use a text editor to seach for “dataplicity”. Be careful not to accidentally modify any of the file’s contents.
Here’s an example of what an integration’s config_entry looks like in the core.config_entries
file.
{"created_at":"1970-01-01T00:00:00+00:00","data":{"discovery_prefix":"tasmota/discovery"},"disabled_by":null,"discovery_keys":{},"domain":"tasmota","entry_id":"3a8e16584f7c3f3c2f65b58a45e658fb","minor_version":1,"modified_at":"1970-01-01T00:00:00+00:00","options":{},"pref_disable_new_entities":false,"pref_disable_polling":false,"source":"mqtt","subentries":[],"title":"Tasmota","unique_id":"tasmota","version":1},
This particular example is for the Tasmota integration and here’s the part we’re interested in (3a8e16584f7c3f3c2f65b58a45e658fb
):
"entry_id":"3a8e16584f7c3f3c2f65b58a45e658fb"
Did the script error?
That’s about the only confirmation you’ll get. I have scripts that do this when I edit config for my LLMs. I rely on absence of an error.
OK. Thanks