I made the corrections and rebased the PR to be up to date.
However, there is an error with the Cypress tests
Probably a flaky test, I reran the tests!
Thanks for the fixes!
Hi @Will_71 ,
I did a test this morning against my production, and it seems like the view is broken in the case where no URL is set, which will be the case for all existing users.
This PR needs to be backward-compatible with the existing setup, so that if the URL is not set, the list is displayed as before without breaking the view.
Eventually, we could indicate a small message saying that the URL can be added in the settings to display links to devices.
What do you think?
My review:
master â William-De71:features/zigbee2mqtt-add-IEEE-address
ouvert 09:33PM - 08 Mar 26 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 affect the code, did you 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 feature/service, did you run the 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 ([forum](https://community.gladysassistant.com/)) for testing before merging.
- [x] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
- [x] 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
add IEEE address and link to open Z2M on device & discover page
https://community.gladysassistant.com/t/ajout-de-lid-zigbee2mqtt-dans-la-configuration-des-appareils/9616
<img width="282" height="374" alt="image" src="https://github.com/user-attachments/assets/7a89fc30-878e-4a0e-89d5-4ff9c3b3cb07" />
## Summary by CodeRabbit
* **New Features**
* Show IEEE addresses for Zigbee2MQTT devices on device and discovery pages.
* Add a setup field to configure the Zigbee2MQTT frontend URL.
* Provide quick links (with a small logo) to open devices in the Zigbee2MQTT web UI when available.
* **Translations**
* Added German/English/French labels and placeholders for the frontend URL and IEEE address UI.
Yes thatâs not a bad idea, I hadnât thought of that case
It seems I donât get the same result.
I didnât remember this morning, but the goal was to not display the link if the address wasnât set, and under no circumstances break the view display.
Iâll retest with a copy of my database to see if I can reproduce the issue. Iâll keep you posted as soon as Iâve checked.
With a copy of my database, thereâs no issue either, my devices are displayed correctly. Just the link is not displayed because the URL is not configured
Maybe the problem is because on my side I use an external broker and you use a USB dongle configured in Gladys?
Hereâs the message I added
I pushed a fix and added the message. Iâm also rebasing with the latest release.
Could you retest on your side and let me know
Edit : I noticed the tests didnât pass. Iâll look into it later.
Thanks for your feedback, Iâll let you know as soon as Iâve been able to test it!
I had already tested in external mode on my production Zigbee2MQTT, so itâs normally not that. After, I might have just made a bad move Iâll take a look!
@Will_71 Thanks for adding the banner, I find it much clearer now!
I ran some more tests and everything works correctly. I think the problem was just on my end.
Thanks again for this development! For me, itâs validated, Iâve merged the PR and it will be included in the next version of Gladys
This new feature is available in Gladys Assistant 4.80:
Salut Ă tous !
Beaucoup de nouveautés en ce moment
Cette version 4.80 apporte de nombreuses amĂ©liorations de stabilitĂ©, des corrections sur Matter, Netatmo et Tuya, ainsi que plusieurs nouveautĂ©s autour de lâIA.
IA
Lâagent IA continue de sâamĂ©liorer avec deux nouveautĂ©s :
Ajout dâun nouvel outil sensor.set-state, permettant Ă lâagent de modifier directement lâĂ©tat de certains capteurs lorsque demandĂ©. Par exemple, vous pouvez utiliser lâIA pour lire une image de camâŠ
Thanks @Will_71 for the development!