Page 1 of 2
Zwavejs2mqtt auto-discovery of rain meter
Posted: Thursday 06 January 2022 15:48
by mgugu
Hi,
Just to report some strange behaviour regarding zwave auto discovery of a zwave rain sensor(Popp z-rain):
- 3 custom sensor devices in "utility" section
- 1 switch On/Off battery
- Battery level not reported.

In OZW all these data are packaged in single rain meter sensor in "Weather" section.
Bug ? Any idea?
At the moment my workaroung is to populate a virtual rain meter through nodered.
Re: Zwavejs2mqtt auto-discovery of rain meter
Posted: Thursday 06 January 2022 15:57
by jvdz
mgugu wrote: ↑Thursday 06 January 2022 15:48
Bug ? Any idea?
We can only check when you share the following:
- MQTT AD CONFIG Messages
- MQTT Status update messages for the devices
The battery level should be part of the device/sensor and not be a separate device anymore (as far as I can remember) .
Jos
Re: Zwavejs2mqtt auto-discovery of rain meter
Posted: Thursday 06 January 2022 17:03
by mgugu
jvdz wrote: ↑Thursday 06 January 2022 15:57
We can only check when you share the following:
- MQTT AD CONFIG Messages
- MQTT Status update messages for the devices
AD Messages:
Code: Select all
AD Topic: zwaveauto/sensor/rainSensor/generic_general_purpose/config:
{"value_template":"{{ value_json.value }}","state_topic":"zwave/8/49/0/General_purpose","json_attributes_topic":"zwave/8/49/0/General_purpose","device":{"identifiers":["zwavejs2mqtt_0xec7f4b4c_node8"],"manufacturer":"Popp & Co","model":"POPP Rain-Sensor (POPE700168)","name":"rainSensor","sw_version":"1.2"},"name":"rainSensor_generic_general_purpose","unique_id":"zwavejs2mqtt_0xec7f4b4c_8-49-0-General_purpose"}
AD Topic: zwaveauto/sensor/rainSensor/water_rain_rate/config:
{"value_template":"{{ value_json.value }}","icon":"mdi:water","unit_of_measurement":"mm/h","state_topic":"zwave/8/49/0/Rain_rate","json_attributes_topic":"zwave/8/49/0/Rain_rate","device":{"identifiers":["zwavejs2mqtt_0xec7f4b4c_node8"],"manufacturer":"Popp & Co","model":"POPP Rain-Sensor (POPE700168)","name":"rainSensor","sw_version":"1.2"},"name":"rainSensor_water_rain_rate","unique_id":"zwavejs2mqtt_0xec7f4b4c_8-49-0-Rain_rate"}
AD Topic: zwaveauto/sensor/rainSensor/water_cubic_meters_value/config:
{"value_template":"{{ value_json.value }}","icon":"mdi:water","unit_of_measurement":"Cubic meters","state_topic":"zwave/8/50/0/value/196609","json_attributes_topic":"zwave/8/50/0/value/196609","device":{"identifiers":["zwavejs2mqtt_0xec7f4b4c_node8"],"manufacturer":"Popp & Co","model":"POPP Rain-Sensor (POPE700168)","name":"rainSensor","sw_version":"1.2"},"name":"rainSensor_water_cubic_meters_value","unique_id":"zwavejs2mqtt_0xec7f4b4c_8-50-0-value-196609"}
AD Topic: zwaveauto/sensor/rainSensor/battery_level/config
{"value_template":"{{ value_json.value }}","device_class":"battery","unit_of_measurement":"%","state_topic":"zwave/8/128/0/level","json_attributes_topic":"zwave/8/128/0/level","device":{"identifiers":["zwavejs2mqtt_0xec7f4b4c_node8"],"manufacturer":"Popp & Co","model":"POPP Rain-Sensor (POPE700168)","name":"rainSensor","sw_version":"1.2"},"name":"rainSensor_battery_level","unique_id":"zwavejs2mqtt_0xec7f4b4c_8-128-0-level"}
Main update messages:
Code: Select all
zwave/8/49/0/General_purpose:
{"time":1641483297979,"value":44,"nodeName":"rainSensor","nodeLocation":"Outside"}
zwave/8/49/0/Rain_rate:
{"time":1641483297980,"value":0,"nodeName":"rainSensor","nodeLocation":"Outside"}
zwave/8/128/0/level:
{"time":1641483298015,"value":68,"nodeName":"rainSensor","nodeLocation":"Outside"}
Re: Zwavejs2mqtt auto-discovery of rain meter
Posted: Thursday 06 January 2022 17:07
by mgugu
jvdz wrote: ↑Thursday 06 January 2022 15:57
The battery level should be part of the device/sensor and not be a separate device anymore (as far as I can remember) .
Right. Acctually he level is not reported at all by domoticz. Only the switch "battery is low"
Re: Zwavejs2mqtt auto-discovery of rain meter
Posted: Thursday 06 January 2022 19:30
by jvdz
mgugu wrote: ↑Thursday 06 January 2022 17:07
jvdz wrote: ↑Thursday 06 January 2022 15:57
The battery level should be part of the device/sensor and not be a separate device anymore (as far as I can remember) .
Right. Acctually he level is not reported at all by domoticz. Only the switch "battery is low"
I do not see any battery levels in the posted state updates... aren't there any related to these devices of other subdevices of this ZWAVE node?
Re: Zwavejs2mqtt auto-discovery of rain meter
Posted: Thursday 06 January 2022 19:40
by mgugu
jvdz wrote: ↑Thursday 06 January 2022 19:30
I do not see any battery levels in the posted state updates... aren't there any related to these devices of other subdevices of this ZWAVE node?
It is in topic "zwave/8/128/0/level"
Re: Zwavejs2mqtt auto-discovery of rain meter
Posted: Thursday 06 January 2022 19:49
by jvdz
Ah ok .... the config states its a Battery percentage device and then a simple level update is send.... got it...
You gotta love the multiple ways the HA discovery is implemented. Most send the battery level as a keyword in the payload.
This needs to be checked how we handle that.
Re: Zwavejs2mqtt auto-discovery of rain meter
Posted: Thursday 06 January 2022 20:48
by heggink
It ceirtainly has a level of forrest gump-ness over it: Autodiscovery is like a box of chocolates. You never know what you're gonna get.
Re: Zwavejs2mqtt auto-discovery of rain meter
Posted: Friday 07 January 2022 9:11
by mgugu
heggink wrote: ↑Thursday 06 January 2022 20:48
It ceirtainly has a level of forrest gump-ness over it: Autodiscovery is like a box of chocolates. You never know what you're gonna get.
Do you mean that no standard exists for AD device configuration ?
That would mean that domoticz has to be re-compiled for each new zwave device.
Re: Zwavejs2mqtt auto-discovery of rain meter
Posted: Friday 07 January 2022 9:56
by jvdz
mgugu wrote: ↑Friday 07 January 2022 9:11
That would mean that domoticz has to be re-compiled for each new zwave device.
Not really, The issue is that the data can be defines in multiple ways and we "just" need to cover those options. The challenge in Domoticz is that it creates devices under hardware, so 2 layers. Homeassistant uses Entities and adds any value received (Sensor/Light/Cover/Sensor) within that entity to the list. Domoticz doesn't have this option so each needs to linked to its own device with it's own Devicetype.
Re: Zwavejs2mqtt auto-discovery of rain meter
Posted: Friday 07 January 2022 10:07
by mgugu
OK. Thank you jvdz for these clarifications.
Re: Zwavejs2mqtt auto-discovery of rain meter
Posted: Thursday 13 January 2022 7:00
by gizmocuz
One of the reasons is that the m3/cubic meters was not yet seen (and thus not implemented) before
Could you post some values of
zwave/8/50/0/value/196609
Still questioning how we shall distinguish if this is a rain sensor ... could also be a water meter
isn't rain reported in mm (millimeters) ? (instead of m3)
Edit: please try beta 14048 ... Maybe you get a rain device, but the rainfall could be extremally wrong.. (multiplied by 1000)
Re: Zwavejs2mqtt auto-discovery of rain meter
Posted: Thursday 13 January 2022 12:22
by mgugu
gizmocuz wrote: ↑Thursday 13 January 2022 7:00
Could you post some values of
zwave/8/50/0/value/196609
Code: Select all
zwave/8/50/0/value/196609 {"time":1641760938642,"value":0.075,"nodeName":"rainSensor","nodeLocation":"Outside"}
value is the counter in m
Code: Select all
zwave/8/49/0/General_purpose {"time":1641760937360,"value":75,"nodeName":"rainSensor","nodeLocation":"Outside"}
value is the counter in mm.
Still questioning how we shall distinguish if this is a rain sensor ... could also be a water meter
May be presence or not of topic rainrate
please try beta 14048
Will install last beta and let you know
Re: Zwavejs2mqtt auto-discovery of rain meter
Posted: Thursday 13 January 2022 13:07
by mgugu
After beta update :

Sensor correctly put in "Weather" now.
Default title is not correct (not cubic meters but mm)
JSON shows:
Code: Select all
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "0;75.0",
"Description" : "",
"Favorite" : 0,
"HardwareDisabled" : false,
"HardwareID" : 9,
"HardwareName" : "zwave2mqtt",
"HardwareType" : "MQTT Auto Discovery Client Gateway with LAN interface",
"HardwareTypeVal" : 125,
"HaveTimeout" : false,
"ID" : "zwavejs2mqtt_0xec7f4b4c_8-50-0-value-196609",
"LastUpdate" : "2022-01-13 12:35:09",
"Name" : "rainSensor_water_cubic_meters_value",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" :
[
0
],
"Protected" : false,
"Rain" : "0.0",
"RainRate" : "0",
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "TFA",
"Timers" : "false",
"Type" : "Rain",
"TypeImg" : "rain",
"Unit" : 1,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "213"
},
Looks OK, BatteryLevel is not set but may be it is needed to wait an update.
We are on the good way

Re: Zwavejs2mqtt auto-discovery of rain meter
Posted: Wednesday 11 January 2023 14:47
by Romain2022
Hello everyone,
The subject of the battery level not reported is always present in my Domoticz.
Do you know, if some actions are made for this ?
Thanks.
Re: Zwavejs2mqtt auto-discovery of rain meter
Posted: Wednesday 11 January 2023 15:31
by mgugu
Romain2022 wrote: ↑Wednesday 11 January 2023 14:47
Hello everyone,
The subject of the battery level not reported is always present in my Domoticz.
Do you know, if some actions are made for this ?
Thanks.
This modules works fine in OZW and zwavejs-ui, but AD integration in Domoticz has never worked properly in my case.
Instead of AD, I use a dummy rainmeter populated directly by Node Red
Re: Zwavejs2mqtt auto-discovery of rain meter
Posted: Tuesday 24 January 2023 15:03
by Romain2022
With OZW, the battery level is not reported in Domoticz.
Am I the only person with this problem ?
Re: Zwavejs2mqtt auto-discovery of rain meter
Posted: Wednesday 25 January 2023 12:46
by JackD
I have the Z-wave POPP rainmeter, and it works fine with OpenZwave in Domoticz, including battery status.
But I am not on the newest latest beta, I run beta14957.
Did you set the "Wake-up Interval" for the rainmeter correctly?
Re: Zwavejs2mqtt auto-discovery of rain meter
Posted: Wednesday 25 January 2023 16:05
by Romain2022
Hello,
The wake-up interval is set to 240 seconds for me.
Where do you see the battery status ?
In the hardware controller screen, the column "battery" is empty :

- Capture d’écran 2023-01-25 160241.png (28.21 KiB) Viewed 1642 times
Re: Zwavejs2mqtt auto-discovery of rain meter
Posted: Wednesday 25 January 2023 19:22
by JackD
You set the wake-up interval very tight, this will drain your battery very fast, but you won't know because you don't see the battery status
But clearly it is not a to wide wake-up interval setting. I set mine at 14400seconds(4 hours).
Works fine here with beta14957, but it is possible that with the newest beta Domoticz Open Zwave is finally "broken".
Open zwave is depreciated so it is a distinct possibility, go back to my version beta14957 and you will know if this is the case.
beta14957 works fine here, see my screenshot, my battery is at 80%
If open zwave is "broken" than you can try Zwavejs2mqtt or use a older Domoticz version.

- POPP RAINMETER
- POPP_RAINMETER_OPENZWAVE.jpg (96.34 KiB) Viewed 1635 times