Group/Area of Item

I have multiple blinds in a room, and I have scenes configured.
I want that when I click, the specific blind will take position X - Works great (I extract name of object and rebuild to match the entity id using JSONata)
Secondly, I want when I double click, that all covers in the area will do the same positioning.

I tried to send position msg to area_id, but for some reason I see this in the logs

2022-05-07 23:21:57 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced areas living-room

I should say that my living room id was some random number, I’ve deleted and re-created it.
When I send command from developer tab, it works

service: cover.set_cover_position
data:
  position: 32
target:
  area_id: living_room

and node red sent command

{
  "payload": 24,
  "data": {
    "entity_id": "sensor.nodeid_5_scene_state_sceneid",
    "old_state": {
      "entity_id": "sensor.nodeid_5_scene_state_sceneid",
      "state": null,
      "attributes": {
        "time": 1651954917772,
        "value": 24,
        "friendly_name": "Living Room-South Roller Shutter_scene_state_sceneid"
      },
      "last_changed": "2022-05-07T20:20:58.315096+00:00",
      "last_updated": "2022-05-07T20:21:57.779609+00:00",
      "context": {
        "id": "0180a02fa193d9ebf8ddb95b74cda0d1",
        "parent_id": null,
        "user_id": null
      },
      "original_state": ""
    },
    "new_state": {
      "entity_id": "sensor.nodeid_5_scene_state_sceneid",
      "state": 24,
      "attributes": {
        "time": 1651954917772,
        "value": 24,
        "friendly_name": "Living Room-South Roller Shutter_scene_state_sceneid"
      },
      "last_changed": "2022-05-07T20:21:57.779801+00:00",
      "last_updated": "2022-05-07T20:21:57.779801+00:00",
      "context": {
        "id": "0180a02fa1937a5bd1353745c9a02387",
        "parent_id": null,
        "user_id": null
      },
      "original_state": "24",
      "timeSinceChangedMs": 6
    }
  },
  "topic": "sensor.nodeid_5_scene_state_sceneid",
  "dst_area": "living-room",
  "dst_entity": "cover.nodeid_5_position",
  "_msgid": "45fc2e80ffb28bc6"
}

Is there a smarter way to do this ?

You’d probably be better off creating a cover group in HA. Areas a relatively new and I am unsure if the HA nodes properly pass the information on in all cases.

cover:
  - platform: group
    name: "Window Covers"
    entities:
      - cover.hall_window
      - cover.living_room_window

I just figured it out differently.
I used area template to get the area of the relevant entity
and sent it over later as destination area

The error shows that you are using a dash in the id. The working example you are using an underscore.

1 Like