Skip to content

v1.6.20

Choose a tag to compare

@yashijoe yashijoe released this 10 Jun 06:39

What's new

Shift program next run (entity service)

New rainmachine_pro.shift_program_next_run entity service to move a program's next scheduled run earlier or later by whole days.

action: rainmachine_pro.shift_program_next_run
target:
  entity_id: switch.rainmachine_main_garden
data:
  days: 1   # positive = later, negative = earlier (-31 to 31)
  • Mirrors the native RainMachine app's "next run" date picker
  • Useful to wire dashboard +/- buttons to nudge the watering cycle after unexpected rain
  • Computes from freshly fetched nextRun — rapid repeated calls accumulate correctly
  • Raises if the program has no scheduled next run (disabled/unschedulable)

Changes

  • api.py: new action_shift_program_next_run(pid, days)
  • switch.py: entity service registration + async_shift_next_run handler
  • services.yaml: new file describing the service
  • README.md: updated documentation

Contributors

Thanks to @aroberts for contributing this feature.