Share your Floorplan

@systmworks Thanks for the link. It seems that they work the same. With the site I posted you also work on the normal (2D) mode and after it you can render 3D views.

When using paintings on the wall you do need to set the elevation, but when you’re placing a book on a table or a wall mounted basin I didn’t have to do it.

They may work the same, but the pricing is better in favor of Sweet Home 3D. If you hurry you can still get it for free. And the libraries are huge.

Here is my floor plan so far. Currently working on the fan animations but can’t get the fans to stay in one place.

I wouldn’t stress about hurrying… its been free for many years now!

This is my approach so far - Still work in progress:

5 Likes

If you are having trouble with fans spinning around your house (instead of on the spot) add this line to your .fan-on section in the floorplan.css

transform-box: fill-box;

Example:

.fan-on {
  fill: #000000 !important;
  -webkit-animation: rotation 3s infinite linear;
  transform-box: fill-box;
}
5 Likes

Edit: Removed the lower layer that produces the yellow and it works. Thanks for your help.

That works better. It’s not across the entire screen and one fan works while the other doesn’t. The orange fan on the bottom right should be in the room that is yellowish, while it does spin correctly just in the wrong spot.

#fan\.ge_12730_fan_control_switch_level	, #fan\.ge_12730_fan_control_switch_level_2 {
  transform-origin: center;
}

.fan-on {
  fill: #ff8a65 !important;
  -webkit-animation: rotation 2s infinite linear;
  transform-box: fill-box;
}

.fan-off {
  fill: #424242 !important;
}

Hi @systmworks

How have you rendered your 3d? What are your dimensions i.e. width and height in pixels? The quality? Basically every setting to render the 3d image in sweethome 3d.

Thanks.

While there are some optional settings you can adjust, I just do the following:

  1. Drag the divider line up near the top of the screen so the 3D preview is displayed on most of the screen (this seems to set the vertical resolution of the render).

  2. Click 3D View menu -> Create Photo

  3. Click the Create Button

Done.
I never adjust the resolution settings - on mine its currently 1920 x 1141 (but the 1141 varies slightly based on how high I dragged the dividing line).

I leave Quality on Best (why would you not??) - and Lens as Default (but feel free to try others).

I do recommend you play with the time of day as that will affect the shadows and brightness of the rendered image. I like the shadows around 9 AM and 3 PM.

Be sure you have set your geographic location and timezone (under Plan -> Modify Compass) or else the lighting and shadows will be wrong (possibly completely eg night time instead of day - if you get a pitch black render).

2 Likes

Thanks @systmworks

Quick question I want to display the temperature in the room how can I do that?

Just wanted to say I came across this thread and was inspired. I’ve decided to give up HASSdashboard and go with floorplan instead. Total WAF as well :slight_smile: I’ve fleshed out my floorplan and current setup using floorplanner.com and then start with Inkscape doing as someone suggested with layers.

Can’t wait to get started once I’m done everything image-wise.

EDIT: Scale is important. The “larger” items will be interactive whereas the “smaller” items will simply light up when active.

How did you display the temperature units? I cannot get it to work my text_template is as follows:

text_template: '${entity.state ? entity.state + " °C" : "undefined"}'

All I get is the numerical value not the °C

Here it is for me where I need to:

  1. Display W after some variable:
    text_template: '${entity.state ? entity.state + " w": "undefined"}'
    class_template: 'return "font-3";'

  2. Display °C after some variable:
    text_template: '${entity.state ? entity.state + "°C": "undefined"}'
    class_template: 'return "font-3";'

  3. Display the rounded value of a decimal number, in this case MegaBytes:
    text_template: '${entity.state ? Math.ceil(entity.state) + "MB": "undefined"}'
    class_template: 'return "font-1";'

You can see some of it’s results here, for some ° and w:
*sorry I hovered with the mouse too long before the snapshot and the info label popped up
Capture

And here, for some MB:
Capture%202

2 Likes

Thanks a lot that did the trick !!

Hello, I have a strange issue with my floorplan.
When I’m using input_boolean they automaticly turn off just after they have been turned on. This doesn’t happen with lights or switchs.
Does anyone experience the same trouble ?
Thank you.

Short Answer: NO, nobody is experiencing your trouble, if he did, you most likely would have been able to find the answer in this long thread by now.

Long Answer: Please be more specific. We will be able to help you even more if you can take the time and give us some example of your troubles. For example:

  1. I did that
  2. I edited that and gave that thing this name
  3. After that, I put that there, saved and closed
  4. When I push on that, it does that but it also does this!

I don’t want it to behave like that !, I need it to do only this ! … :slight_smile: … you get it

Side Note: I know that in your head everything makes sense, all stars are aligned but “it doesn’t work as it should!”. Damn, what can I do?, can you guys help me? … and we are like , what ? … :slight_smile:

yes, have the same problem. Seems to be related to this: https://github.com/pkozul/ha-floorplan/issues/29
They have seemed to fix it, but I don’t know how to implement the lines correctly.
A workaround is to use a script to turn on/off what you want. You will get an error message script is already running in the log thou. Please let me know if you figure out how to implement the lines :slight_smile:
Does not seem to be a problem with hue lights or zwave components.

Thanks Zepixir, i will have a look at it. Will update you if i find a workaround.

I am having a similar issue with my animations on my fans. Seems like they are using their origin location as the outside diameter and then rotating around the center of the SVG.

Floorplan.yaml

    - name: Fan
     entities:
      - switch.living_room_fan
     states:
       - state: 'on'
         class: 'fan-on'
       - state: 'off'
         class: 'fan-off'

Floorplan.css

switch\.living_room_fan {
transform-origin: center;
}

.fan-on {
fill: #ff8a65 !important;
-webkit-animation: rotation 2s infinite linear;
}

.fan-off {
fill: #424242 !important;
}

SVG

path
id=“switch.living_room_fan”
d=“… z” />

Anyone have any ideas? I’m sure it’s something stupid, but at this point I’ve looked at it too long to see it.

Thanks!

You tried to add transform-box: fill-box; as already mention more than once latelely here in this tread?