Commit 6a9ed9b
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.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 5a126bd commit 6a9ed9b
2 files changed
Lines changed: 30 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1334 | 1334 | | |
1335 | 1335 | | |
1336 | 1336 | | |
1337 | | - | |
1338 | | - | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
1339 | 1343 | | |
1340 | | - | |
| 1344 | + | |
1341 | 1345 | | |
1342 | 1346 | | |
1343 | 1347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
840 | 840 | | |
841 | 841 | | |
842 | 842 | | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
843 | 865 | | |
844 | 866 | | |
845 | 867 | | |
| |||
1943 | 1965 | | |
1944 | 1966 | | |
1945 | 1967 | | |
| 1968 | + | |
1946 | 1969 | | |
1947 | 1970 | | |
1948 | 1971 | | |
| |||
0 commit comments