knebb
1
Hi there,
I am currently adding areas to my HA instance.
On the area configuration page I can not add any entities/ devices.
I have to go to entities and add a single entity to an area.
When selecting mutliple entities I am not able to add them to an area.
So I really have to add every entity one by one to an area?
Thanks!
/KNEBB
The Spook integration can do it:
action: homeassistant.add_entity_to_area
data:
area_id: kitchen
entity_id:
- light.kitchen_1
- light.counter_lights
- light.hallway_1
- light.hallway_2
- light.hallway_3
knebb
3
Ok, got a step forward.
I guess I can use some sort of template to match the entities, right?
So what do I put into the entity_id field?
- sensor.wetter_{{ * }}
Or how is the correct syntax?
/KNEBB
knebb
4
Tried now with the following:
action: homeassistant.add_entity_to_area
data:
aread_id: wetterdaten
entity_id:
- sensor.wetter*
And ran it manually. Got some errors in the trace:
Fehler: extra keys not allowed @ data['aread_id']
Ergebnis:
params:
domain: homeassistant
service: add_entity_to_area
service_data:
aread_id: wetterdaten
entity_id:
- sensor.wetter*
target: {}
running_script: false
Any idea what I did wrong?
/KNEBB
You need to install the Spook integration from HACS… You don’t even seem to have clicked on the link.
knebb
6
It is installed - for sure!
It has already alarmed me about some minor glitches: