I noticed that doing edit the yaml to get your floor plan so you can use it on Espresence is not an easy task. As I already had my plan on SweetHome 3D i decided to make a converter. It’s on early stages, but it worked fine with my file.
It worked fine for my houseplan. Its all negative offsets on the vertical plane which slightly annoys me but doesn’t hinder it working at all. It was very easy to add back in my node locations and everything seems to be working great with it. I have been using the map generated with your script over the one I made for the last few days and will report back if I notice any problems. Overall, I’m pretty impressed with it, nice work!
Its all negative offsets on the vertical plane which slightly annoys me but doesn’t hinder it working at all.
The thing is that Y axis is top to bottom on SweetHome 3D and the other way on Espresence. Because of this the map on Espresence was mirrored. To fix this I just inverted the Y axis (This is why you see them with negative numbers). I do not think would be too hard to improve to make them positive but dit not bother as I did not notice any side effect or problem.
Hey there @9and3r, just found this project as I needed to do the same thing (thank you, it’s ace!) I’ve sent you a pull-request over on github (Add support for multi-level/floor imports by ciaranj · Pull Request #1 · 9and3r/espresense-plan-helper · GitHub) that adds support for pulling in multi level/floors from sweethome. (One of the commits translates co-ordinates, you may consider that a breaking change, but unfortunately I did things in a bad order so we’d need to un-pick that if it mattered deeply to you.)
Thanks for the pull request. I will try to check and merge it when I get some free time.
Translating co-ordinates sounds good to me as long as the map is on the same orientation as the one on SW3D