BTW, what does the identifier (e.g. “'3348931564-1-634:4:1553”) represent?
But, I’m stuck trying to get the slug for the hassio.addon_restart call.
I have found a post using sensor.supervisor_updates that shows the slug, but I don’t have that sensor and can’t find docs on it – and it wouldn’t apply if it’s just showing pending updates. So, no use here.
Is hard-coding the slug in my automation the only option?
To my knowledge, there’s no recorded relationship between an entity_id and an addon (by poking around the registry files in the hidden .storage directory).
For example, I can discover that an entity is part of a device and that device is provided by the MQTT integration and it is part of another device named Zigbee2MQTT Bridge. Now I know, through inference, that the entity is part of the Zigbee2MQTT addon. However, I cannot find any direct linkage between the Zigbee2MQTT Bridge device and the actual Zigbee2MQTT addon.
My guess is it’s how zwave-js uniquely identifies each device. It’s similar to how Zigbee2MQTT identifies each device (using its unique network address).