Area Card (and scenes) unable to call service light/turn_off

I have dashboard with area cards laid out for each room in my house. I like the way it shows the overall state of lights being on or off in the room. A single tap of the light icon turns the lights on or off.

However this is no longer working, instead presents an error in a notification near the bottom of the browser as follows:

Failed to call service light.turn_off. must contain at least one of entity_id, deviced_id, area_id.

I then went to the developer area to call a service and chose the light turn off and selected the same area and it works just fine. So it seems that there is a problem with the UI calling this? The reason I say UI more generically as I have entity cards that are linked to scenes and I get a similar message:

Failed to call service scene/turn_on. must contain at least one of entity_id, device_id, area_id.

These were working before. What gives???

1 Like

Have you refreshed the page and tried again?

Tried different devices and even restarted home assistant, same results.

Strange… Can’t reproduce the problem after creating an area card. Is each area card affected by?

Yes they all exhibit the problem

Running 2022.10.4 by the way

In this case I would either open a bug report on Github or update to 2022.11.x.

It’s a bit early in the release cycle for me to move up to 2022.11 just yet, but in this case, I have gone for it and tried 2022.11.1, same issue unfortunately, so I will go raise a bug report.

Thanks

Front end Issue raised.

1 Like

The only thing I can think of is that (for whatever reason) the assignment between areas and devices got lost.

I see, odd thing is though that the light bulb icon on the area card does track the state of the lights in the rooms still.

I have created a new dashboard with new area card, but haven’t tried removing lights from the room and re-adding them.

1 Like

Have you cleared your browser cache?

Yup.

Multiple machines, multiple browsers, multiple HA companion apps, HA restarted. Tried all the schoolboy stuff. :blush:

Anyone else seeing this. I’ve updated to 2022.11.2 now to see if it was fixed, although there was nothing in the change log to suggest it would be.

No response to the issue raised on GitHub either.

I’ve tried creating a new dashboard with just the area card on it and no joy. It’s not just the lights, the switch for devices gives the same error. So the issue doesn’t seem device dependant.

Same here card shows status of the lights but it won’t change the state giving an error about not setting up any entities.

Aha so maybe I’m not the only one then!

1 Like

This is my config … anyone who thinks it’s a big error here that makes the devices not react?

cards:
      - type: area
        area: living_room
        theme: Mushroom Shadow
      - type: area
        area: eetkamer
        theme: Mushroom Square Shadow
      - type: area
        area: bedroom
        theme: Mushroom Square Shadow
      - type: area
        area: speelkamer
        theme: Mushroom Square Shadow
      - type: area
        area: office
        theme: Mushroom Square Shadow
      - type: area
        area: badkamer
        theme: Mushroom Square Shadow
      - type: area
        area: gang
        theme: Mushroom Square Shadow
      - type: area
        area: outside
        show_camera: true
        theme: Mushroom Square Shadow
      - type: area
        area: tuin
        theme: Mushroom Square Shadow
      - type: area
        area: garage
        theme: Mushroom Square Shadow
      - type: area
        area: overloop
        theme: Mushroom Square Shadow
      - type: area
        area: meter
        theme: Mushroom Square Shadow
      - type: area
        area: wc
        theme: Mushroom Square Shadow

Hi all,

There has been an update on the GitHub issue logged, it would appear that this problem (and others) is caused by a small error in the HoneyComb HACS Front End add on. Not sure if others could cause it, but the developer has issued an update 0.10.1 which resolves the issue.

Following the update, I can confirm my area card buttons work again.

HTH

same issue here without the honeycomb front end. The service call for turn off works fine, but the turn on service is not working…not even show in logs… The “light” in the card area still on even with the light off