0.90 Error on area_id instead of entity_id in automation

In the release notes I’ve read the following

Areas can now also be used as targets in services. Just specify area_id instead of entity_id in your scripts or automations.

So I thought I could do the following: call a service with an area instead of an entity

light.turn_off
{
“area_id”: “7d2f798081aa457888a190fc8ca7f228”
}

But I get the following error:

Invalid data for call_service at pos 1: extra keys not allowed @ data[‘area_id’]

Am I doing something wrong, or do I have the wrong interpretation of the release notes. ?

2 Likes

Was thinking the exact same thing? Would love to get this feature working fully since it means I can group up lights easier than making the regular groups!

I created an issue here: https://github.com/home-assistant/home-assistant/issues/22639

2 Likes