AalianKhan / mushroom-strategy

A strategy to automatically generate a dashboard using mushroom cards
MIT License
371 stars 37 forks source link

Getting error "Error loading the view strategy: TypeError: Cannot read properties of undefined (reading 'attributes')" when clicking on 6 areas out of 14 #25

Closed SaintTDI closed 1 year ago

SaintTDI commented 1 year ago

Hi,

It's my first issue that i'm opening on github, so I'm sorry if I'm doing something wrong :)

I just installed mushroom-strategy, really cool! But I have an issue when clicking on 6 different Rooms out of the total of 14. The error is:

Error loading the view strategy:

TypeError: Cannot read properties of undefined (reading 'attributes')

image

Other Rooms don't have any issues. I thought it was the Aqara door sensor, but actually a Room that works use one of them.

EDIT:

Ok, I think the shutter is the issue, because only rooms with shutter have this issue. Deleting the Room association of one shutter, the room opens correctly:

image

But opening the page of the shutters everything works:

image

I use the Shelly Pro 2 PM for the shutters and these are the attributes:

current_position: 100 device_class: shutter friendly_name: Tapparella Camera supported_features: 15

Can anyone help please?

Thanks! Stefano

DigiLive commented 1 year ago

Can you please give commit d506630 of the main branch a try to see if the issue is still present?

SaintTDI commented 1 year ago

Can you please give commit d506630 of the main branch a try to see if the issue is still present?

Sorry, can you explain me how to do it? I'm new with github. Thanks!

DigiLive commented 1 year ago
  1. Backup the contents of directory /config/www/community.
  2. Rename/Remove the current files in above directory.
  3. Download and place file https://github.com/AalianKhan/mushroom-strategy/blob/d5066303f385dc9499b002e913a6987b4c364fe0/dist/mushroom-strategy.js in above directory.
  4. Refresh your browser's cache.
DigiLive commented 1 year ago

I've created a pre-release which you could try. @SaintTDI Any feedback would be appreciated.

Otherwise this issue will be closed for being fixed or stale.

DigiLive commented 1 year ago

Closed for being stale.