# Capteur de vibration Tuya Zigbee

**URL:** <https://community.gladysassistant.com/t/capteur-de-vibration-tuya-zigbee/6632>\
**Category:** Configuration\
**Created:** [Octobre 26, 2021, 6:16 UTC](https://community.gladysassistant.com/t/capteur-de-vibration-tuya-zigbee/6632 "2021-10-26T18:16:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jparbel](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/j/d6d6ee/32.png) [@jparbel](https://community.gladysassistant.com/u/jparbel)\
**Post date:** [Octobre 26, 2021, 6:16 UTC](https://community.gladysassistant.com/t/capteur-de-vibration-tuya-zigbee/6632/1 "2021-10-26T18:16:08Z")

</div>

Bonsoir,

Je voudrais appairer un détecteur de vibration Tuya commandé sur Ali : [Capteur vibration](https://fr.aliexpress.com/item/1005002213730152.html?src=google&src=google&albch=shopping&acnt=248-630-5778&isdl=y&slnk=&plac=&mtctp=&albbt=Google_7_shopping&aff_platform=google&aff_short_key=UneMJZVf&albagn=888888&isSmbAutoCall=false&needSmbHouyi=false&albcp=10191220526&albag=107473525328&trgt=539263010115&crea=fr1005002213730152&netw=u&device=c&albpg=539263010115&albpd=fr1005002213730152&gclid=CjwKCAjwzt6LBhBeEiwAbPGOgezeb4E0jEUhssTqo65ltxRftsMJz-bl1Hx7QcaNA1GfHo7mH_REpxoC45YQAvD_BwE&gclsrc=aw.ds) avec un dongle CC2652 BLE.

Ca n’a pas l’air de fonctionner, voici le début du log de configuration :

**debug 2021-10-26 16:38:21: Loaded state from file /app/data/state.json**  
**info 2021-10-26 16:38:21: Logging to console and directory: ‘/app/data/log/2021-10-26.16-37-59’ filename: log.txt**  
**debug 2021-10-26 16:38:22: Removing old log directory '/app/data/log/2021-10-26.09-35-58’**  
**info 2021-10-26 16:38:22: Starting Zigbee2MQTT version 1.21.2 (commit #4492212)**  
**info 2021-10-26 16:38:22: Starting zigbee-herdsman (0.13.149)**  
**debug 2021-10-26 16:38:22: Using zigbee-herdsman with settings: '{“adapter”:{“concurrent”:null,“delay”:null,“disableLED”:false},“backupPath”:"/app/data/coordinator\_backup.json",“databaseBackupPath”:"/app/data/database.db.backup",“databasePath”:"/app/data/database.db",“network”:{“channelList”:[11],“extendedPanID”:[221,221,221,221,221,221,221,221],“networkKey”:“HIDDEN”,“panID”:6754},“serialPort”:{“path”:"/dev/ttyACM0"}}'**  
**info 2021-10-26 16:38:33: zigbee-herdsman started (resumed)**  
**info 2021-10-26 16:38:33: Coordinator firmware version: '{“meta”:{“maintrel”:1,“majorrel”:2,“minorrel”:7,“product”:1,“revision”:20210708,“transportrev”:2},“type”:“zStack3x0”}'**  
**debug 2021-10-26 16:38:33: Zigbee network parameters: {“channel”:11,“extendedPanID”:“0x00124b0022a4cbcf”,“panID”:6754}**  
**info 2021-10-26 16:38:33: Currently 0 devices are joined:**  
**info 2021-10-26 16:38:33: Zigbee: disabling joining new devices.**  
**info 2021-10-26 16:38:33: Connecting to MQTT server at mqtt://localhost:1884**  
**debug 2021-10-26 16:38:33: Using MQTT login with username: z2m**  
**info 2021-10-26 16:38:38: Connected to MQTT server**  
**info 2021-10-26 16:38:38: MQTT publish: topic ‘zigbee2mqtt/bridge/state’, payload 'online’**  
**info 2021-10-26 16:38:40: Started frontend on port 0.0.0.0:8080**  
**debug 2021-10-26 16:40:32: Received MQTT message on ‘zigbee2mqtt/bridge/config/devices/get’ with data ''**  
**debug 2021-10-26 16:42:43: Received MQTT message on ‘zigbee2mqtt/bridge/config/devices/get’ with data ''**  
**debug 2021-10-26 16:43:11: Received MQTT message on ‘zigbee2mqtt/bridge/config/devices/get’ with data ''**  
**debug 2021-10-26 16:43:21: Saving state to file /app/data/state.json**  
**debug 2021-10-26 16:45:43: Received MQTT message on ‘zigbee2mqtt/bridge/config/devices/get’ with data ''**  
**debug 2021-10-26 16:48:21: Saving state to file /app/data/state.json**

Lorsque je fais un scan, j’obtiens le message : “Aucun nouvel appareil trouvé”

J’utilise l’image Gladys officielle, quelqu’un peut-il me dépanner, c’est la première fois que j’utilise des devices zigbee.

Merci à la communauté.

---

<div class="post-metadata">

**Author:** ![cicoub13](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/cicoub13/32/4482_2.png) [@cicoub13](https://community.gladysassistant.com/u/cicoub13)\
**Post date:** [Octobre 26, 2021, 6:54 UTC](https://community.gladysassistant.com/t/capteur-de-vibration-tuya-zigbee/6632/2 "2021-10-26T18:54:52Z")

</div>

Bonjour.  
Il faut autoriser l’association (voir documentation ici [Zigbee2Mqtt | Gladys Assistant](https://gladysassistant.com/fr/docs/integrations/zigbee2mqtt/))  
Puis appairer ton appareil au réseau Zigbee. La procédure dépend de chaque appareil mais généralement, un appui long sur le bouton physique fonctionne.

Mais je pense que personne n’a intégré ce capteur dans Gladys encore 😐

> <https://github.com/GladysAssistant/Gladys/blob/master/server/services/zigbee2mqtt/model/TuYa.js>

Il y a un travail en cours pour intégrer beaucoup plus de périphériques Zigbee.

> <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:** ![jparbel](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/j/d6d6ee/32.png) [@jparbel](https://community.gladysassistant.com/u/jparbel)\
**Post date:** [Octobre 26, 2021, 7:03 UTC](https://community.gladysassistant.com/t/capteur-de-vibration-tuya-zigbee/6632/3 "2021-10-26T19:03:05Z")

</div>

Merci @cicoub13 c’est justement après avoir autorisé l’association et appui long que l’appairage n’a pas l’air de s’effectuer.

---

<div class="post-metadata">

**Author:** ![cicoub13](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/cicoub13/32/4482_2.png) [@cicoub13](https://community.gladysassistant.com/u/cicoub13)\
**Post date:** [Octobre 26, 2021, 7:05 UTC](https://community.gladysassistant.com/t/capteur-de-vibration-tuya-zigbee/6632/4 "2021-10-26T19:05:21Z")

</div>

> [@jparbel](#):
>
> info 2021-10-26 16:38:33: Zigbee: disabling joining new devices.

Le log dit que l’appairage est désactivé. C’est pour ça que j’indiquais ces étapes.  
Est-ce que tu as une ligne comme ça dans les logs ?

`Zigbee2mqtt device <name> not configured in Gladys.`

---

<div class="post-metadata">

**Author:** ![jparbel](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/j/d6d6ee/32.png) [@jparbel](https://community.gladysassistant.com/u/jparbel)\
**Post date:** [Octobre 27, 2021, 9:16 UTC](https://community.gladysassistant.com/t/capteur-de-vibration-tuya-zigbee/6632/7 "2021-10-27T21:16:00Z")

</div>

Eureka !  
Finalement, j’ai réussi à appairer mon capteur de vibration en ajoutant le fichier converter qui va bien dans le dossier /z2m.  
Je retrouve bien les payloads dans les logs avec les bonnes data, mais il n’est toujours pas reconnu dans la liste des devices par Gladys, j’ai toujours le message : “Auncun appareil zigbee2mqtt n’a encore été ajouté.”  
**Comment l’ajouter dans la liste ?**

Pour info, à signaler une petite coquille : le message est bien ’ **Auncun** ’ au lieu de ‘ **Aucun** ’ dans l’interface Gladys

---

<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:** [Novembre 1, 2021, 3:51 UTC](https://community.gladysassistant.com/t/capteur-de-vibration-tuya-zigbee/6632/8 "2021-11-01T03:51:49Z")

</div>

Salut @jparbel!

Suite à ton email, je pense c’est mieux qu’on en discute ici.

Je ne suis pas expert Zigbee2mqtt (je n’ai jamais utilisé cette intégration) mais je peux aider quand même 😃

Est-ce que tu peux être plus précis sur ce qui marche/ce qui ne marche pas ?

---

<div class="post-metadata">

**Author:** ![jparbel](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/j/d6d6ee/32.png) [@jparbel](https://community.gladysassistant.com/u/jparbel)\
**Post date:** [Novembre 2, 2021, 1:06 UTC](https://community.gladysassistant.com/t/capteur-de-vibration-tuya-zigbee/6632/9 "2021-11-02T13:06:07Z")

</div>

@cicoub13 @AlexTrovato  
Mon capteur est un TuYa TS0210

Pour faire reconnaître ce capteur, j’ai ajouté un converter externe dans le fichier /var/lib/gladysassistant/zigbee2mqtt/z2m/configuration.yaml :

**external\_converters:**  
\*\* - TS0210.js\*\*  
**devices:**  
\*\* ‘0x50325ffffe031386’:\*\*  
\*\* # friendly\_name: ‘0x50325ffffe031386’\*\*  
\*\* friendly\_name: ‘vibration’\*\*

puis j’ai défini le fichier TS0210.js comme suit :

**const fz = require(‘zigbee-herdsman-converters/converters/fromZigbee’);**  
**const tz = require(‘zigbee-herdsman-converters/converters/toZigbee’);**  
**const exposes = require(‘zigbee-herdsman-converters/lib/exposes’);**  
**const reporting = require(‘zigbee-herdsman-converters/lib/reporting’);**  
**const extend = require(‘zigbee-herdsman-converters/lib/extend’);**  
**const e = exposes.presets;**  
**const ea = exposes.access;**  
**const tuya = require(“zigbee-herdsman-converters/lib/tuya”);**

**const definition = {**  
\*\* // Since a lot of Tuya devices use the same modelID, but use different data points\*\*  
\*\* // it’s usually necessary to provide a fingerprint instead of a zigbeeModel\*\*  
\*\* fingerprint: [\*\*  
\*\* {\*\*  
\*\* // The model ID from: Device with modelID ‘TS0210’ is not supported\*\*  
\*\* // You may need to add \u0000 at the end of the name in some cases\*\*  
\*\* modelID: ‘TS0210’,\*\*  
\*\* // The manufacturer name from: Device with modelID ‘TS0210’ is not supported.\*\*  
\*\* manufacturerName: ‘\_TYZB01\_3zv6oleo’\*\*  
\*\* },\*\*  
\*\* ],\*\*  
\*\* model: ‘TS0210’,\*\*  
\*\* vendor: ‘TuYa’,\*\*  
\*\* description: ‘Vibration sensor’,\*\*  
\*\* fromZigbee: [fz.battery, fz.ias\_vibration\_alarm\_1\_with\_timeout],\*\*  
\*\* toZigbee: [tz.TS0210\_sensitivity],\*\*  
\*\* configure: async (device, coordinatorEndpoint, logger) =\> {\*\*  
\*\* const endpoint = device.getEndpoint(1);\*\*  
\*\* await reporting.bind(endpoint, coordinatorEndpoint, [‘genBasic’]);\*\*  
\*\* },\*\*  
\*\* exposes: [\*\*  
\*\* // Here you should put all functionality that your device exposes\*\*  
**[e.battery(), e.vibration(), exposes.enum(‘sensitivity’, exposes.access.STATE\_SET, [‘low’, ‘medium’, ‘high’])],**  
**};**

**module.exports = definition;**

Si je consulte les log il est bien reconnu, voici un extrait :

**debug 2021-11-01 20:12:25: Received Zigbee message from ‘vibration’, type ‘commandStatusChangeNotification’, cluster ‘ssIasZone’, data ‘{“extendedstatus”:0,“zonestatus”:1025}’ from endpoint 1 with groupID 0**  
**info 2021-11-01 20:12:25: MQTT publish: topic ‘zigbee2mqtt/vibration’, payload '{“battery”:100,“battery\_low”:false,“linkquality”:132,“tamper”:false,“vibration”:true,“voltage”:3000}'**  
**debug 2021-11-01 20:13:10: Saving state to file /app/data/state.json**  
**info 2021-11-01 20:13:55: MQTT publish: topic ‘zigbee2mqtt/vibration’, payload '{“battery”:100,“battery\_low”:false,“linkquality”:132,“tamper”:false,“vibration”:false,“voltage”:3000}'**  
**debug 2021-11-01 20:18:10: Saving state to file /app/data/state.json**

Par contre, il n’apparaît pas dans la liste des devices après avoir scanné un nouvel appareil.

J’ai essayé d’aller voir côté serveur : /var/lib docker/overlay2/…/server/services/zigbee2mqtt/model/tuya.js

j’ai ajouté mon capteur dans le fichier tuya.js :  
**TS0210: [features.battery, features.vibration, features.sensitivity, features.linkquality],**

J’ai modifié egalement le fichier …/utils/features.js en ajoutant la définition de la valeur de vibration :

**vibration: {**  
\*\* category: DEVICE\_FEATURE\_CATEGORIES.VIBRATION,\*\*  
\*\* type: DEVICE\_FEATURE\_TYPES.SENSOR.BINARY,\*\*  
\*\* name: ‘Vibration Sensor’,\*\*  
\*\* read\_only: true,\*\*  
\*\* has\_feedback: false,\*\*  
\*\* min: 0,\*\*  
\*\* max: 1,\*\*  
\*\* zigbeeField: ‘vibration’,\*\*  
\*\* },\*\*

je ne l’ai pas fait pour les autres valeurs de payload, c’est peut-être nécessaire ?

Après chaque modif, je relance le container mais ça ne marche toujours pas.

J’avoue que je ne maîtrise pas tout, j’ai essayé de suivre ton dernier live @pierre-gilles sur les intégrations, mais je ne saisis pas trop les rôles respectifs du front et du back, autant dire que j’ai eu du mal à suivre au bout d’un certain temps.

Mais ne perds pas trop ton temps, si c’est trop compliqué, j’ai commandé un Xiaomi qui normalement devrait être reconnu d’office, du moins je l’espère.

Autre question, avec Gladys 4 comment ouvrir la base de données, avec la V3, j’utilisais express-admin ?

Merci pour votre aide.

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [Novembre 2, 2021, 7:03 UTC](https://community.gladysassistant.com/t/capteur-de-vibration-tuya-zigbee/6632/10 "2021-11-02T19:03:30Z")

</div>

Salut, ça a changé, si tu mets à jour le code, tu n’aura plus de fichier tuya.js, mais un binaryType (si vibration est un booléen), avec le nom de l’attribut zigbee2mqtt comme clé.  
Tu n’auras que la catégorie et le type de la feature a déclarer.

---

<div class="post-metadata">

**Author:** ![jparbel](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/j/d6d6ee/32.png) [@jparbel](https://community.gladysassistant.com/u/jparbel)\
**Post date:** [Novembre 3, 2021, 9:40 UTC](https://community.gladysassistant.com/t/capteur-de-vibration-tuya-zigbee/6632/11 "2021-11-03T09:40:04Z")

</div>

Merci @AlexTrovato pour ta réponse.  
Mais est-ce-que tu peux être un peu plus explicite ?  
Tu parles de la mise à jour de Gladys ? Il me semblait qu’elle s’effectuait automatiquement avec la V4, sinon comment fait-on une maj manuelle ?  
Pour l’instant, j’ai toujours le fichier tuya.js.

---

<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:** [Novembre 3, 2021, 9:48 UTC](https://community.gladysassistant.com/t/capteur-de-vibration-tuya-zigbee/6632/12 "2021-11-03T09:48:00Z")

</div>

> [@jparbel](#):
>
> Il me semblait qu’elle s’effectuait automatiquement avec la V4, sinon comment fait-on une maj manuelle ?

C’est effectivement automatique, il n’y a rien à faire 🙂

La PR de @AlexTrovato a été mergée en début de semaine, je ferais une release dans les jours/semaines qui viennent (j’ai pas de date à te donner là dessus, mais ça va venir), et ça viendra tout seul chez toi !

@jparbel Je te déconseille quand même de modifier les fichiers dans le container Gladys (c’est bien ce que tu as fais?), c’est le meilleur moyen de casser quelque chose 😃

---

<div class="post-metadata">

**Author:** ![jparbel](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/j/d6d6ee/32.png) [@jparbel](https://community.gladysassistant.com/u/jparbel)\
**Post date:** [Novembre 3, 2021, 10:07 UTC](https://community.gladysassistant.com/t/capteur-de-vibration-tuya-zigbee/6632/13 "2021-11-03T10:07:15Z")

</div>

@pierre-gilles  
Ah merci, je comprends mieux.

Pour l’instant, je suis en phase de test avec la V4, donc même si je casse quelque chose c’est pas bien grave, je n’ai rien d’important à perdre.

---

<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:** [Novembre 4, 2021, 1:26 UTC](https://community.gladysassistant.com/t/capteur-de-vibration-tuya-zigbee/6632/14 "2021-11-04T01:26:41Z")

</div>

> [@jparbel](#):
>
> Pour l’instant, je suis en phase de test avec la V4, donc même si je casse quelque chose c’est pas bien grave, je n’ai rien d’important à perdre.

Ok! Dans ce cas pas de soucis 🙂

---

<div class="post-metadata">

**Author:** ![jparbel](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/j/d6d6ee/32.png) [@jparbel](https://community.gladysassistant.com/u/jparbel)\
**Post date:** [Novembre 26, 2021, 6:42 UTC](https://community.gladysassistant.com/t/capteur-de-vibration-tuya-zigbee/6632/15 "2021-11-26T18:42:53Z")

</div>

@AlexTrovato Je viens de tester Gladys V4.7, merci pour cette release concernant l’intégration Zigbee.

Malheureusement, mon detecteur Tuya TS0210, n’a toujours pas l’air d’être reconnu, le périphérique s’affiche bien dans la fenêtre de scan puis quelques secondes plus tard il disparaît et j’ai le message suivant :

_Nom_  
_0x50325ffffe031386_  
_L’appareil n’est pas encore géré, veuillez nous contacter pour nous aider à le connecter dans Gladys !_  
_Proposer ce périphérique_

Par contre, on le retrouve bien dans le fichier state.json

Bonne soirée

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [Novembre 26, 2021, 7:11 UTC](https://community.gladysassistant.com/t/capteur-de-vibration-tuya-zigbee/6632/16 "2021-11-26T19:11:33Z")

</div>

C’est un capteur de vibration non géré pour le moment ( comme tout ce qui est vibration)

[https://www.zigbee2mqtt.io/devices/TS0210.html](https://www.zigbee2mqtt.io/devices/TS0210.html)

Aussi ce n’est parce qu’il est compatible avec zigbee2mqtt qu’il est géré dans Gladys.

Y’a pas grand chose à faire pour le supporter, on va l’ajouter rapidement

Rien à voir mais tu l’utilise comment/pourquoi ?

---

<div class="post-metadata">

**Author:** ![jparbel](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/j/d6d6ee/32.png) [@jparbel](https://community.gladysassistant.com/u/jparbel)\
**Post date:** [Novembre 26, 2021, 7:56 UTC](https://community.gladysassistant.com/t/capteur-de-vibration-tuya-zigbee/6632/17 "2021-11-26T19:56:36Z")

</div>

Merci @VonOx mon projet est d’équiper ma résidence secondaire d’un système d’alarme avec de préference du zigbee pour les détecteurs d’intrusion.  
J’avais donc commencé avec un seul capteur, qui n’est donc pas reconnu pour l’instant. Depuis j’ai commandé un capteur de vibration Xiaomi, qui lui, est parfaitement reconnu. Je pense que je vais m’équiper avec ce genre de capteur par la suite.  
Pour le capteur Tuya, c’est, dans un premier temps, juste pour un retour d’expérience, si ça peut servir à l’intégrer…

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [Novembre 27, 2021, 7:08 UTC](https://community.gladysassistant.com/t/capteur-de-vibration-tuya-zigbee/6632/18 "2021-11-27T19:08:47Z")

</div>

@VonOx, tu dis :

> [@VonOx](#):
>
> C’est un capteur de vibration non géré pour le moment ( comme tout ce qui est vibration)

Mais pourtant je le vois bien dans les types disponibles :

> <https://github.com/GladysAssistant/Gladys/blob/e61d5f0889a4adea6ecc694136e157d0d4dbb1f0/server/utils/constants.js#L303>

Est-ce que je dois comprendre qu’il manque «&nbsp;simplement&nbsp;» l’affichage sur le dashboard ?

EDIT : @jparbel j’ai fait une erreur de mapping en considérant que le capteur de vibration était un capteur numérique, alors qu’il est binaire. Je propose un correctif.

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [Novembre 27, 2021, 7:23 UTC](https://community.gladysassistant.com/t/capteur-de-vibration-tuya-zigbee/6632/19 "2021-11-27T19:23:16Z")

</div>

J’allais répondre mais tu as edit, du coup ça sera dans la prochaine release 👍

---

<div class="post-metadata">

**Author:** ![jparbel](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/j/d6d6ee/32.png) [@jparbel](https://community.gladysassistant.com/u/jparbel)\
**Post date:** [Novembre 28, 2021, 6:59 UTC](https://community.gladysassistant.com/t/capteur-de-vibration-tuya-zigbee/6632/20 "2021-11-28T18:59:43Z")

</div>

@VonOx @AlexTrovato  
J’ai intégré ta modif de la pull request concernant les capteurs de vibration binaires et ça fonctionne. Merci pour cette intégration, super boulot !  
Il resterait à intégrer la sensibilité pour régler les 3 niveaux. Mais on peut peut-être faire ce réglage à la main, avec un client MQTT ?  
Bonne soirée.

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [Novembre 28, 2021, 7:17 UTC](https://community.gladysassistant.com/t/capteur-de-vibration-tuya-zigbee/6632/21 "2021-11-28T19:17:02Z")

</div>

Avec cette image de test, tu peux vérifier que les contrôleurs fonctionnent toujours ?  
Car j’ai fait un changement pour integrer une multiprise, j’aimerais vérifier que je n’ai rien casser sur la partie actionneurs.

---

<div class="post-metadata">

**Author:** ![jparbel](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/j/d6d6ee/32.png) [@jparbel](https://community.gladysassistant.com/u/jparbel)\
**Post date:** [Novembre 28, 2021, 7:42 UTC](https://community.gladysassistant.com/t/capteur-de-vibration-tuya-zigbee/6632/22 "2021-11-28T19:42:39Z")

</div>

@AlexTrovato En fait, je n’ai pas téléchargé l’image de test, j’ai juste modifié les 2 fichiers relatifs à ta PR.  
De quels contrôleurs et actionneurs parles tu ?

[Page suivante](https://community.gladysassistant.com/t/capteur-de-vibration-tuya-zigbee/6632.md?page=2)
