| 28 Nov 2021 |
@hexa:lossy.network | basically
/var/lib/zigbee2mqtt:/app/data
${configFile}:/app/data/configuration.yml | 17:16:44 |
@hexa:lossy.network | * basically
[
"/var/lib/zigbee2mqtt:/app/data"
"${configFile}:/app/data/configuration.yml"
];
| 17:16:59 |
Jeroen | Sounds reasonable | 17:17:21 |
Jeroen | Depending on your config you might not even need the other volume | 17:20:42 |
@hexa:lossy.network | I'd like to be able to backup the state though | 17:22:07 |
Jeroen | Ah, check | 17:23:26 |
CRTified | 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 | ok | 17:37:15 |
@hexa:lossy.network | think I'm about to get it done | 17:38:18 |
@hexa:lossy.network | then we can compare it and put the best of both worlds onto the wiki | 17:38:33 |
@hexa:lossy.network | oh wow | 17:44:29 |
@hexa:lossy.network | pretty sure my mosquitto setup is broken after the recent module changes | 17:44:38 |
Jeroen | 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 |
CRTified | 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 | the esphome cli is just weird | 19:25:02 |
@hexa:lossy.network | so I never remember what to pass to get the dashboard runnin | 19:25:14 |
@hexa:lossy.network | * so I never remember what to pass to get the dashboard running | 19:25:16 |
@hexa:lossy.network | right now esphome build seems to be broken, since 2021.10.0 | 19:25:39 |
Jeroen | I have a systemd service for the dashboard. But i wonder how to use the sphome integration in hass. | 19:26:02 |
@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 | Jeroen: configure an iframe | 19:26:13 |
@hexa:lossy.network | https://www.home-assistant.io/integrations/panel_iframe/ | 19:26:26 |
@hexa:lossy.network | and possibly reverse proxy your esphome dashboard, so it gets https | 19:26:43 |
Jeroen | Ill have a look at the iframe | 19:29:55 |
Jeroen | Tnx | 19:30:00 |
CRTified | 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 | why privileged? | 19:33:20 |
CRTified | Access to the serial device, didn't have time to take care | 19:33:47 |
@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 | * 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 |