Aleborg / homeassistant-aleborg-frontend

33 stars 4 forks source link

adding lights to rooms etc? #4

Closed Symbiot78 closed 1 year ago

Symbiot78 commented 1 year ago

Hi

am trying to understand how to add lights/devices to rooms. I think it's something simple.. I have all devices/entities added to rooms. Room names match the settings. But clicking the "all lights" for instance.. gives me 0 entities or devices. each room also shows 0 entities.

I have checked the prereqs and i have all the cards etc installed.

Not sure where I am missing something.. perhaps you have an idea?

Symbiot78 commented 1 year ago

Creating a autoentites card in another dashboard with light domain shows all my lights. So definitely something I am missing in the dashboard files.

Aleborg commented 1 year ago

You don't need to add them if they're already added to the room in HA. Did you edit the rooms in settings.yaml?

rooms:
...
  - title: "Rum 2" 
    areaId: "rum_2"
    icon: "mdi:bed-outline"
    sortOrder: 5

  - title: "Rum 3" 
    areaId: "rum_3"
    icon: "mdi:bed-outline"
    sortOrder: 6
...

title needs to match the "name" of the room exactly and areaID the "aread ID"

Areas & Zones in HA

Symbiot78 commented 1 year ago

That’s just it. They do match. I have one area in HA: kitchen

in settings.yaml I have a room with areaId: “kitchen”

But nothing shows up

if I go to the ‘belysning’ page it is also completely empty

Symbiot78 commented 1 year ago

Wait….

Both title AND areaID must match the HA area?

Symbiot78 commented 1 year ago

so.. both have to match.. that's confirmed.

Now I am facing something that is missing I think:

image

Aleborg commented 1 year ago

I seem to have missed one frontend card, install this in hacs: https://github.com/AnthonMS/my-cards I've added it to the readme now

Symbiot78 commented 1 year ago

That helped after a few Ctrl+F5👌👌