The new API for hose timers is great, especially the summaryDayView approach. Please consider at least one of the following improvements to the existing API for irrigation controllers:
(1) provide a summaryDayView option for controllers as well, similar as to hose timers
(2) enhance the existing events API call to consistently provide any schedule ID associated with the event. Sometimes the event summary will say the name of a schedule, so it can be deduced. But that’s not always the case. It’d be much better if there was a dedicated “scheduleID” field that always had the ID of any schedule associated with an event.
(3) At the very least, simply update the API to specify the name of the schedule in the event summary, e.g., rather than sometimes just saying “This schedule…” without any clue as to which schedule is in play? That should be the absolute easiest thing to do, since no new fields would have to be created…
As it stands now, it’s difficult to parse the returned events into a day view, with associated schedule information. Any of these enhancements would make this easier, in addition to creating feature parity between the APIs for hose timers and controllers.
As an example, here’s an event returned by the API currently:
[
category: SCHEDULE,
deviceId: XXXXX-6c50-4572-8da5-XXXXX,
eventDate: 1696950067000,
hidden: false,
id: XXXXXX-35b5-9754-XXXXX,
subType: ZONE_SKIPPED,
summary: This schedule was manually skipped.,
type: USER_ACTION
]
As you can see, there’s no way to tell which schedule this event relates to.