# Read the state of your zwave sensors

**URL:** <https://community.homey.app/t/read-the-state-of-your-zwave-sensors/77806>\
**Category:** Apps\
**Tags:** app, z-wave\
**Created:** [March 15, 2023, 9:40pm UTC](https://community.homey.app/t/read-the-state-of-your-zwave-sensors/77806 "2023-03-15T21:40:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anas\_Almohana](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anas_almohana/32/71026_2.png) [@Anas\_Almohana](https://community.homey.app/u/Anas_Almohana)\
**Post date:** [March 15, 2023, 9:40pm UTC](https://community.homey.app/t/read-the-state-of-your-zwave-sensors/77806/1 "2023-03-15T21:40:59Z")

</div>

Hi All  
please support me with the code that triggers when the water sensor is on here is my code:

```auto
'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
```
