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

Miscellaneous errors in the registry #133

Closed mcv93us closed 1 year ago

mcv93us commented 2 years ago

Checklist:

Release with the issue: 1.5.0 Last working release (if known): 1.4.4 Browser and Operating System: Google Chrome: 105.0.5195.127 (Build ufficiale) (a 64 bit) Windows 10 Home 21H2 Build: 19044.2075

Description of problem: After the last update I got these errors in the HA log:


Source: components/system_log/__init__.py:227
First occurred: 18:24:39 (10 occurrences)
Last logged: 18:25:21

https://xxx.duckdns.org/hacsfiles/floor3d-card/floor3d-card.js?hacstag=361776538150:2159:2535 Uncaught TypeError: Cannot add property hideLevelsMenu, object is not extensible
https://xxx.duckdns.org/hacsfiles/floor3d-card/floor3d-card.js?hacstag=361776538150:2159:2535 Uncaught TypeError: Cannot add property extralightmode, object is not extensible
https://xxx.duckdns.org/hacsfiles/floor3d-card/floor3d-card.js?hacstag=361776538150:2159:2535 Uncaught TypeError: Cannot add property show_axes, object is not extensible
https://xxx.duckdns.org/hacsfiles/floor3d-card/floor3d-card.js?hacstag=361776538150:2159:2535 Uncaught TypeError: Cannot assign to read only property 'camera_position' of object '#<Object>'
https://xxx.duckdns.org/hacsfiles/floor3d-card/floor3d-card.js?hacstag=361776538150:2159:2535 Uncaught TypeError: Cannot assign to read only property 'camera_rotate' of object '#<Object>' ```

<!--
Explain what the issue is, and how things should look/behave. If possible provide a screenshot with a description.
-->

**Javascript errors shown in the web inspector (if applicable):**

``` FLOOR3D-CARD   Version 1.5.0    
floor3d-card.js?hacstag=361776538150:2262 New Card
floor3d-card.js?hacstag=361776538150:2262 floor3d-card: Set Config Start
floor3d-card.js?hacstag=361776538150:2262 floor3d-card: Set Config End
floor3d-card.js?hacstag=361776538150:2262 First updated start
floor3d-card.js?hacstag=361776538150:2262 Start Build Renderer
floor3d-card.js?hacstag=361776538150:2262 Max Texture Image Units: 16
floor3d-card.js?hacstag=361776538150:2262 Max Texture Image Units: number of lights casting shadow should be less than the above number
floor3d-card.js?hacstag=361776538150:2262 Path: /local/home2/
floor3d-card.js?hacstag=361776538150:2262 End Build Renderer
floor3d-card.js?hacstag=361776538150:2262 First updated end
floor3d-card.js?hacstag=361776538150:2333 Material loaded start
floor3d-card.js?hacstag=361776538150:2333 Material loaded end
floor3d-card.js?hacstag=361776538150:2262 Object loaded start
floor3d-card.js?hacstag=361776538150:2262 Ïnit Objects, Levels and Raycasting
floor3d-card.js?hacstag=361776538150:2262 Found level 0
floor3d-card.js?hacstag=361776538150:2262 End Init Objects. Number of levels found: 1
floor3d-card.js?hacstag=361776538150:2262 Shadow On
floor3d-card.js?hacstag=361776538150:2333 Add Objects Start
floor3d-card.js?hacstag=361776538150:2333 Add 3D Object End
floor3d-card.js?hacstag=361776538150:2262 Object loaded end
floor3d-card.js?hacstag=361776538150:2262 Show canvas
floor3d-card.js?hacstag=361776538150:2262 Init Sky
floor3d-card.js?hacstag=361776538150:2262 Init Ground
floor3d-card.js?hacstag=361776538150:2262 Init Sun
floor3d-card.js?hacstag=361776538150:2262 Resize canvas start
floor3d-card.js?hacstag=361776538150:2262 Resize canvas end
floor3d-card.js?hacstag=361776538150:2262 Resize canvas start
floor3d-card.js?hacstag=361776538150:2262 Resize canvas end
floor3d-card.js?hacstag=361776538150:2262 New Card
floor3d-card.js?hacstag=361776538150:2262 floor3d-card: Set Config Start
floor3d-card.js?hacstag=361776538150:2262 floor3d-card: Set Config End
floor3d-card.js?hacstag=361776538150:2262 First updated start
floor3d-card.js?hacstag=361776538150:2262 Start Build Renderer
floor3d-card.js?hacstag=361776538150:2262 Max Texture Image Units: 16
floor3d-card.js?hacstag=361776538150:2262 Max Texture Image Units: number of lights casting shadow should be less than the above number
floor3d-card.js?hacstag=361776538150:2262 Path: /local/home2/
floor3d-card.js?hacstag=361776538150:2262 End Build Renderer
floor3d-card.js?hacstag=361776538150:2262 First updated end
floor3d-card.js?hacstag=361776538150:562 Start editor config
floor3d-card.js?hacstag=361776538150:562 End editor config
floor3d-card.js?hacstag=361776538150:562 Should Update start
floor3d-card.js?hacstag=361776538150:2333 Material loaded start
floor3d-card.js?hacstag=361776538150:2333 Material loaded end
floor3d-card.js?hacstag=361776538150:2262 Resize canvas start
floor3d-card.js?hacstag=361776538150:2262 Resize canvas end
floor3d-card.js?hacstag=361776538150:2262 Object loaded start
floor3d-card.js?hacstag=361776538150:2262 Ïnit Objects, Levels and Raycasting
floor3d-card.js?hacstag=361776538150:2262 Found level 0
floor3d-card.js?hacstag=361776538150:2262 End Init Objects. Number of levels found: 1
floor3d-card.js?hacstag=361776538150:2262 Shadow On
floor3d-card.js?hacstag=361776538150:2333 Add Objects Start
floor3d-card.js?hacstag=361776538150:2333 Add 3D Object End
floor3d-card.js?hacstag=361776538150:2262 Object loaded end
floor3d-card.js?hacstag=361776538150:2262 Show canvas
floor3d-card.js?hacstag=361776538150:2262 Init Sky
floor3d-card.js?hacstag=361776538150:2262 Init Ground
floor3d-card.js?hacstag=361776538150:2262 Init Sun
floor3d-card.js?hacstag=361776538150:2262 Resize canvas start
floor3d-card.js?hacstag=361776538150:2262 Resize canvas end
12floor3d-card.js?hacstag=361776538150:562 Should Update start
floor3d-card.js?hacstag=361776538150:2262 Resize canvas start
floor3d-card.js?hacstag=361776538150:2262 Resize canvas end
12floor3d-card.js?hacstag=361776538150:562 Should Update start
floor-3d:1 Autofocus processing was blocked because a document already has a focused element.
floor3d-card.js?hacstag=361776538150:2262 Resize canvas start
floor3d-card.js?hacstag=361776538150:2262 Resize canvas end
floor3d-card.js?hacstag=361776538150:2262 Resize canvas start
floor3d-card.js?hacstag=361776538150:2262 Resize canvas end
floor3d-card.js?hacstag=361776538150:2262 Resize canvas start
floor3d-card.js?hacstag=361776538150:2262 Resize canvas end
floor3d-card.js?hacstag=361776538150:2262 Resize canvas start
floor3d-card.js?hacstag=361776538150:2262 Resize canvas end
floor3d-card.js?hacstag=361776538150:2262 Resize canvas start
floor3d-card.js?hacstag=361776538150:2262 Resize canvas end
floor3d-card.js?hacstag=361776538150:2262 Resize canvas start
floor3d-card.js?hacstag=361776538150:2262 Resize canvas end
21floor3d-card.js?hacstag=361776538150:562 Should Update start
floor3d-card.js?hacstag=361776538150:2262 Resize canvas start
floor3d-card.js?hacstag=361776538150:2262 Resize canvas end
2floor3d-card.js?hacstag=361776538150:562 Should Update start
floor3d-card.js?hacstag=361776538150:2262 Resize canvas start
floor3d-card.js?hacstag=361776538150:2262 Resize canvas end
floor3d-card.js?hacstag=361776538150:2262 Resize canvas start
floor3d-card.js?hacstag=361776538150:2262 Resize canvas end
16floor3d-card.js?hacstag=361776538150:562 Should Update start
floor3d-card.js?hacstag=361776538150:2262 Resize canvas start
floor3d-card.js?hacstag=361776538150:2262 Resize canvas end
floor3d-card.js?hacstag=361776538150:2262 Resize canvas start
floor3d-card.js?hacstag=361776538150:2262 Resize canvas end ```

**Additional information:**

``` type: custom:floor3d-card
path: /local/home2/
name: Casa mia in 3D
objfile: home.obj
mtlfile: home.mtl
objectlist: home.json
backgroundColor: '#000000'
camera_position:
  x: -239.5826887510645
  'y': 997.1224767751428
  z: 518.5425447980646
camera_rotate:
  x: -0.9212043959201786
  'y': -0.2519542916594305
  z: -0.31713439680491873
globalLightPower: sensor.global_light_power
entities:
  - entity: binary_sensor.sensore_ingresso
    type3d: color
    object_id: Porta_doppia_ingresso_1
    colorcondition:
      - state: 'on'
        color: '#ff0000'
      - state: 'off'
        color: '#00ff00'
  - entity: binary_sensor.sensore_cortile
    type3d: color
    object_id: Porta_finestra_doppia_cortile_1
    colorcondition:
      - state: 'on'
        color: '#ff0000'
      - state: 'off'
        color: '#00ff00'
  - entity: binary_sensor.sensore_movimento_corridoio
    type3d: color
    object_id: Porta_a_vetri_cucina_1
    colorcondition:
      - state: 'on'
        color: '#ff0000'
      - state: 'off'
        color: '#00ff00'
  - entity: light.sonoff_10004bc553_1
    type3d: light
    object_id: Lampadario_ventilatore_1
    light:
      lumens: '650'
      vertical_alignment: bottom
  - entity: fan.sonoff_10004bc553
    type3d: gesture
    object_id: <Ventola>
    gesture:
      domain: homeassistant
      service: toggle
  - entity: switch.sonoff_100091ae1a
    type3d: light
    object_id: Lampada_da_scrivania_3
    light:
      lumens: '600'
      vertical_alignment: top
  - entity: switch.tv_onoff
    type3d: gesture
    object_id: <Televisore>
    gesture:
      domain: homeassistant
      service: toggle
  - entity: switch.stereo_onoff
    type3d: gesture
    object_id: <Stereo>
    gesture:
      domain: homeassistant
      service: toggle
  - entity: switch.desktop_pc
    type3d: gesture
    object_id: <PC_Azuba>
    gesture:
      domain: homeassistant
      service: toggle
  - type3d: light
    object_id: <Strip_led>
    light:
      lumens: '450'
      vertical_alignment: top
    entity: light.strip_led_tv
  - entity: switch.sonoff_1000642781
    type3d: light
    object_id: <Luce_corridoio>
    light:
      lumens: '650'
      vertical_alignment: bottom
  - entity: switch.sonoff_1000a25d32
    type3d: gesture
    object_id: <Radio_cucina>
    gesture:
      domain: homeassistant
      service: toggle
  - entity: switch.sonoff_1000d0290d_1
    type3d: gesture
    object_id: <USB_Caricabatterie>
    gesture:
      domain: homeassistant
      service: toggle
  - entity: switch.sonoff_100126a9d6_1
    type3d: light
    object_id: <USB_Scrivania>
    light:
      lumens: '450'
      vertical_alignment: bottom
  - entity: switch.sonoff_10006a5477
    type3d: gesture
    object_id: <Misura_consumi>
    gesture:
      domain: homeassistant
      service: toggle
  - entity: switch.sonoff_1000333b9a
    type3d: gesture
    object_id: <Presa_salotto>
    gesture:
      domain: homeassistant
      service: toggle
  - entity: switch.sonoff_100032b402
    type3d: gesture
    object_id: <Presa_giardino>
    gesture:
      domain: homeassistant
      service: toggle
  - entity: script.apriportone
    type3d: gesture
    object_id: <Citofono>
    gesture:
      domain: script
      service: turn_on
  - entity: switch.climatizzatore_on_off
    type3d: gesture
    object_id: <Climatizzatore>
    gesture:
      domain: homeassistant
      service: toggle
  - entity: switch.shelly_cucina
    type3d: gesture
    object_id: <Microonde>
    gesture:
      domain: homeassistant
      service: toggle
  - entity: switch.shelly_bagno
    type3d: gesture
    object_id: Lavatrice_2
    gesture:
      domain: homeassistant
      service: toggle
  - entity: humidifier.midea_dehumidifier_23079741499949
    type3d: gesture
    object_id: <Deumidificatore>
    gesture:
      domain: homeassistant
      service: toggle
  - entity: camera.octopi
    type3d: camera
    object_id: <Octoprint>
    gesture:
      domain: homeassistant
      service: update_entity
    action: overlay
  - entity: camera.escam_qf001
    type3d: camera
    object_id: <Webcam_salotto>
    gesture:
      domain: homeassistant
      service: update_entity
    action: overlay
  - entity: camera.digicom_ip_cam
    type3d: camera
    object_id: <Digicom_ip_cam>
    gesture:
      domain: homeassistant
      service: update_entity
    action: overlay
  - entity: camera.camera2
    type3d: camera
    object_id: Cilindro_1
    gesture:
      domain: homeassistant
      service: update_entity
    action: overlay
  - entity: fan.sonoff_10004bc553
    type3d: rotate
    object_id: <Ventola>
    rotate:
      axis: 'y'
      round_per_second: '1'
  - entity: binary_sensor.sensore_cortile
    type3d: door
    object_id: <Porta_cortile>
    door:
      doortype: swing
      side: left
      direction: outer
      degrees: '90'
  - entity: binary_sensor.sensore_ingresso
    type3d: door
    object_id: <Porta_ingresso>
    door:
      doortype: swing
      side: left
      direction: inner
      degrees: '90'
object_groups:
  - object_group: Ventola
    objects:
      - object_id: Ventilatore_da_soffitto_2
      - object_id: Ventilatore_da_soffitto_3
      - object_id: Ventilatore_da_soffitto_1
  - object_group: Televisore
    objects:
      - object_id: TV_6
      - object_id: TV_5
      - object_id: TV_3
  - object_group: Stereo
    objects:
      - object_id: Mini_stereo_1
      - object_id: Mini_stereo_2
      - object_id: Mini_stereo_11
      - object_id: Mini_stereo_12
  - object_group: PC_Azuba
    objects:
      - object_id: PC_Tower_1
      - object_id: PC_Tower_2
      - object_id: PC_Tower_3
      - object_id: PC_Tower_4
      - object_id: PC_Tower_6
      - object_id: PC_Tower_20
      - object_id: PC_Tower_21
      - object_id: PC_Tower_7
      - object_id: PC_Tower_17
      - object_id: PC_Tower_9
      - object_id: PC_Tower_10
      - object_id: PC_Tower_11
  - object_group: Strip_led
    objects:
      - object_id: Led_striplight_1
      - object_id: Led_striplight_2
  - object_group: Luce_corridoio
    objects:
      - object_id: Lampada_da_esterno_7
      - object_id: Lampada_da_esterno_1
      - object_id: Lampada_da_esterno_3
      - object_id: Lampada_da_esterno_4
      - object_id: Lampada_da_esterno_5
      - object_id: Lampada_da_esterno_6
      - object_id: Lampada_da_esterno_2
  - object_group: Radio_cucina
    objects:
      - object_id: Radio_1
      - object_id: Radio_11
      - object_id: Radio_10
      - object_id: Radio_15
      - object_id: Radio_2
      - object_id: Radio_8
      - object_id: Radio_14
      - object_id: Radio_12
      - object_id: Radio_3
  - object_group: USB_Caricabatterie
    objects:
      - object_id: Presa_a_muro_tipo_C_USB_caricabatterie_2
      - object_id: Presa_a_muro_tipo_C_USB_caricabatterie_3
  - object_group: USB_Scrivania
    objects:
      - object_id: Lampada_da_lavoro_1
      - object_id: Lampada_da_lavoro_2
      - object_id: Lampada_da_lavoro_3
  - object_group: Misura_consumi
    objects:
      - object_id: Interruttore_luce_misura_consumi_2
      - object_id: Interruttore_luce_misura_consumi_3
  - object_group: Presa_salotto
    objects:
      - object_id: Presa_a_muro_tipo_C_presa_salotto_2
      - object_id: Presa_a_muro_tipo_C_presa_salotto_3
  - object_group: Presa_giardino
    objects:
      - object_id: Presa_a_muro_tipo_C_presa_giardino_2
      - object_id: Presa_a_muro_tipo_C_presa_giardino_3
  - object_group: Climatizzatore
    objects:
      - object_id: mobile_air_conditioner_3
      - object_id: mobile_air_conditioner_2
      - object_id: mobile_air_conditioner_4
  - object_group: Deumidificatore
    objects:
      - object_id: deumidificatore_1
      - object_id: deumidificatore_2
      - object_id: deumidificatore_3
  - object_group: Octoprint
    objects:
      - object_id: Stampante_e_scanner_1
      - object_id: Stampante_e_scanner_2
      - object_id: Stampante_e_scanner_3
  - object_group: Webcam_salotto
    objects:
      - object_id: CCTV_escam_3
      - object_id: CCTV_escam_2
  - object_group: Porta_cortile
    objects:
      - object_id: Porta_finestra_doppia_cortile_6
      - object_id: Porta_finestra_doppia_cortile_7
      - object_id: Porta_finestra_doppia_cortile_5
  - object_group: Porta_ingresso
    objects:
      - object_id: Porta_doppia_ingresso_4
      - object_id: Porta_doppia_ingresso_3
  - object_group: Digicom_ip_cam
    objects:
      - object_id: CCTV_digicom_2
      - object_id: CCTV_digicom_3
  - object_group: Citofono
    objects:
      - object_id: Citofono_5
      - object_id: Citofono_4
      - object_id: Citofono_6
  - object_group: Microonde
    objects:
      - object_id: Microonde_1
      - object_id: Microonde_3
      - object_id: Microonde_6
      - object_id: Microonde_7
      - object_id: Microonde_8
shadow: 'yes'
sky: 'yes'
zoom_areas:
  - zoom: ''
lock_camera: 'no'
editModeNotifications: 'yes'
header: 'yes'
click: 'no' ```
adizanni commented 2 years ago

Hey @mcv93us , is this causing any problem in the card ? If yes can you describe the wrong behyavior ?

mcv93us commented 2 years ago

No apparent problems in the visualization, the errors appear to me only if I go to edit by selecting "show code editor" instead with the visual editor no error appears in the log.

adizanni commented 2 years ago

Of course here we have a say: there is no smoke without fire, but, I cannot reproduce it and as far as you are not impacted by this bug I prefer not to spend too much time on it. I will let it open in case others are raising similar problems and are able to let me reproduce it

mcv93us commented 2 years ago

Ok. I don't know if it can help but I exported the house from Sweet Home 3D v 7.0.2: I saw that your export plugin was not giving me any problems even though it was compiled for the previous version 6.6, I hope it is not.