Your Home Digital Twin: Interactive floor 3d plan

Hi, Thanks for your reply, sorry it’s taken so long to get back to you.

Any help is really appreciated.

Thanks

Thanks.Capture

If the home.obj and home.mtl are in the folder /config/www/home/ then your path parameter should be

path: /local/home/
1 Like

Hi I have the same issue IU cannot get the image to appear here is my code

type: custom:floor3d-card
entities:
  - entity: ''
object_groups:
  - object_group: ''
name: Office
path: /local/office/
objfile: home.obj
mtlfile: home.mtl
objectlist: home.json

Thank you.

Playing around with this - got it working pretty good! Thanks for this!
I could never find a good guide on how to use my Sweet Home 3d pics with Picture-Element

1 Like

Knowing that you have to start from a sweet home 3d model also for the picture element, I think that the floor3d card requires less effort to setup and configure. The downside is that it requires more powerful PCs especially if you want a realistic rendering of the lights (with shadow: yes). When someone will take over the code to make it more stable and home assistant “compliant” I think that it will really become a standard HA card.

Hello guys, just checking-in to see if anybody is up to contribute to the project. I think this card has a huge potential but it requires some deeper knowledge of Home Assistant custom card development than what I have. Please assist here.

Hello all,

I’m starting a new tutorial series in youtube: Your Home Digital Twin: Floor3d Custom Card for Home Assistant - Intro - YouTube
Please like and subscribe to support the effort.
Thanks.

Andy

5 Likes

Hi,

I just recently discovered your card and I find it amazing. Of course, there is still a lot of place for improvement and more development but I wanted to let you know that I subscribed to your channel in support of your effort which is greatly appreciated.

1 Like

It is a fantastic floor plan card. Can you explain that how I can make my ceiling fan rotate? I am having difficulty finding the coordinates.

1 Like

I’m preparing a series of tutorial on YouTube but you have to be patient.
In the meantime to implement the Fan of the Intro video you can do this config:

entities:
  - entity: input_boolean.fan_living_room 
    type3d: rotate
    rotate:
      axis: 'y'
      hinge: ceilingFan_1
      round_per_second: '2'
    object_id: <Fan>
object_groups:
  - object_group: Fan
    objects:
      - object_id: ceilingFan_1
      - object_id: ceilingFan_2
      - object_id: ceilingFan_3
      - object_id: ceilingFan_4

where input_boolean.fan_living_room is the entity representing the Fan switch and
celilingFan_1 to 4 are the objects of the Fan, ceilingFan_1 being the hinge object (the rotor in the middle)

1 Like

I just exported a new model from SweetHome3D to update my apartment but now many of my colors and textures are not present in Home Assistant, even though they are in SweetHome3D. For example, this is what SweetHome3D looks like:

image

But this is what it looks like after exporting the .obj and .mtl files (and all the png/jpgs for the textures, same as I’ve always done it)

Am I missing something? Excuse my ignorance, I haven’t updated my apartment model in quite a few months so I’m not sure if something in this integration or in SweetHome3D has changed that might be doing this. Thank you!

Hello @scoutamis123 , I do not have the same problem, can you please open the developers tool and see if there is an error related to the load of the materials ? It really seems that the textures are not loaded…

I searched the entire log since I restarted home assistant and I don’t see any mention of Floor 3D Visualization at all. Was there somewhere else I can look to see errors more specific to this addon? Sorry I’m not very familiar with debugging anything

In the case of the custom card the log is the console in the browser. In chrome in the page of the bugged floor3d card you have to open the “more tools”“development tools” from the browser menu and look into the console tab You will see a few regular entries related to loading the model in the card and, if there is an error you copy an paste the content.

This is the entirety of the developer tools in Google Chrome. Looks like it’s an issue specific to Chrome because all my textures load fine on the Android app and on Microsoft Edge.

The only thing that come to my mind is to do either of these 2 things:

  1. Clear Browser cache
  2. If you do not want to clear the browser cache you can put this in the parameter of the floor3d card: <mtl file name>?ver=1 (ex. ‘home.mtl?ver=1’) and for any new version of the mtl file you will have to put a different number.

Sorry but I cannot reproduce it so I’m blind. In my setup Chrome loads textures in exactly the same way.

1 Like

New video of my series Your Home Digital Twin: Your Home Digital Twin: Floor3d Custom Card for Home Assistant - Episode 3 - Your first card - YouTube

Turorial on the usage of the floor3d-card

2 Likes

Hello.
I admire the idea.
I have a problem.
I do not have visible elements such as btama, sofa, single lamps, garage door.

Hello @dachdeker.biuro, I need more info to fix your problem. The configuration of the card, the sh3d or obj files, etc.