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
448 stars 65 forks source link

I do not see the menu of the floor levels #175

Closed Sived80 closed 5 months ago

Sived80 commented 6 months ago

Congratulations for the excellent integration!!! I don't see the levels menu. I created a basic model in SH3D: Floor 0: walls, and an object Floor 1: walls, and an object. The only objects are called t0 and t1 and are correctly associated with the level.

SH3D test.zip Floor 3D card settings.txt

I'm using SH3D v6.6, your exposure plugin. I have carried out multiple tests with various models and different browsers always with negative results. Thank you

adizanni commented 6 months ago

Hello @Sived80, sorry my previous comment (that I edited) was wrong. If you have all files copied correctly to the target www folder, it should work. I will do some tests

Sived80 commented 5 months ago

Hello. I tried to implement the 3D model kindly provided by an online user. In their Home Assistant, it displays the floor plan menu. In mine, it does not. Thank you again for the time you are giving me.

Sived80 commented 5 months ago

Hello. I tried to implement the 3D model kindly provided by an online user. In their Home Assistant, it displays the floor plan menu. In mine, it does not. Thank you again for the time you are giving me.

adizanni commented 5 months ago

Hello @Sived80 , I've also tested with a sample model and it is working.

image

I've checked your export and in the obj file the name of the objects are not tagged with the level, so this means that the exportToHASS plugin is not doing his job properly. In order to test that I need your sh3d file too

adizanni commented 5 months ago

I've also created a very simple model and levels are appearing:

image

Sived80 commented 5 months ago

Hi, I installed a parallel instance of Home Assistant alongside the existing one, with only your plugin inside, but there's no news. What I find strange is that even the model downloaded from the internet (working for the user) doesn't show the floor menu in my Home Assistant. The model was already exported with your tool for SH3D.

Could you kindly share the model (already exported from SH3D) with 4 floors that you used to perform the tests? I would like to exclude a problem on the HA side.

From what I can understand, does the exportToHASS plugin add an attribute to the name of the objects? Could you provide me with such an explanation? I could create a small model to test the correct functionality in HA.

pippov6.6.zip

adizanni commented 5 months ago

Can you tell me the version of the plugin you are using ? You can find it in SweetHome3D, menu Help -> About -> Libraries. It should be like this:

image

v0.1.0.

My export produces the exptected behaviour:

image

Sived80 commented 5 months ago

Hello, you're absolutely right!!! I don't know why the add-on is at version 0.0.3. I've fixed the issue, and now everything works. Thank you again for the time you've dedicated. πŸ™ŒπŸΌπŸ™‚ Diesci!!!