diff options
author | makefu <github@syntax-fehler.de> | 2021-12-04 17:31:26 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2021-12-04 17:31:26 +0100 |
commit | 34bb01a65e8ff98a11ba135676481980e45df68d (patch) | |
tree | 0bc6388c8ea4a82eb4b3e15a3b6cbe5dd7d3e8aa /2configs/home/ham/light | |
parent | 75b62a47ce48ac76e332b1ce7ca5ba5dfa30ae5b (diff) |
ma ham: update light automation
Diffstat (limited to '2configs/home/ham/light')
-rw-r--r-- | 2configs/home/ham/light/arbeitszimmer.nix | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/2configs/home/ham/light/arbeitszimmer.nix b/2configs/home/ham/light/arbeitszimmer.nix index bc60678b3..45fbfb57b 100644 --- a/2configs/home/ham/light/arbeitszimmer.nix +++ b/2configs/home/ham/light/arbeitszimmer.nix @@ -6,7 +6,8 @@ let ]; arbeitszimmerbeleuchtung = [ "light.arbeitszimmer_schrank_dimmer" - "light.arbeitszimmer_kerze" # arbeitszimmer_kerze + "light.arbeitszimmer_kerze" + "light.arbeitszimmer_pflanzenlicht" ]; in { services.home-assistant.config.light = [ @@ -20,5 +21,22 @@ in { name = "Arbeitszimmer Deko"; entities = arbeitszimmer_deko; } + { platform = "switch"; + name = "Arbeitszimmer Pflanzenlicht"; + entity_id = "switch.arbeitszimmer_stecker1"; + } + ]; + services.home-assistant.config.automation = [ + { + alias = "Toggle Arbeitszimmerbeleuchtung via Remote"; + trigger = { + platform = "state"; + entity_id = "sensor.arbeitszimmer_remote1_action"; + }; + action = { + service = "light.toggle"; + data.entity_id = "light.arbeitszimmerbeleuchtung"; + }; + } ]; } |