12 Oct 2024 |
johnhamelink | Hi there, I'm trying to install a home-assistant lovelace module (home-assistant-custom-lovelace-modules.valetudo-map-card), and while it seems to install OK, I don't see the card in lovelace when creating a new entity. When using HACS, I'd have to add a "resource" url in order to complete the installation. Is that also necessary in this case, and if so, how would I find the correct URL to use for the resource | 20:48:59 |
K900 | No, it's not necessary | 20:50:51 |
K900 | But you may need to force refresh the page | 20:50:56 |
johnhamelink | Hmm, a force-refresh hasn't helped. When I manually add the yaml block from the valetudo map card docs, lovelace gives an error saying "custom element doesn't exist". | 20:52:53 |
johnhamelink | Here's the config I've written for context: https://git.sr.ht/~johnhamelink/nix/tree/master/item/os/hosts/sun/services/home-assistant.nix#L73 | 20:53:40 |
K900 | Download image.png | 20:54:01 |
K900 | It works fine for me | 20:54:03 |
johnhamelink | lol, my matrix client doesn't like that image, 2s let me check element.io 🤣 | 20:55:02 |
johnhamelink | Ahh, right. And to get the card to show up, did you do anything other than add to customLovelaceModules? | 20:55:45 |
K900 | No | 20:56:41 |
johnhamelink | Damn, I wonder where I've gone wrong then :/ | 20:56:58 |
johnhamelink | Will try manually restarting and see if I can see anything in the logs that might stop it becoming enabled... | 20:57:36 |
johnhamelink | Ah, so there is a "ModuleNotFoundError: No module named 'xiaomi_gateway'" - I will try and get rid of that now | 20:59:10 |
hexa | In reply to @johnhamelink:matrix.org Damn, I wonder where I've gone wrong then :/ automatic resource configuration only works with declarative lovelace configuration | 21:08:56 |
hexa | so my guess is, you use the ui editor in the frontend | 21:09:16 |
hexa | and not the yaml-based approach | 21:09:24 |
hexa | https://git.sr.ht/~johnhamelink/nix/tree/master/item/os/hosts/sun/services/home-assistant.nix#L69 | 21:10:01 |
hexa |
# Automatic loading only works with lovelace in yaml mode.
| 21:10:05 |
hexa | and | 21:10:10 |
hexa | # lovelaceConfig = {
# title = "My Awesome Home";
# views = [ {
# title = "Example";
# cards = [ {
# type = "markdown";
# title = "Lovelace";
# content = "Welcome to your **Lovelace UI**.";
# } ];
# } ];
# };
| 21:10:15 |
hexa | means your lovelace config is in storage mode | 21:10:28 |
johnhamelink | Yeah, I just disabled that and hardcoded and waddya know, it shows up now :) I was trying to rapidly design the lovelace config so I could then hardcode it into my repo without having to rebuild with each change. Now I have something to bisect at least :) Thank you! | 21:12:30 |
hexa | either way, nixos deploys the lovelace modules and you can reference them | 21:13:32 |
hexa | Download image.png | 21:13:44 |
johnhamelink | Thank you both, will get cracking configuring out my config now! | 21:16:25 |
13 Oct 2024 |
| @kidsan:matrix.org left the room. | 18:32:22 |
14 Oct 2024 |
Sandro 🐧 | wow
https://github.com/NixOS/nixpkgs/pull/348149 | 09:40:53 |
symphorien | oh I had not looked for previous attempts | 09:42:36 |
symphorien | what is the limit on hydra ? | 09:43:46 |
Sandro 🐧 | I don't think they ever made it into any PR because alone fetching the source was to big and after looking at their CI it was kinda given up upon IIRC | 11:46:13 |