summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/home/ham/light
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2021-12-04 17:31:26 +0100
committermakefu <github@syntax-fehler.de>2021-12-04 17:31:26 +0100
commit14f05eb886992d64fc5b245dc45819a9cb06708f (patch)
tree387b8bf812eb9fefe3be1569099497626444a3de /makefu/2configs/home/ham/light
parent5eba86c1c6e101c6ad1254793515e574b12c4544 (diff)
ma ham: update light automation
Diffstat (limited to 'makefu/2configs/home/ham/light')
-rw-r--r--makefu/2configs/home/ham/light/arbeitszimmer.nix20
1 files changed, 19 insertions, 1 deletions
diff --git a/makefu/2configs/home/ham/light/arbeitszimmer.nix b/makefu/2configs/home/ham/light/arbeitszimmer.nix
index bc60678b3..45fbfb57b 100644
--- a/makefu/2configs/home/ham/light/arbeitszimmer.nix
+++ b/makefu/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";
+ };
+ }
];
}