Ph probe reading value from the API different from UI

erbo21

New Member
View Badges
Joined
Oct 16, 2021
Messages
7
Reaction score
5
Location
boucherville
Rating - 0%
0   0   0
Hello.

I have a weird problem. I calibrated my PH probe in reef-pi but when I use the API, the value from http://reef-pi.local/api/phprobes/{id}/read and http://reef-pi.local/api/phprobes/{id}/reading are not the same.

api/phprobes/{id}/read
8.07

api/phprobes/{id}/readings

(this is only the last value)
...
{
"value": 7.54,
"up": 0,
"down": 0,
"time": "Feb-07-20:00, 2023"
}
....


also the integration into HA use the /read api route so the graph looks like this
1675821934237.png


but the graph on the reef-pi UI looks like this
1675821991859.png



Any idea why?

thnaks!
 

Sral

Valuable Member
View Badges
Joined
May 2, 2022
Messages
1,006
Reaction score
978
Location
Germany
Rating - 0%
0   0   0
Well, it is definitely a good idea to expose both the raw and the calibrated value in the API.
I am however not sure if the usage of the „uncalibrated“ value (I’m assuming that‘s what it is) is a good idea in the HomeAssistant integration. @Ranjib Is that intentional ?
 
OP
OP
E

erbo21

New Member
View Badges
Joined
Oct 16, 2021
Messages
7
Reaction score
5
Location
boucherville
Rating - 0%
0   0   0
Well, it is definitely a good idea to expose both the raw and the calibrated value in the API.
I am however not sure if the usage of the „uncalibrated“ value (I’m assuming that‘s what it is) is a good idea in the HomeAssistant integration. @Ranjib Is that intentional ?
I'm not sure one route is uncalibrated data and the other is calibrated. I didn't find anything in the documentation about that.

But
/readings => return all data
/read => return only one data

I'll wait to see if @Ranjib have an answer.

thanks

Éric
 
Back
Top