Add navigate-to-address, cabin temperature, and climate mode flow actions#18
Merged
Conversation
…ions Surfaces three already-supported vehicle commands (navigation_request, setTemps, and the existing thermostat_mode climate/keeper/defrost path) as Homey flow actions, following the action-card pattern from the charging & battery flow suite. The thermostat_mode capability listener logic moves into a shared setThermostatMode() method so the flow action and the capability listener stay in sync instead of duplicating logic. Cabin overheat protection is left out - it needs a new capability definition and is tracked as a separate follow-up.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
navigate_to_address- sendsnavigationRequest({ value: address }), a plain destination stringset_cabin_temperature- drives the existingtarget_temperaturecapability path (setTemps(temp, temp))set_climate_mode- drives the existingthermostat_modecapability (off/auto/defrost/keep/dog/camp)set_climate_mode's logic (climate on/off, defrost, keeper mode) was already non-trivial in thethermostat_modecapability listener, so it's pulled into a sharedsetThermostatMode()method used by both the capability listener and the new flow action, instead of duplicating itflowNavigateToAddress,flowSetCabinTemperature, andflowSetClimateModeintest/vehicle-charging-flow.test.ts, mirroring the existing action tests