syssi / esphome-soyosource-gtn-virtual-meter

ESPHome component to simulate the current clamp to control the Soyosource GTN1200 limiter
Apache License 2.0
78 stars 21 forks source link

Decouple smartmeter and virtual meter updates #16

Closed syssi closed 2 years ago

syssi commented 2 years ago

At the moment a new smartmeter measurement is passed directly to the inverter. If the smartmeter publishes a new measurement within 3 seconds everything is fine. If the update interval of the smartmeter is less than 3 seconds the setup cannot work properly at because the inverter shuts down "every 3 seconds".

Idea: Decouple both values slightly. Transmit the demand every 3 seconds to the inverter. Allow less frequent demand updates by the smartmeter. Make some timeout configurable to stop the inverter if there a no smartmeter measurements for f.e. 10 seconds.

syssi commented 2 years ago

This is partially solved. The fallback to 0 after a few seconds is missing yet.