From c5d90459230c806771b0265788494a3fa52108c9 Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 8 Jan 2020 18:42:09 +0100 Subject: filebitch.r: init;shack/glados: fix schlechte_luft automation, add hass-restart --- .../2configs/shack/glados/automation/hass-restart.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 krebs/2configs/shack/glados/automation/hass-restart.nix (limited to 'krebs/2configs/shack/glados/automation/hass-restart.nix') 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"; + }; + } + ]; + } +] + -- cgit v1.2.3