Hi All
please support me with the code that triggers when the water sensor is on here is my code:
'use strict';
const { ZwaveDevice } = require('homey-zwavedriver');
class FibaroFloodSensorPlus extends ZwaveDevice {
onNodeInit() {
this.registerCapability('alarm_water', 'NOTIFICATION');
this.registerReportListener('SENSOR_ALARM', 'SENSOR_ALARM_GET', (rawReport, parsedReport) =>
{
this.log('registerReportListener', rawReport, parsedReport);
});
}
}
module.exports = FibaroFloodSensorPlus;
my next step is to trigger the Fibaro socket off when the water_alarm goes on, please support me with any document or git repo