!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

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

Load older messages


SenderMessageTime
28 Nov 2021
@hexa:lossy.network@hexa:lossy.networkbasically /var/lib/zigbee2mqtt:/app/data ${configFile}:/app/data/configuration.yml17:16:44
@hexa:lossy.network@hexa:lossy.network *

basically

[
  "/var/lib/zigbee2mqtt:/app/data"
  "${configFile}:/app/data/configuration.yml"
];
17:16:59
@jeroen:simonetti.nlJeroenSounds reasonable17:17:21
@jeroen:simonetti.nlJeroenDepending on your config you might not even need the other volume17:20:42
@hexa:lossy.network@hexa:lossy.networkI'd like to be able to backup the state though17:22:07
@jeroen:simonetti.nlJeroenAh, check17:23:26
@schnecfk:ruhr-uni-bochum.deCRTified
In reply to @hexa:lossy.network
CRTified: do you have that configuration ready to copypaste? 😀
Yes, but currently not at home
17:28:58
@hexa:lossy.network@hexa:lossy.networkok17:37:15
@hexa:lossy.network@hexa:lossy.networkthink I'm about to get it done17:38:18
@hexa:lossy.network@hexa:lossy.networkthen we can compare it and put the best of both worlds onto the wiki17:38:33
@hexa:lossy.network@hexa:lossy.networkoh wow17:44:29
@hexa:lossy.network@hexa:lossy.networkpretty sure my mosquitto setup is broken after the recent module changes 17:44:38
@jeroen:simonetti.nlJeroen Is anyone here using esphome with hass on nix?
I am wondering how you connected the two. I have a problem with the api service
18:59:33
@schnecfk:ruhr-uni-bochum.deCRTified
In reply to @jeroen:simonetti.nl
Is anyone here using esphome with hass on nix?
I am wondering how you connected the two. I have a problem with the api service
esphome yes, but not the web frontend
19:24:37
@hexa:lossy.network@hexa:lossy.networkthe esphome cli is just weird19:25:02
@hexa:lossy.network@hexa:lossy.networkso I never remember what to pass to get the dashboard runnin19:25:14
@hexa:lossy.network@hexa:lossy.network * so I never remember what to pass to get the dashboard running19:25:16
@hexa:lossy.network@hexa:lossy.networkright now esphome build seems to be broken, since 2021.10.019:25:39
@jeroen:simonetti.nlJeroenI have a systemd service for the dashboard. But i wonder how to use the sphome integration in hass.19:26:02
@hexa:lossy.network@hexa:lossy.network it doesn't parse platformios messages correctly and we're using a codepath that dotlambda invented for nixpkgs 🙂 19:26:03
@hexa:lossy.network@hexa:lossy.network Jeroen: configure an iframe 19:26:13
@hexa:lossy.network@hexa:lossy.networkhttps://www.home-assistant.io/integrations/panel_iframe/19:26:26
@hexa:lossy.network@hexa:lossy.networkand possibly reverse proxy your esphome dashboard, so it gets https19:26:43
@jeroen:simonetti.nlJeroenIll have a look at the iframe19:29:55
@jeroen:simonetti.nlJeroenTnx19:30:00
@schnecfk:ruhr-uni-bochum.deCRTified

hexa: Right now my container is horribly insecurely configured 😅

    virtualisation.oci-containers.containers."z2m" = {
      image = "koenkk/zigbee2mqtt:1.22.0";
      extraOptions = [
        "--device=${config.services.zigbee2mqtt.settings.serial.port}"
        "--privileged=true"
      ];
      environment = { TZ = "Europe/Berlin"; };
      ports = [ ];
      volumes = [ "/dev:/dev" "/var/lib/z2m:/app/data" ];
    };

19:32:59
@hexa:lossy.network@hexa:lossy.networkwhy privileged?19:33:20
@schnecfk:ruhr-uni-bochum.deCRTifiedAccess to the serial device, didn't have time to take care19:33:47
@hexa:lossy.network@hexa:lossy.network

  virtualisation.oci-containers = {
    backend = "podman";
    containers.zigbee2mqtt = {
      image = "koenkk/zigbee2mqtt:latest";
      autoStart = true;
      environment = {
        TZ = "Europe/Berlin";
      };
      extraOptions = [
        "--device=/dev/serial/by-id/usb-Silicon_Labs_slae.sh_cc2652rb_stick_-_slaesh_s_iot_stuff_00_12_4B_00_21_CB_FD_AC-if00-port0:${settings.serial.port}"
        "--network=host"
      ];
      ports = [
        "${toString settings.frontend.port}:8083/tcp"
      ];
      volumes = [
        "/var/lib/zigbee2mqtt:/app/data"
        "${configFile}:/app/data/configuration.yaml"
        "/run/udev:/run/udev:ro"
      ];
    };
  };
19:33:52
@hexa:lossy.network@hexa:lossy.network *
  virtualisation.oci-containers = {
    backend = "podman";
    containers.zigbee2mqtt = {
      image = "koenkk/zigbee2mqtt:latest";
      autoStart = true;
      environment = {
        TZ = "Europe/Berlin";
      };
      extraOptions = [
        "--device=/dev/serial/by-id/usb-Silicon_Labs_slae.sh_cc2652rb_stick_-_slaesh_s_iot_stuff_00_12_4B_00_21_CB_FD_AC-if00-port0:${settings.serial.port}"
        "--network=host"
      ];
      ports = [
        "${toString settings.frontend.port}:8083/tcp"
      ];
      volumes = [
        "/var/lib/zigbee2mqtt:/app/data"
        "${configFile}:/app/data/configuration.yaml"
        "/run/udev:/run/udev:ro"
      ];
    };
  };
19:34:01

There are no newer messages yet.


Back to Room ListRoom Version: 6