I'm writing an app that manages heating and cooling seasons and open windows. It drives Thermostat Scheduler through a restriction switch, which works well. What it can't do is ask a scheduler to re-apply its setpoints, set EcoMode or Hold, or read its status. Rule Machine has the actions; from an app, the only route I found is a helper rule run with RMUtils.sendAction.
Request: make the Thermostat Scheduler actions, plus a status read, available to apps through a documented helper class modeled after RMUtils:
TSU.getSchedulerList() // similar to RMUtils.getRuleList()
TSU.activateScheduledSetpoints(appId)
TSU.setEcoMode(appId, true)
TSU.setEcoOffset(appId, 2.0)
TSU.setHold(appId, false)
TSU.getStatus(appId) // restricted, EcoMode, Hold, current setpoints
Targeting by app id avoids the ambiguity when several schedulers share a thermostat. The same pattern could cover other built-in apps, apps can wrap it in their own endpoints, and it could later be exposed in the hub's MCP server.