
List of object groups to apply grouped entity bindings. List of enitities to bind to 3D model objects. You wait for some time (from few seconds to minutes) and when it is completed you can take the glb file and copy it to the Options Name Obj2gltf -checkTransparency -i home.obj -o home.glbĪssuming your model is called home.obj. Once installed you can open a command prompt (or powershell) and type the following command: If you want to generate a glb file instead of the wavefront (obj) file to load the card (it is faster and more optimized), you can follow this procedure in Windows: When you are finished, configure a new card (either in panel mode or regular) with the following options: Note: GLB format Place the upper left corner of your 2D floor model at 0,0 coordinates otherwise the camera setting will work weirdly (due to calculation on the coordinates that I need to fix).īased on some feedback there are some open issues which I will try to fix, please follow these rules if you want things to go smooth: If you want to have an object that groups together other objects (ex a mannequin is composed by 100s of objects you want to treat it as one), you can follow this trick. It could be also good practice to make the objects invisble instead of removing them (not yet tested if this solution preserves the objects ids). It is still very experimental, use at your own risk, and please follow the instructions. mtl file) to a sub folder of /config/The new feature ( #7) is now available in this repository. ', specify the folder where you want to store the output (be careful there are multiple files)Ĭopy the full set of files (minimum is the. Model your home with all needed objects and furniture (I will post here some hints on how to better design your home for best results with the custom card).įor further instruction I assume you will use SweetHome3D.Īt the end of your modeling, you need to export the files in obj format using '3D View \ Export to OBJ format.

As you have to model your home I would suggest this software (the one I tested). See Home Assistant documentation for adding custom cards ( ) and registering JavaScript resources ( ). url: /local/pathtofile/floor3d-card.js type: module
