Files
ems/db/migration/V054__deye_gen_microinverter_cutoff_flag.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

10 lines
566 B
SQL
Raw Permalink 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.
-- Feature flag: řízení microinverter export cutoff přes Deye Modbus (GEN / AC coupling).
-- Použito pro instalace typu BA81, kde při BLOCK_EXPORT (sell_price < 0) musíme odpojit / zakázat export z MI na GEN portu.
alter table ems.asset_inverter
add column if not exists deye_gen_microinverter_cutoff_enabled boolean not null default false;
comment on column ems.asset_inverter.deye_gen_microinverter_cutoff_enabled is
'Pokud true, EMS při BLOCK_EXPORT přepíná Deye reg 179 (Control board special 1) bits01 pro MI export cutoff na GEN portu.';