Files
ems/db/migration/V055__ba81_enable_deye_gen_microinverter_cutoff.sql
Dusan Vojacek b8515f30df
Some checks failed
CI and deploy / migration-check (push) Failing after 9s
CI and deploy / deploy (push) Has been skipped
implmemtace cuttoff genportu
2026-04-20 10:41:10 +02:00

11 lines
374 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- BA81: při BLOCK_EXPORT (sell_price < 0) je potřeba aktivovat „MI export to Grid cutoff“.
-- EMS to řeší přes Deye reg 179 bits 01 (masked RMW) pouze když je tento feature flag zapnutý.
update ems.asset_inverter ai
set deye_gen_microinverter_cutoff_enabled = true
from ems.site s
where s.id = ai.site_id
and s.code = 'BA81'
and ai.code = 'deye-main';