!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

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

Load older messages


SenderMessageTime
8 Jan 2025
@laurynasp:matrix.orglaurynaspwhat is your setup for managing / flashing the devices? do you flash from nix develop? 01:52:26
@hexa:lossy.network@hexa:lossy.networkthat error is printed by pathlib01:52:55
@hexa:lossy.network@hexa:lossy.networkI have a devshell, yeah01:53:07
@hexa:lossy.network@hexa:lossy.networkand when I feel like it (mostly on updates) I run the dashboard and let it update everything01:53:23
@laurynasp:matrix.orglaurynaspDo you mean, this stems from the ESPhome python code opinion symlinks vs regular files01:53:31
@hexa:lossy.network@hexa:lossy.networkplease don't use threads for everything I say01:54:57
@hexa:lossy.network@hexa:lossy.networknobody else is here, so we can just talk here01:55:10
@hexa:lossy.network@hexa:lossy.networkthe context is super clear 😄 01:55:20
@hexa:lossy.network@hexa:lossy.network esphome somewhere uses path.relative_to("/var/lib/private/esphome") 01:55:39
@laurynasp:matrix.orglaurynaspYeah, I was thinking that if I was to go forward with ESPHome dashboard (services.esphome), then I guess my best option would be PR to add an option for systemd services pre-Exec, where I could cp a file across. Would feel hacky. However, my ultimate goal is to automate managament of esp32 devices, so if there is better way, then i would go with that01:55:42
@hexa:lossy.network@hexa:lossy.networkand path is not inside that directory01:55:46
@hexa:lossy.network@hexa:lossy.networkhttps://github.com/search?q=repo%3Aesphome%2Fesphome%20relative_to&type=code01:58:06
@hexa:lossy.network@hexa:lossy.network probably in dashboard_settings.py 01:58:15
@hexa:lossy.network@hexa:lossy.network

Raises ValueError if not relative to ESPHome config folder

01:58:23
@hexa:lossy.network@hexa:lossy.networkthe esphome service to me feels like a stateful way of dealing with configs01:59:04
@hexa:lossy.network@hexa:lossy.networkyou can certainly instruct your secrets management to install the files into /var/lib/private/esphome though01:59:26
@hexa:lossy.network@hexa:lossy.networkjust a symlink won't do01:59:31
@laurynasp:matrix.orglaurynasp just doing a test run to check that ESPhome is happy with secrets.yaml being outside the config dir 02:16:33
@hexa:lossy.network@hexa:lossy.networkgood luck 😄 02:18:18
@hexa:lossy.network@hexa:lossy.networkif not you could probably file an issue upstream or submit a patch02:18:31
@laurynasp:matrix.orglaurynasp

Did you say you run dashboard from dev shell? is you config for that public?

P.s. I ended up using esphome service, because it worked, and I was not able to find any easy / detailed tutorial on how to flash esp32 devices.

The simplest alternative i found (but haven't tested) on https://nixos.wiki/wiki/ESP-IDF is

nix --experimental-features 'nix-command flakes' develop github:mirrexagon/nixpkgs-esp-dev#esp32-idf

Is your set up similar?

02:21:42
@laurynasp:matrix.orglaurynasp *

Did you say you run dashboard from dev shell? is your config for that public?

P.s. I ended up using esphome service, because it worked, and I was not able to find any other easy / detailed tutorial on how to flash esp32 devices on nixos / nix.

The simplest alternative i found (but haven't tested) on https://nixos.wiki/wiki/ESP-IDF is

nix --experimental-features 'nix-command flakes' develop github:mirrexagon/nixpkgs-esp-dev#esp32-idf

Is your set up similar?

02:22:57
@hexa:lossy.network@hexa:lossy.networkno, there is plain secrets in there ;D 02:23:23
@hexa:lossy.network@hexa:lossy.network* no, there is plain secrets in there 😄 02:23:24
@hexa:lossy.network@hexa:lossy.networkalthough only for my iot wlan02:23:37
@hexa:lossy.network@hexa:lossy.networkwhich probably isn't much use02:23:42
@hexa:lossy.network@hexa:lossy.networkesphome is the most declarative and simple way to maintain a bunch of esp8266/32 devices02:24:25
@hexa:lossy.network@hexa:lossy.networkESP-IDF is the framework by espressif02:24:40
@hexa:lossy.network@hexa:lossy.networkyou'll need to be somewhat fluent in C with that02:25:09
@laurynasp:matrix.orglaurynaspI am glad you saved me from a rabbit hole!02:25:15

Show newer messages


Back to Room ListRoom Version: 6