Hello, iam trying to use a custom Javascript file (.js) in my www folder. I added as a resource to lovelace. I try to use it in the https://github.com/custom-cards/button-card, but i get the error ButtonCardJSTemplateError: ReferenceError: toStringElapsed is not defined. Has someone an idea? This worked for me on my old setup (with HA v103) but not on the newest HA version/ Button card
the .js file gets included in HA with
<script async="" type="module" src="http://home:8123/local/time-helper.js"></script>
might that cause the problem? In the version prior, there was a javascript type as an option for the resource. But not anymore
> States?
> Devices > pick a device > click the