Hello,
Maintenant que ma configuration fonctionne et que ma clé Z-Wave est reconnu !
J’ai pu regarder pourquoi il n’y avait pas toutes les informations qui remontait de mon Fibaro Motion Sensor et c’était assez simple…
Dans le fichier server/services/zwave/lib/constants.js j’ai rajouter :
// motion sensor Fibaro FGMSZW5 FIBARO Motion Sensor (FGMS-001)
{
CATEGORY: DEVICE_FEATURE_CATEGORIES.MOTION_SENSOR,
COMMAND_CLASSES: [COMMAND_CLASSES.COMMAND_CLASS_SENSOR_BINARY],
INDEXES: [INDEXES.INDEX_SENSOR_BINARY_MOTION],
TYPE: DEVICE_FEATURE_TYPES.SENSOR.BINARY,
PRODUCT_IDS: [‹ 0x1001 ›],
PRODUCT_TYPES: [‹ 0x0801 ›],
},
Il existait déjà un « default motion sensor » :
// motion sensor
{
CATEGORY: DEVICE_FEATURE_CATEGORIES.MOTION_SENSOR,
COMMAND_CLASSES: [COMMAND_CLASSES.COMMAND_CLASS_SENSOR_BINARY],
INDEXES: [INDEXES.INDEX_SENSOR_BINARY_MOTION],
TYPE: DEVICE_FEATURE_TYPES.SENSOR.BINARY,
},
J’ai juste ajouter les informations lié à l’ID du produit et Type de produit que j’ai trouvé ici :
<MetaDataItem id="1001" name="ZWProductPage" type="0801">
En revanche je comprend pas pourquoi les données ne sont pas updater après la modification d’un événement … côté serveur on vois bien qu’il y à des choses qui se passe lorsqu’un mouvement est détecté :
2021-05-10T22:01:02+0200 <debug> zwave.valueChanged.js:14 (ZwaveManager.valueChanged) Zwave : Value Changed, nodeId = 8, comClass = 113, value = {"value_id":"8-113-1-256","node_id":8,"class_id":113,"type":"byte","genre":"user","instance":1,"index":256,"label":"Previous Event Cleared","units":"","help":"Previous Event that was sent","read_only":true,"write_only":false,"min":0,"max":255,"is_polled":false,"value":3}
2021-05-10T22:01:02+0200 <debug> zwave.valueChanged.js:16 (ZwaveManager.valueChanged) node8: changed: 113:Previous Event Cleared:0->3
2021-05-10T22:01:02+0200 <debug> device.newStateEvent.js:20 (DeviceManager.newStateEvent) NotFoundError: DeviceFeature not found
at DeviceManager.newStateEvent (/home/tagcash/gladys/server/lib/device/device.newStateEvent.js:16:13)
at EventEmitter.emit (events.js:315:20)
at Event.emit (/home/tagcash/gladys/server/lib/event/index.js:8:16)
at ZwaveManager.valueChanged (/home/tagcash/gladys/server/services/zwave/lib/events/zwave.valueChanged.js:25:23)
at OZW.emit (events.js:315:20)
2021-05-10T22:01:02+0200 <debug> zwave.valueChanged.js:14 (ZwaveManager.valueChanged) Zwave : Value Changed, nodeId = 8, comClass = 113, value = {"value_id":"8-113-1-7","node_id":8,"class_id":113,"type":"list","genre":"user","instance":1,"index":7,"label":"Home Security","units":"","help":"Home Security Alerts","read_only":true,"write_only":false,"min":0,"max":0,"is_polled":false,"values":["Clear","Tampering - Cover Removed","Motion Detected at Unknown Location"],"value":"Clear"}
2021-05-10T22:01:02+0200 <debug> zwave.valueChanged.js:16 (ZwaveManager.valueChanged) node8: changed: 113:Home Security:Tampering - Cover Removed->Clear
2021-05-10T22:01:02+0200 <debug> device.newStateEvent.js:20 (DeviceManager.newStateEvent) NotFoundError: DeviceFeature not found
at DeviceManager.newStateEvent (/home/tagcash/gladys/server/lib/device/device.newStateEvent.js:16:13)
at EventEmitter.emit (events.js:315:20)
at Event.emit (/home/tagcash/gladys/server/lib/event/index.js:8:16)
at ZwaveManager.valueChanged (/home/tagcash/gladys/server/services/zwave/lib/events/zwave.valueChanged.js:25:23)
at OZW.emit (events.js:315:20)
2021-05-10T22:01:12+0200 <debug> index.js:80 (WebsocketManager.userDisconnected) User André connected in websocket
2021-05-10T22:01:13+0200 <debug> index.js:56 (WebsocketManager.userConnected) User André connected in websocket
2021-05-10T22:01:18+0200 <debug> bluetooth.scanPresence.js:24 (BluetoothManager.scanPresence) Bluetooth: 0 presence sensor features
2021-05-10T22:01:25+0200 <debug> zwave.valueChanged.js:14 (ZwaveManager.valueChanged) Zwave : Value Changed, nodeId = 8, comClass = 113, value = {"value_id":"8-113-1-256","node_id":8,"class_id":113,"type":"byte","genre":"user","instance":1,"index":256,"label":"Previous Event Cleared","units":"","help":"Previous Event that was sent","read_only":true,"write_only":false,"min":0,"max":255,"is_polled":false,"value":8}
2021-05-10T22:01:25+0200 <debug> zwave.valueChanged.js:16 (ZwaveManager.valueChanged) node8: changed: 113:Previous Event Cleared:3->8
2021-05-10T22:01:25+0200 <debug> device.newStateEvent.js:20 (DeviceManager.newStateEvent) NotFoundError: DeviceFeature not found
at DeviceManager.newStateEvent (/home/tagcash/gladys/server/lib/device/device.newStateEvent.js:16:13)
at EventEmitter.emit (events.js:315:20)
at Event.emit (/home/tagcash/gladys/server/lib/event/index.js:8:16)
at ZwaveManager.valueChanged (/home/tagcash/gladys/server/services/zwave/lib/events/zwave.valueChanged.js:25:23)
at OZW.emit (events.js:315:20)
2021-05-10T22:01:25+0200 <debug> zwave.valueChanged.js:14 (ZwaveManager.valueChanged) Zwave : Value Changed, nodeId = 8, comClass = 113, value = {"value_id":"8-113-1-256","node_id":8,"class_id":113,"type":"byte","genre":"user","instance":1,"index":256,"label":"Previous Event Cleared","units":"","help":"Previous Event that was sent","read_only":true,"write_only":false,"min":0,"max":255,"is_polled":false,"value":8}
2021-05-10T22:01:25+0200 <debug> zwave.valueChanged.js:16 (ZwaveManager.valueChanged) node8: changed: 113:Previous Event Cleared:8->8
2021-05-10T22:01:25+0200 <debug> device.newStateEvent.js:20 (DeviceManager.newStateEvent) NotFoundError: DeviceFeature not found
at DeviceManager.newStateEvent (/home/tagcash/gladys/server/lib/device/device.newStateEvent.js:16:13)
at EventEmitter.emit (events.js:315:20)
at Event.emit (/home/tagcash/gladys/server/lib/event/index.js:8:16)
at ZwaveManager.valueChanged (/home/tagcash/gladys/server/services/zwave/lib/events/zwave.valueChanged.js:25:23)
at OZW.emit (events.js:315:20)
2021-05-10T22:01:25+0200 <debug> zwave.valueChanged.js:14 (ZwaveManager.valueChanged) Zwave : Value Changed, nodeId = 8, comClass = 113, value = {"value_id":"8-113-1-7","node_id":8,"class_id":113,"type":"list","genre":"user","instance":1,"index":7,"label":"Home Security","units":"","help":"Home Security Alerts","read_only":true,"write_only":false,"min":0,"max":0,"is_polled":false,"values":["Clear","Tampering - Cover Removed","Motion Detected at Unknown Location"],"value":"Clear"}
2021-05-10T22:01:25+0200 <debug> zwave.valueChanged.js:16 (ZwaveManager.valueChanged) node8: changed: 113:Home Security:Clear->Clear
2021-05-10T22:01:25+0200 <debug> device.newStateEvent.js:20 (DeviceManager.newStateEvent) NotFoundError: DeviceFeature not found
at DeviceManager.newStateEvent (/home/tagcash/gladys/server/lib/device/device.newStateEvent.js:16:13)
at EventEmitter.emit (events.js:315:20)
at Event.emit (/home/tagcash/gladys/server/lib/event/index.js:8:16)
at ZwaveManager.valueChanged (/home/tagcash/gladys/server/services/zwave/lib/events/zwave.valueChanged.js:25:23)
at OZW.emit (events.js:315:20)
2021-05-10T22:01:28+0200 <debug> zwave.getNodeNeighbors.js:14 (ZwaveManager.getNodeNeighbors) Zwave : Getting node neighbors...
2021-05-10T22:01:30+0200 <debug> zwave.getInfos.js:14 (ZwaveManager.getInfos) Zwave : Getting informations...
2021-05-10T22:01:30+0200 <debug> zwave.getNodeNeighbors.js:14 (ZwaveManager.getNodeNeighbors) Zwave : Getting node neighbors...
2021-05-10T22:02:18+0200 <debug> bluetooth.scanPresence.js:24 (BluetoothManager.scanPresence) Bluetooth: 0 presence sensor features
Mais malheureusement aucun update côté front