ZWave Tips - pifou25/docker-jeedom GitHub Wiki
There is 2 requirements: the nodeId info, and the refresh command
Information Number with the path zwave/{location}/{device}/status[nodeId]
( e.g. zwave/Maison/Ampoule2/status[nodeId]
), named nodeId. Location and device are the name from Jeedom configuration, not the one from the MQTT path.
The Default Action Command with path zwave/_CLIENTS/ZWAVE_GATEWAY-<Zwavejs2Mqtt>/api/refreshValues/set
and the value is the previous named information :
{"args": [#[location][device][nodeId]#]}
see the API doc : https://zwave-js.github.io/node-zwave-js/#/api/node?id=refreshvalues
The location and device are set into the zwaveJs2Mqtt application. The application name is also in the app, = Zwavejs2Mqtt, this is the application name used to build the full MQTT path.
The first base prefix zwave
is the default one, also customisable in the setting mqtt parameters... The generic path will be: <prefix>/_CLIENTS/ZWAVE_GATEWAY-<name>/api/refreshValues/set
Add a command as the refresh
command by adding the logical id:
"logicalId": "refresh",
The simplest way is to add the refresh_id
tag to the Jeedom equipment with the value = the refresh command action ID.
https://community.jeedom.com/t/tuto-jmqtt-mosquitto-zwavejs2mqtt/62882/64?u=pifou https://community.jeedom.com/t/jmqtt-partage-de-template/71743/36?u=pifou https://community.jeedom.com/t/modifier-le-logicalid-dune-commande/91651/4