02-15-2024, 04:58 PM
(02-15-2024, 04:20 PM)sanurss Wrote: @nickdd
I've set below values on `ct_clamp` sensors but I still get a lot of switches. My current setup is 10 clamp sensors.
Code:sample_duration: 500ms
update_interval: never
What about AI sensors (cd74hc4067)? What value do you have there?
Code:update_interval: 5s
=> I never got it to work when using the update_interval statements. It works if you only use it for a couple of CT's, but at some point the switching starts and never got it to work.
Instead I use update_interval: never everywhere and poll manually instead.
Why such delay in interval section? Does it have something to do with sum of all delays and sampling duration vs 10s interval?
Code:- delay: 625ms
=> I just defined for myself that an update every 10 seconds for each CT sensor would be good enough and since there are 16 clamps it's just 10.000ms / 16 = 625 ms interval and I just poll each CT sequentially.
You can see it in the dashboard/logs that it just updates each sensor in order and so you have a continuous loop of updates every 625 ms
Can you share some more how you configured in YAML?
=> sure, I put my full config on dropbox, you can download it here:
https://www.dropbox.com/scl/fi/xy658ay1l...hpe9e&dl=1
Didn't have time yet to add the Watt calculations and since it doesn't offer the power factor I need to rethink what circuits I actually want to monitor.
Maybe I was a bit too quick to order and didn't know the M30 board was coming which would have been more suitable for what I wanted to do: measure house usage on different circuits, but since a lot of things are electronic devices like computers, tv's, ... the M16v2 only offers current measurement and so unable to calculate the real power/wattage usage like this.
Regards,
Nick