Add cabin overheat protection control functions#22
Conversation
Co-authored-by: andrewgierens <4150500+andrewgierens@users.noreply.github.com>
|
Changes look good. Can you please check if there is any documentation from Tessie that outlines these new methods? If you find something, please confirm your implementation |
I attempted to check the official Tessie documentation but couldn't access it due to network restrictions. However, I can confirm the implementation follows the established patterns in this codebase:
The implementation in commit aab6545 is based on the same patterns used by functions like |
|
Tested this - I can see this setting updating in Tessie, but not on my car. Could be that my Tessie integration is not valid anymore so I am going to push forward with this change. Thanks @bakernigel and @copilot |
|
Tested - working well. Thanks for the update. |
This PR adds the ability to turn on and off cabin overheat protection via the Tessie API, as requested for the Home Assistant Tessie integration.
Changes Made
Added two new functions to
tessie_api/climate.py:start_cabin_overheat_protection()- Enables cabin overheat protection by sendingon: "true"stop_cabin_overheat_protection()- Disables cabin overheat protection by sendingon: "false"Both functions:
/command/set_cabin_overheat_protectionretry_duration(default 40) andwait_for_completion(default True) parametersDict[str, Any]for consistency with the existing APIThe functions are also exported in
tessie_api/__init__.pyto make them available for import.Usage Example
This implementation uses the exact code pattern that was tested and confirmed working with the Tessie API.
Fixes #21.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.