Finally got around to setup my floor plan.
Awesome feature! You rock @pkozul
Now i need some more sensors
Green area = Motion Sensor Not Triggered
Finally got around to setup my floor plan.
Awesome feature! You rock @pkozul
Now i need some more sensors
Green area = Motion Sensor Not Triggered
@mcfrojd could you make your svg file available? I tried but it’s somehow not clear how to create it for me, your svg would be a good starting point
Here you go…
(Updated the dropboxfile)
Thanks
What i did:
Thats all folks!!
Just adding my work in progress to the inspirational mix! Really Great project! I was able to add input_booleans, Covers and climates. Really amazing!
Source files can be found in my Repo.
Anyone any luck with showing the status of webcams/cameras?
Mine stay without the entity class…
I too would love to have your file! I almost finished recreating your styling in Inkscape, but then Inkscape crashed and of course, I did not save it…
@Bram_Kragten and @john1 here is my file. I’ve removed some of the effects which are not supported by SVG… I hope it still works!
Thanks! I’ll look into it tonight!
@pkozul Would it be possible to have tabs on the top of the panel, the same as the States panel, so I can have a tab for every floor? Does HASS support this? And could you point me in the right direction? Not at home in the HASS front end…
I am struggling to get floorpan to work and have been trying for the last 2 days without success. I am new to Home Assistant and have done a clean installation of Hassbian on a Raspberry.
I am sure that if I can get a minimalist setup working and be able to view the svg file, I could take it further.
Hi @Fezile
My setup is with “Option 2: Floorplan custom panel”. I hope the next figure will answer your questions 1 and 2. It is the directory tree of folders and files of this component:
As you can see, three files are in the last folder (floorplan) and examples for these can be found in the Github’s repository that you can download.
The file floorplan.yaml should be placed in /home/homeassistant/.homeassistant directory. There is also an example in github. For the custom panel it is also needed a file in its corresponding folder as you can see here:
And again there is an example file in github.
Finally, the part inside configuration.yaml
panel_custom:
- name: floorplan
sidebar_title: Floorplan
sidebar_icon: mdi:home
url_path: floorplan
config: !include floorplan.yaml
I hope I have remembered everything. I don’t know for the “Custom State Card” option, but for the “Custom panel” it is pretty easy. Good luck and ask if you get stuck!
One super important tip I learned is to make sure ALL IDs are lowercase. pretty much make sure all device names in HASS and floorplan are lowercase to avoid a ton of troubleshooting and frustration.
floorplan.yaml (548 Bytes)
I have done as you indicated but the floor plan does not display.
floorplan.yaml
name: Demo Floorplan
image: /local/custom_ui/floorplan/floorplan.svg
stylesheet: /local/custom_ui/floorplan/floorplan.css
groups:
- name: Binary sensors
entities:
- binary_sensor.front_hallway
states:
- state: 'off'
class: 'info-background'
- state: 'on'
class: 'warning-background'
state_transitions:
- name: On to off
from_state: 'on'
to_state: 'off'
duration: 10
That’s what I have, “local” is replaced by HA with “www” … this is my floorplan.yaml …
name: Floorplan
image: /local/custom_ui/floorplan/floorplan.svg
stylesheet: /local/custom_ui/floorplan/floorplan.css
last_motion_entity: sensor.template_last_motion
last_motion_class: last-motion
groups:
- name: Sensors
entities:
- sensor.avglroomtemp
Remember tho’ the actual files must be in /home/homeassistant/.homeassistant/www/custom_ui/floorplan/ ie where the github specifies
I have the same paths as you and @keithh666
Have you mentioned your version of Home Assistant? I think you should have > 0.42
Other than that, I cannot point you in any direction. I have very little knowledge of software development. Sorry!