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

Is it possible to set entity area via python script?

$
0
0

Hello everyone,
I have a whole bunch of entities for which it is forbidden to set the entity via yaml (e.g. MQTT entities).
Rather than going through all of them 1 by 1, I was wondering if it is possible to set their area via python script?

All of these entities have their area in their entity_id anyway, so it is easy to find them in the UI, but it is a pain to set them all via the UI.

I thought that a script would solve this in milliseconds but I am not sure if HA allows this and if so, how it is done.

Thank you all once again for your support! :slight_smile:
Alex

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 106323

Trending Articles



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