!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

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

Load older messages


SenderMessageTime
22 Jan 2025
@hexa:lossy.network@hexa:lossy.networkhrm11:42:21
@hexa:lossy.network@hexa:lossy.networkhttps://github.com/NixOS/nixpkgs/pull/37579811:44:37
@hexa:lossy.network@hexa:lossy.networkmorel likely to be a regression from the module changes I did recently11:45:01
@leo:gaspard.ninjaEkleogActually a friend explained to me that I needed to set a lovelace config from nix, and custom lovelace components don't work with the graphical UI setup. So now I have fixed it, thank you for your answer! Out of curiosity, is there anyone using Valetudo with Home-Assistant here? I have the custom valetudo map card working fine on my android app, but the same card on my firefox shows everything but the actual map. Did this happen to anyone else? It does show up fine on Chromium17:14:14
@hexa:lossy.network@hexa:lossy.network setting customLovelaceModules installs these in /var/lib/hass/www/nixos-lovelace-modules/ 17:15:29
@k900:0upti.meK900Works fine here 17:15:32
@hexa:lossy.network@hexa:lossy.networkwhen the storage mode is yaml, aka nix controlled, we can automatically inject the .js entrypoints into that yaml lovelace config17:16:06
@hexa:lossy.network@hexa:lossy.networkif you want to edit it from the frontend then home-assistant will manage storing all that information and you'll have to add the resources yourself17:16:45
@hexa:lossy.network@hexa:lossy.network if you want the latter, set lovelaceConfig = null 17:17:14
@leo:gaspard.ninjaEkleogThank you for all your answers! It's pretty weird, but it seems that restarting firefox fixed the issue… weird 🤷 Thank you! :D17:22:40
@hexa:lossy.network@hexa:lossy.networkok lol17:23:43
@hexa:lossy.network@hexa:lossy.networksounds like a caching issue then17:23:48
24 Jan 2025
@laurynasp:matrix.orglaurynaspMy Voice PE has just arrived, but I am having a bit of a trouble with step 7. I do not want to use cloud, and setup instructions say to use whisper and piper add-ons, which is where I get confused.. It seems that add-ons are availalabe only for HAOS and supervised, but on NixOS we have HA-core, is that correct? I found Whisper integration, but I struggle to understand what it is for, and it page for it seems to refer to Wyoming protocol integration.. 08:15:28
@laurynasp:matrix.orglaurynaspSo I thought to check if anyone has their setup available to share or knows a blog post, before I start experimenting with those integrations 08:15:53
@uep:matrix.orguep
      services.home-assistant = {
        # ...
        extraComponents = [
          # ...
          # voice assistant
          "piper"
          "whisper"
          "wake_word"
          "wyoming"
        ];
        };
      };

      services.wyoming = {
        faster-whisper.servers.whisper = {
          enable = true;
          uri = "tcp://127.0.0.1:10300";
          device = "cpu";
          language = "en";
          model = "medium-int8";
        };
        openwakeword = {
          enable = true;
          uri = "tcp://127.0.0.1:10400";
        };
        piper.servers.piper = {
          enable = true;
          uri = "tcp://127.0.0.1:10200";
          voice = "en_GB-semaine-medium";
        };
      };
10:57:38
@uep:matrix.orguepthen you add those three ports via the wyoming integration in the HA UI10:58:48
@uep:matrix.orguepand you add the voice device via the esphome integration, which was where i got well confused10:59:50
@uep:matrix.orguep *
      services.home-assistant = {
        # ...
        extraComponents = [
          # ...
          # voice assistant
          "piper"
          "whisper"
          "wake_word"
          "wyoming"
        ];
      };

      services.wyoming = {
        faster-whisper.servers.whisper = {
          enable = true;
          uri = "tcp://127.0.0.1:10300";
          device = "cpu";
          language = "en";
          model = "medium-int8";
        };
        openwakeword = {
          enable = true;
          uri = "tcp://127.0.0.1:10400";
        };
        piper.servers.piper = {
          enable = true;
          uri = "tcp://127.0.0.1:10200";
          voice = "en_GB-semaine-medium";
        };
      };
11:00:35
@laurynasp:matrix.orglaurynaspThanks!11:31:01
@laurynasp:matrix.orglaurynaspI got it to work, thanks a lot uep! 15:49:23
@laurynasp:matrix.orglaurynasp P.s. I noticed that on nixos-unstable (9e4d5190a9482a1fb9d18adf0bdb83c6e506eaab), wyoming-piper-piper.service fails because voices are downloaded to --download-dir /var/lib/wyoming/piper/models , but --data-dir /var/lib/wyoming/piper and "find_voice" in (/nix/store/xxx-wyoming-piper-1.5.2/lib/python3.12/site-packages/wyoming_piper/download.py) does not seem to search recursively. For now, I just manually move downloaded voices to /var/lib/wyoming/piper/ 15:49:28
@laurynasp:matrix.orglaurynasp * P.s. I noticed that on recent nixos-unstable (9e4d5190a9482a1fb9d18adf0bdb83c6e506eaab), wyoming-piper-piper.service fails because voices are downloaded to --download-dir /var/lib/wyoming/piper/models , but --data-dir /var/lib/wyoming/piper and "find_voice" in (/nix/store/xxx-wyoming-piper-1.5.2/lib/python3.12/site-packages/wyoming_piper/download.py) does not seem to search recursively. For now, I just manually move downloaded voices to /var/lib/wyoming/piper/ 15:49:46
@hexa:lossy.network@hexa:lossy.networkoh no 😕15:54:49
@hexa:lossy.network@hexa:lossy.networkwhy can you specify both then?15:55:44
@laurynasp:matrix.orglaurynasp * P.s. I noticed that on recent nixos-unstable (9e4d5190a9482a1fb9d18adf0bdb83c6e506eaab), wyoming-piper-piper.service fails because voices are downloaded to --download-dir /var/lib/wyoming/piper/models , but --data-dir /var/lib/wyoming/piper and find\_voice in (/nix/store/xxx-wyoming-piper-1.5.2/lib/python3.12/site-packages/wyoming\_piper/download.py) does not seem to search recursively. For now, I just manually move downloaded voices to /var/lib/wyoming/piper/ 15:56:00
@laurynasp:matrix.orglaurynaspYeah, it does seem a bit strange.. I think data dirs can be a list of directories (having peeked at the pyton code briefly), but I am not that good at python, so I might be wrong15:57:16
@hexa:lossy.network@hexa:lossy.networkhttps://github.com/rhasspy/wyoming-piper/blob/master/wyoming_piper/__main__.py#L4316:09:45
@hexa:lossy.network@hexa:lossy.networkthe download-dir is the first data dir 🤡16:09:51
@hexa:lossy.network@hexa:lossy.networkand if there is no downloads dir, then the first data dir becomes the downloads dir16:10:17
@uep:matrix.orguepyah, i noticed my HA box was failing builds after the last staging landed a couple of days ago, and that it was something with the voice things, but didn't look further.16:10:37

Show newer messages


Back to Room ListRoom Version: 6