Hi all,
how can I receive the entity_ids related to a specific device_id within python_script?
I have found a description how this is done within custom components (How I can get DeviceEntry by entity_id in python?) but this requires some import which is not possible within python_script.
I additionally found how this can be done within templates (Templating - Home Assistant), but still no option how the same as template: “device_entities(device_id)” is achieved within python_script.
Thanks for some enlightenment
1 post - 1 participant