Inclusion et Configuration d'un Motion sensor


#1

Bonjour,

Je débute avec Gladys et je rencontre un problème avec le module Z-Wave. Je ne parviens pas à faire une inclusion propre et à ensuite accéder aux paramètre de mon Motion Sensor.

J’ai fais les actions suivantes (et dans cet ordre) :

  • Plug du dongle Z-Wave sur la raspberry
  • Installation du module Z-Wave
  • Redémarrage de Gladys

Je rencotre une première erreur :

0|gladys | Zwave module: Please complete the configuration’s controller in configuration view
0|gladys | You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
0|gladys | undefined

Donc je m’empresse d’aller configurer tout ça :

  • Je suis allé dans Modules > Modules installés > Z-Wave > Configuration
  • Gestion du réseau > configurer le controller

Ici je me confronte à quelque chose d’étrange, j’ai le choix entre deux ligne dont une quasiment vide
image

Je choisi Donc la seconde et je valide. Je suis alors confronté à une série de nouvelles erreurs :

0|gladys | Zwave module: Setting the product id param
0|gladys | Zwave module: Setting the com name param
0|gladys | Zwave module: Running connection
0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“1-32-0”,“zwave”]”
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“4-32-0”,“zwave”]”
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | Zwave module : Device of node 1 created
0|gladys | House : checkUsersPresence

Je tente de poursuivre tout de même mais aucune ligne s’ajoute dans mes noeuds, je clique sur un menu aléatoire avant de revenir à mes noeuds et là est apparu une ligne, “Static PC Controller”.

J’ai également 2 paramètres qui se sont ajoutés (dans “Paramètres > Paramètres” … of course) ainsi qu’un périphérique dans “Mes périphériques”.

Magnifique donc je continue:

  • Gestion du réseau > Inclure un Noeud
  • J’appuie trois fois sur le bouton de la Motion Sensor pour l’inclure

Nouvelle batterie d’erreurs :

0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“4-32-0”,“zwave”]”
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“4-128-0”,“zwave”]”
0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“4-113-0”,“zwave”]”
0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“4-113-1”,“zwave”]”
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“4-48-0”,“zwave”]”
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“4-49-3”,“zwave”]”
0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“4-49-1”,“zwave”]”
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“4-49-25”,“zwave”]”
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“4-113-2”,“zwave”]”
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“4-113-10”,“zwave”]”
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“4-156-0”,“zwave”]”
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“4-32-0”,“zwave”]”
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“4-48-0”,“zwave”]”
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“4-49-3”,“zwave”]”
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“4-49-3”,“zwave”]”
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“4-49-3”,“zwave”]”
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“4-113-0”,“zwave”]”
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“4-113-1”,“zwave”]”
0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“4-113-2”,“zwave”]”
0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“4-113-10”,“zwave”]”
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“4-128-0”,“zwave”]”
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | gladys.utils.sqlUnique was not able to find element
0|gladys | Query = "
0|gladys | SELECT devicetype.id
0|gladys | FROM device
0|gladys | JOIN devicetype ON (device.id = devicetype.device)
0|gladys | WHERE devicetype.identifier = ? AND device.service = ?;
0|gladys | "
0|gladys | Params = “[“4-156-0”,“zwave”]”
0|gladys | Zwave module: Fail to save deviceState : Error: NotFound
0|gladys | Zwave module : Device of node 4 created
0|gladys | Event : create : new Event with code : devicetype-new-value
0|gladys | Scenario : Trigger : New event : devicetype-new-value
0|gladys | Zwave module: State of node 4 commclass 49 created
0|gladys | Scenario : Trigger : Found 0 launchers with code devicetype-new-value.
0|gladys | Event : create : new Event with code : devicetype-new-value
0|gladys | Scenario : Trigger : New event : devicetype-new-value
0|gladys | Zwave module: State of node 4 commclass 49 created
0|gladys | Scenario : Trigger : Found 0 launchers with code devicetype-new-value.
0|gladys | Event : create : new Event with code : devicetype-new-value
0|gladys | Event : create : new Event with code : devicetype-new-value
0|gladys | Event : create : new Event with code : devicetype-new-value
0|gladys | Event : create : new Event with code : devicetype-new-value
0|gladys | Scenario : Trigger : New event : devicetype-new-value
0|gladys | Scenario : Trigger : New event : devicetype-new-value
0|gladys | Zwave module: State of node 4 commclass 113 created
0|gladys | Scenario : Trigger : Found 0 launchers with code devicetype-new-value.
0|gladys | Scenario : Trigger : New event : devicetype-new-value
0|gladys | Scenario : Trigger : New event : devicetype-new-value
0|gladys | Zwave module: State of node 4 commclass 113 created
0|gladys | Scenario : Trigger : Found 0 launchers with code devicetype-new-value.
0|gladys | Zwave module: State of node 4 commclass 113 created
0|gladys | Zwave module: State of node 4 commclass 113 created
0|gladys | Scenario : Trigger : Found 0 launchers with code devicetype-new-value.
0|gladys | Scenario : Trigger : Found 0 launchers with code devicetype-new-value.

Une nouvelle ligne complètement vide est venu dans mes noeuds, si je vais dans un autre menu et reviens ensuite, la ligne apparaît “correctement” mais elle a dans la colonne “Produit” :
Unknown: type=0801, id=1002

Impossible d’aller dans les paramètre même en cliquant trois fois sur le bouton de la Motion Sensor. Elle apparaît correctement dans mes périphériques et je peux faire une box affichant la température qu’elle me renvoit (qui semble fonctionner). Néanmoins il m’est impossible de la configurer.

Désolé pour le pavé, j’espère que les erreurs seront lisibles, j’avais préparé des screen mais en validant ça n’a pas marché, étant nouveau j’ai le droit qu’à un unique screen dans mon message.

Bonne soirée à vous, je me tiens à dispo si vous avez besoin de plus d’info

[EDIT] Petite info pratique, ma config :

  • Gladys 3.12.1
  • Raspberry PI 3 B

#2

Bonjour @Konimas! Merci pour ton message.

Est-ce que tu as tenté les basiques à savoir redémarrer Gladys par exemple?

Je sais que pour l’inclusion parfois le Z-wave est capricieux, même pour nous c’est parfois un enfer de configurer un périphérique… après là effectivement le problème semble plus côté Gladys.


#3

Bonjour @pierre-gilles,

Merci d’avoir pris le temps de me répondre. Oui bien sur je l’ai redémarré déjà à de multiples reprises. Je précise tout de même que je suis parti de l’image raspbian contenant Gladys 3.8 qu’on peut trouver dans le guide d’installation de ton site.

J’ai ensuite update/upgrade la distribution, puis mis à jour gladys (3.12 il me semble). Je ne sais pas si ça peux avoir une incidence.

Quoi qu’il en soit je t’avoue mettre penché sur une solution extérieure, je tente aujourd’hui de coupler gladys-voice et l’IA de gladys avec Home Assistant.