#Custom Card, LitElement with async-data-request

1 messages · Page 1 of 1 (latest)

safe ravine
#

I´m trying to build a custom-card following this link (https://developers.home-assistant.io/docs/frontend/custom-ui/custom-card/) but I have problems in requesting my data from influx asynchronously. I tried a @lit/task which ends in the error" setConfig not found" and i had no glue why.

Otherwise, using HTMLElement works but it´s not the end. Additionally i want to register eventlistners to the click-event in DOM. I did not get this managed with HTMLElement. Does anybody knows a good blog for this scenario or has any examples for me? Best regards

Dashboards are our approach to defining your user interface for Home Assistant. We offer a lot of built-in cards, but you're not just limited to the ones that we decided to include in Home Assistant. You can build and use your own!

wild hawkBOT
#

For support and questions about contributing to Home Assistant development, join channel #developers or create a thread in #1257019582112334014.
If you do not have access to these channels, you will need to give yourself the Developer role. Do this by selecting Channels & Roles in the sidebar, and selecting "I want to contribute dev skills to Home Assistant" to be granted access.