SmartFlex plannedDispatches and completedDispatches queries changes
Upcoming Change
April 26, 2024, 10:36 a.m.
We have made some changes to the SmartFlex devices (IO) plannedDispatches
and completedDispatches
queries and what they return. The built-in documentation has been updated and improved.
Summary of the main changes:
- Top level
source
has been removed (this has been deprecated for years) startDt
andendDt
have been deprecated and replaced withstart
andend
that have a better typedeltaKwh
has been deprecated (this was already replaced bydelta
)meta.source
will now returnsmart-charge
,test-charge
orbump-charge
(ornull
orunknown
) - planned dispatches only- This should now also report bump charge for third-party integrations (e.g. Ohme)
- “Planned” bump charges have a
start
when triggered and anend
based on our calculated duration needed to get to 100% - Completed dispatches only
meta.location
can showAWAY
,AT_HOME
,NO_LOCATIONS_CONFIGURED
orUNABLE_TO_IDENTIFY
, and it will also show all charging, even if not triggered from a dispatch (planned is the best place to see dispatches for now).
We’ve also marked as deprecated a couple of other queries (vehicleChargingPreferences
and registeredKrakenflexDevice
), as these are moving to the devices query.