From 2f532dc573e35128ea82315289a0714579c9142a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 24 Jan 2025 15:01:30 +0100 Subject: nixos: refactor the home automation This moves zigbee to spt-omnia. --- nixos/home-assistant/light.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 nixos/home-assistant/light.nix (limited to 'nixos/home-assistant/light.nix') diff --git a/nixos/home-assistant/light.nix b/nixos/home-assistant/light.nix new file mode 100644 index 0000000..a9d158b --- /dev/null +++ b/nixos/home-assistant/light.nix @@ -0,0 +1,13 @@ +[ + { + name = "RGB Osvětlení"; + command_topic = "homeassistant/led-strip"; + brightness_scale = 100; + brightness_command_topic = "bigclown/node/power-controller:0/led-strip/-/brightness/set"; + #brightness_state_topic = "bigclown/node/power-controller:0/led-strip/-/brightness/set"; + rgb_command_template = ''"#{{"%02x" % red}}{{"%02x" % green}}{{"%02x" % blue}}"''; + rgb_command_topic = "bigclown/node/power-controller:0/led-strip/-/color/set"; + #rgb_value_template = ''{{int(value[2:4],16)}},{{int(value[5:7],16)}},{{int(value[8:10],16)}}''; + #rgb_state_topic = "bigclown/node/power-controller:0/led-strip/-/color/set"; + } +] -- cgit v1.2.3