Ecowitt RF Sensor Error

Installed
Driver: Ecowitt RF Sensor

Log Error for Ecowitt RF Sensor

java.lang.NumberFormatException: Character , is neither a decimal digit number, decimal point, nor "e" notation exponential mark. on line 524 (method attributeUpdate)

image

Reloaded
/**

Need to turn on debugging and.post logs.

1 Like

https://community.hubitat.com/uploads/default/original/3X/c/3/c332973ed739bdeddd5c28fd5deef45fd6451f0c.jpeg

Thats not the logs with debugging in.. cannot help unless you do as i aak. Turn on debugging and post the full interaction when data comes in.

Not seeing where to turn on debugging for the Ecowitt RF Sensor or Ecowitt RF Sensor

In the parent device Ecowitt Wifi Gateway, logging level is under "verbosity". You can select "Debug" from the drop down and save.

What gateway do you have? Did it come with a weather station? What sensors are connected, and what sensor is giving this error. It is getting an empty character and then trying to convert that to bigDecimal, causing an exception you show in the log.

1 Like

Based on the section of the code in the original post, I think it would also be useful to see the preference settings from the RF sensor device in HE, particularly the battery settings. Could it be as simple as a comma in there where there should be a full stop (decimal point)?

1 Like

Got it. Thank you
It's the ECOWITT Wittboy Pro Weather Station HP2564 and HP2560 TFT display console and WS90 7-in-1 outdoor weather sensor.


1 Like

I agree. On mine, there is are min max settings in preferences, on the individual child devices. In the screenshot of the code, the code above it should be setting default values if those settings are missing.

if (!(settings.voltageMin) || !(settings.voltageMax)) {
// First time: initialize and show the preference
vMin = 1.3;
vMax = 1.65;

  device.updateSetting("voltageMin", [value: vMin, type: "string"]);
  device.updateSetting("voltageMax", [value: vMax, type: "string"]);
}
else {
  vMin = (settings.voltageMin).toBigDecimal();
  vMax = (settings.voltageMax).toBigDecimal();
}

That was it. I need to cleanup the other unrecognized attributes.
Thanks for the help.

1 Like

Glad you found the issue

ya empty battery voltage was incorrect had a comma looks like you put template setting in that field.

I believe that was the case, went with the default settings. May need to change font size ,.

You thinking the size of the text around the settings may have made it hard to read. or at least not obvious at first glance? They are setup as 12pt.

No, I miss stated, I may need to change MY font size. And pay more attention to default Preferences,

Ah, got it

The Ecowitt RF Sensor driver doesn't seem to work correctly. things it presents to homekit are wrong. i get leak detector error. i dont even have a leak detector sensor. i get battery low errors on the leak detectors i dont have.
and other than temperature none of the other things like wind or sun are presented to homekit.

Its not supposed to/advertised uo send to homelink.

hubitat exposes it to homekit.
but the way the driver is written it exposes erroneous things.

not correct. that is a hubitat issue not this driver issue.. in order for it to work any other way would mean a separate device type code file for every class of device.. it is much simpler with one device handler.. it is an issue with how hubitat exposes devices to homekit.