#Measuring voltage spikes/sags in HA

1 messages · Page 1 of 1 (latest)

silver crescent
#

I'm mostly trying to figure out how to measure it because I want to know how my generator is performing with surge loads.

Side question, what's an ok voltage dropout to set on my inverter? It can go down to 60v.

late socket
#

i'd say use a derivative sensor, and then check for large values

silver crescent
#

the problem is if it's not reporting to HA that fast how would it know?

late socket
#

derivative helper that is

#

if you're doing this at the HA side then the reporting interval would be the limitation

silver crescent
#

The spikes/sags only last a fraction of a second so even if I had it set to poll every second it would still be off

#

HA seems to be able to measure trends but not transients

late socket
#

that's a nice practical application of Nyquist–Shannon sampling theorem 😅

late socket
#

HA is never the bottleneck

silver crescent
#

well unless you're dealing with UPS configs then it is lol. I can't for the life of me get HA to poll faster than every 60 seconds and the addon can do 2

late socket
#

there's probably an integration setting you can configure then

silver crescent
#

yeah I know but when I tried to fix it like it said it's still only reporting every 60 seconds

#

but I imaging there's no way to measure transients?

late socket
#

there;'s always a way, but if you're limited to 60s intervals then using your current hardware it would not be possible no

#

I doubt 2 seconds would be nough either

silver crescent
#

I wouldn't

#

I'm jut wondering why it won't report faster

late socket
#

well you haven't given much information so I can only guess

silver crescent
late socket
late socket
#

triggering that doesn't cause more updates?

silver crescent
#

it went from 60 seconds down to 40 seconds but far from the 10 seconds I want

late socket
#

try this pattern

#
trigger: time_pattern
seconds: /10
#

adn remove all your other triggers

silver crescent
#

yeah just updated it

#

you know what I think it is working

#

I just wasn't seeing it because there wasn't any state change

late socket
#

if you hover over the line with your mouse you can check where the individual samples are

silver crescent
late socket
#

that makes sense

silver crescent
#

I'm just stuck since it still doesn't do what I want it to do but there's not much I can do about it. I'll have to get a shally energy monitor

#

I don't know if that reports the voltage spikes though

late socket
#

esphome + shunt sensor would also do the trick