Skip to content

add_area_to_floor service not callable #1106

@SabsounLP

Description

@SabsounLP

What version of Spook are you using?

v4.0.1

What version of Home Assistant are you using?

2025.10.2

The problem

when trying to call homeassistant.add_area_to_floor whit:

action: homeassistant.add_area_to_floor
data:
  floor_id: "first_floor"
  area_id: "room1"

i get the error
"extra keys not allowed @ data['area_id']. Got None required key not provided @ data['entity_id']. Got None”"

i had a quick look into the code of https://github.com/frenck/spook/blob/main/custom_components/spook/ectoplasms/homeassistant/services/add_area_to_floor.py and it semes to me that on line 30

vol.Required("entity_id"): vol.All(cv.ensure_list, [cv.string]),

should actually be

vol.Required("area_id"): vol.All(cv.ensure_list, [cv.string]),

at least for me chaning this solved the problem.

Anything in the logs? Paste it here!


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions