Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106083

Python_script - get entity_ids for device_id

$
0
0

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 :slight_smile:

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>