Hola,
¿Sería posible crear una nueva caja para activar o desactivar una escena desde el Panel de Control?
Dado que la integración de las sirenas y de varios sensores de gas está en curso en la integración Z2M, sería interesante poder activar una escena « Alarma » directamente desde el panel de control.
No necesitas realmente una caja para esto.
Crea un dispositivo MQTT falso tipo interruptor (que mostrarás en tu panel de control) y crea una escena cuyo escenario es:
Al cambiar el estado de mi dispositivo MQTT
Activar la escena X
¡Y listo!
Efectivamente, apoyo a @guim31 para el hack!
Pero creo que esta solicitud sigue siendo útil, ¡la conservamos!
¡He quitado lo de « Solución »! ¡Gracias a los dos!
Hola a todos,
He hecho una pequeña propuesta para esta solicitud:
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">
Me pregunté si no deberíamos elegir una lista de escenas en lugar de una sola escena, ¿qué opinan?
¡Todos los comentarios son bienvenidos!
¡Muchas gracias por la propuesta @Lokkye !
Solo una pregunta sobre el propósito de esta función, la idea era poner un botón para « activar/desactivar » una escena, o « disparar » una escena?
Porque el título no concuerda con los mensajes de abajo
@pierre-gilles de lo que entendí de los mensajes, era solo activar o desactivar una escena, pero puedo añadir un botón para poder activarla en la misma caja si es necesario.
Este mensaje me hacía pensar lo contrario, hablaba claramente de activación:
Después, ¡las dos funcionalidades son interesantes, estoy de acuerdo!
Hay que probar si todo debe estar en una misma caja o en dos cajas diferentes, no debe estar demasiado cargado para el uso en móvil
He intentado poner las dos en la misma caja, pero no me parece muy claro. No sé cómo hacerlo para que sea « bonito » y comprensible. Si alguien tiene una idea, estaré encantado de escucharla.
He hecho una revisión de tu PR, efectivamente la implementación actual no está clara.
La caja muestra la fecha de la última ejecución, por lo que esperamos que hacer clic en el botón ejecute la escena, ¡pero no es así!
Todos mis comentarios están disponibles aquí:
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">
Cierro este tema porque esta posibilidad se desarrolló hace mucho tiempo