Issues identified from beta tester feedback (David - Powerwall 2 / Gateway 2 user, no vehicle).
The Homey energy tab shows energy flowing from the grid into the house even when no grid energy is being consumed. Solar and battery flows display correctly.
Technical context:
- Gateway driver (
drivers/gateway/device.ts) providesmeasure_power(grid) andmeasure_power.load(house load) - Gateway energy config uses
cumulative: truewithmeter_power.imported/meter_power.exported - Battery driver uses
homeBattery: truewithmeter_power.charged/meter_power.discharged - The house icon in Homey's energy tab may derive its flow from cumulative meter data rather than real-time
measure_powervalues - Need to investigate how Homey calculates the house flow arrows and whether the gateway's energy configuration is correctly representing grid import/export
Gateway: Duplicate "generic alarm turned on for" entries in 'when' cards. Powerwall: Duplicate "turned on for" and "turned off for" entries in 'when' cards.
Resolution: Added driver.flow.compose.json files with descriptive flow cards for all boolean subcapabilities on gateway, battery, and vehicle drivers. Homey uses these instead of auto-generating generic duplicates.
Resolution: Added 6 condition cards:
- Gateway subcapability conditions in
drivers/gateway/driver.flow.compose.json: Grid offline/online (alarm_generic.off_grid), Island mode active/inactive (alarm_generic.island) - Battery subcapability conditions in
drivers/battery/driver.flow.compose.json: Charge from grid enabled/disabled (onoff.charge_grid), Storm watch alert active/inactive (alarm_generic.storm) - App-level conditions in
.homeycompose/flow/conditions/: Operation mode is X (operation_mode_is), Battery level above X% (battery_level) - Run listeners registered in
app.tsforoperation_mode_isandbattery_level
Current energy action cards: set_allow_export, set_backup_reserve, set_operation_mode.
Resolution: Added action flow cards for onoff.charge_grid (on/off/toggle) and onoff.storm (on/off/toggle) in drivers/battery/driver.flow.compose.json.
Resolution: Added device capability filters (args with filter) to all 4 app-level trigger cards in .homeycompose/flow/triggers/. Also added missing titleFormatted (required for verified apps):
steering_wheel_heater_changed→ filter:capabilities=steering_wheel_heateroperation_mode_changed→ filter:capabilities=operation_modeallow_export_changed→ filter:capabilities=allow_exportbackup_reserve_changed→ filter:capabilities=backup_reserve
Resolution: Fully covered by other items:
- Condition cards to check grid status added in issue #3
- Descriptive trigger cards added in
drivers/gateway/driver.flow.compose.json(issue #2)