Zwavejs2mqtt auto-discovery of rain meter
Moderator: leecollings
-
- 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
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.
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.
- 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
We can only check when you share the following:
- MQTT AD CONFIG Messages
- MQTT Status update messages for the devices
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- 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
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"}
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"}
- 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
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
- 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
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.
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
- 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
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 :-)
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
-
- 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
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.
- 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
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
-
- 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
OK. Thank you jvdz for these clarifications.
- 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
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)
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!
-
- 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
Code: Select all
zwave/8/50/0/value/196609 {"time":1641760938642,"value":0.075,"nodeName":"rainSensor","nodeLocation":"Outside"}
Code: Select all
zwave/8/49/0/General_purpose {"time":1641760937360,"value":75,"nodeName":"rainSensor","nodeLocation":"Outside"}
May be presence or not of topic rainrateStill questioning how we shall distinguish if this is a rain sensor ... could also be a water meter
Will install last beta and let you knowplease try beta 14048
-
- 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
After beta update :
Sensor correctly put in "Weather" now.
Default title is not correct (not cubic meters but mm)
JSON shows:
Looks OK, BatteryLevel is not set but may be it is needed to wait an update.
We are on the good way
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"
},
We are on the good way
-
- Posts: 10
- Joined: Friday 16 September 2022 14:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Zwavejs2mqtt auto-discovery of rain meter
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.
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.
-
- 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
This modules works fine in OZW and zwavejs-ui, but AD integration in Domoticz has never worked properly in my case.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.
Instead of AD, I use a dummy rainmeter populated directly by Node Red
-
- Posts: 10
- Joined: Friday 16 September 2022 14:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Zwavejs2mqtt auto-discovery of rain meter
With OZW, the battery level is not reported in Domoticz.
Am I the only person with this problem ?
Am I the only person with this problem ?
- 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
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?
But I am not on the newest latest beta, I run beta14957.
Did you set the "Wake-up Interval" for the rainmeter correctly?
-
- Posts: 10
- Joined: Friday 16 September 2022 14:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Zwavejs2mqtt auto-discovery of rain meter
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 :
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 :
- 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
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.
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.
Who is online
Users browsing this forum: No registered users and 1 guest