Commit 1089c4f
fix(enphase): treat a pending schedule family as supported
The cloud reports a schedule family as scheduleStatus "pending" while a
change settles on the gateway - the normal state straight after any write
Predbat makes. Only "active"/"enabled"/"supported"/"available" counted as
supported, so a site with a perfectly good charge-from-grid family was
judged incapable of it, automatic_config raised and run() returned False:
Warn: Automatic configuration skipped - Charge-from-grid (CFG)
scheduling not supported on this site, cannot configure
seen on a site whose cfg family held an active schedule and whose profile
reported scheduleSupported true for both cfg and dtg.
"pending" now counts as supported, and so does any family that actually
holds a schedule, whatever the status string says. "not_supported" still
reports unsupported.
Also aligns the livestream fallback test with the settled-bucket selection
that landed on main in #4430: the helper froze time one bucket too early,
and load now falls back to the energy-balance residual rather than being
left empty.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent a6d8db8 commit 1089c4f
2 files changed
Lines changed: 39 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1354 | 1354 | | |
1355 | 1355 | | |
1356 | 1356 | | |
1357 | | - | |
1358 | | - | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
1359 | 1363 | | |
1360 | | - | |
| 1364 | + | |
1361 | 1365 | | |
1362 | 1366 | | |
1363 | 1367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
695 | | - | |
696 | | - | |
| 695 | + | |
| 696 | + | |
697 | 697 | | |
698 | 698 | | |
699 | 699 | | |
| |||
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
720 | | - | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
721 | 725 | | |
722 | 726 | | |
723 | 727 | | |
724 | 728 | | |
725 | 729 | | |
| 730 | + | |
| 731 | + | |
726 | 732 | | |
727 | 733 | | |
728 | 734 | | |
| |||
928 | 934 | | |
929 | 935 | | |
930 | 936 | | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
931 | 959 | | |
932 | 960 | | |
933 | 961 | | |
| |||
2043 | 2071 | | |
2044 | 2072 | | |
2045 | 2073 | | |
| 2074 | + | |
2046 | 2075 | | |
2047 | 2076 | | |
2048 | 2077 | | |
| |||
0 commit comments