summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/glados/switch/power.nix
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-06-19 03:25:39 +0200
committerlassulus <git@lassul.us>2023-06-19 03:25:39 +0200
commit139799c53cdaf55c362109e01be9dd96cc8700ed (patch)
treeb1ce719ec8f62458bce2d9fe2191b8d004630f2a /krebs/2configs/shack/glados/switch/power.nix
parentcb8fbb09127392a17d698d91f78ede7ae46accb8 (diff)
parenta766e88e7c8d87aa6bdbde796d3a454f7b5e546e (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'krebs/2configs/shack/glados/switch/power.nix')
-rw-r--r--krebs/2configs/shack/glados/switch/power.nix44
1 files changed, 0 insertions, 44 deletions
diff --git a/krebs/2configs/shack/glados/switch/power.nix b/krebs/2configs/shack/glados/switch/power.nix
deleted file mode 100644
index 9ec115faa..000000000
--- a/krebs/2configs/shack/glados/switch/power.nix
+++ /dev/null
@@ -1,44 +0,0 @@
-# 1 - haupt
-# 2 - dusche
-# 3 - warmwasser
-# 4 - or
-# 5 - kueche
-let
- nodelight = type: ident: name: {
- platform = "mqtt";
- name = "${type} ${name}";
- command_topic = "${type}/${toString ident}/command";
- state_topic = "${type}/${toString ident}/state";
- payload_on = "on";
- payload_off = "off";
- };
- power = nodelight "power";
- light = ident: name: { icon = "mdi:lightbulb";} // nodelight "light" ident name;
-in
-{
- services.home-assistant.config.switch =
- [
- # These commands we see with a shutdown:
- # power/143/state on
- # power/142/state on
- # power/141/state on
- # power/142/state off
- # power/141/state off
- # power/10/state off
- # power/main/state off
-
- (power "10" "Hauptschalter")
- (power 1 "Dusche") # ???
- (power 2 "Warmwasser") # ???
- (power 3 "Optionsräume") # ???
- (power 4 "Küche") # ???
- (light 1 "Decke Lounge 1")
- (light 2 "Decke Lounge 2")
- (light 3 "Decke Lounge 3")
- (light 4 "Decke Lounge 4")
- (light 5 "Decke Lounge 5")
- (light 6 "Decke Lounge 6")
- (light 7 "Decke Lounge 7")
- (light 8 "Decke Lounge 8")
- ];
-}