# Gladys Assistant 4.49: Zeitverzögerte Auslöser in Szenen!

**URL:** <https://community.gladysassistant.com/t/gladys-assistant-4-49-declencheurs-avec-delai-dans-les-scenes/9181>\
**Category:** Actualités\
**Created:** [11. November 2024 um 10:43 UTC](https://community.gladysassistant.com/t/gladys-assistant-4-49-declencheurs-avec-delai-dans-les-scenes/9181 "2024-11-11T10:43:31Z")\
**Posts on this page:** 11\
**Page:** 2

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [5. Dezember 2024 um 16:54 UTC](https://community.gladysassistant.com/t/gladys-assistant-4-49-declencheurs-avec-delai-dans-les-scenes/9181/21 "2024-12-05T16:54:37Z")

</div>

Danke, dass du dir die Zeit nimmst @Will_71🙏

Ich denke, wenn du dieses Wochenende Tests durchführst, wäre das perfekt!

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [5. Dezember 2024 um 18:15 UTC](https://community.gladysassistant.com/t/gladys-assistant-4-49-declencheurs-avec-delai-dans-les-scenes/9181/22 "2024-12-05T18:15:20Z")

</div>

Okay. Ich werde versuchen, einen Beitrag mit Details zu schreiben, um zumindest ein Minimum zu erklären.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [8. Dezember 2024 um 19:39 UTC](https://community.gladysassistant.com/t/gladys-assistant-4-49-declencheurs-avec-delai-dans-les-scenes/9181/23 "2024-12-08T19:39:03Z")

</div>

Ich habe also am Wochenende Tests durchgeführt, um eine Migration der IDs (Selector und externe ID) für diejenigen zu testen, die nicht auf den Aktualisierungsknopf in der ZIGBEE2MQTT-Erkennung gedrückt haben.

## 1.

Für den Test habe ich ein älteres Gladys-Image neu gestartet, um den Lixee TIC in meinem alten Format zu meiner Datenbank hinzuzufügen.

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/7/b/7b1c05ed5f9a627f32df20696da2739cc6e12dcd.png)  
Ich habe die Installation etwas laufen lassen, um Daten in meiner Datenbank zu haben.  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/7/4/74bd98546d4ffc615875b7e1b669f98efd42a36f.png)

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/2/5/25c891ee084e1a0647313e311ce30d4f1d14d417.png)

## 2.

Danach habe ich ein Image mit meinem PR gestartet, das die Datenformatänderung des Lixee TIC enthält

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/1/6/166c30757523094ebbba11a4d455e1cd4ca9c2c7.png)

Ich habe den Aktualisierungsknopf in der ZIGBEE2MQTT-Erkennung. **Um keine Daten zu verlieren, wende ich die Aktualisierung nicht an!**

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/6/7/67da2ccd0fccdaeefdbf64c9f01fccea3a56ee4e.png)

Mein Dashboard hat sich nicht verändert

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/9/a/9aca243cf2bdfa13a885d4c6067b7c39445f3b82.png)

Meine Datenbank ist aktuell, außer bei den Selector und external\_id

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/7/c/7cc1dac0f8498adb19914e4f75b93bb6ba2c8a4d.png)

## 3.

Ich starte dann das Image mit der ID-Migration. Diese Migration soll die Selector und external\_id ändern, ohne die IDs jeder Funktion zu ändern.  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/6/c/6c59031b12b9dc90cc257f6283818f75e3ba2b72.png)  
Die Änderung der ID hat Auswirkungen auf die Datenwiederherstellung.

Der einzige negative Effekt dieser Migration ist, dass die Dashboards und Szenen neu erstellt werden müssen. Das ist die einzige Lösung, die ich gefunden habe, um die Daten nicht zu verlieren oder die alten IDs in der Datenbank zu suchen und zu ändern. Das ist machbar (@cicoub13 hat es gemacht), aber nicht für Anfänger!

Wie erwartet ist mein Dashboard kaputt

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/9/b/9b86034905923239133434f4e055d71a2c3b4b8d.png)

Meine Datenbank ist aktuell, die Selector und external\_id wurden geändert, aber nicht die IDs.

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/a/6/a6842735be3c1ad94be44b6fc666df2a90762e14.png)

Nach der Korrektur meines Dashboards habe ich meine Daten immer noch vorhanden

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/0/c/0c4355a699592af18cd413451ad892fe2e420960.png)

Ich kann dann auf die Aktualisierung in der ZIGBEE2MQTT-Erkennung klicken. Dies wird diesmal die Funktionserweiterungen bringen.

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/5/6/56a50183465ca6981cf593bc3dcb60292d65701d.png)

@pierre-gilles hier ist der PR. Ich könnte ein Image erstellen, falls benötigt!

> <https://github.com/GladysAssistant/Gladys/pull/2181>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[\] If your changes affects code, did your write the tests?
> \- \[\] Are tests passing? (\`npm test\` on both front/server)
> \- \[\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to the community (\[french forum\](https://community.gladysassistant.com/)/\[english forum\](https://en-community.gladysassistant.com/)) for testing before merging.
> \- \[\] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
> \- \[\] If you are adding a new features/services which needs explanation, did you modify the user documentation? See \[the GitHub repo\](https://github.com/GladysAssistant/v4-website) and the \[website\](https://gladysassistant.com).
> \- \[\] Did you add fake requests data for the demo mode (\`front/src/config/demo.js\`) so that the demo website is working without a backend? (if needed) See \[https://demo.gladysassistant.com\](https://demo.gladysassistant.com).
> 
> NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
> 
> \### Description of change
> 
> Please provide a description of the change here. It's always best with screenshots, so don't hesitate to add some!
> 
> Lixee TIC migration (selector & external\_id)

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [9. Dezember 2024 um 07:20 UTC](https://community.gladysassistant.com/t/gladys-assistant-4-49-declencheurs-avec-delai-dans-les-scenes/9181/24 "2024-12-09T07:20:21Z")

</div>

Danke @Will_71 für dein PR, es ist nett, dass du dir die Zeit genommen hast 🙂

Für mich ist das ein akzeptabler Kompromiss, aber ich würde gerne die Meinung derjenigen hören, die davon betroffen sind.

Unter denen, die im Umfrage mit „Ja“ gestimmt haben, würde diese Lösung euch gut passen? cc @davidm50 @gaetanb76 @Hizo @StephaneB @tiboys @Jluc @Gnome @prohand @jparbel @jerome

Im Großen und Ganzen müsst ihr die Szenen und Dashboards, die ihr Lixee TIC verwendet, neu anpassen, aber ohne Datenverlust, wäre das okay für euch? 🙂 Es tut mir leid, es ist keine perfekte Lösung, aber manchmal macht man Fehler ^^

---

<div class="post-metadata">

**Author:** ![prohand](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/prohand/32/15713_2.png) [@prohand](https://community.gladysassistant.com/u/prohand)\
**Post date:** [9. Dezember 2024 um 08:15 UTC](https://community.gladysassistant.com/t/gladys-assistant-4-49-declencheurs-avec-delai-dans-les-scenes/9181/25 "2024-12-09T08:15:18Z")

</div>

Ja, das ist okay für mich 🙂

---

<div class="post-metadata">

**Author:** ![StephaneB](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/stephaneb/32/15443_2.png) [@StephaneB](https://community.gladysassistant.com/u/StephaneB)\
**Post date:** [9. Dezember 2024 um 08:41 UTC](https://community.gladysassistant.com/t/gladys-assistant-4-49-declencheurs-avec-delai-dans-les-scenes/9181/26 "2024-12-09T08:41:26Z")

</div>

ok für mich auch. Danke @Will_71 !

---

<div class="post-metadata">

**Author:** ![tiboys](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tiboys/32/17668_2.png) [@tiboys](https://community.gladysassistant.com/u/tiboys)\
**Post date:** [9. Dezember 2024 um 09:41 UTC](https://community.gladysassistant.com/t/gladys-assistant-4-49-declencheurs-avec-delai-dans-les-scenes/9181/27 "2024-12-09T09:41:20Z")

</div>

Hallo,  
wie könnt ihr euch so eine Investition und so eine Arbeit vorwerfen lassen!  
Es ist schon eine super Nachricht, nichts zu verlieren.  
Großer Dank (und okay für mich dann) 👍 🙏

---

<div class="post-metadata">

**Author:** ![jparbel](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/j/d6d6ee/32.png) [@jparbel](https://community.gladysassistant.com/u/jparbel)\
**Post date:** [9. Dezember 2024 um 09:54 UTC](https://community.gladysassistant.com/t/gladys-assistant-4-49-declencheurs-avec-delai-dans-les-scenes/9181/28 "2024-12-09T09:54:29Z")

</div>

Das ist natürlich okay für mich, aber ich bin nicht zu Hause, ich kann nur per SSH eingreifen, solange.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [10. Dezember 2024 um 18:43 UTC](https://community.gladysassistant.com/t/gladys-assistant-4-49-declencheurs-avec-delai-dans-les-scenes/9181/29 "2024-12-10T18:43:47Z")

</div>

Danke an euch alle für euer Feedback und danke an @Will_71 für seine ganze Arbeit 🙏

Da es für euch gut ist, habe ich gerade gemerged, es wird in der nächsten Version von Gladys enthalten sein!

---

<div class="post-metadata">

**Author:** ![gaetanb76](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gaetanb76/32/5911_2.png) [@gaetanb76](https://community.gladysassistant.com/u/gaetanb76)\
**Post date:** [14. Dezember 2024 um 14:05 UTC](https://community.gladysassistant.com/t/gladys-assistant-4-49-declencheurs-avec-delai-dans-les-scenes/9181/30 "2024-12-14T14:05:14Z")

</div>

Ehrlich gesagt, ist das, was ihr macht, super.  
Ich werde mich nicht beschweren, weil ich nur mein Dashboard und meine Szenen neu erstellen muss.  
Ein großes DANKESCHÖN !!!

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [7. Januar 2025 um 17:30 UTC](https://community.gladysassistant.com/t/gladys-assistant-4-49-declencheurs-avec-delai-dans-les-scenes/9181/31 "2025-01-07T17:30:18Z")

</div>

Eine Nachricht wurde in ein neues Thema verschoben: [Trigger wird mehrmals ausgeführt](https://community.gladysassistant.com/t/declencheur-sexecute-plusieurs-fois/9282)

[Vorherige Seite](https://community.gladysassistant.com/t/gladys-assistant-4-49-declencheurs-avec-delai-dans-les-scenes/9181.md?page=1)
