From 449b5285b93b3059ada7e4a053900bf225de07b0 Mon Sep 17 00:00:00 2001
From: jabertwo <git@jabertwo.de>
Date: Sat, 22 Jul 2023 00:41:03 +0200
Subject: [PATCH] turn off picture matrix

---
 .../templates/config/configuration.yaml            | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/intern/docker_homeassistant/templates/config/configuration.yaml b/intern/docker_homeassistant/templates/config/configuration.yaml
index fe184f51..1601205f 100644
--- a/intern/docker_homeassistant/templates/config/configuration.yaml
+++ b/intern/docker_homeassistant/templates/config/configuration.yaml
@@ -79,6 +79,12 @@ rest_command:
   set_zone_status_closed: 
     url: "https://api.warpzone.ms/setstatus?newstatus=CLOSED&update_key={{ warpai_status_update_key }}"
     method: GET 
+  set_lounge_matrix_off:
+    url: "http://led-matrix.warpzone.lan/play/off.png"
+    method: GET
+  set_lounge_matrix_on:
+    url: "http://led-matrix.warpzone.lan/skip"
+    method: GET
 
 # https://www.home-assistant.io/integrations/telegram/
 telegram_bot:
@@ -705,6 +711,8 @@ automation ansible:
             - kuche
             - lounge
             - serverrack
+      - service: rest_command.set_lounge_matrix_off
+        data: {}
     mode: queued
     max: 30
   
@@ -732,7 +740,7 @@ automation ansible:
     max: 30
 
   # WLED default Lounge
-  - alias: "ANSIBLE_WLED_lougne_default"
+  - alias: "ANSIBLE_WLED_lounge_default"
     description: WLED Default effect in der Lounge
     trigger:
       - type: turned_on
@@ -769,6 +777,8 @@ automation ansible:
             - select.lampan_preset
             - select.clock_preset
             - select.fernseher01_preset
+      - service: rest_command.set_lounge_matrix_on
+        data: {}
     mode: single
 
   # WLED default hackcenter
@@ -815,7 +825,7 @@ automation ansible:
 
 
   # WLED meteor lounge
-  - alias: "ANSIBLE_WLED_Lounge_Meteor"
+  - alias: "ANSIBLE_WLED_lounge_Meteor"
     description: WLED Meteor effect in der Lounge
     trigger:
       - type: turned_on
-- 
GitLab