Pour info, j’ai fait quelques tests avec une box Fibaro.
Voici ce que cela donne au niveau de la configuration
Quand on change le paramètre 42, cela fonctionne bien, il n’y a pas de décalage.
Pour le vert :
[11:56:36] ID 8: Set parameter 42, value = 5
[11:56:37] ID 8: Received parameter 42 report, value = 5
Pour le Magenta :
[11:56:58] ID 8: Set parameter 42, value = 9
[11:56:59] ID 8: Received parameter 42 report, value = 9
En regardant les logs côté Jeedom, il y a truc bizarre. Voici les logs lorsque que l’on configure la valeur 3 qui devrait donner du blanc. Dans le fichier de log « openzwave », on voit ceci. A la première ligne, on voit bien que la valeur 3 est envoyée.
[2021-03-07 11:06:42][INFO] : set_config for nodeId : 204 index : 42, value : 3, size : 1
[2021-03-07 11:06:42][DEBUG] : Set config param 42 for node [204]
[2021-03-07 11:06:42][DEBUG] : set_configuration result: True
[2021-03-07 11:06:42][INFO] : 200 GET /node?node_id=204&instance_id=1&cc_id=112&index=42&type=setconfig&value=3&size=1&apikey=O96gw2sEjlZqqMp9Cx2L0D0BMh90MDrI (127.0.0.1) 6.06ms
[2021-03-07 11:06:42][DEBUG] : notif_callback : new notification
[2021-03-07 11:06:42][DEBUG] : notif_callback : Notification type : 2, nodeId : 204
[2021-03-07 11:06:42][DEBUG] : addValueId : ValueID : 72057597470704292
[2021-03-07 11:06:42][DEBUG] : addValueId : GetCommandClassId : 112, GetType : 4
[2021-03-07 11:06:42][DEBUG] : addValueId : Notification : {'homeId': 3863513420L, 'valueId': {'commandClass': 'COMMAND_CLASS_CONFIGURATION', 'homeId': 3863513420L, 'readOnly': False, 'genre': 'Config', 'id': 72057597470704292L, 'index': 42, 'nodeId': 204, 'value': u'Red illumination', 'label': u'LED ring illumination colour when controlled device is off', 'instance': 1, 'units': u'', 'type': 'List'}, 'notificationType': 'ValueChanged', 'nodeId': 204}
[2021-03-07 11:06:42][DEBUG] : notif_callback : call callback context
[2021-03-07 11:06:42][DEBUG] : zwcallback args=[{'homeId': 3863513420L, 'valueId': {'commandClass': 'COMMAND_CLASS_CONFIGURATION', 'homeId': 3863513420L, 'readOnly': False, 'genre': 'Config', 'id': 72057597470704292L, 'index': 42, 'nodeId': 204, 'value': u'Red illumination', 'label': u'LED ring illumination colour when controlled device is off', 'instance': 1, 'units': u'', 'type': 'List'}, 'notificationType': 'ValueChanged', 'nodeId': 204}]
[2021-03-07 11:06:42][DEBUG] : Z-Wave Notification ValueChanged : {'homeId': 3863513420L, 'valueId': {'commandClass': 'COMMAND_CLASS_CONFIGURATION', 'homeId': 3863513420L, 'readOnly': False, 'genre': 'Config', 'id': 72057597470704292L, 'index': 42, 'nodeId': 204, 'value': u'Red illumination', 'label': u'LED ring illumination colour when controlled device is off', 'instance': 1, 'units': u'', 'type': 'List'}, 'notificationType': 'ValueChanged', 'nodeId': 204}
[2021-03-07 11:06:42][DEBUG] : value_update. 204 LED ring illumination colour when controlled device is off
[2021-03-07 11:06:42][INFO] : Received Configuration report from node 204: LED ring illumination colour when controlled device is off=Red illumination
[2021-03-07 11:06:42][DEBUG] : A node value has been updated. nodeId:204 value:LED ring illumination colour when controlled device is off
[2021-03-07 11:06:42][DEBUG] : notif_callback : end
[2021-03-07 11:06:43][DEBUG] : Send to jeedom : {'devices': {'204': {'112142': {'instance': 1, 'node_id': 204, 'CommandClass': 112, 'value': u'Red illumination', 'index': 42}}}}
[2021-03-07 11:06:43][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2021-03-07 11:06:43][DEBUG] : http://127.0.0.1:80 "POST /plugins/openzwave/core/php/jeeZwave.php?apikey=O96gw2sEjlZqqMp9Cx2L0D0BMh90MDrI HTTP/1.1" 200 0
Et quand on regarde dans le fichier de logs « openzwaved », on voit à la deuxième ligne
2021-03-07 11:06:42.866 Info, Node204, Configuration::Set - Parameter=42, Value=4 Size=1
que c’est la valeur 4 qui est envoyée au lieu de la valeur 3 :
2021-03-07 11:06:42.866 Info, Node204, Value::Set - COMMAND_CLASS_CONFIGURATION - LED ring illumination colour when controlled device is off - 42 - 1 - Red illumination
2021-03-07 11:06:42.866 Info, Node204, Configuration::Set - Parameter=42, Value=4 Size=1
2021-03-07 11:06:42.866 Detail, Node204, Queuing (Send) ConfigurationCmd_Set (Node=204): 0x01, 0x0c, 0x00, 0x13, 0xcc, 0x05, 0x70, 0x04, 0x2a, 0x01, 0x04, 0x25, 0x47, 0x10
2021-03-07 11:06:42.866 Detail, Node204, Queuing (Refresh) ConfigurationCmd_Get (Node=204): 0x01, 0x0a, 0x00, 0x13, 0xcc, 0x03, 0x70, 0x05, 0x2a, 0x25, 0x48, 0x1b
2021-03-07 11:06:42.866 Detail,
2021-03-07 11:06:42.867 Info, Node204, Sending (Send) message (Callback ID=0x47, Expected Reply=0x13) - ConfigurationCmd_Set (Node=204): 0x01, 0x0c, 0x00, 0x13, 0xcc, 0x05, 0x70, 0x04, 0x2a, 0x01, 0x04, 0x25, 0x47, 0x10
2021-03-07 11:06:42.875 Detail, Node204, Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2021-03-07 11:06:42.875 Detail, Node204, ZW_SEND_DATA delivered to Z-Wave stack
2021-03-07 11:06:42.896 Detail, Node204, Received: 0x01, 0x07, 0x00, 0x13, 0x47, 0x00, 0x00, 0x02, 0xae
2021-03-07 11:06:42.896 Detail, Node204, ZW_SEND_DATA Request with callback ID 0x47 received (expected 0x47)
2021-03-07 11:06:42.896 Info, Node204, Request RTT 29 Average Request RTT 26
2021-03-07 11:06:42.896 Detail, Expected callbackId was received
2021-03-07 11:06:42.896 Detail, Expected reply was received
2021-03-07 11:06:42.896 Detail, Message transaction complete
2021-03-07 11:06:42.896 Detail,
2021-03-07 11:06:42.896 Detail, Node204, Removing current message
2021-03-07 11:06:42.896 Detail,
2021-03-07 11:06:42.896 Info, Node204, Sending (Refresh) message (Callback ID=0x48, Expected Reply=0x04) - ConfigurationCmd_Get (Node=204): 0x01, 0x0a, 0x00, 0x13, 0xcc, 0x03, 0x70, 0x05, 0x2a, 0x25, 0x48, 0x1b
2021-03-07 11:06:42.904 Detail, Node204, Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2021-03-07 11:06:42.904 Detail, Node204, ZW_SEND_DATA delivered to Z-Wave stack
2021-03-07 11:06:42.920 Detail, Node204, Received: 0x01, 0x07, 0x00, 0x13, 0x48, 0x00, 0x00, 0x02, 0xa1
2021-03-07 11:06:42.921 Detail, Node204, ZW_SEND_DATA Request with callback ID 0x48 received (expected 0x48)
2021-03-07 11:06:42.921 Info, Node204, Request RTT 24 Average Request RTT 25
2021-03-07 11:06:42.921 Detail, Expected callbackId was received
2021-03-07 11:06:42.932 Detail, Node204, Received: 0x01, 0x0b, 0x00, 0x04, 0x00, 0xcc, 0x05, 0x70, 0x06, 0x2a, 0x01, 0x04, 0x60
2021-03-07 11:06:42.932 Detail,
2021-03-07 11:06:42.932 Info, Node204, Response RTT 35 Average Response RTT 35
2021-03-07 11:06:42.932 Detail, Node204, Initial read of value
2021-03-07 11:06:42.932 Info, Node204, Received Configuration report: Parameter=42, Value=4
2021-03-07 11:06:42.932 Detail, Node204, Expected reply and command class was received
2021-03-07 11:06:42.932 Detail, Node204, Message transaction complete
2021-03-07 11:06:42.932 Detail,
2021-03-07 11:06:42.933 Detail, Node204, Removing current message
2021-03-07 11:06:42.933 Detail, Node204, Notification: ValueChanged
On voit d’ailleurs dans les dernières lignes que le module a bien reçu la valeur 4 :
2021-03-07 11:06:42.932 Info, Node204, Received Configuration report: Parameter=42, Value=4
A voir maintenant pour comprendre pourquoi il y a ce décalage qui est fait.