adizanni / ExportToHASS

Sweethome3D Plugin for Home Assistant Export
GNU General Public License v3.0
52 stars 5 forks source link

Limit of objects? #4

Closed 0nikola1 closed 2 years ago

0nikola1 commented 3 years ago

Is there some limit of objects to export? I get 1002 objects exported when I try to export

adizanni commented 3 years ago

Hello Nikola, I do not get if you have an error or not ? I do not think there Is a limit on the number of objects that can be exported

0nikola1 commented 3 years ago

I just can't find object, I add few more objects and export again and it still have 1002 lines in home.json I will try to check temp files or something

0nikola1 commented 3 years ago

It is lights that I am adding, is there something specific with lights? I tried to add a few more after the first one and now all of them are missing, only 1 worked fine.

0nikola1 commented 3 years ago

I tried again and when I add only lights, even of different colors only 1 of them is exported. So it isn't limit of object but something with lights. Is there a better way to use a light source? image

{ "Blue_light_source_1" : { "object_id": "Blue_light_source_1" } }

adizanni commented 3 years ago

Hello Nikola, lights sources in Sweethome3d are not used inside the floor3d card. For the card you just need to specify the object that will act as the source of the light (such as a lamp object). I've not tested the export of light sources also because they have no used in the card. I will test it but please try to remove the light source from your model

0nikola1 commented 3 years ago

Ok, I will use different object then, it’s weird to me as If I place 1 light it exports and it works but for multiple it doesn’t