# AVATTO Tuya Zigbee Smart Switch + Sonoff ZB mini

**URL:** <https://community.gladysassistant.com/t/avatto-interrupteur-connecte-tuya-zigbee-sonoff-zb-mini/6633>\
**Category:** Développement\
**Created:** [27. Oktober 2021 um 14:04 UTC](https://community.gladysassistant.com/t/avatto-interrupteur-connecte-tuya-zigbee-sonoff-zb-mini/6633 "2021-10-27T14:04:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jac34](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jac34/32/3521_2.png) [@Jac34](https://community.gladysassistant.com/u/Jac34)\
**Post date:** [27. Oktober 2021 um 14:04 UTC](https://community.gladysassistant.com/t/avatto-interrupteur-connecte-tuya-zigbee-sonoff-zb-mini/6633/1 "2021-10-27T14:04:20Z")

</div>

Hallo, ich habe einen Antrag auf GitHub gestellt, um in Gladys meinen AVATTO-Schalter – einen drahtlosen Tuya Zigbee-Smart-Lichtschalter – sowie den Sonoff ZB Mini zu verwalten.  
Sie werden in Zigbee2 mqtt angezeigt, aber nicht verwaltet.  
Vielen Dank an euch alle.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [1. November 2021 um 04:36 UTC](https://community.gladysassistant.com/t/avatto-interrupteur-connecte-tuya-zigbee-sonoff-zb-mini/6633/2 "2021-11-01T04:36:16Z")

</div>

Hallo @Jac34, ich glaube, ich habe dir geantwortet, @AlexTrovato arbeitet an einem PR, um diesen Konfigurationsschritt zu umgehen, damit die Zigbee2mqtt-Geräte automatisch erkannt und konfiguriert werden können.

Das passiert in diesem PR:

> <https://github.com/GladysAssistant/Gladys/pull/1302>
>
> \### 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\] 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.json\`) 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 automatic device builder from Zigbee2mqtt device definition message.
> 
> Now service read the MQTT retained message from zigbee2mqtt containing device definition and map it to Gladys device / features : https://www.zigbee2mqtt.io/information/mqtt\_topics\_and\_message\_structure.html#zigbee2mqttbridgedevices 
> 
> No more "device model" mapping.
> 
> Tests from : https://community.gladysassistant.com/t/zigbee2mqtt-debug/6080/46?u=alextrovato

---

<div class="post-metadata">

**Author:** ![Jac34](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jac34/32/3521_2.png) [@Jac34](https://community.gladysassistant.com/u/Jac34)\
**Post date:** [26. November 2021 um 17:51 UTC](https://community.gladysassistant.com/t/avatto-interrupteur-connecte-tuya-zigbee-sonoff-zb-mini/6633/3 "2021-11-26T17:51:01Z")

</div>

Hallo,  
Das Problem ist gelöst!! Das letzte Update hat meinen Smart Switch „TUYA ZIGBEE“ sowie den Sonoff ZB mini zum Laufen gebracht.  
Danke AlexTrovato für deine Arbeit sowie Pierre-Gilles. 😀
