Trying to mimick https://sharethelove.io/picture-elements-cards/3d-floorplan but when I make a black png to do the “darkening” and “lightning” but I have two issues.
-
the area just says black
-
the size of the overlayed picture is not scaled the same as the picture-element image (impact differs between safari, opera, google and firefox)
#2 I can kind of live with and add some scaling manually but would like to understand
but #1 is annoying as seen on below image:
Notice the black box in upper right - that should just be transparent.
My card setup is as follows:
- title: Overview
panel: true
cards:
- type: vertical-stack
cards:
- type: custom:plan-coordinates
- type: picture-elements
image: /local/floorplan/groundfloor.png
elements:
- type: image
entity: group.kitchen_lights
tap_action:
action: toggle
image: /local/floorplan/dark_kitchen.png
state_filter:
"off": opacity(50%)
"on": opacity(1%)
style:
left: 67%
top: 22%
full config can be seen at https://github.com/maxandersen/hass.