Zwavejs2mqtt auto-discovery of rain meter

For devices supporting the Auto Discovery feature. Like ZWaveJS2MQTT, Zigbee2MQTT.

Moderator: leecollings

mgugu
Posts: 208
Joined: Friday 04 November 2016 12:33
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

Zwavejs2mqtt auto-discovery of rain meter

Post 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.
Image
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.
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Zwavejs2mqtt auto-discovery of rain meter

Post 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
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
mgugu
Posts: 208
Joined: Friday 04 November 2016 12:33
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

Re: Zwavejs2mqtt auto-discovery of rain meter

Post 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"}
mgugu
Posts: 208
Joined: Friday 04 November 2016 12:33
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

Re: Zwavejs2mqtt auto-discovery of rain meter

Post 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"
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Zwavejs2mqtt auto-discovery of rain meter

Post 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?
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
mgugu
Posts: 208
Joined: Friday 04 November 2016 12:33
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

Re: Zwavejs2mqtt auto-discovery of rain meter

Post 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"
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Zwavejs2mqtt auto-discovery of rain meter

Post 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.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
User avatar
heggink
Posts: 972
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Zwavejs2mqtt auto-discovery of rain meter

Post 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.
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
mgugu
Posts: 208
Joined: Friday 04 November 2016 12:33
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

Re: Zwavejs2mqtt auto-discovery of rain meter

Post 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.
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Zwavejs2mqtt auto-discovery of rain meter

Post 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.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
mgugu
Posts: 208
Joined: Friday 04 November 2016 12:33
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

Re: Zwavejs2mqtt auto-discovery of rain meter

Post by mgugu »

OK. Thank you jvdz for these clarifications.
User avatar
gizmocuz
Posts: 2350
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Zwavejs2mqtt auto-discovery of rain meter

Post 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)
Quality outlives Quantity!
mgugu
Posts: 208
Joined: Friday 04 November 2016 12:33
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

Re: Zwavejs2mqtt auto-discovery of rain meter

Post 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
mgugu
Posts: 208
Joined: Friday 04 November 2016 12:33
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

Re: Zwavejs2mqtt auto-discovery of rain meter

Post by mgugu »

After beta update :
Image
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 8-)
Romain2022
Posts: 10
Joined: Friday 16 September 2022 14:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Zwavejs2mqtt auto-discovery of rain meter

Post 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.
mgugu
Posts: 208
Joined: Friday 04 November 2016 12:33
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

Re: Zwavejs2mqtt auto-discovery of rain meter

Post 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
Romain2022
Posts: 10
Joined: Friday 16 September 2022 14:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Zwavejs2mqtt auto-discovery of rain meter

Post by Romain2022 »

With OZW, the battery level is not reported in Domoticz.
Am I the only person with this problem ?
User avatar
JackD
Posts: 68
Joined: Monday 02 November 2020 20:53
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Zwavejs2mqtt auto-discovery of rain meter

Post 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?
Romain2022
Posts: 10
Joined: Friday 16 September 2022 14:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Zwavejs2mqtt auto-discovery of rain meter

Post 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
Capture d’écran 2023-01-25 160241.png (28.21 KiB) Viewed 1425 times
User avatar
JackD
Posts: 68
Joined: Monday 02 November 2020 20:53
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Zwavejs2mqtt auto-discovery of rain meter

Post 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 :oops:
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
POPP_RAINMETER_OPENZWAVE.jpg (96.34 KiB) Viewed 1418 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest