Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leaf-wetness sensor Froggit DP10 / Ecovit WN35 not supported? #180

Closed
Petergoge opened this issue Aug 9, 2023 · 10 comments
Closed

Leaf-wetness sensor Froggit DP10 / Ecovit WN35 not supported? #180

Petergoge opened this issue Aug 9, 2023 · 10 comments
Assignees
Labels
enhancement New feature or request

Comments

@Petergoge
Copy link

I'm using DP1500 and I'm getting values for
sainlogic.0.weather.current.indoorhumidity
sainlogic.0.weather.current.indoortemp
sainlogic.0.weather.current.pressurerel

But I'm missing the Leaf-wetness sensor Froggit DP10 / Ecovit WN35.

Can I help you importing it?
In WSView pro its called Multi_CH Leaf ID: 2C01

btw.: the readme said that it has to be set to ecovit, but I just getting values from the DP1500 by using wunderground with /folder/updateweatherstation.php?

Best regards
Daniel

@phifogg
Copy link
Owner

phifogg commented Aug 9, 2023

sure, can you put the adapter in debug mode and get me the output of one run? This should list what the sensor is reporting...

@Petergoge
Copy link
Author

Petergoge commented Aug 10, 2023 via email

@Petergoge
Copy link
Author

`

sainlogic.0 2023-08-10 16:53:07.913 warn State value to set for "sainlogic.0.weather.current.uvi" has value "-9999" less than min "0"
sainlogic.0 2023-08-10 16:53:07.912 warn State value to set for "sainlogic.0.weather.current.solarradiation" has value "-1266873" less than min "0"
sainlogic.0 2023-08-10 16:53:07.912 warn State value to set for "sainlogic.0.weather.current.windgustspeed" has value "-16091.8" less than min "0"
sainlogic.0 2023-08-10 16:53:07.911 warn State value to set for "sainlogic.0.weather.current.windspeed" has value "-16091.8" less than min "0"
sainlogic.0 2023-08-10 16:53:07.910 warn State value to set for "sainlogic.0.weather.current.winddir" has value "-9999" less than min "0"
sainlogic.0 2023-08-10 16:53:07.910 warn State value to set for "sainlogic.0.weather.current.windchilltemp" has value "-5572.8" less than min "-40"
sainlogic.0 2023-08-10 16:53:07.909 warn State value to set for "sainlogic.0.weather.current.dewpointtemp" has value "-5572.8" less than min "-40"
sainlogic.0 2023-08-10 16:53:07.908 warn State value to set for "sainlogic.0.weather.current.outdoorhumidity" has value "-9999" less than min "0"
sainlogic.0 2023-08-10 16:53:07.867 warn State value to set for "sainlogic.0.weather.current.outdoortemp" has value "-5572.8" less than min "-40"
sainlogic.0 2023-08-10 16:53:07.794 debug Setting value from data for info.softwaretype to GW1100A_V2.2.5
sainlogic.0 2023-08-10 16:53:07.794 debug Target for pressurerel unit is set: hPa, using conversion: null
sainlogic.0 2023-08-10 16:53:07.793 debug Setting value from data for weather.current.pressurerel to 1020.4
sainlogic.0 2023-08-10 16:53:07.793 debug Setting value from data for weather.current.indoorhumidity to 61
sainlogic.0 2023-08-10 16:53:07.793 debug Target for indoortemp unit is set: °C, using conversion: null
sainlogic.0 2023-08-10 16:53:07.792 debug Setting value from data for weather.current.indoortemp to 23.4
sainlogic.0 2023-08-10 16:53:07.792 debug Setting value from data for weather.current.uvi to -9999
sainlogic.0 2023-08-10 16:53:07.792 debug Target for solarradiation unit is set: lx, using conversion: null
sainlogic.0 2023-08-10 16:53:07.791 debug Setting value from data for weather.current.solarradiation to -1266873
sainlogic.0 2023-08-10 16:53:07.791 debug Target for windgustspeed unit is set: km/h, using conversion: null
sainlogic.0 2023-08-10 16:53:07.791 debug Setting value from data for weather.current.windgustspeed to -16091.8
sainlogic.0 2023-08-10 16:53:07.790 debug Target for windspeed unit is set: km/h, using conversion: null
sainlogic.0 2023-08-10 16:53:07.790 debug Setting value from data for weather.current.windspeed to -16091.8
sainlogic.0 2023-08-10 16:53:07.790 error Wind heading could not be determined: wind direction outside boundary
sainlogic.0 2023-08-10 16:53:07.789 debug Determining wind heading for -9999 and precision 16
sainlogic.0 2023-08-10 16:53:07.788 debug Setting value from data for weather.current.winddir to -9999
sainlogic.0 2023-08-10 16:53:07.788 debug Target for windchilltemp unit is set: °C, using conversion: null
sainlogic.0 2023-08-10 16:53:07.788 debug Setting value from data for weather.current.windchilltemp to -5572.8
sainlogic.0 2023-08-10 16:53:07.787 debug Target for dewpointtemp unit is set: °C, using conversion: null
sainlogic.0 2023-08-10 16:53:07.787 debug Setting value from data for weather.current.dewpointtemp to -5572.8
sainlogic.0 2023-08-10 16:53:07.786 debug Setting value from data for weather.current.outdoorhumidity to -9999
sainlogic.0 2023-08-10 16:53:07.785 debug Target for outdoortemp unit is set: °C, using conversion: null
sainlogic.0 2023-08-10 16:53:07.784 debug Setting value from data for weather.current.outdoortemp to -5572.8
sainlogic.0 2023-08-10 16:53:07.748 debug No mapping found for dataelement: last_listener_update
sainlogic.0 2023-08-10 16:53:07.748 debug No mapping found for dataelement: rtfreq
sainlogic.0 2023-08-10 16:53:07.747 debug No mapping found for dataelement: realtime
sainlogic.0 2023-08-10 16:53:07.747 debug No mapping found for dataelement: action
sainlogic.0 2023-08-10 16:53:07.746 debug Extracting value for info.softwaretype(softwaretype)
sainlogic.0 2023-08-10 16:53:07.746 debug No mapping found for dataelement: dateutc
sainlogic.0 2023-08-10 16:53:07.745 debug No mapping found for dataelement: leafwetness
sainlogic.0 2023-08-10 16:53:07.745 debug Extracting value for weather.current.pressurerel(baromin)
sainlogic.0 2023-08-10 16:53:07.744 debug Extracting value for weather.current.indoorhumidity(indoorhumidity)
sainlogic.0 2023-08-10 16:53:07.743 debug Extracting value for weather.current.indoortemp(indoortempf)
sainlogic.0 2023-08-10 16:53:07.743 debug Extracting value for weather.current.uvi(UV)
sainlogic.0 2023-08-10 16:53:07.742 debug Extracting value for weather.current.solarradiation(solarradiation)
sainlogic.0 2023-08-10 16:53:07.741 debug Extracting value for weather.current.windgustspeed(windgustmph)
sainlogic.0 2023-08-10 16:53:07.740 debug Extracting value for weather.current.windspeed(windspeedmph)
sainlogic.0 2023-08-10 16:53:07.740 debug Extracting value for weather.current.winddir(winddir)
sainlogic.0 2023-08-10 16:53:07.739 debug Extracting value for weather.current.windchilltemp(windchillf)
sainlogic.0 2023-08-10 16:53:07.738 debug Extracting value for weather.current.dewpointtemp(dewptf)
sainlogic.0 2023-08-10 16:53:07.737 debug Extracting value for weather.current.outdoorhumidity(humidity)
sainlogic.0 2023-08-10 16:53:07.731 debug Extracting value for weather.current.outdoortemp(tempf)
sainlogic.0 2023-08-10 16:53:07.730 debug No mapping found for dataelement: PASSWORD
sainlogic.0 2023-08-10 16:53:07.728 debug No mapping found for dataelement: ID
sainlogic.0 2023-08-10 16:53:07.721 debug Listener received WU update: {"ID":"","PASSWORD":"","tempf":"-9999","humidity":"-9999","dewptf":"-9999","windchillf":"-9999","winddir":"-9999","windspeedmph":"-9999","windgustmph":"-9999","solarradiation":"-9999","UV":"-9999","indoortempf":"74.12","indoorhumidity":"61","baromin":"30.135","leafwetness":"0","dateutc":"now","softwaretype":"GW1100A_V2.2.5","action":"updateraw","realtime":"1","rtfreq":"5"}
sainlogic.0 2023-08-10 16:52:48.994 info Starting Listener
sainlogic.0 2023-08-10 16:52:48.993 debug Forward URL:
sainlogic.0 2023-08-10 16:52:48.993 debug Listener protocol: wunderground
sainlogic.0 2023-08-10 16:52:48.992 debug Listener path: /wetterstation/updateweatherstation.php
sainlogic.0 2023-08-10 16:52:48.992 debug Listener port: 49160
sainlogic.0 2023-08-10 16:52:48.991 debug Listener IP: 0.0.0.0
sainlogic.0 2023-08-10 16:52:48.960 info starting. Version 0.11.1 (non-npm: phifogg/ioBroker.sainlogic) in /opt/iobroker/node_modules/iobroker.sainlogic, node: v14.18.3, js-controller: 4.0.24
`

@phifogg
Copy link
Owner

phifogg commented Aug 10, 2023

Good, this is what I need. Like leafwetness is one you want. I can add this to the next version.
There is another thing i notice, quite some values are pretty awkward, like -9999. Maybe you want to check that. I need to add some error handling for this as well.

@phifogg phifogg self-assigned this Aug 10, 2023
@phifogg phifogg added the enhancement New feature or request label Aug 10, 2023
@Petergoge
Copy link
Author

Petergoge commented Aug 11, 2023

Yes, the leafwetness is the one. That would be great, can't wait for it ;-)
I'll make a dependence with my lawn-mower Luba by cutting the power for its antenna, so it will not mow when it's above 20% leafwetness.

Yeah, I've noticed that warnings. But Now i've made some further tryouts with the Ecowitt settings and now I'm getting results without warnings.
I had to set the path in the WSview-App to /abcde? and in the sainlogic adapter to /abcde
### (without the questionmark!)
and now the warnings are gone.

Heres the new Debug-Log with Ecowitt protocol:

sainlogic.0 2023-08-11 14:52:45.364 debug Setting value from data for info.model to GW1100A
sainlogic.0 2023-08-11 14:52:45.363 debug Setting value from data for info.freq to 868M
sainlogic.0 2023-08-11 14:52:45.362 debug Target for pressureabs unit is set: hPa, using conversion: null
sainlogic.0 2023-08-11 14:52:45.362 debug Setting value from data for weather.current.pressureabs to 1019.8
sainlogic.0 2023-08-11 14:52:45.362 debug Target for pressurerel unit is set: hPa, using conversion: null
sainlogic.0 2023-08-11 14:52:45.361 debug Setting value from data for weather.current.pressurerel to 1019.8
sainlogic.0 2023-08-11 14:52:45.361 debug Setting value from data for weather.current.indoorhumidity to 61
sainlogic.0 2023-08-11 14:52:45.360 debug Target for indoortemp unit is set: °C, using conversion: null
sainlogic.0 2023-08-11 14:52:45.360 debug Setting value from data for weather.current.indoortemp to 22.8
sainlogic.0 2023-08-11 14:52:45.359 debug Setting value from data for info.softwaretype to GW1100A_V2.2.5
sainlogic.0 2023-08-11 14:52:45.358 debug No mapping found for dataelement: last_listener_update
sainlogic.0 2023-08-11 14:52:45.358 debug No mapping found for dataelement: interval
sainlogic.0 2023-08-11 14:52:45.358 debug Extracting value for info.model(model)
sainlogic.0 2023-08-11 14:52:45.357 debug Extracting value for info.freq(freq)
sainlogic.0 2023-08-11 14:52:45.357 debug No mapping found for dataelement: leaf_batt1
sainlogic.0 2023-08-11 14:52:45.356 debug No mapping found for dataelement: leafwetness_ch1
sainlogic.0 2023-08-11 14:52:45.355 debug Extracting value for weather.current.pressureabs(baromabsin)
sainlogic.0 2023-08-11 14:52:45.354 debug Extracting value for weather.current.pressurerel(baromrelin)
sainlogic.0 2023-08-11 14:52:45.352 debug Extracting value for weather.current.indoorhumidity(humidityin)
sainlogic.0 2023-08-11 14:52:45.351 debug Extracting value for weather.current.indoortemp(tempinf)
sainlogic.0 2023-08-11 14:52:45.350 debug No mapping found for dataelement: dateutc
sainlogic.0 2023-08-11 14:52:45.350 debug No mapping found for dataelement: runtime
sainlogic.0 2023-08-11 14:52:45.349 debug Extracting value for info.softwaretype(stationtype)
sainlogic.0 2023-08-11 14:52:45.349 debug No mapping found for dataelement: PASSKEY
sainlogic.0 2023-08-11 14:52:45.348 debug Listener received EW update: {"PASSKEY":"41C6E12B83D8C7957969C590ECB89F63","stationtype":"GW1100A_V2.2.5","runtime":"152379","dateutc":"2023-08-11 12:52:45","tempinf":"73.04","humidityin":"61","baromrelin":"30.118","baromabsin":"30.118","leafwetness_ch1":"0","leaf_batt1":"1.60","freq":"868M","model":"GW1100A","interval":"60"}
sainlogic.0 2023-08-11 14:52:45.346 debug Listener body is PASSKEY=41C6E12B83D8C7957969C590ECB89F63&stationtype=GW1100A_V2.2.5&runtime=152379&dateutc=2023-08-11+12:52:45&tempinf=73.04&humidityin=61&baromrelin=30.118&baromabsin=30.118&leafwetness_ch1=0&leaf_batt1=1.60&freq=868M&model=GW1100A&interval=60
sainlogic.0

The App i'm using is called WSView Plus - afaik it's the new version of the WS software.
ioBroker is running in a Docker-Container maybe thats also interesting for you.
Thats my system:
Plattform docker
Betriebssystem linux
Architektur x64
CPUs 2
Geschwindigkeit 2001 MHz
Modell Intel(R) Celeron(R) CPU J3355 @ 2.00GHz
RAM 9.58 GB
System-Betriebszeit 14 T. 18:57:46
Node.js v14.18.3

@Petergoge
Copy link
Author

Just for safety I reinstalled the whole adapter.
At the first run there are just a few lower warnings:

sainlogic.0 2023-08-11 15:29:21.959 warn This object will not be created in future versions. Please report this to the developer.
sainlogic.0 2023-08-11 15:29:21.958 warn Object sainlogic.0.weather.current.pressureabs is invalid: Default value has to be type "number" but received type "string"
sainlogic.0 2023-08-11 15:29:21.958 warn This object will not be created in future versions. Please report this to the developer.
sainlogic.0 2023-08-11 15:29:21.957 warn Object sainlogic.0.weather.current.pressurerel is invalid: Default value has to be type "number" but received type "string"
sainlogic.0 2023-08-11 15:29:21.957 warn This object will not be created in future versions. Please report this to the developer.
sainlogic.0 2023-08-11 15:29:21.956 warn Object sainlogic.0.weather.current.indoorhumidity is invalid: Default value has to be type "number" but received type "string"
sainlogic.0 2023-08-11 15:29:21.949 warn This object will not be created in future versions. Please report this to the developer.
sainlogic.0 2023-08-11 15:29:21.948 warn Object sainlogic.0.weather.current.indoortemp is invalid: Default value has to be type "number" but received type "string"

phifogg added a commit that referenced this issue Aug 26, 2023
@phifogg
Copy link
Owner

phifogg commented Aug 26, 2023

Hm.. these errors should have been solved with 0.10.5.
Let's keep this issue for leafwetness. Please open a new one for other observations if you still have them.

@Petergoge
Copy link
Author

Thank you for adding the leafwetness.
I am not familiar with github and didn't saw that you already added it an August 26 2023 in the constants.js 🤭
I thought it would course a new version number, so I waited till today...Now I changed the file in my iobroker and there it is🥳

@phifogg
Copy link
Owner

phifogg commented Jun 27, 2024

Updated in version 0.11.3

@phifogg phifogg closed this as completed Jun 27, 2024
@Petergoge
Copy link
Author

Thank you for adding the sensor value in the newest version.
Is it possible to add the battery information, too? That would be great!
Here is the debug information:

2024-07-05 15:41:28.961 - info: sainlogic.0 (14669) starting. Version 0.11.4 in /opt/iobroker/node_modules/iobroker.sainlogic,
2024-07-05 15:41:29.010 - debug: sainlogic.0 (14669) Listener IP: 0.0.0.0
2024-07-05 15:41:29.011 - debug: sainlogic.0 (14669) Listener port: 49160
2024-07-05 15:41:29.011 - debug: sainlogic.0 (14669) Listener path: /wetterstation
2024-07-05 15:41:29.012 - debug: sainlogic.0 (14669) Listener protocol: ecowitt
2024-07-05 15:41:29.012 - debug: sainlogic.0 (14669) Forward URL:
2024-07-05 15:41:29.014 - info: sainlogic.0 (14669) Starting Listener
2024-07-05 15:41:50.280 - debug: sainlogic.0 (14669) Listener body is PASSKEY=41C6E12B83D8C7957969C590ECB89F63&stationtype=GW1100A_V2.3.3&runtime=5804&heap=25588&dateutc=2024-07-05+13:41:49&tempinf=79.70&humidityin=48&baromrelin=29.751&baromabsin=29.751&soilmoisture1=23&soilad1=159&leafwetness_ch1=0&soilbatt1=1.3&leaf_batt1=0.55&freq=868M&model=GW1100A&interval=60
2024-07-05 15:41:50.282 - debug: sainlogic.0 (14669) Listener received EW update: {"PASSKEY":"41C6E12B83D8C7957969C590ECB89F63","stationtype":"GW1100A_V2.3.3","runtime":"5804","heap":"25588","dateutc":"2024-07-05 13:41:49","tempinf":"79.70","humidityin":"48","baromrelin":"29.751","baromabsin":"29.751","soilmoisture1":"23","soilad1":"159","leafwetness_ch1":"0","soilbatt1":"1.3","leaf_batt1":"0.55","freq":"868M","model":"GW1100A","interval":"60"}
2024-07-05 15:41:50.404 - debug: sainlogic.0 (14669) No mapping found for dataelement: PASSKEY
2024-07-05 15:41:50.407 - debug: sainlogic.0 (14669) Extracting value for info.softwaretype(stationtype)
2024-07-05 15:41:50.408 - debug: sainlogic.0 (14669) No mapping found for dataelement: runtime
2024-07-05 15:41:50.408 - debug: sainlogic.0 (14669) No mapping found for dataelement: heap
2024-07-05 15:41:50.409 - debug: sainlogic.0 (14669) No mapping found for dataelement: dateutc
2024-07-05 15:41:50.409 - debug: sainlogic.0 (14669) Extracting value for weather.current.indoortemp(tempinf)
2024-07-05 15:41:50.417 - debug: sainlogic.0 (14669) Extracting value for weather.current.indoorhumidity(humidityin)
2024-07-05 15:41:50.417 - debug: sainlogic.0 (14669) Extracting value for weather.current.pressurerel(baromrelin)
2024-07-05 15:41:50.419 - debug: sainlogic.0 (14669) Extracting value for weather.current.pressureabs(baromabsin)
2024-07-05 15:41:50.420 - debug: sainlogic.0 (14669) Extracting value for weather.current.1.soilmoisture(soilmoisture1)
2024-07-05 15:41:50.420 - debug: sainlogic.0 (14669) No mapping found for dataelement: soilad1
2024-07-05 15:41:50.421 - debug: sainlogic.0 (14669) Extracting value for weather.current.leafwetness(leafwetness_ch1)
2024-07-05 15:41:50.421 - debug: sainlogic.0 (14669) Extracting value for weather.info.1.soilbatt(soilbatt1)
2024-07-05 15:41:50.422 - debug: sainlogic.0 (14669) No mapping found for dataelement: leaf_batt1
2024-07-05 15:41:50.422 - debug: sainlogic.0 (14669) Extracting value for info.freq(freq)
2024-07-05 15:41:50.423 - debug: sainlogic.0 (14669) Extracting value for info.model(model)
2024-07-05 15:41:50.424 - debug: sainlogic.0 (14669) No mapping found for dataelement: interval
2024-07-05 15:41:50.424 - debug: sainlogic.0 (14669) Extracting value for info.last_listener_update(last_listener_update)
2024-07-05 15:41:50.426 - debug: sainlogic.0 (14669) Setting value from data for info.softwaretype to GW1100A_V2.3.3
2024-07-05 15:41:50.429 - debug: sainlogic.0 (14669) Setting value from data for weather.current.indoortemp to 26.5
2024-07-05 15:41:50.430 - debug: sainlogic.0 (14669) Target for indoortemp unit is set: °C, using conversion: null
2024-07-05 15:41:50.431 - debug: sainlogic.0 (14669) Setting value from data for weather.current.indoorhumidity to 48
2024-07-05 15:41:50.431 - debug: sainlogic.0 (14669) Setting value from data for weather.current.pressurerel to 1007.4
2024-07-05 15:41:50.431 - debug: sainlogic.0 (14669) Target for pressurerel unit is set: hPa, using conversion: null
2024-07-05 15:41:50.432 - debug: sainlogic.0 (14669) Setting value from data for weather.current.pressureabs to 1007.4
2024-07-05 15:41:50.432 - debug: sainlogic.0 (14669) Target for pressureabs unit is set: hPa, using conversion: null
2024-07-05 15:41:50.433 - debug: sainlogic.0 (14669) Setting value from data for weather.current.1.soilmoisture to 23
2024-07-05 15:41:50.433 - debug: sainlogic.0 (14669) Setting value from data for weather.current.leafwetness to 0
2024-07-05 15:41:50.434 - debug: sainlogic.0 (14669) Setting value from data for weather.info.1.soilbatt to 1.3
2024-07-05 15:41:50.434 - debug: sainlogic.0 (14669) Setting value from data for info.freq to 868M
2024-07-05 15:41:50.434 - debug: sainlogic.0 (14669) Setting value from data for info.model to GW1100A
2024-07-05 15:41:50.435 - debug: sainlogic.0 (14669) Setting value from data for info.last_listener_update to {"PASSKEY":"41C6E12B83D8C7957969C590ECB89F63","stationtype":"GW1100A_V2.3.3","runtime":"5804","heap":"25588","dateutc":"2024-07-05 13:41:49","tempinf":"79.70","humidityin":"48","baromrelin":"29.751","baromabsin":"29.751","soilmoisture1":"23","soilad1":"159","leafwetness_ch1":"0","soilbatt1":"1.3","leaf_batt1":"0.55","freq":"868M","model":"GW1100A","interval":"60"}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants