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

Version 1.5.2 there is no management of the devices #154

Closed zzaal closed 1 year ago

zzaal commented 1 year ago

It is not possible to control devices on the plan. the statuses are displayed correctly, but it is impossible to turn on/off on the plan with the mouse. Now only display and no control.


Logger: frontend.js.latest.202304061 Source: components/system_log/init.py:257 First occurred: 05:10:21 (1 occurrences) Last logged: 05:10:21

http://192.168.0.52:8123/hacsfiles/floor3d-card/floor3d-card.js?hacstag=361776538152:2288:20659 Uncaught TypeError: Cannot read properties of null (reading 'editMode')

adizanni commented 1 year ago

It seems that you jumped directly from 1.5.0 to 1.5.2. Enter once in the editor and save your config. It should work better

zzaal commented 1 year ago

It seems that you jumped directly from 1.5.0 to 1.5.2. Enter once in the editor and save your config. It should work better

No, I used version 1.5.1 and updated it yesterday to 1.5.2. I am creating a new card with a plan, but it is also impossible to manage devices on it. Double tap anywhere on the plan causes this error in log: Uncaught TypeError: Cannot read properties of null (reading 'editMode')


Example of a new card with a plan

type: custom:floor3d-card
path: /local/Living/
name: Home1
objfile: home.obj
lock_camera: 'no'
header: 'no'
click: 'no'
overlay: 'no'
backgroundColor: Black
hideLevelsMenu: 'no'
globalLightPower: '0.3'
shadow: 'yes'
extralightmode: 'no'
show_axes: 'no'
sky: 'no'
overlay_bgcolor: transparent
overlay_fgcolor: black
overlay_alignment: top-left
overlay_width: '33'
overlay_height: '20'
north:
  x: 0
  z: -1
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
object_groups: []
entities:
  - entity: light.living_ceiling_ambilight
    type3d: light
    object_id: Living_Ceiling_Ambi_1
    light:
      lumens: '1000'
zoom_areas: []
mtlfile: home.mtl
objectlist: home.json
selectionMode: 'no'
editModeNotifications: 'yes'
adizanni commented 1 year ago

Ok, and now the uncaught error is ?

zzaal commented 1 year ago

I dont understand you, sorry...

adizanni commented 1 year ago

I was asking you what was the error in the console, but you already wrote it in the comment, you have still the editMode error

hashmaker1982 commented 1 year ago

here same error , i try come back older version of both ha and floor3dcard , but no image loaded

zzaal commented 1 year ago

on version HA_2023.3.6 and 1.5.1 all worked. Then I upgraded to HA_2023.4.1 and 1.5.2 and now the plan is displayed in Loelace, the devices change their status on the plan only if they are turned on from native cards. On the plan itself, you can't control the devices, only can to see them status. The double tap on the plan gives an error in the HA logs.

adizanni commented 1 year ago

I think I know the root cause, but I cannot fix it before tomorrow, please be patient, ha changed ui objects in 2023.4 and unfortunately they do not have stable API for all needed functions and they make the life of the custom card developers harder and harder

hashmaker1982 commented 1 year ago

here np. i just revert oldest version cause im in setting up the card right now , so i can have the time to do my card perfect. Ty for the awesome work

zzaal commented 1 year ago

Thank you very much! Of course, as soon as you have time, we will wait. Your card is the best, there are no analogues!

hashmaker1982 commented 1 year ago

today i enjoy with vr-glasses and my home project ... awesome walking in my real home but in vr

hashmaker1982 commented 1 year ago

i was thinking : theres a way to pair a lovelace in a 3d object ? example . i want open both cctv cams when i click on a monitor in the 3d model , i already have a button in main view that do it and i think if is possible and how

zzaal commented 1 year ago

THX! 1.5.3. works!!!

adizanni commented 1 year ago

@zzaal, you are fast, my HACS is not yet showing the new release

hashmaker1982 commented 1 year ago

here too confirm that work well ty