summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/home/ham/automation/light_buttons.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2021-08-31 15:14:37 +0200
committermakefu <github@syntax-fehler.de>2021-08-31 15:24:48 +0200
commit6fa5b38bed3f8e73d6f86a844ef775735a3cad29 (patch)
treea0c171025107c1adef3c0f1a6eac5cbc65862436 /makefu/2configs/home/ham/automation/light_buttons.nix
parent2c9923264e318ad83ab9ceb4a13e47112dff0d4f (diff)
ma ham: consolidate button management
Diffstat (limited to 'makefu/2configs/home/ham/automation/light_buttons.nix')
-rw-r--r--makefu/2configs/home/ham/automation/light_buttons.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/makefu/2configs/home/ham/automation/light_buttons.nix b/makefu/2configs/home/ham/automation/light_buttons.nix
index b3c9ecdb6..62fc87bb4 100644
--- a/makefu/2configs/home/ham/automation/light_buttons.nix
+++ b/makefu/2configs/home/ham/automation/light_buttons.nix
@@ -1,6 +1,6 @@
let
- inherit (../lib) btn_cycle_light;
+ inherit (import ../lib) btn_cycle_light;
turn_off_all = btn: #lights:
{
alias = "Turn of all lights via ${btn} double click";
@@ -19,6 +19,8 @@ in {
services.home-assistant.config.automation = [
# (btn_cycle_light "light.arbeitszimmerbeleuchtung" "arbeitszimmer_btn1")
(btn_cycle_light "light.schlafzimmer_komode_osram" "schlafzimmer_btn2" 128)
+
+ (btn_cycle_light "light.keller_osram" "keller_btn1" 128)
# (btn_cycle_light "light.wohnzimmerbeleuchtung" "wohnzimmer_btn3")
(turn_off_all "schlafzimmer_btn2" )
];