Dane z API

Post Reply
Juszczaczek1
Posts: 17
Joined: Wed Jan 08, 2025 7:24 pm

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?
tony.matthews1
Posts: 23
Joined: Sun Mar 19, 2023 4:37 pm

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.
H1-6.0-E hybrid inverter
6 x HV2600 v2 batteries
16 x JA Solar 405w panels
7 x Tigo TS4-A-O optimisers
Juszczaczek1
Posts: 17
Joined: Wed Jan 08, 2025 7:24 pm

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?
tony.matthews1
Posts: 23
Joined: Sun Mar 19, 2023 4:37 pm

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.
H1-6.0-E hybrid inverter
6 x HV2600 v2 batteries
16 x JA Solar 405w panels
7 x Tigo TS4-A-O optimisers
Juszczaczek1
Posts: 17
Joined: Wed Jan 08, 2025 7:24 pm

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?
tony.matthews1
Posts: 23
Joined: Sun Mar 19, 2023 4:37 pm

This explains the various temperatures provided by Fox: https://github.com/TonyM1958/HA-FoxESS- ... mperatures
H1-6.0-E hybrid inverter
6 x HV2600 v2 batteries
16 x JA Solar 405w panels
7 x Tigo TS4-A-O optimisers
Post Reply