In the ZigBee2MQTT integration, have the ability (as in the Tasmota integration) to edit the categories.
For example, switches of the Sonoff ZBMini-L type are recognized as switches (which is the case) but control lighting in different rooms. They should therefore be able to be referenced as such.
This would answer my questions:
Hello,
Jâai installĂ© rĂ©cemment ce device derriĂšre un interrupteur pour gĂ©rer un plafonnier.
LâintĂ©gration, aucun problĂšme !
Le seul truc que jâai Ă redire, câest que le device est considĂ©rĂ© comme une prise dans gladys alors quâil peut ĂȘtre lâun ou lâautre.
Ne pourrait on pas avoir un toggle pour lui dire lumiere ou prise dans la définition du device ?
CĂŽtĂ© google pas de soucis on peut le reclassifier mais CĂŽtĂ© gladys pour lâinstant câest dans le marbre
Hello everyone
I had fun assigning this task to Windsurf, with GPT-5 (low reasoning); without explaining anything, I just sent the link to this thread:
And it produced a really perfect implementation for me:
master â zigbee2mqtt-allow-update-category
ouvert 10:07AM - 11 Sep 25 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)
- [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.
### Description of change
Fix https://community.gladysassistant.com/t/z2m-editer-les-categories-fonctionnalites/7472
Well, itâs a specific case of development thatâs easy to implement but lengthy to test.
What took me the most time was testing the result, but I was still impressed by the quality of the implementation!
So, I tested it live on my test hardware, and it works very well:
Iâll keep you posted when itâs available
4 Likes