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
471 stars 67 forks source link

Update floor3d-card.ts #141

Closed justinhunt1223 closed 2 years ago

justinhunt1223 commented 2 years ago

Using color "transparent" is still not a valid three color according to the error console but this would allow it to be hidden. put after color line for minification.

uspass commented 2 years ago

I'll check asap

justinhunt1223 commented 2 years ago

I realized just now this is an incomplete patch. Only one change needed is here. Not sure what happened.

adizanni commented 2 years ago

I realized just now this is an incomplete patch. Only one change needed is here. Not sure what happened.

Hello @justinhunt1223, I have not tested it, but by looking to your code, you have applied the transparency to the default color of the room, this patch will not work for your expected behaviour (transparency when light switched off). in order to achieve this you should play with the color condition......