guim31
13. Dezember 2022 um 12:04
1
Derzeit ist es im Rahmen der Nutzung mehrerer verbundener Tasten (Xiaomi oder andere) nicht möglich, diese direkt in Szenen zu integrieren, da beim Drücken der Tasten Dinge wie folgt zurückgegeben werden:
single_left, single_right, single_both, double_left, double_right, double_both, triple_left, triple_right, triple_both, hold_left, hold_right, hold_both
In Szenen können wir jedoch nur Folgendes verwenden:
Was nur numerische Ganzzahlen erlaubt.
Es sollte daher möglich sein, diese „textuellen“ Werte in Szenen zu integrieren, ohne NodeRed zu verwenden.
VonOx
13. Dezember 2022 um 13:15
2
Der PR ist bereits in Arbeit von @AlexTrovato
master ← atrovato:button-click-user-friendly
ouvert 10:15AM - 04 Nov 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:
- ~~[ ] 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)
- [x] 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).~~
- [x] 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
Override button click values by user friendly wording.
See https://community.gladysassistant.com/t/affichage-des-boutons-textuels-dans-les-scenes-et-tableau-de-bord-au-lieu-dentier/7644
#### Dashboard

#### Scene

guim31
13. Dezember 2022 um 13:44
3
Verdammt… ich sollte Github öfter besuchen! (vorausgesetzt, ich verstehe überhaupt etwas davon!)
@guim31 ,
bin nicht einverstanden, dass es sich um dieselbe Anfrage handelt, die du im November 2022 erstellt hast:
Affichage des boutons textuels dans les scènes et tableau de bord (au lieu d'entier) ?
Da du sie als „erledigt“ markiert hast, schließe ich sie jetzt. Lass es mich wissen, wenn sie wieder geöffnet werden muss, da der PR (der meiner Meinung nach mit deiner anderen Anfrage gemeinsam ist) noch nicht veröffentlicht wurde.