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

Not Rendering 3D models #72

Closed Umarkhabiliy closed 2 years ago

Umarkhabiliy commented 2 years ago

config www plan3 community floor js card

I can tried but not rendered. What is the problem?

adizanni commented 2 years ago

Hello @Umarkhabiliy, thanks to open the issue separately. Where is the Plan3 folder ? What do you see in the browser console ? (in chrome, open the menu "More Tools\Developer Tools" and click on the console tab. Cut and paste your log (if you see errors). Does your model contains several levels or objects groups created in Sweethome3d ? If you can share somewhere the model (obj or sh3d) it can help me. Thanks

Umarkhabiliy commented 2 years ago

Ok. I share you, do you have telegram messenger?

Umarkhabiliy commented 2 years ago

plan3 folder in www folder

Umarkhabiliy commented 2 years ago

error

Umarkhabiliy commented 2 years ago

log ert

adizanni commented 2 years ago

The most important issue is the first one, it cannot load the floor3dcard.js module, so it is possible you are using an old version in cache. Try to clear your browser history, are you able to load other HACS custom cards ?, Second you receive the error "path is empty" but you showed your config, the path seems correct. It is definetly not a problem with the model, so it is useless to share it with me right now.

adizanni commented 2 years ago

Please report also at the very beginning of the console log you have the version of the HA custom cards, please confirm that you have v1.1.11 (or tell me which version you have)

Umarkhabiliy commented 2 years ago

I cleaned cache but nothing change, how check my version ?

Umarkhabiliy commented 2 years ago

my version is v1.1.11

adizanni commented 2 years ago

I've seen this forum: https://community.home-assistant.io/t/all-my-custom-cards-suddenly-dont-exist/144135 It is possible that your HACS is broken, are there any other custome cards deployed in HACS that are working fine ?

adizanni commented 2 years ago

Have you tried to follow the other way to install the floor3d-card? First uninstall the card in HACS then follow my tutorial here https://youtu.be/i3XQVbus4tI to install manually. This is to be sure that you do not have a problem in HACS

Umarkhabiliy commented 2 years ago

I reinstalled HACS. I added other custom cards, nothing error, but floor3D don’t work.🤯

Umarkhabiliy commented 2 years ago

noth

adizanni commented 2 years ago

I'm really sorry but I cannot find the root cause. Can you post the full configuration of the card by cutting and pasting the code in "show code editor" ? I receive the same error when the path field is actually empty. But it is not your case it seems to be well configured. Also the second error is not fired in the case I do not put the path.......

Umarkhabiliy commented 2 years ago

I think my problem is "path or navigation" becasuse when i press card i recieve error

jij ll
перевод с английского на русский с фото

Umarkhabiliy commented 2 years ago

deepin-screen-recorder_google-chrome_20220110213552.gif

adizanni commented 2 years ago

When you create the card, the "Path is empty" error is normal. The problem is that you have "path is empty" even after entering the path, as you showed me in previous screenshots

Umarkhabiliy commented 2 years ago

When i press refresh buttun i recive TypeError: "cannot read properties of undefined(reading 'removeEventListener')

Umarkhabiliy commented 2 years ago

I cant solve this problem from 2days

adizanni commented 2 years ago

I'm really sorry, I have never seen something like that. What happens after you put the right parameters and you save ?

Umarkhabiliy commented 2 years ago

2022-01-10-21-58

Umarkhabiliy commented 2 years ago

only this card showed

adizanni commented 2 years ago

And now what is the error in the console ?

adizanni commented 2 years ago

It cannot be path is empty, should be something different

Umarkhabiliy commented 2 years ago

deepin-screen-recorder_Select-area_20220110220335.gif

I recieve this error

adizanni commented 2 years ago

The zIndex is a known bug but it does not stop the model to be displayed. Close your browser and reopen it and refresh the view with the card and tell me if you see this log:

image

Umarkhabiliy commented 2 years ago

but after percent is loading to 100, card is worked but error counting increses i dont know it is nice or what deepin-screen-recorder_Select-area_20220110220601.gif

adizanni commented 2 years ago

the zIndex is a know bug and I have not found a fix yet but it is not blocking the model to be displayed

Umarkhabiliy commented 2 years ago

Thank you for your helps brother i wish you all the best

adizanni commented 2 years ago

Please tell me that you are going to use it and give me some feedback, sorry if it was so bad to get it started. The zIndex is appearing also in my side, but when I restart the browser it goes away for a while

Umarkhabiliy commented 2 years ago

Everything is good, but i have another question how i turn on and turn off without other buttons for example if press to the lamp, lamp switch off and switch on

adizanni commented 2 years ago

You double click on the light object in the model

Umarkhabiliy commented 2 years ago

I double click object but nothing change

adizanni commented 2 years ago

Have you configured your light in the card ?

Umarkhabiliy commented 2 years ago

h 67

it is enough?

adizanni commented 2 years ago

Expand the light parameters, put a high value for lumens (ex 800) and see if it is better. Otherwise check the log for an issue

adizanni commented 2 years ago

Also remove the entity template value it is useless in this context. Are you sure that your switch is called that way ?

Umarkhabiliy commented 2 years ago

lumens 1000, yeah my devices name switch... when i press toggle, lamp light, however double clicked to the object nothing off or on

adizanni commented 2 years ago

The name of the light object in the model is weird. If you say that now you see the light in the model, it means that the object is working, on the other hand, if the light is getting our from the object, it means that if you double click it should work. Send me the full configuration (not an image but the full text of your config)......

adizanni commented 2 years ago

Please close the issue and open new one if you see that the card is not working as expected

Umarkhabiliy commented 2 years ago

nm it is Confugration

adizanni commented 2 years ago

Can you try to put the light on any other object in the model and see if the double click is working ? I'm afraid that the stripe is not big enough to capture the double click. Try also to zoom to it (with the scroll wheel of the mouse)

Umarkhabiliy commented 2 years ago

Yes I’m tried give big object however doesn’t work. Can you give more information about confugration, may be I don’t understand clearly, can you make a video to youtube

Umarkhabiliy commented 2 years ago

nm

it is Confugration

is my code true?

Umarkhabiliy commented 2 years ago

is it true?