Closed grzwolf closed 3 months ago
I have the same exact problem, never happened before.
Azzurro app is correct but home assistant show older data
Update: The maintainer may close this issue, I contacted the Azzurro support.
Running the Python script below (many thanks to https://github.com/ZCS-User) provides the same time gap of approx 4h.
That means, aturri's ha-zcsazzurro integration in HA works fine, the root cause seems to be the screwed up server response from https://third.zcsazzurroportal.com:19003/.
Question is still, why does the Azzurro app (assuming it uses the same API) show correct data?
import requests
try:
rsp = requests.Session()
rsp = requests.post(
'https://third.zcsazzurroportal.com:19003/',
headers={
"Authorization": "Zcs <auth_key>",
"Client": '<client>',
"Content-Type": 'application/json'
},
json={
"realtimeData": {
"command": "realtimeData",
"params": {
"thingKey": " <serial_number>",
"requiredValues": "*"
}
}
},
timeout=1)
if rsp.status_code == 200:
# print(str(rsp.text))
print(str(rsp.text), str(rsp.status_code))
else:
print(str(0), str(rsp.status_code))
except:
print('Script Fail')
Update: Per 2024/08/10 the issue is gone w/o any change at the client side. It seems like the server config at Azzurro got fixed.
The maintainer may close this issue,
The problem
Data shown in HA are time wise, as if they were recent (just a few minutes old), but they are outdated by > approx 4h.
Example: A powerGenerating data point of 12586 W as shown in the UI card has a time stamp 18:50.
Device diagnostics shows the same "powerGenerating: 12586" but with time stamp of ""lastUpdate": "2024-08-03T14:13:47Z"".
zcsazzurro-diagnostics.json
Version of zcsazzurro integration having the issue?
zcsazzurro - 0.1.0
Version of Home Assistant Core having the issue?
core - 2024.7.4
Anything in the logs that might be useful for us?
Additional information
Azzurro app on smartphone shows a correct timestamp.
So it looks to me, as if the "zcsazzurro" integration were asking for historic data, not recent ones.