Files
ems/db/migration/V111__activate_ev_presence_nudge_home01.sql
Dusan Vojacek 1479572569 feat(activate): home-01 — notify (V111) + pool control (V112) + EV start penalty (V113)
Operační aktivace nasazených featur přes Flyway:
- V111: asset_vehicle.presence_nudge_enabled=true (tesla-my) → proaktivní nudge
- V112: signal_route POOL_PUMP_ON → Shelly + asset_pool_pump.schedulable=true
- V113: asset_ev_charger.planner_ev_start_penalty_czk=0.5 (anti-fragmentace, laditelné)
Geofence (env EV_GEOFENCE_ARRIVAL_OBS_ENABLED) si nastaví uživatel na serveru.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-14 23:20:32 +02:00

11 lines
554 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.
-- Aktivace proaktivní notifikace „píchni auto" pro Teslu na home-01.
-- V110 přidala flag asset_vehicle.presence_nudge_enabled (default false = inertní);
-- tato migrace ho operačně zapíná pro tesla-my. Job ev_presence_notify pak pošle
-- Discord nudge, když je auto doma + odpojené + (SoC < cíltolerance) + levné/přebytek.
-- Vypnutí později: nová migrace nebo operační update.
update ems.asset_vehicle
set presence_nudge_enabled = true
where code = 'tesla-my'
and site_id = (select id from ems.site where code = 'home-01');