Replies: 2 comments 13 replies
-
I am following along with video 1 of 2 (admittedly I am not on to video 2 yet) and have built in some neat lamp auotmations. . . however, I am trying to do the simple changing of the opacity of the gray color layer and I am having issues. I have followed the video to a "t" and I have the entity tied to the css file and can see that the entitystate is changing in the inspector. However, my item is not changing it's opacity. Any suggestions?? Below is my programming for the .css and the .yaml: .CSS file copied from the video: /* All good :/ */ .eintitystate-off{ .YAML for the particular element I'm having issues with:
some of my other .YAML in case that is needed (this is everything starting at the top and leading up to the listing of the elements under "rules": title: Our Floorplan
Below is the last few lines of code after the listing of all the elements:
|
Beta Was this translation helpful? Give feedback.
-
Here is my inspector data: "path style="fill: rgb(203, 203, 203); fill-opacity: 1; stroke: rgb(0, 0, 0); stroke-width: 0.264583px; stroke-linecap: butt; stroke-linejoin: miter; stroke-opacity: 1; opacity: 0.621; cursor: pointer;" d="m 134.31144,142.33802 h 33.97919 v 11.23721 l 80.53335,0.26756 0.80266,120.3987 H 133.77633 Z" id="light-garage-opacity" class="entitystate-on floorplan-hover"><title>Front Room Lamp min_color_temp_kelvin: 2500 Last changed: 1 minute ago You can clearly see the opacity is still a 1 instead of a 0 even though the entitystate is entitystate-on. I'm stumped |
Beta Was this translation helpful? Give feedback.
-
This is the 2. video for ha-floorplan. Stay tuned for part 2, where I'll add more items and logics to the floorplan, the CSS-file and the YAML-code.
Learn how to draw a floorplan in Inkscape, and setup the workspace. Create your first CSS file, and upload it to Home Assistant. Setup ha-floorplan with a fresh floorplan, and create your first entity-trigger with our tap_action and other services. See the first advance example on how to use JavaScript functions to style SVG-elements with properties from the Home Assistant entities (like the rgb-color). And even more.
🗣️💬 I need your input
I've tried another microphone this time. I'm not sure if that improves the experince. Let me know what you guys think...
https://www.youtube.com/watch?v=f_3KAPc53hQ
❤️☕ Support my work:
https://www.buymeacoffee.com/coffeetoexetico
Software used:
➡️ Home Assistant 2022.10.04
➡️ Firefox Developer Edition 105.0b4 (64-bit)
➡️ Inkscape 1.2.1
Beta Was this translation helpful? Give feedback.
All reactions