MIT License

Copyright (c) 2026 david2069

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

================================================================================
ADDITIONAL TERMS
================================================================================

These Additional Terms accompany and supplement the MIT License above. By using,
copying, modifying, or distributing the Software you accept them.

1. UNOFFICIAL — NO AFFILIATION
   This is UNOFFICIAL software, NOT affiliated with, endorsed by, or supported by
   FranklinWH. It interfaces with FranklinWH's undocumented Direct Connect (local)
   protocol on TCP/9000 — technically the same private channel the official
   FranklinWH mobile app uses, intended for that app and not for third-party use.
   It may change, break, or become unavailable without notice. Do NOT contact
   FranklinWH support about this Software — raise issues, defects, or feature
   requests on GitHub:
   https://github.com/david2069/franklinwh-direct-connect-api/issues

2. COMPLIANCE & ANTI-CIRCUMVENTION
   You agree to keep your gateway and battery settings, controls, and operation
   compliant with the configuration set through the official FranklinWH Mobile App
   and the installer/support FleetView portal.

   FranklinWH-managed settings may exist to, among other things:
     - protect the safety and longevity of the battery and gateway;
     - apply automatic software updates and restrict your ability to view or change
       battery, grid-import, or grid-export controls;
     - enforce your local electricity grid profile and any import/export limits or
       prohibitions;
     - enforce restrictions tied to contractual incentives, subsidies, or VPP/grid
       programmes.

   If you use this Software to bypass or override any such control, restriction, or
   compliance measure — deliberately or inadvertently — you do so entirely at your
   own risk. This is neither condoned nor encouraged by the authors or any other
   party.

3. INTENT & RISK
   This Software is provided for informational and educational purposes, AS-IS,
   with no warranty of fitness for any purpose. Any use — personal or commercial
   — is permitted under the MIT License above and is entirely at your own risk.

4. NOTICE
   As the MIT License above requires, the copyright notice and this permission
   notice (including these Additional Terms) shall be included in all copies or
   substantial portions of the Software. Retaining it in copies, forks, derivatives,
   and AI-assisted works keeps the unofficial-app, compliance, and support context
   travelling with the code.
