-
|
Hi, Continuing my journey to a working 3D layout... I've gotten my Basement layout (drawn with SH3D) into Inkscape and have added overlays (see svg file below). I can hide/unhide different areas while I'm in Inkscape. I followed this tutorial ( https://www.youtube.com/watch?v=f_3KAPc53hQ&t=614s ) to get the floorplan to show up in HA. However, the overlays are not working consistently in HA. Sometimes they show up when I inspect the code, but using the ID's prior to me changing them. Other times they don't show up at all. The only other hint I have is that the symbol next to the ID is different on mine than in the video Anyone have any ideas? /homeassistant/www/floorplan/home_nasa/Basement-ink-floorplan.css .entitystate-off( Edit YAML code:
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 9 replies
-
|
Ok, Seems part of the problem was the cache needing to be cleared. After a few tries, I've gotten the default actions to work - but the element doesn't toggle the area opacity as the video illustrates. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for pointing that out! A bit of trying it out and now I can post updated code block that inserts way better. |
Beta Was this translation helpful? Give feedback.
-
|
Hello! I don't see that you using this svg, svg * {
position: relative !important;
margin: 0px !important;
max-height: 100vh !important;
width: auto !important;
padding-top: 150px !important;
padding-bottom: 150px !important;
z-index: 0 !important;
}
svg path {
fill: none;
stroke: inherit;
}
#background {
visibility: visible !important;
opacity: 1 !important;
mix-blend-mode: lighten !important;
}
#switch-coverings {
visibility: hidden;
transition: visibility 0s 0.5s, opacity 0.5s linear;
}
.entitystate-on {
visibility: visible !important;
opacity: 1 !important;
transition: opacity 0.5s linear !important;
animation: fade-in 0.75s linear forwards !important;
}
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}Use mix-blend-mode: lighten !important; |
Beta Was this translation helpful? Give feedback.
-
|
By the way, when you are developing a page or need to clear the cache, you should use this setting and you won't have to do it. |
Beta Was this translation helpful? Give feedback.
-
|
Do not use fill or |
Beta Was this translation helpful? Give feedback.








Wow,
Great job learning how to switch images based on time of day... I'm surely going to be modeling my floorplan after that!