summaryrefslogtreecommitdiffstats
path: root/makefu/2configs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-11-18 23:57:59 +0100
committermakefu <github@syntax-fehler.de>2020-11-18 23:57:59 +0100
commit7117223d68adac92317b6ee700c9a1c19c66b573 (patch)
tree93410794a6fcbc23a770e6724cde155982b84cd9 /makefu/2configs
parentc20d3cb51ceefb699832c7436fd99baa0e018145 (diff)
ma ham/light/groups: init
Diffstat (limited to 'makefu/2configs')
-rw-r--r--makefu/2configs/ham/default.nix6
-rw-r--r--makefu/2configs/ham/light/groups.nix41
2 files changed, 47 insertions, 0 deletions
diff --git a/makefu/2configs/ham/default.nix b/makefu/2configs/ham/default.nix
index 44a36c0ab..9e3f7f669 100644
--- a/makefu/2configs/ham/default.nix
+++ b/makefu/2configs/ham/default.nix
@@ -18,10 +18,16 @@ in {
./multi/kurzzeitwecker.nix
./multi/the_playlist.nix
./multi/fliegen-couter.nix
+
./device_tracker/openwrt.nix
+
./sensor/outside.nix
+
./calendar/nextcloud.nix
+
./automation/firetv_restart.nix
+
+ ./light/groups.nix
];
services.home-assistant = {
diff --git a/makefu/2configs/ham/light/groups.nix b/makefu/2configs/ham/light/groups.nix
new file mode 100644
index 000000000..e1812b68a
--- /dev/null
+++ b/makefu/2configs/ham/light/groups.nix
@@ -0,0 +1,41 @@
+let
+ arbeitszimmer_licht = [
+ "light.led_wand"
+ "light.arbeitszimmer_led1_led_strip" # LED-Kreis in cube
+ "light.arbeitszimmer_flur_osram_light"
+ "light.arbeitszimmer_schrank_dimmer_light"
+ "light.arbeitszimmer_schrank_osram_light"
+ ];
+ wohnzimmer_licht = [
+ "light.wohnzimmer_fernseher_led_strip" # led um fernseher
+ "light.wohnzimmer_komode_osram_light"
+ "light.wohnzimmer_schrank_osram_light"
+ "light.wohnzimmer_stehlampe_osram_light"
+ ];
+ schlafzimmer_licht = [
+ "schlafzimmer_komode_osram_light"
+ ];
+in {
+ services.home-assistant.config.light = [
+ {
+ platform = "group";
+ name = "Arbeitszimmer Lichter";
+ entities = arbeitszimmer_licht;
+ }
+ {
+ platform = "group";
+ name = "Wohnzimmer Lichter";
+ entities = wohnzimmer_licht;
+ }
+ {
+ platform = "group";
+ name = "Schlafzimmer Lichter";
+ entities = schlafzimmer_licht;
+ }
+ {
+ platform = "group";
+ name = "Alle Lichter";
+ entities = arbeitszimmer_licht ++ wohnzimmer_licht ++ schlafzimmer_licht;
+ }
+ ];
+}