Repository navigation
feat: open and close a power tailgate - #523
Merged
Merged
Conversation
Add the doors/boot/powerTailgate/set command (open/close) and a Home Assistant cover that uses doors/boot as its state. Both are opt-in per car with POWER_TAILGATE_VINS, since no model configuration flag tells if a car has a power tailgate. The handler refuses the command for cars that are not listed. doors/boot/set keeps its lock behaviour.
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.
Uses
control_tailgatefromsaic-ismart-client-ng0.15.0. It shares the client bump commit with the message time fix PR.Changes
doors/boot/powerTailgate/setwith payloadopenorclose. It callscontrol_tailgate, then refreshes.doors/boot/set(unlock the latch) is unchanged.--power-tailgate-vins/POWER_TAILGATE_VINS, a comma-separated list of VINs. No model configuration code says if a car has a power tailgate. For a car that isn't listed, the handler refuses the command without calling the API and reportsFailed: ...plus acommand_errorevent. This also covers command batches (Add sequential MQTT command batches with one final refresh #518), which can run any registered topic.cover(device_class: door, no stop button), with its state fromdoors/boot(bootStatus). For cars that aren't listed, the entity is removed._publish_coveris new inbase.py.Not checked
__publish_body_sensors()to stay under ruff's statement limit.