Will_71
26. Oktober 2024 um 12:44
1
@pierre-gilles , ich habe ein neues Thema mit den spezifischen Funktionen für LixeeTIC erstellt.
Allerdings funktioniert das Dashboard für diejenigen, die ein LixeeTIC-Dashboard haben, aktuell nicht. Ich denke, wir müssen eine Migration durchführen, aber ich hatte noch keine Zeit, mich damit zu beschäftigen.
Alles klar! Zögere nicht, wenn du Fragen zur Migration hast
Will_71
5. November 2024 um 18:17
3
@pierre-gilles , ich komme nochmal auf das Thema Migration zu sprechen, das ich durchführen möchte.
Ich nehme an, dass das im Ordner server/migrations passiert.
Wie wird der Dateiname gebildet? Denn ich sehe, dass alle Dateien ein Datum/Uhrzeit im Namen haben.
Wann wird die Datei ausgeführt? Beim Start von Gladys?
Man verwendet das Migrations-Tool von Sequelize:
Just like you use version control systems such as Git to manage changes in your source code, you can use migrations to keep track of changes to the database. With migrations, you can transfer your existing database into another state and vice versa:...
Du kannst eine Migration erstellen, indem du im Ordner server folgendes ausführst:
npx sequelize-cli migration:generate --name nom-de-la-migration
Will_71:
Beim Starten von Gladys?
Wenn du entwickelst, kannst du folgendes tun:
npm run db-migrate:dev
Oder für Tests:
npm run db-migrate:test
Ansonsten ja, es wird beim Starten von Gladys ausgeführt (einmalig)
Wenn du in deiner SQLite-Datenbank nachschaust, wirst du sehen, dass es eine Tabelle gibt, die die bereits ausgeführten Migrations auflistet!
Will_71
5. November 2024 um 19:59
5
Danke, ich halte dich auf dem Laufenden, sobald der PR mit der Migration fertig ist.
Will_71
7. November 2024 um 18:39
6
@pierre-gilles , der PR ist fertig. Ich habe die Migration hinzugefügt.
master ← William-De71:lixee-tic
ouvert 09:25PM - 17 Oct 24 UTC
### 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:
- [x] Are tests passing? (`npm test` on both front/server)
- [x] Is the linter passing? (`npm run eslint` on both front/server)
- [x] Did you run prettier? (`npm run prettier` on both front/server)
- [x] If you are adding a new features/services, did you run integration comparator? (`npm run compare-translations` on front)
- [x] 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.
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!


Ich habe es selbst getestet, es funktioniert. Ich kann ein Image erstellen, falls jemand testen möchte.
Toll, wenn du es getestet hast
Ich habe eine kleine Review gemacht, ich habe einen Kommentar:
master ← William-De71:lixee-tic
ouvert 09:25PM - 17 Oct 24 UTC
### 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:
- [x] Are tests passing? (`npm test` on both front/server)
- [x] Is the linter passing? (`npm run eslint` on both front/server)
- [x] Did you run prettier? (`npm run prettier` on both front/server)
- [x] If you are adding a new features/services, did you run integration comparator? (`npm run compare-translations` on front)
- [x] 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.
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!


Diese Funktion ist in Gladys Assistant 4.49 verfügbar:
Salut à tous !
Nouvelle version de Gladys aujourd’hui, avec des fonctionnalités vraiment sympa
Déclencheur avec délai dans les scènes
Il est désormais possible d’ajouter un délai avant le déclenchement d’une scène sur valeur de capteur.
Par exemple, si vous avez un capteur de mouvement, et que vous voulez vérifier qu’il n’y a pas de mouvement pendant au moins 5 minutes avant de couper la lumière, vous pouvez désormais faire ça :
[Screenshot 2024-11-04 at 17.19.46]
Cette condition …