Ph probe reading value from the API different from UI

  • Thread starter Thread starter erbo21
  • Start date Start date
  • Tagged users None

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!
 
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 ?
 
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
 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%

New Posts

Back
Top