!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

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

Load older messages


SenderMessageTime
23 Nov 2021
@schnecfk:ruhr-uni-bochum.deCRTifiedAs a side-effect: deploying with nixops got significantly faster23:18:34
@hexa:lossy.network@hexa:lossy.networkyeah, since I moved my RPi to edk2 I somehow got rid of the sdcard as well23:56:12
@hexa:lossy.network@hexa:lossy.networkI just have power problems left now23:56:20
@hexa:lossy.network@hexa:lossy.networkI liked that the RPi did that thing and was mostly independent23:56:49
@hexa:lossy.network@hexa:lossy.networkbut now I might have to move my home automation over to my NAS23:57:06
@hexa:lossy.network@hexa:lossy.networkthe RPi I could deploy anywhere in my appartment, better positioning for my zigbee network23:57:54
24 Nov 2021
@cafkafk:matrix.orgcafkafk joined the room.12:47:54
@maniacofmadness:matrix.orgManiac of MadnessDoes anyone have any pointers regarding Let's Encrypt certificate generation? I'm using the config below:12:53:42
@maniacofmadness:matrix.orgManiac of Madness
security.acme.acceptTerms = true;
security.acme.email = "my_name@example.com";

services.nginx = {
  enable = true;
  recommendedProxySettings = true;
  virtualHosts."hass.example.com" = {
    forceSSL = true;
    enableACME = true;
    extraConfig = ''
      proxy_buffering off;
    '';
    locations."/" = {
      proxyPass = "http://127.0.0.1:8123";
      proxyWebsockets = true;
    };
  };
};

networking.firewall.allowedTCPPorts = [ 80 443 ];
12:53:54
@maniacofmadness:matrix.orgManiac of Madness But I'm getting the following error:
Nov 24 14:46:27 home acme-hass.example.com-start[10905]: [hass.example.com] acme: error: 400 :: urn:ietf:params:acme:error:connection :: Fetching http://hass.example.com/.well-known/acme-challenge/Cc5Lrk6p3SdDryHkOHhIUAXvWq9ccTebnnSNaBA2JqE: Timeout during connect (likely firewall problem)
12:54:55
@linus.heckemann:matrix.mayflower.deLinux HackermanIs the machine on a residential internet connection? If so, are ports 80 and 443 forwarded to it on the router?12:55:51
@maniacofmadness:matrix.orgManiac of Madness
In reply to @linus.heckemann:matrix.mayflower.de
Is the machine on a residential internet connection? If so, are ports 80 and 443 forwarded to it on the router?
Yes, they are. I can see my instance, and it's using a temporary self-signed certificate.
12:56:33
@linus.heckemann:matrix.mayflower.deLinux HackermanCan you see it from anywhere other than your home internet connection?12:57:07
@maniacofmadness:matrix.orgManiac of MadnessLet me check with cell data.12:57:19
@maniacofmadness:matrix.orgManiac of MadnessOof, I guess that's one way to find out things. It timed out.12:59:00
@linus.heckemann:matrix.mayflower.deLinux HackermanDo you actually have public IP addresses from your ISP? If you're behind CGNAT for IPv4, and don't have IPv6, it won't work at all, for instance12:59:58
@maniacofmadness:matrix.orgManiac of MadnessI found out about CGNAT just today. Indeed CGNAT is being applied by my ISP, with the IPv4 address redirecting me to some other client. The IPv6 address worked just fine, so I disabled the A record on my Dynamic DNS provider (freedns.afraid.org in this case) and only kept the AAAA record.13:02:43
@maniacofmadness:matrix.orgManiac of MadnessThere might be some security restrictions applied by my ISP, which I can't check at the time. That's where I'm leaning at.13:03:41
@linus.heckemann:matrix.mayflower.deLinux Hackermanfor IPv6, the firewall stuff on your router could work in several different ways as well13:04:46
@linus.heckemann:matrix.mayflower.deLinux Hackermanif your hass machine has a public IPv6 address, you'll need to make sure it's stable, and configure the router to allow ports 80 and 443 to it13:06:21
26 Nov 2021
@jeroen:simonetti.nlJeroen

How would i create the following HASS config with nix?

           entity_id: >
            {% if is_state("input_select.chromecast_radio", "Livingroom") %} media_player.ca_livingroom
            {% elif is_state("input_select.chromecast_radio", "Hall") %} media_player.ca_hall
            {% elif is_state("input_select.chromecast_radio", "Bedroom") %} media_player.bed_room
            {% elif is_state("input_select.chromecast_radio", "Bathroom") %} media_player.ca_bathroom
            {% elif is_state("input_select.chromecast_radio", "Everywhere") %} media_player.home_group
            {% endif %}
07:55:32
@jeroen:simonetti.nlJeroen I am puzzled by the > 07:55:47
@jeroen:simonetti.nlJeroenBasically means, how do I do folded block scalar notation in nix08:39:01
@etu:semi.socialetu The > in yaml becomes a multi line string that can be written on several lines but when parsed it will be read as a single line 08:46:27
@etu:semi.socialetu While the | character for multi line strings keeps the newlines 08:46:44
@etu:semi.socialetu So I would say that you don't have to recreate the > and all of the newlines in that block, you can split it up however you like in nix and nix will create a single line string in yaml but that should be fine. 08:47:31
@jeroen:simonetti.nlJeroenCool, i'll give it a go08:48:03
@jeroen:simonetti.nlJeroenseems to work to just put everything on a single line09:10:49
@hexa:lossy.network@hexa:lossy.networkCan someone with more node2nix experience try and update zigbee2mqtt? I'm stuck.22:13:26
@jeroen:simonetti.nlJeroen+1 for zwavejs2mqtt:)23:02:08

Show newer messages


Back to Room ListRoom Version: 6