Replies: 3 comments
-
Uh... the service targets something, it is a mandatory key. I'm not following this part of your story.
Not really, you can get it from the UI. It is documented as well. Alternatively, you can go to the UI, view the device page, and the ID will be in the URL of your browser. Or, last but not least, the UI provides selectors for these everywhere. TL;DR: There are many methods available to get it. From the UI, it will all provide an dropdown to select it from. From the Spook end of things, there is no influence possible in this part. ../Frenck |
Beta Was this translation helpful? Give feedback.
-
I have multiple entities that refer to the same config_entry and multiple config_entries to one device_tracker. These entities also disappear (as planned) so I cannot (!) use the entity/device as starter which makes this service impossible as-it-is. I noticed that I can use 'any' entity and supply the config_entry_id but finding the config_entry_id from .storage is a no-go for me... |
Beta Was this translation helpful? Give feedback.
-
And I feel I still haven't explained the use case in detail. |
Beta Was this translation helpful? Give feedback.
-
Core provides a service "homeassistant.reload_config_entry" that requires a target_id and a config_entry_id
The target is not (always) needed but is required and the config_entry_id needs digging into the core.config_entries
It would be nice that one could select te config entry from a list and then fire the reload....
EDIT: explaining a bit more my challenge.
I have multiple config_entries that each have multiple entities. Based on the location change of the device_tracker, connected to the config_entry, I need to update all entities. As I cannot identify this change from entity>entry>device I would like to trigger this from a device location change, then call the config_entry reload which then updates the entities.
I was thinking about writing my own service call but that would not serve a larger audience
Beta Was this translation helpful? Give feedback.
All reactions