!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

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

Load older messages


SenderMessageTime
8 Jan 2025
@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
@hexa:lossy.network@hexa:lossy.networkhttps://git.darmstadt.ccc.de/cda/co2-sensor-workshop/-/blob/main/flake.nix?ref_type=heads02:26:04
@hexa:lossy.network@hexa:lossy.networkthis is a flake for an esphome project02:26:11
@hexa:lossy.network@hexa:lossy.networkif that helps02:26:23
@laurynasp:matrix.orglaurynaspThanks - I will try it out tomorrow02:28:46
@hexa:lossy.network@hexa:lossy.networkcuda cache? https://nix-community.org/cache/14:08:27
@qbit:tapenet.org@qbit:tapenet.orgisn't there a buildPythonPackage like thing that's exposed from in buildHomeASsistantComponent (or some other HA .. entry point..)?20:53:55
@qbit:tapenet.org@qbit:tapenet.org

getting: ```
The Python derivation 'python3.13-firstof9/openevse-2.1.45' depends on a Python derivation
named 'python3.12-python-openevse-http-0.1.61', but the two derivations use different versions
of Python:

          'python3.13-firstof9/openevse-2.1.45' uses /nix/store/acxvfb890g9jawlxsj7zs8marxxvzrrs-python3-3.13.1
       'python3.12-python-openevse-http-0.1.61' uses /nix/store/c9m6yd8fg1flz2j5r4bif1ib5j20a0cy-python3-3.12.8
20:54:23

Show newer messages


Back to Room ListRoom Version: 6