# Sonoff SNZB-01 Taster

**URL:** <https://community.gladysassistant.com/t/bouton-sonoff-snzb-01/6812>\
**Category:** Configuration\
**Created:** [16. Januar 2022 um 17:53 UTC](https://community.gladysassistant.com/t/bouton-sonoff-snzb-01/6812 "2022-01-16T17:53:46Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [17. Januar 2022 um 08:36 UTC](https://community.gladysassistant.com/t/bouton-sonoff-snzb-01/6812/3 "2022-01-17T08:36:37Z")

</div>

> [@lmilcent](#):
>
> Ich glaube, @cicoub13 hatte vorgeschlagen, zunächst „3“ für den langen Klick hinzuzufügen, aber man sollte wirklich über eine dauerhaftere (und verständlichere?) Lösung nachdenken.

Ja, aber ich glaube, wir hatten uns entschieden!

> [@Szene mit einem Button (Doppel- oder Einzelklick)](https://community.gladysassistant.com/t/scene-avec-un-bouton-double-ou-simple-clic/6167/35?u=pierre-gilles):
>
> J’ai supprimé le NO\_CLICK (qui n’avait pas de sens) et l’interrupteur WXKG06LM envoie un évènement hold dans Zigbee (équivalent à un LONG\_CLICK). Il ne gère pas l’appui (press) et le relâchement de l’appui (release) J’ai donc gardé les valeurs 3 et 4 pour ne pas casser le service Xiaomi (cas d’autres interrupteurs) et j’ai : const BUTTON\_STATUS = { CLICK: 1, DOUBLE\_CLICK: 2, LONG\_CLICK\_PRESS: 3, LONG\_CLICK\_RELEASE: 4, LONG\_CLICK: 5, };

---

_[View the full topic](https://community.gladysassistant.com/t/bouton-sonoff-snzb-01/6812)._
