Your Home Digital Twin: Interactive floor 3d plan

Did you clear cache and data from browser?

1 Like

Hello @Roberto555, as suggested by @Chykan, clearing the cache is the best way to ensure that any change to models and materials will be refreshed, it is also possible to add a fake version to the model URL using a URL query parameter such as model: home.obj?ver=1 (changing the version number each time you change the model) it is also working with the material file (home.mtl).
Second, I see that you are not using the basic frame from SH3D, which is the one that I tested and always working. Also it is strange that the majority of object ID from the frame that you bind to the text entity have the “_3” id, whereas some of them have the “_5” id; usually for the same compound object in SH3D the sub objects have always the same id, try to use _3 in all the frame that you bind to text.
If nothing works, please send me a private message with your model attached either here or in GitHub and I will try to perform some tests.

Dear @adizanni I will try to answer to all points :slight_smile:
1: “clearing the cache is the best way to ensure that any change to models and materials will be refreshed” - I tried to open in tablet, and two separate computers, everywhere was same result

2: " it is also possible to add a fake version to the model URL using a URL query parameter such as model: home.obj?ver=1 (changing the version number each time you change the model) it is also working with the material file (home.mtl)." - I did it in this way. my first project was saved as home, 2nd home2, 3rd home3 etc. Reason why you see home.obj is that I tried to make a clear installation.

3: “I see that you are not using the basic frame from SH3D” - I am not informed that I am using wrong frame. Frame which I used was downloaded in together with free version of SH3D.

4: " Also it is strange that the majority of object ID from the frame that you bind to the text entity have the “_3” id, whereas some of them have the “_5” id" - Here was real problem, I am so stupid :face_with_symbols_over_mouth:. Frame was rotated around X axis and I tried to connect text to the wrong surface. When I rotate frame to the correct position and add text to the frame_3 text is again available. :slight_smile:

Thank you for your help I very appreciate, that you lost time with my problem :slight_smile:

For anyone setting this card up, make sure you place a hex colour in for the light entities. I had "white and “warm white” in as colours previously. When I opened up the chrome console the card was spamming the console thousands of times, saying
/hacsfiles/floor3d-card/floor3d-card.js?hacstag=361776538153 could not find “warm white” there must be a setting in the card that defaults the colour to “warm white”.

The lights in the card did seem to work previously while spamming but changing the colour to a hex colour has stopped the spamming and I think the card seems to be loading and working better.

A good source for white hex colours is here.

                entities:
                  - entity: switch.bathroom_power_board_socket_1
                    object_id: <Rumpas Lights 1>
                    type3d: light
                    light:
                      shadow: 'no'
                      color: '#fdf4dc'
                      lumens: '500'
                      decay: '2'

Hello @Chykan , normally hex and colour names according to the W3C standard (HTML Color Names) are supported, so white should work (not warm white because of the space), I will test it and let you know.

Thanks I tried straight white but it was still spamming and saying it could not find ‘warm white’.
In the model it was showing a light colour of warm white, even with the spamming.

I had been running for a year like this, until I opened the console on the page and noticed.

What colour is the light in the card if you delete the colour: line?

Is there anyway to speed this card up? Or has it already been optimised as well as it can be with .gbl format. My smaller device like phone struggle with it, I suppose that is down the the size of the models?

Does the ha host machine have any bearing on card performance? I run a home assistant blue, Odroid N2+

“finished with errors: check the consol log”

this appears after the card is loading 100%

what is wrong?

Hello @audiophilone , there is a usual mistake that people do when starting with the card. They use the sample from the card library and then they change the model but do not remove the entities and object groups that are still pointing to the sample model. I regret I did this change that is confusing for most of the users but I have no time to fix it…

I’ve been trying to get this to work for the last 2 weeks. Nothing happens when I press the TV on the model. I tried to assign it to a different 3d object but nothing happens when I click it either. Is there something I’m missing here? Here’s my config.

path: /local/3dcard/
name: Home
objfile: home.glb
header: "yes"
click: "yes"
backgroundColor: "#1c1c1c"
hideLevelsMenu: "no"
globalLightPower: "0.25"
shadow: "no"
extralightmode: "no"
show_axes: "no"
sky: "no"
selectionMode: "no"
editModeNotifications: "yes"
objectlist: home.json
lock_camera: "no"
camera_position:
  x: 609.3072605703628
  "y": 905.5330092468828
  z: 376.66437610591277
camera_rotate:
  x: -1.0930244719682243
  "y": 0.5200808414019678
  z: 0.7648717152512469
camera_target:
  x: 37.36890424945437
  "y": 18.64464320782064
  z: -82.55051697031719
zoom_areas:
  - zoom: ""
north:
  x: 0
  z: -1
overlay: "no"
overlay_bgcolor: transparent
overlay_fgcolor: black
overlay_alignment: top-left
overlay_width: "33"
overlay_height: "20"
object_groups:
  - object_group: RoundTable
    objects:
      - object_id: Round_table_1
      - object_id: Round_table_2
      - object_id: Round_table_3
  - object_group: EntranceDoor
    objects:
      - object_id: Door_9
      - object_id: Door_7
      - object_id: Door_5
entities:
  - entity: light.sengled_e21_n1ea_lumiere_4
    type3d: light
    object_id: Lumiere_Server_room
    light:
      lumens: "800"
  - entity: light.sengled_e21_n1ea_lumiere_5
    type3d: light
    object_id: Lumiere_Chambre_1
    light:
      lumens: "800"
  - entity: light.sengled_e21_n1ea_lumiere_6
    object_id: Lumiere_Chambre_2
    type3d: light
    light:
      lumens: "800"
  - entity: light.hubz_zigbee_husbzb_1_salon
    type3d: light
    object_id: Lumiere_Salon
    light:
      lumens: "800"
  - entity: media_player.sony_kdl_50w790b
    action: more-info
    object_id: Sony_KDL_50W790B

Hello @mgrenier25, what do you want achieve when clicking on the TV ? Have you tried the gesture entity type ?

I’m just trying to have it open the more info window, I didn’t try the gesture one as I have no idea what I need to put in the domain and service fields.

First you have to always put a 3d type for an entity (in this case I’ve put text):

  - entity: media_player.lg_webos_smart_tv
    action: more-info
    type3d: text
    text: {}
    object_id: Flat_TV_4

second (and this I cannot remember why), you have to put the option:

click: "yes"

in the appearance section. The double click is not working

nope, still nothing, where can I find more info about what I have to enter in the domain and service fields with the gesture thingy?

That is weird I tested it in my card and it seemed to work. Once you have finished editing (you need to get out of the editing mode, clicking on done at the dashboard level), a simple click on the flat screen should open the more-info popup on the media player.

The gesture requires the same parameters of an action in an automation, domain is (light, switch, media) and service is whatever action you can do on the domain (turn on, turn off, etc.); entity is the entity on which the action will perform.

Hey does anyone know if you can make the camera auto rotate?

I finally found it, I think the sweet home plugin didn’t export the object name right in the json file
Here’s what it look like in the json :
“Sony_KDL_50W790B” : { “object_id”: “Sony_KDL_50W790B” },
But here’s the actual object name : Sony_KDL_50W790B_1_2
There is nothing else listed about a Sony TV in the json file.
Pretty weird

Hello @mgrenier25, do you know that you can see the object name by double clicking on the object when you are in edit mode on the card ?

2 Likes

hey adizanni is it possible to have the camera auto rotate? also what is your setup looking like these days

@charleslykes3 , what do you mean by auto rotate ?

As it is impossible to match the rendering quality of a floor card based on pictures, I opted for a simplified model where I put bare objects that are representing lights, movement (frames with a picture), heating (with text and colorconditions on floors/wall). Model is loaded very fast and it gives a nice represntation of the home state…