Hallo,
Wäre es möglich, eine neue Box für die Aktivierung oder Deaktivierung einer Szene vom Dashboard aus zu erstellen?
Da die Integration von Sirenen und verschiedenen Gas-Sensoren im Gange ist, wäre es interessant, eine „Alarm“-Szene direkt vom Dashboard aus aktivieren zu können.
guim31
17. März 2022 um 17:11
2
Du brauchst dafür keine Box.
Du erstellst ein fiktives MQTT-Gerät vom Typ Schalter (das du auf deinem Dashboard anzeigst) und erstellst eine Szene, deren Szenario lautet:
Bei Änderung des Zustands meines MQTT-Geräts
Szene X auslösen
Und schon ist es erledigt!
Ja, ich unterstütze @guim31 beim Hack!
Aber ich denke, dass diese Anfrage trotzdem nützlich ist, also behalten wir sie bei!
Ich habe also das „Lösung“ entfernt, vielen Dank an euch beide!
Lokkye
18. April 2022 um 16:19
6
Hallo zusammen,
Ich habe einen kleinen Vorschlag für diese Anfrage gemacht:
master ← callemand:DashboardScene
ouvert 04:15PM - 18 Apr 22 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] If your changes affects code, did your write the tests?
- [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)
- [ ] 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](https://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
Proposal for this feature request : https://community.gladysassistant.com/t/dashboard-activer-ou-desactiver-une-scene/7072/3
Add new boxes to display scene. We can activate or deactivate scene from this new box
<img width="559" alt="Screenshot 2022-04-18 at 18 08 37" src="https://user-images.githubusercontent.com/11317212/163838161-95a0a61c-224d-4d08-8b70-1743a2464cef.png">
<img width="549" alt="Screenshot 2022-04-18 at 18 21 20" src="https://user-images.githubusercontent.com/11317212/163838942-af770f42-a5ec-4583-9abd-c87e7bd1c13a.png">
Ich habe mich gefragt, ob wir nicht eine Liste von Szenen statt nur eine einzige Szene wählen sollten, was denkt ihr?
Jede Rückmeldung ist willkommen
Vielen Dank für den Vorschlag @Lokkye !
Ich habe nur eine Frage zum Zweck dieser Funktion. Die Idee war, einen Button für „Aktivieren/Deaktivieren“ einer Szene oder „Auslösen“ einer Szene einzufügen?
Denn der Titel stimmt nicht mit den darunter stehenden Nachrichten überein.
Lokkye
26. April 2022 um 17:20
8
@pierre-gilles soweit ich die Nachrichten verstanden habe, ging es nur darum, eine Szene zu aktivieren oder zu deaktivieren, aber ich kann einen Knopf hinzufügen, um sie in derselben Box auszulösen, falls nötig.
Diese Nachricht ließ mich das Gegenteil annehmen, es ging klar um Auslösung:
Danach sind die beiden Funktionen interessant, da bin ich einverstanden!
Ausprobieren, ob alles in einer Box sein muss oder zwei verschiedene Boxen, es sollte nicht zu überladen sein für die Nutzung auf dem Handy
Lokkye
8. Mai 2022 um 13:31
10
Ich habe versucht, die beiden in eine Box zu setzen, aber ich finde, das ist nicht sehr klar. Ich sehe nicht, wie man das „schön“ und verständlich machen kann. Wenn jemand eine Idee hat, bin ich dankbar.
Ich habe deine PR überprüft, tatsächlich ist die aktuelle Implementierung nicht klar.
Die Box zeigt das Datum des letzten Ausführungszeitpunkts an, daher erwartet man, dass das Klicken auf den Button die Szene ausführt, aber das ist nicht der Fall!
Alle meine Kommentare sind hier verfügbar:
master ← callemand:DashboardScene
ouvert 04:15PM - 18 Apr 22 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] If your changes affects code, did your write the tests?
- [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)
- [ ] 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](https://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
Proposal for this feature request : https://community.gladysassistant.com/t/dashboard-activer-ou-desactiver-une-scene/7072/3
Add new boxes to display scene. We can activate or deactivate scene from this new box
<img width="559" alt="Screenshot 2022-04-18 at 18 08 37" src="https://user-images.githubusercontent.com/11317212/163838161-95a0a61c-224d-4d08-8b70-1743a2464cef.png">
<img width="549" alt="Screenshot 2022-04-18 at 18 21 20" src="https://user-images.githubusercontent.com/11317212/163838942-af770f42-a5ec-4583-9abd-c87e7bd1c13a.png">
Ich schließe dieses Thema, weil diese Möglichkeit schon vor langer Zeit entwickelt wurde