!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

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

You have reached the beginning of time (for this room).


SenderMessageTime
8 Nov 2024
@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
@mfed3:matrix.orgmfed3Thanks, appreciate it04:48:13
@mfed3:matrix.orgmfed3My current version is 2024.10.4, should I just roll back to 2024.10.3? Or is there a version you recommend and know is good05:01:08
@hexa:lossy.network@hexa:lossy.networkcan you provide a config that obviously breaks?05:02:24
@hexa:lossy.network@hexa:lossy.networkideally one that breaks hard05:04:09
@mfed3:matrix.orgmfed3Yea let me find the simplest one that doesn't any extra factors other than the on off true false things going on, some of my automations have a lot of conditions going on05:06:42
@mfed3:matrix.orgmfed3 { config, pkgs, ... }: { services.home-assistant.config.automation = [ { alias = "Iron Auto Off"; trigger = { platform = "state"; entity_id = "switch.sonoff_s31_lite_zb_switch_2"; to = "on"; for = "00:15:00"; }; action = { service = "switch.turn_off"; entity_id = "switch.sonoff_s31_lite_zb_switch_2"; }; } ]; }05:09:46
@hexa:lossy.network@hexa:lossy.networkdoes that fail to validate the config?05:10:15
@mfed3:matrix.orgmfed3 * what's the code block escape I need again05:10:26

Show newer messages


Back to Room ListRoom Version: 6