Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window Cover #116

Open
ozzy071988 opened this issue Jul 29, 2022 · 5 comments
Open

Window Cover #116

ozzy071988 opened this issue Jul 29, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@ozzy071988
Copy link

Hello

I have a problem with the cover object.
I have javascript errors when I select a cover object and a window object:

On card:
Finished with errors: check the console log

On console:

Uncaught Error:
_onLoaded3DMaterials http://192.168.0.10:8123/local/community/floor3d-card/floor3d-card.js:2297
load http://192.168.0.10:8123/local/community/floor3d-card/floor3d-card.js:2191
load http://192.168.0.10:8123/local/community/floor3d-card/floor3d-card.js:2191
floor3d-card.js:2297:3876
_onLoaded3DMaterials http://192.168.0.10:8123/local/community/floor3d-card/floor3d-card.js:2297
load http://192.168.0.10:8123/local/community/floor3d-card/floor3d-card.js:2191
load http://192.168.0.10:8123/local/community/floor3d-card/floor3d-card.js:2191

Uncaught Error:
_onLoaded3DMaterials http://192.168.0.10:8123/local/community/floor3d-card/floor3d-card.js:2297
load http://192.168.0.10:8123/local/community/floor3d-card/floor3d-card.js:2191
load http://192.168.0.10:8123/local/community/floor3d-card/floor3d-card.js:2191
floor3d-card.js:2297:3876
_onLoaded3DMaterials http://192.168.0.10:8123/local/community/floor3d-card/floor3d-card.js:2297
load http://192.168.0.10:8123/local/community/floor3d-card/floor3d-card.js:2191
load http://192.168.0.10:8123/local/community/floor3d-card/floor3d-card.js:2191

Uncaught TypeError: this._controls is undefined
rerender http://192.168.0.10:8123/local/community/floor3d-card/floor3d-card.js:2248
_config_changed http://192.168.0.10:8123/local/community/floor3d-card/floor3d-card.js:568
handleEvent http://192.168.0.10:8123/local/community/floor3d-card/floor3d-card.js:17

Maybe I'm doing something wrong, but I can't find a guide describing all the functions of the card anywhere

@ozzy071988 ozzy071988 added the bug Something isn't working label Jul 29, 2022
@adizanni
Copy link
Owner

Hello @ozzy071988 , the most complete guide is in the welcome page of the githubn repository (here https://github.com/adizanni/floor3d-card/blob/master/README.md).
The cover entity is not always working fine, it depends on how the cover object is composed in SweetHome3d. Please copy paste your yaml configuration and, if possible, your .obj file or sh3d file

@ozzy071988
Copy link
Author

ozzy071988 commented Jul 29, 2022

Here is my YAML and zip

MGOBJ2.zip

type: custom:floor3d-card
path: /local/obj/
name: Plan parteru
shadow: 'yes'
globalLightPower: '0.48'
header: 'yes'
camera_position:
  x: 254.83245408277153
  'y': 1037.7126954855405
  z: 822.2355365053763
camera_rotate:
  x: -0.9864130642131598
  'y': 0.1057507127130396
  z: 0.15824471707595825
camera_target:
  x: 118.49928676985411
  'y': -33.5313738406396
  z: 113.65976377583088
zoom_areas: []
overlay: 'yes'
backgroundColor: green
overlay_bgcolor: blue
overlay_width: '0'
overlay_height: '0'
mtlfile: mg.mtl
objfile: mg.obj
show_axes: 'no'
sky: 'yes'
extralightmode: 'yes'
object_groups: []
entities:
  - entity: input_boolean.swiatlo1
    type3d: light
    object_id: fluorescent_strip_fluorescent_strip_fluorescent_tube_427
    light:
      decay: '2'
      distance: '600'
      shadow: 'yes'
      angle: '180'
      vertical_alignment: middle
  - entity: input_boolean.swiatlo1
    type3d: light
    object_id: fluorescent_strip_fluorescent_strip_fluorescent_tube_431
    light:
      decay: '2'
      distance: '600'
      shadow: 'yes'
      angle: '180'
      vertical_alignment: middle
  - entity: input_boolean.swiatlo1
    type3d: light
    object_id: fluorescent_strip_fluorescent_strip_fluorescent_tube_419
    light:
      decay: '2'
      distance: '600'
      shadow: 'yes'
      angle: '180'
      vertical_alignment: middle
  - entity: input_boolean.swiatlo1
    type3d: light
    object_id: fluorescent_strip_fluorescent_strip_fluorescent_tube_423
    light:
      decay: '2'
      distance: '600'
      shadow: 'yes'
      angle: '180'
      vertical_alignment: middle
  - entity: input_boolean.lampasalon
    type3d: light
    object_id: '693'
    light:
      decay: '2'
      distance: '600'
      shadow: 'yes'
      angle: '180'
      vertical_alignment: middle
      lumens: '1300'
  - entity: input_boolean.lampakuchnia
    type3d: light
    object_id: '697'
    light:
      decay: '2'
      distance: '600'
      shadow: 'yes'
      angle: '180'
      vertical_alignment: middle
  - entity: input_boolean.lampahall
    type3d: light
    object_id: '701'
    light:
      decay: '2'
      distance: '600'
      shadow: 'yes'
      angle: '180'
      vertical_alignment: middle
  - entity: input_boolean.lampakotlownia
    type3d: light
    object_id: '705'
    light:
      decay: '2'
      distance: '600'
      shadow: 'yes'
      angle: '180'
      vertical_alignment: middle
  - entity: input_boolean.tvsalon
    type3d: color
    object_id: '410'
    action: overlay
    colorcondition:
      - state: 'off'
        color: black
  - entity: input_boolean.tvsalon
    type3d: light
    object_id: '410'
    light:
      color: '#0e4e93'
      lumens: '300'
      decay: '0'
      distance: '0'
      shadow: 'yes'
      vertical_alignment: middle
  - entity: input_number.roleta1
    object_id: sweethome3d_opening_on_rail_1_Roller_Shutter_back_179_266_48
    type3d: cover
    cover:
      pane: sweethome3d_opening_on_rail_1_Roller_Shutter_back_179_266_48

`

@ozzy071988
Copy link
Author

Hi.
Any ideas related to my problem?

@adizanni
Copy link
Owner

adizanni commented Aug 8, 2022

Hello @ozzy071988, I gave you some illusion that I could work at the issue rapidly but I'm having the hardest time to dedicate to the card. I'm now going to holidays and I hope that when back (end of August) I will find time to get back at it (fix the problems and work to v2.0). Hope you will not abandon.

@diamant-x
Copy link

Hi @ozzy071988 ,
You might want to check an issue I have with covers too which was solved using one of the default models.
#97
I would recommend you try get it working first with the same model described there, and then try to use another model as most of the issues seem to be related to the 3D model itself, rather than the integration.

Just my 5 cents to try to help :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants