summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/glados
diff options
context:
space:
mode:
Diffstat (limited to 'krebs/2configs/shack/glados')
-rw-r--r--krebs/2configs/shack/glados/automation/hass-restart.nix19
-rw-r--r--krebs/2configs/shack/glados/default.nix7
-rw-r--r--krebs/2configs/shack/glados/multi/schlechte_luft.nix6
3 files changed, 27 insertions, 5 deletions
diff --git a/krebs/2configs/shack/glados/automation/hass-restart.nix b/krebs/2configs/shack/glados/automation/hass-restart.nix
new file mode 100644
index 000000000..0b4439d97
--- /dev/null
+++ b/krebs/2configs/shack/glados/automation/hass-restart.nix
@@ -0,0 +1,19 @@
+# needs:
+# light.fablab_led
+[
+ { alias = "State on HA start-up";
+ trigger = {
+ platform = "homeassistant";
+ event = "start";
+ };
+ action = [
+ { service = "light.turn_on";
+ data = {
+ entity_id = "light.fablab_led";
+ effect = "Rainbow";
+ };
+ }
+ ];
+ }
+]
+
diff --git a/krebs/2configs/shack/glados/default.nix b/krebs/2configs/shack/glados/default.nix
index 59b636697..bdbfa02f9 100644
--- a/krebs/2configs/shack/glados/default.nix
+++ b/krebs/2configs/shack/glados/default.nix
@@ -45,7 +45,7 @@ in {
autoExtraComponents = true;
config = {
homeassistant = {
- name = "Bureautomation";
+ name = "Glados";
time_zone = "Europe/Berlin";
latitude = "48.8265";
longitude = "9.0676";
@@ -128,7 +128,10 @@ in {
#recorder = {};
sun = {};
- automation = wasser.automation ++ badair.automation;
+ automation = wasser.automation
+ ++ badair.automation
+ ++ (import ./automation/hass-restart.nix);
+
device_tracker = [];
};
};
diff --git a/krebs/2configs/shack/glados/multi/schlechte_luft.nix b/krebs/2configs/shack/glados/multi/schlechte_luft.nix
index 95ea60c04..a72d32d96 100644
--- a/krebs/2configs/shack/glados/multi/schlechte_luft.nix
+++ b/krebs/2configs/shack/glados/multi/schlechte_luft.nix
@@ -29,7 +29,7 @@ in
[
{ service = "light.turn_on";
data = {
- entity = "fablab_led";
+ entity_id = "light.fablab_led";
effect = "Twinkle";
color_name = "green";
};
@@ -54,7 +54,7 @@ in
[
{ service = "light.turn_on";
data = {
- entity = "fablab_led";
+ entity_id = "light.fablab_led";
effect = "Twinkle";
color_name = "yellow";
};
@@ -73,7 +73,7 @@ in
[
{ service = "light.turn_on";
data = {
- entity = "fablab_led";
+ entity_id = "light.fablab_led";
effect = "Twinkle";
color_name = "red";
};