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