Source: factory.service/package.gekkoridge/ObjServicePoolScheduler.py
Solar-driven pool pump scheduler.
| Method | Signature | Description |
|---|---|---|
| get_solar_state | get_solar_state() -> dict |
Return latest PvPowerTotal and BatterySoc. |
| get_pump_state | get_pump_state() -> str |
Return current HA state: 'on', 'off', or ''. |
| get_last_on_time | get_last_on_time() -> datetime | None |
Return the CreateTime of last transition to 'on'. |
| set_pump | set_pump(turn_on: bool) -> bool |
Call HA switch service. Returns True on success. |
| run | run() -> dict |
Evaluate solar state and control pool pump. |
| process | process(context: dict) -> dict |
Workflow entry point. |
| run_workflow_direct | run_workflow_direct(guid: str, selector: str) -> str |