Page 1 of 1
2 Rain devices with different daily vaules
Posted: Sunday 13 October 2024 15:06
by Henry
My PWS is sending it's data to Wunderground, Weathercloud and Domoticz. In Domoticz there are 2 devices with type Rain, 1 for the data from Wunderground (subtype = WWW), and 1 for the data from the PWS (subtype = TFA).
In the Rain Last Week log for the Wunderground device the daily rain for today is correct, but for the PWS device it's the same value as yesterday. The values in the table Rain_Calendar are the same for both devices.
Wunderground device

- 2024-10-13 15 00 20.png (23.47 KiB) Viewed 2496 times
PWS device

- 2024-10-13 15 01 43.png (23.35 KiB) Viewed 2496 times
What could be the cause of this?
Re: 2 Rain devices with different daily vaules
Posted: Sunday 13 October 2024 18:42
by zicht
Difficult to say.. but :
Assuming you update them by a script somehow.
- Are the virtual (dummy) sensor types in domoticz the same ? You can use for example rain and custom and a lot more sensors
Different type probably have different logic.
- Is the code putting the values at the same time in the sensors ?
- Could there be a digit rounding playing any role ?
If the values come from a real sensor directly into domoticz, then i would guess the "problem" is on the data received from the sensor.
Edit :
It could be a sensor is missing to receive some values periodicaly, but the sensor is sending also a sum in data.
Had this once and took me a while to realise. Symptom : Graph/log data will be incorrect, but totals are correct
Re: 2 Rain devices with different daily vaules
Posted: Sunday 13 October 2024 18:57
by FlyingDomotic
Was Domoticz alive at midnight?
Some daily routines are done at that time...
Re: 2 Rain devices with different daily vaules
Posted: Monday 14 October 2024 9:28
by Henry
For the data from Wunderground I'm using the standard hardware from Domoticz, the data from the PWS is handled by the Wunderground Direct Receiver plugin (wudirect). The devices are created by these plugins and are both of type Rain, only the subtype differs. The data in the Rain and Rain_Calendar tables is exactly the same for both devices, including the timestamps.
In the Rain table there are records for both devices at midnight (00:00:00) with the total value for the day.

- 2024-10-14 09 16 48.png (2.49 KiB) Viewed 2467 times
Re: 2 Rain devices with different daily vaules
Posted: Thursday 24 October 2024 11:09
by Henry
I changed the subtype for the PWS device from TFA to WWW and now the values are correct. I couldn't figure out what the difference of a TFA device was compared to WWW.