skelgaard / homeassistant-apsystems

An APsystems Sensor for Home Assistant
Apache License 2.0
25 stars 9 forks source link

Sensors updates only once an hour. #12

Closed zylxpl closed 2 years ago

zylxpl commented 2 years ago

Hi everyone, Sensor updates only once per hour. Because of that it is hard to do anything useful with the data. Can we somehow increase pooling rate?

synack666 commented 2 years ago

right, this took me to look around, found this and feel happy:

https://github.com/ksheumaker/homeassistant-apsystems_ecur

zylxpl commented 2 years ago

@synack666 sure, but this is much harder to implement for me, as the HA server is not connected via LAN directly to ECU.

synack666 commented 2 years ago

No problem, same here, my HA server is connected via Lan to my router, ECU ist connected via WLAN to my router, works fine.

synack666 commented 2 years ago

they have to be in the same network, thats all

zylxpl commented 2 years ago

@synack666 connection method is irrelevant, i meant that my HA server and ecu are not on the same local network and are not even in the same location. To get this work i would need to create some vpn between two locations. That why collecting data from cloud is easier for me.

synack666 commented 2 years ago

right, now i understand :-)

skelgaard commented 2 years ago

it does pull more than once per hour, but the energy dashboard doesn't update more than once per hour... so it matters where you want it to show ? If you need live data, you can't do it with this, as the apsystem doesn't give data that way. its set to request every 20 sec, so it can be lowered, but shouldn't be much better.. if you want live data then as @synack666 says that addon is better (though i can't get my ECUR to give me that interface) or get a shelly 3em and add that to the outputs from the solar and messure with that live what it produces

zylxpl commented 2 years ago

@skelgaard I'm not referring to Energy dashboard, don't using it anyway. What is a problem for me is that apsystems sensors update once hour on even less. Here is a sample readout of apsystems_energy_day:

image

As you can see it only updates once a hour. Around 13.30 i restarted HA and got the current value for that time. So the data is accessible.

didigrand commented 1 year ago

@skelgaard @zylxpl I have the exact same issue... The apsystems_energy_day updates only once an hour. But when I look at the log, the automation run every 5 minutes.