!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

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

Load older messages


SenderMessageTime
8 Nov 2024
@k900:0upti.meK900
Nov 08 13:01:19 qb matter-server[733517]: 2024-11-08 13:01:19.967 (MainThread) INFO [matter_server.server.stack] Initializing CHIP/Matter Logging...
Nov 08 13:01:19 qb matter-server[733517]: 2024-11-08 13:01:19.968 (MainThread) INFO [matter_server.server.stack] Initializing CHIP/Matter Controller Stack...
Nov 08 13:01:19 qb matter-server[733517]: 2024-11-08 13:01:19.968 (MainThread) ERROR [root] Uncaught exception
Nov 08 13:01:19 qb matter-server[733517]: Traceback (most recent call last):
Nov 08 13:01:19 qb matter-server[733517]:   File "/nix/store/0aqlw4i2k039flcqmzfcxmj4qs3q9zig-python3.12-python-matter-server-6.6.0/bin/.matter-server-wrapped", line 9, in <module>
Nov 08 13:01:19 qb matter-server[733517]:     sys.exit(main())
Nov 08 13:01:19 qb matter-server[733517]:              ^^^^^^
Nov 08 13:01:19 qb matter-server[733517]:   File "/nix/store/0aqlw4i2k039flcqmzfcxmj4qs3q9zig-python3.12-python-matter-server-6.6.0/lib/python3.12/site-packages/matter_server/server/__main__.py", line 220, in >
Nov 08 13:01:19 qb matter-server[733517]:     server = MatterServer(
Nov 08 13:01:19 qb matter-server[733517]:              ^^^^^^^^^^^^^
Nov 08 13:01:19 qb matter-server[733517]:   File "/nix/store/0aqlw4i2k039flcqmzfcxmj4qs3q9zig-python3.12-python-matter-server-6.6.0/lib/python3.12/site-packages/matter_server/server/server.py", line 138, in __>
Nov 08 13:01:19 qb matter-server[733517]:     self.stack = MatterStack(self, bluetooth_adapter_id, enable_server_interactions)
Nov 08 13:01:19 qb matter-server[733517]:                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 08 13:01:19 qb matter-server[733517]:   File "/nix/store/0aqlw4i2k039flcqmzfcxmj4qs3q9zig-python3.12-python-matter-server-6.6.0/lib/python3.12/site-packages/matter_server/server/stack.py", line 108, in __i>
Nov 08 13:01:19 qb matter-server[733517]:     chip.native.Init(999 if bluetooth_adapter_id is None else bluetooth_adapter_id)
Nov 08 13:01:19 qb matter-server[733517]:   File "/nix/store/b28kzyikpj0fzp87l0wb5xy165lzwbpl-python3.12-home-assistant-chip-core-2024.9.0/lib/python3.12/site-packages/chip/native/__init__.py", line 247, in In>
Nov 08 13:01:19 qb matter-server[733517]:     handle = _GetLibraryHandle(Library.CONTROLLER, False)
Nov 08 13:01:19 qb matter-server[733517]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 08 13:01:19 qb matter-server[733517]:   File "/nix/store/b28kzyikpj0fzp87l0wb5xy165lzwbpl-python3.12-home-assistant-chip-core-2024.9.0/lib/python3.12/site-packages/chip/native/__init__.py", line 220, in _G>
Nov 08 13:01:19 qb matter-server[733517]:     handle = _Handle(ctypes.CDLL(FindNativeLibraryPath(lib)))
Nov 08 13:01:19 qb matter-server[733517]:                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 08 13:01:19 qb matter-server[733517]:   File "/nix/store/zkzg2gaacmhc2i9ggp35dbl5x0y49531-python3-3.12.7/lib/python3.12/ctypes/__init__.py", line 379, in __init__
Nov 08 13:01:19 qb matter-server[733517]:     self._handle = _dlopen(self._name, mode)
Nov 08 13:01:19 qb matter-server[733517]:                    ^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 08 13:01:19 qb matter-server[733517]: OSError: libnl-route-3.so.200: cannot open shared object file: No such file or directory
13:02:59
@k900:0upti.meK900Uh oh13:03:00
@k900:0upti.meK900 Ping @symphorien @hexa 13:04:27
@mattleon:matrix.orgmattleon Another issue I discovered: since 2024.10.3, some change to nix's toYaml function caused "on" and "off" to be serialized to yaml as on and off, whereas they used to be 'on' and 'off'. It looks like home-assistant uses yaml 1.1, where these are literal bools, and nix is now outputting yaml 1.2, where quoteless on and off are interpreted as string literals. I tried double quoting them in nix, but then it's serialized to a double-quoted string in yaml, which doesn't parse either 13:11:53
@mattleon:matrix.orgmattleon
In reply to @k900:0upti.me
Nov 08 13:01:19 qb matter-server[733517]: 2024-11-08 13:01:19.967 (MainThread) INFO [matter_server.server.stack] Initializing CHIP/Matter Logging...
Nov 08 13:01:19 qb matter-server[733517]: 2024-11-08 13:01:19.968 (MainThread) INFO [matter_server.server.stack] Initializing CHIP/Matter Controller Stack...
Nov 08 13:01:19 qb matter-server[733517]: 2024-11-08 13:01:19.968 (MainThread) ERROR [root] Uncaught exception
Nov 08 13:01:19 qb matter-server[733517]: Traceback (most recent call last):
Nov 08 13:01:19 qb matter-server[733517]:   File "/nix/store/0aqlw4i2k039flcqmzfcxmj4qs3q9zig-python3.12-python-matter-server-6.6.0/bin/.matter-server-wrapped", line 9, in <module>
Nov 08 13:01:19 qb matter-server[733517]:     sys.exit(main())
Nov 08 13:01:19 qb matter-server[733517]:              ^^^^^^
Nov 08 13:01:19 qb matter-server[733517]:   File "/nix/store/0aqlw4i2k039flcqmzfcxmj4qs3q9zig-python3.12-python-matter-server-6.6.0/lib/python3.12/site-packages/matter_server/server/__main__.py", line 220, in >
Nov 08 13:01:19 qb matter-server[733517]:     server = MatterServer(
Nov 08 13:01:19 qb matter-server[733517]:              ^^^^^^^^^^^^^
Nov 08 13:01:19 qb matter-server[733517]:   File "/nix/store/0aqlw4i2k039flcqmzfcxmj4qs3q9zig-python3.12-python-matter-server-6.6.0/lib/python3.12/site-packages/matter_server/server/server.py", line 138, in __>
Nov 08 13:01:19 qb matter-server[733517]:     self.stack = MatterStack(self, bluetooth_adapter_id, enable_server_interactions)
Nov 08 13:01:19 qb matter-server[733517]:                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 08 13:01:19 qb matter-server[733517]:   File "/nix/store/0aqlw4i2k039flcqmzfcxmj4qs3q9zig-python3.12-python-matter-server-6.6.0/lib/python3.12/site-packages/matter_server/server/stack.py", line 108, in __i>
Nov 08 13:01:19 qb matter-server[733517]:     chip.native.Init(999 if bluetooth_adapter_id is None else bluetooth_adapter_id)
Nov 08 13:01:19 qb matter-server[733517]:   File "/nix/store/b28kzyikpj0fzp87l0wb5xy165lzwbpl-python3.12-home-assistant-chip-core-2024.9.0/lib/python3.12/site-packages/chip/native/__init__.py", line 247, in In>
Nov 08 13:01:19 qb matter-server[733517]:     handle = _GetLibraryHandle(Library.CONTROLLER, False)
Nov 08 13:01:19 qb matter-server[733517]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 08 13:01:19 qb matter-server[733517]:   File "/nix/store/b28kzyikpj0fzp87l0wb5xy165lzwbpl-python3.12-home-assistant-chip-core-2024.9.0/lib/python3.12/site-packages/chip/native/__init__.py", line 220, in _G>
Nov 08 13:01:19 qb matter-server[733517]:     handle = _Handle(ctypes.CDLL(FindNativeLibraryPath(lib)))
Nov 08 13:01:19 qb matter-server[733517]:                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 08 13:01:19 qb matter-server[733517]:   File "/nix/store/zkzg2gaacmhc2i9ggp35dbl5x0y49531-python3-3.12.7/lib/python3.12/ctypes/__init__.py", line 379, in __init__
Nov 08 13:01:19 qb matter-server[733517]:     self._handle = _dlopen(self._name, mode)
Nov 08 13:01:19 qb matter-server[733517]:                    ^^^^^^^^^^^^^^^^^^^^^^^^^
Nov 08 13:01:19 qb matter-server[733517]: OSError: libnl-route-3.so.200: cannot open shared object file: No such file or directory
I can repro this on aarch64: OSError: libnl-route-3.so.200: cannot open shared object file: No such file or directory
13:12:32
@mattleon:matrix.orgmattleon * Another issue I discovered: since 2024.10.3, some change to nix's toYaml function caused "on" and "off" to be serialized to yaml as on and off, whereas they used to be 'on' and 'off'. It looks like home-assistant uses yaml 1.1, where these are literal bools, and nix is now outputting yaml 1.2, where quoteless on and off are interpreted as string literals. I tried double quoting them in nix, but then it's serialized to a double-quoted string in yaml, which doesn't parse properly in hass either 13:13:29
@k900:0upti.meK900Yeah I think I have a fix13:13:29
@k900:0upti.meK900Verifying onw13:13:32
@k900:0upti.meK900* Verifying now13:13:33
@k900:0upti.meK900I am also on aarch64 so it takes forever to build13:14:05
@k900:0upti.meK900There's no way it'll cross-compile, right13:16:09
@k900:0upti.meK900Wait what the fuck13:19:04
@k900:0upti.meK900Why is it building two of them13:19:07
@hexa:lossy.network@hexa:lossy.network
In reply to @mattleon:matrix.org
Another issue I discovered: since 2024.10.3, some change to nix's toYaml function caused "on" and "off" to be serialized to yaml as on and off, whereas they used to be 'on' and 'off'. It looks like home-assistant uses yaml 1.1, where these are literal bools, and nix is now outputting yaml 1.2, where quoteless on and off are interpreted as string literals. I tried double quoting them in nix, but then it's serialized to a double-quoted string in yaml, which doesn't parse properly in hass either
remarshal update: https://github.com/remarshal-project/remarshal/issues/52
13:20:21
@mattleon:matrix.orgmattleonI'm quite surprised the matter-server module tests didn't pick up on the missing dylib... I'll need to investigate and see if there's a weakness in the tests13:33:00
@k900:0upti.meK900https://github.com/NixOS/nixpkgs/pull/35449113:44:36
@k900:0upti.meK9001000004117.png
Download 1000004117.png
14:16:03
@k900:0upti.meK900Oh hey it actually worked 14:16:06
@hexa:lossy.network@hexa:lossy.networkso one thought about remarshal is that we could patch hass to use yamlcore and thus interpret things as yaml 1.214:19:22
@hexa:lossy.network@hexa:lossy.networkhttps://perlpunk.github.io/yaml-test-schema/schemas.html14:19:23
@hexa:lossy.network@hexa:lossy.networkthe other would be to try and revert to an older remarshal version that still emits yaml 1.114:19:46
@mattleon:matrix.orgmattleon
In reply to @hexa:lossy.network
so one thought about remarshal is that we could patch hass to use yamlcore and thus interpret things as yaml 1.2
Have you already made progress on this? If not, I'd be happy to start on it
23:29:55
@hexa:lossy.network@hexa:lossy.networkno, we probably need a treewide fix23:30:26
@hexa:lossy.network@hexa:lossy.networkso remarshal_0_17 and provide that as pkgs.formats.yaml_1_1, and the latest as yaml_1_223:30:57
@mattleon:matrix.orgmattleonAh, that makes sense. Much more maintainable than trying to carry a large hass patch23:31:44
9 Nov 2024
@mfed3:matrix.orgmfed3Trying to follow some of the comments up above about Declarative Nix scripts resolving "on" to state = "on" to state = true in yaml04:46:10
@mfed3:matrix.orgmfed3Noticing all my automations with on/off checks are broken with that issue. Can someone direct me to which pull request fixes that or is this an ongoing issue that needs a fix still04:47:08
@hexa:lossy.network@hexa:lossy.networktodo04:47:25
@mfed3:matrix.orgmfed3Roger. Is there a current workaround I can substitute ?04:47:40
@hexa:lossy.network@hexa:lossy.networkrollback04:47:45

Show newer messages


Back to Room ListRoom Version: 6