ExperienceLovelace / ha-floorplan

Bring new life to Home Assistant. By mapping entities to a SVG-object, you're able to control devices, show states, calling services - and much more. Add custom styling on top, to visualize whatever you can think of. Your imagination just became the new limit.
https://experiencelovelace.github.io/ha-floorplan/
Apache License 2.0
1.11k stars 174 forks source link

[BUG] Instead of spinning, fan dissapears when turned on #408

Closed jlafuenti closed 9 months ago

jlafuenti commented 9 months ago

Describe the bug When clicking on the fan (which is a switch) the icon of the fan disappears instead of starting to spin

To Reproduce Steps to reproduce the behavior:

  1. Go to dashboard
  2. Click on a fan
  3. Watch the fan disappear

Expected behavior The fan should spin

Screenshots Can't really take a screenshot of it vanishing

Desktop (please complete the following information):

Share configuration Please share:

If you create a issue without a SVG example, including the required YAML and CSS to reproduce the issue, it's likely what your issue will be closed, or marked as unresolvable, as it's lacking the proper amount of details. Thank you for understanding the situation.

Additional context Add any other context about the problem here.

OzGav commented 9 months ago

This isn’t a bug. Please search before posting https://community.home-assistant.io/t/floorplan-for-home-assistant/17394/1547?page=76

jlafuenti commented 9 months ago

Apologies, I did search for a while and couldn't find anything to match my issue. I had assumed a bug since I more or less directly copied the CSS & configuration of the floorplanner_home example and every other bit worked. But you were right, it was an issue with the transform being incorrect. I copied the _group from the floorplanner example without understanding why it existed in the first place. https://experiencelovelace.github.io/ha-floorplan/docs/create-svg-file/#animations-not-in-the-right-position This was exactly what I needed.