floor3d-card
floor3d-card copied to clipboard
Window Cover
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
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
Here is my YAML and 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
`
Hi. Any ideas related to my problem?
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.
Hi @ozzy071988 , You might want to check an issue I have with covers too which was solved using one of the default models. https://github.com/adizanni/floor3d-card/issues/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 :).