Lovelace Custom Fan Card Example

I’ve been using this card for a while but it seems 2023.5 breaks it. I tried the beta but rolled back when I saw the issue. Anyone having issues with this after the latest May update?

During the pre-2023.5 releases we got warned about the Polymer component that is listed for deprecation.

If you check your logs you may find:

Logger: frontend.js.latest.202305031
Source: components/system_log/__init__.py:257
First occurred: 10:11:54 AM (1 occurrences)
Last logged: 10:11:54 AM

https://hass.<domain>/local/custom-fan-card.js:1:29 Uncaught ReferenceError: Polymer is not defined

In the dashboard it shows:
image

I think we have to come up with another custom JS file to make the buttons work for the fans.

1 Like

Here is a HACS repo with a 6 speed button row for Modern Forms fans. I simplified the code quite a bit so it could be easily modified if need be. Let me know if this helps.