adizanni / floor3d-card

Your Home Digital Twin: aka floor3d-card. Visualize Home Assistant state and perform actions using objects in a 3D home model based on Three.js.
https://github.com/adizanni/floor3d-card
MIT License
461 stars 66 forks source link

BUTTON LEVELS DO NOT APPEAR #127

Closed VITCHEPF closed 2 years ago

VITCHEPF commented 2 years ago

Checklist:

Release with the issue: V 1.4.4 Last working release (if known):

Browser and Operating System: CHROME - WINDOWS 10

Description of problem: I'am working with .GLB file. After update Home Assistant the buttons levels are not appearing at the top left of the 3d canvas. I cleared the cache and nothing changed.

HA Actual Version Home Assistant 2022.8.7 Supervisor 2022.08.5 Operating System 8.5 Frontend: 20220802.0 - latest

IMG

ndbroadbent commented 2 years ago

This is happening for me with .glb files as well. When I use .obj and .mtl files the level buttons appear correctly (but the model takes much longer to load)

ndbroadbent commented 2 years ago

@VITCHEPF It just started working for me. I switched to using the .obj and .mtl files, and then switched back to .glb and the level buttons were still present. I also closed the Sweet Home 3D app and reopened it, and then exported the file again. I'm not sure what exactly fixed it, but it's now working for me.

Screen Shot 2022-09-08 at 11 58 06 PM Screen Shot 2022-09-08 at 11 58 36 PM
ndbroadbent commented 2 years ago

Ah this was the commit that broke it: https://github.com/adizanni/floor3d-card/commit/c000babf23210508eb4045caa92e02c358e4889d

You need to have hideLevelsMenu: 'no' in your config otherwise they are hidden by default. The condition should be updated:

if (this._levels.length > 1 && (!this._config.hideLevelsMenu || this._config.hideLevelsMenu == "yes")) {
VITCHEPF commented 2 years ago

Hi @ndbroadbent, thanks for your support.

My Floor-3D plugin was working perfectly, until I did the HA update indicated in the bug report. After this update the level menu disappeared.

I prove to check many things: hideLevelsMenu: 'no' is correct in my config, I've already tried to use the obj + mtl version, I've uninstalled and reinstalled the plugin, I've cleared the cache several times, but the levels menu still hidden. I've tried everything you can imagine, but the problem persists.

In this moment, I changed hideLevelsMenu: to 'yes', Closed the browser, Clearead the cache, Reopen the HA, Changed hideLevelsMenu: to 'no' and suddenly "Voila", the levels menu reappeared....

Unbelievable !

Sem título

hitnrun30 commented 2 years ago

Sorry but I have done everything above and the levels still don't show up. I even made a GLB file nothing will bring up the menu.