For any brave ‘floorplanners’ out there, feel free to try the new version (v1.0.7), which is currently in its own branch on GitHub. You just need to update the one file:
To get your camera images showing in the floorplan, simply create a <rect> (of the desired size) in your SVG for each camera you want to display. As always, make sure the <rect> IDs in the SVG match up with the entity IDs of your cameras in HA. For example:
Just ran a quick click-thru on everything and got weird looks and questions (“Dad, why did the hall light just turn on and off? Did you break something?”) from the kids and wife as to why lights were turning on and off throughout the house, so I would say it was a success.
@atomicpapa Thanks for checking that. Will let this settle for a few days, and then this version can be pushed to the main branch and become the official release.
BTW, there is another feature in the new version I should also mention. You can now display a single HA entity in multiple places on your floorplan. This allows you to, for example, expose a single camera in the following ways:
as text to display the current state (i.e. ‘idle’)
as an icon to show where the camera is mounted on your house
as an image to show the live camera feed
Up until now, Floorplan has assumed a 1-to-1 mapping of your HA entities to their SVG elements, matching them using their entity IDs.
This still works, and nothing has changed in this regard. The difference now is that you can use the floorplan config to override which SVG element should be tied to your HA entity. For example, my driveway camera is shown twice on my floorplan, as shown by the red boxes below:
To get this working, below is what my floorplan config looks like. As you can see, my driveway camera appears in two different groups. The first group displays the camera as a small icon. The second group displays the camera as an image snapshot. The second group shows how you can override the SVG element that the camera should be tied to, in this case, it will look for <rect id="camera.driveway.image"> in the SVG file.
For the “multiple places” entities, I really like that feature. Now I can remove my fake templates I used to duplicate some switches
For the camera images, with my setup it works fine in Google Crome, works but throws an error in Safari (MacOs and iOS 11): TypeError: undefined is not an object (evaluating 'Object.keys(list)')
Managed to use mjpeg platform for my cameras and the corresponding .image element is now showing as a snaphot picture in the and can be click to pop-up live camera stream.
That snapshot picture is updated every time the floorplan panel is started/re-visited/reloaded though.
Is it how it supposed to work? Just snapshot and not live video?
Also, that snapshot won’t show in iphone, not even the corresponding .
I can live video stream via camera url as background on the floorplan panel for all my cameras, but the Amcrest only shows up on iphone.
the xx’s should show the media title, but the test one I did only shows “playing”. Clicking on the icon for the google home/mini or Chromecast will pop up the window to pause/play, control volume, etc. and it works as intended In my .yaml config I have the following:
- name: Playing Now
entities:
- entity: media_player.gorgon
element: media_player.gorgon.media_title
media_player_template: '${entity.attributes.media_title}'
I posted my code in Share Your Projects/Fully Kiosk Browser:
It can be hit-n-miss depending on the hardware/os:
iphone 7/app/browser, all live stream background works in the panel, floorplan won’t show in card at all.
windows 10/chrome, all but amcrest works in panel, floorplan showed in card but no background.
Samsung Tab/Chrome, all but amcrest works in panel, all but amcrest works in card but some video cut off (could be the card/svg size)