Page 1 of 1
Dane z API
Posted: Sun Apr 06, 2025 9:45 am
by Juszczaczek1
Czy jest szansa na poprawienie danych wysyłanych z API? Teraz nawet gdy jest noc API zwraca takie dane jak napięcie częstotliwość i moc czynną mimo że już falownik jest wyłączony i nie podaje tych danych . API powinno zwracać 0 a nie ostatnie otrzymane dane . i jeszcze jedno API zwraca takie dane {"unit":"℃","name":"AmbientTemperature","variable":"ambientTemperation","value":20.0},{"unit":"℃","name":"BoostTemperature","variable":"boostTemperation","value":9.0},{"unit":"℃","name":"InvTemperation","variable":"invTemperation","value":9.0}
na dworze jest około 7℃ a falownik twierdzi ze otoczenie ma 20℃ a inwerter 9℃ , nie powinno być odwrotnie?
Re: Dane z API
Posted: Wed Apr 09, 2025 12:54 pm
by tony.matthews1
It depends which API call you are using. If you are using Get Device Real-time data - this returns the last value logged by the inverter. So this will give you the last value befoer the inverter shut down.
If you want to know when the data was generated, you need to use Get Device History Data. This returns a timestamp with the value that shows when the data was valid.
Re: Dane z API
Posted: Wed Apr 09, 2025 1:12 pm
by Juszczaczek1
Używam /op/v0/device/real/query , wiem że pokazuje mi ostatni pomiar przed wyłączeniem falownika ale chyba lepiej by było aby pokazywało po wyłączeniu 0 , bo teraz jest to mylące np przy napięciach lub temperaturach i np automatyka domowa oparta na napięciu lub temperaturze nie działa poprawnie bo dane nie są rzeczywiste. A co z temperaturą inwertera i otoczenia nie są dane zamienione?
Re: Dane z API
Posted: Wed Apr 09, 2025 5:49 pm
by tony.matthews1
Lots of things could be better but that is how it is...
When the inverter is shutdown, you are not going to get any values, including temperatures from the API.
Re: Dane z API
Posted: Wed Apr 09, 2025 6:02 pm
by Juszczaczek1
W pierwszym poście dałem kawałek API w którym temperatura otoczenia wynosi 20 a temperatura inwertera 9 , według innych termometrów na dworze było około 8 ,dlaczego API twierdzi że 20?
Re: Dane z API
Posted: Thu Apr 10, 2025 2:23 pm
by tony.matthews1
This explains the various temperatures provided by Fox:
https://github.com/TonyM1958/HA-FoxESS- ... mperatures