!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

510 Members
Declarative Home Automation and other Sidequests | https://wiki.nixos.org/wiki/Home_Assistant131 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
16 Dec 2024
@netpleb:matrix.orgnetplebOk, that was my plan. Was mostly just not sure if this is a common thing people run into and whether there is a well known way to resolve it (other than "just trying it" on nixos-unstable and seeing if it works :-) )22:31:14
@netpleb:matrix.orgnetplebAnyway, yes, it looks like the commit in question is in the git history...so I will upgrade back to nixos-unstable. Thanks again for getting all this frigate/hass stuff working! I will surely have more questions :)22:33:23
@ibizaman:matrix.orgibizaman Hi 👋 I installed music assistant and wanted to add the home assistant plugin at /settings/addprovider/hass but got [Errno 2] No such file or directory: 'uv'. I'm happy to put up a PR for fixing this but I'm not sure where to start. I tried to looks at the different music-assistant related packages in nixpkgs and sprinkle some uv python package here and there but without result. Same for adding the Sonos player provider. I'm on nixpkgs 22c3f2cf41a0e70184334a958e6b124fb0ce3e01 FWIW 22:33:45
@hexa:lossy.network@hexa:lossy.networkhm, does it complain for providers you've added declaratively?22:34:48
@hexa:lossy.network@hexa:lossy.networksame as with home-assistant, you can22:35:14
@hexa:lossy.network@hexa:lossy.network * same as with home-assistant, you can't install dependencies interactively22:35:25
@ibizaman:matrix.orgibizaman

That difference didn't occur to me at all. I have this currently, let me try adding hass:

  services.music-assistant = {
    enable = true;
    providers = [
      "airplay"
      "jellyfin"
      "radiobrowser"
      "sonos"
      "spotify"
    ];
  };
22:40:41
@hexa:lossy.network@hexa:lossy.networkwe might be lacking deps for some oft hose22:46:06
@hexa:lossy.network@hexa:lossy.network * we might be lacking deps for some of those22:46:08
@hexa:lossy.network@hexa:lossy.network
    sonos = ps: [
    ]; # missing aiosonos
22:46:55
@hexa:lossy.network@hexa:lossy.network
    ]; # missing pywidevine
      ]; # missing deezer-python-async
    ]; # missing sxm
    ]; # missing aiosonos
    ]; # missing soundcloudpy
      ]; # missing yt-dlp-youtube-accesstoken
22:47:19
@hexa:lossy.network@hexa:lossy.networkthese are the missing ones22:47:26
@ibizaman:matrix.orgibizaman Ah I actually saw that but the Sonos and hass failed for me on this uv library that's missing. From looking at the music assistant I thought this was some build time library so I was confused. 22:48:24
@hexa:lossy.network@hexa:lossy.networkuv is like pip22:48:42
@hexa:lossy.network@hexa:lossy.networkthey use it to install dependencies22:48:46
@ibizaman:matrix.orgibizamanokay so I wasn't too wrong22:49:12
@ibizaman:matrix.orgibizamanimage.png
Download image.png
22:50:09
@ibizaman:matrix.orgibizaman^ This is what I see btw22:50:14
@ibizaman:matrix.orgibizaman * okay so I wasn't too far from the through22:50:40
@ibizaman:matrix.orgibizamanWhat confuses me is that how can the nix package build at all if uv is not installed.22:51:17
@ibizaman:matrix.orgibizaman * okay so I wasn't too far from the truth22:53:22
@ibizaman:matrix.orgibizamanOr does it mean uv is used at runtime?22:58:59
@ibizaman:matrix.orgibizaman

Progress (?) I added uv to music-assistant's optional-dependencies and now trying to add a plugin or provider through the UI fails with:

Failed to install package hass-client==1.2.0
error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment
23:04:42
@hexa:lossy.network@hexa:lossy.network ^^^^^ 23:05:06
@ibizaman:matrix.orgibizamanAh sorry to make you feel like a broken record but then I'm lost as to how to add those.23:06:58
@ibizaman:matrix.orgibizamanI mean, I have the config above and then, what's the next step to integrate with home assistant?23:07:32
@ibizaman:matrix.orgibizaman * I mean, I have the config above but then, what's the next step to integrate with home assistant?23:07:42
@ibizaman:matrix.orgibizaman * Ah sorry to make you feel like a broken record but then I'm lost as to how to configure those.23:11:56
@ibizaman:matrix.orgibizamanLike how do I add a player if not through the UI?23:12:13
@hexa:lossy.network@hexa:lossy.networkIt should work for the ones specified except for sonos for which we are lacking a dependency23:16:09

Show newer messages


Back to Room ListRoom Version: 6