<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Keannu Blog</title>
        <link>https://blog.06222001.xyz/work/engineering-writeups</link>
        <description>Keannu Blog</description>
        <lastBuildDate>Fri, 20 Nov 2026 00:00:00 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <item>
            <title><![CDATA[Breaking through Closed-source Telemetry]]></title>
            <link>https://blog.06222001.xyz/work/engineering-writeups/Auxsol Cloud FastAPI</link>
            <guid>https://blog.06222001.xyz/work/engineering-writeups/Auxsol Cloud FastAPI</guid>
            <pubDate>Fri, 20 Nov 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[After installing a residential solar setup powered by an Auxsol brand inverter, I hit a common smart-home roadblock: the hardware relies on a closed-source cloud ecosystem (auxsolcloud.com) with no native local API or official Home Assistant integration.]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" src="https://blog.06222001.xyz/assets/images/85277724fcab81c694fd8e6797d01de0_MD5-050445a7f58d7167d877769d350ac385.jpeg" width="2337" height="1359" class="img_ev3q"></p>
<p>After installing a residential solar setup powered by an <strong>Auxsol</strong> brand inverter, I hit a common smart-home roadblock: the hardware relies on a closed-source cloud ecosystem (auxsolcloud.com) with no native local API or official Home Assistant integration.</p>
<p>While the vendor mobile and web apps for basic visibility and controls, keeping energy data trapped inside a proprietary portal prevents real-time home automation, custom energy dashboards, and automated battery management based on utility Time-of-Use (ToU) schedules.</p>
<p>Taking inspiration from an existing community implementation built on Django by <a href="https://github.com/thefarrukh/auxsolcloud" target="_blank" rel="noopener noreferrer">thefarrukh</a>  (cheers bud!), I decided to engineer a lightweight, free, and open-source alternative—<a href="https://github.com/lemeow125/auxsolcloud" target="_blank" rel="noopener noreferrer">Auxol Cloud FastAPI</a>—designed specifically for low-overhead self-hosting and seamless Home Assistant ingestion.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="the-trade-offs">The Trade-Offs<a href="https://blog.06222001.xyz/work/engineering-writeups/Auxsol%20Cloud%20FastAPI#the-trade-offs" class="hash-link" aria-label="Direct link to The Trade-Offs" title="Direct link to The Trade-Offs" translate="no">​</a></h2>
<p>Farrukh built around a system at scale where one could add multiple inverters. I saw it from my lens at home with one.</p>
<p>The middleware bridge solution required a balance on developer ergonomics/velocity, runtime footprint, and maintainability:</p>
<ul>
<li><strong>FastAPI vs. Heavyweight Frameworks:</strong> While the original community project proved the concept using Django and Celery, a full-stack framework with an ORM, admin panel, and heavy boilerplate is overkill for a stateless API proxy. Moving to <strong>FastAPI</strong> drastically reduced memory overhead, improved async I/O performance for cloud polling, and provided automatic OpenAPI/Swagger documentation out of the box.</li>
<li><strong>Cloud Polling vs. Hardware Hacking:</strong> Rather than voiding warranties by tapping directly into local RS485/Modbus serial ports, wrapping the upstream Auxsol Cloud endpoints (eu.auxsolcloud.com/auxsol-api) offered a safe, non-invasive integration path that works out of the box for any Auxsol owner.</li>
<li><strong>Read-Only Telemetry vs. Active Control:</strong> Exposing passive metrics is straightforward, but true energy optimization requires write access. I prioritized exposing <strong>Time-of-Use (ToU) control endpoints</strong> alongside telemetry so Home Assistant automations can dynamically adjust charging/discharging windows rather than just passively logging data.</li>
<li><strong>Git-Native API Testing (Bruno) vs. Manual Verification:</strong> Because upstream vendor APIs can change without notice, relying on manual checks is risky—especially when write endpoints modify inverter schedules. Instead of bloated GUI clients, I used <strong>Bruno</strong> (a plain-text, Git-friendly API test suite) to automate end-to-end contract verification before and after every deployment.</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="execution">Execution<a href="https://blog.06222001.xyz/work/engineering-writeups/Auxsol%20Cloud%20FastAPI#execution" class="hash-link" aria-label="Direct link to Execution" title="Direct link to Execution" translate="no">​</a></h2>
<p>I built the service on modern Python tooling (<strong>Python 3.13+</strong> and <strong><code>uv</code></strong>) to ensure fast dependency resolution and reproducible deployments:</p>
<ul>
<li><strong>Stateless API Proxy Layer:</strong> Engineered clean REST endpoints in FastAPI to handle authentication against the Auxsol Cloud API, translating proprietary upstream payloads into structured JSON ready for Home Assistant REST sensors and automations.</li>
<li><strong>Telemetry &amp; Time-Series Endpoints:</strong> Exposed granular endpoints for real-time inverter status (live generation, load, battery state), historical time-series production analytics, and detailed inverter reports.</li>
<li><strong>Time-of-Use (ToU) Control Exposure:</strong> Surfaced inverter configuration endpoints to allow programmatic control over Time-of-Use schedules, enabling automated peak-shaving and tariff-based battery rules directly from Home Assistant.</li>
<li><strong>Two-Stage Automated API Testing (Bruno):</strong> Built a version-controlled <strong>Bruno</strong> test collection covering every endpoint:<!-- -->
<ul>
<li><strong>Pre-Deployment Gate:</strong> Spins up an ephemeral, isolated test environment to run the full Bruno suite against every route, catching regressions or upstream schema shifts before code ever ships.</li>
<li><strong>Post-Deployment Verification:</strong> Executes automated smoke tests against the live deployed container to verify production health, authentication, and network connectivity immediately after release.</li>
</ul>
</li>
<li><strong>Zero-Friction Containerization:</strong> Packaged the application with Docker and Docker Compose using environment-driven configuration (<code>.env</code> for credentials, serial numbers, and regional API base URLs), allowing other self-hosters to spin up the bridge in seconds.</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="outcome">Outcome<a href="https://blog.06222001.xyz/work/engineering-writeups/Auxsol%20Cloud%20FastAPI#outcome" class="hash-link" aria-label="Direct link to Outcome" title="Direct link to Outcome" translate="no">​</a></h2>
<ul>
<li><strong>Full Home Assistant Integration:</strong> Successfully liberated proprietary solar data into a local smart-home ecosystem, enabling unified energy monitoring and automated Time-of-Use battery orchestration.</li>
<li><strong>Lightweight Self-Hosted Footprint:</strong> Replaced heavyweight framework overhead with a lean, asynchronous Python 3.13 + FastAPI service managed via <code>uv</code> and Docker.</li>
<li><strong>Open-Source Contribution:</strong> Released the project as free, open-source software with a streamlined Quick Start setup, giving other Auxsol inverter owners a drop-in solution to reclaim control over their solar hardware.</li>
</ul>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Evolution of my Digital Garden]]></title>
            <link>https://blog.06222001.xyz/work/engineering-writeups/Notes</link>
            <guid>https://blog.06222001.xyz/work/engineering-writeups/Notes</guid>
            <pubDate>Fri, 20 Nov 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[For years, my technical notes, troubleshooting logs, and architecture references lived in a private collection of plain Markdown files. For personal recall, it worked great—fast to write, version-controlled, and friction-free. I use Obsidian with Syncthing, check it out!]]></description>
            <content:encoded><![CDATA[<p><img decoding="async" loading="lazy" src="https://blog.06222001.xyz/assets/images/8cc2738ff2a9b5eea2cfad11674da1e6_MD5-8ff97d5453e383a91922a2f9978b9938.jpeg" width="2550" height="1285" class="img_ev3q"></p>
<p>For years, my technical notes, troubleshooting logs, and architecture references lived in a private collection of plain Markdown files. For personal recall, it worked great—fast to write, version-controlled, and friction-free. I use Obsidian with Syncthing, check it out!</p>
<p>However, as I started helping more peers, sharing guides, and solving recurring engineering problems, keeping that knowledge locked in Google Notes or Drive created a bottleneck: I was constantly repeating explanations or copy-pasting raw notes that lacked navigation, search, or structure.</p>
<p>Fast-forward a few years, and as my engineering work gained momentum, my needs evolved again. Beyond sharing quick technical guides, I needed a centralized platform to showcase deeper <strong>case studies and engineering write-ups</strong>—turning years of quiet execution into visible, verifiable proof of work.</p>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="the-trade-offs">The Trade-Offs<a href="https://blog.06222001.xyz/work/engineering-writeups/Notes#the-trade-offs" class="hash-link" aria-label="Direct link to The Trade-Offs" title="Direct link to The Trade-Offs" translate="no">​</a></h2>
<p>Turning a personal note-taking habit into a public-facing engineering hub meant making an unconventional architectural bet: treating raw personal notes like production source code.</p>
<ul>
<li><strong>CI/CD for Personal Notes (Woodpecker) vs. Manual :</strong> Running a <strong>self-hosted Woodpecker CI/CD</strong> pipeline just to publish personal Markdown notes sounds like an over-engineered "crazy take" on paper. In reality, manually copying files between a private vault and a public blog causes sync fatigue and human error. Automating the filter-and-deploy step meant I could keep writing in one place while letting CI/CD handle the publishing mechanics.</li>
<li><strong>Static Site Generator (Docusaurus) vs. Dynamic CMS:</strong> Building a custom blog or managing a database-backed CMS adds server overhead and maintenance for fundamentally static content. <strong>Docusaurus</strong> let me keep my Markdown-first workflow while unlocking full-text search, structured sidebars, and clean typography.</li>
<li><strong>Edge Static Hosting (Cloudflare Pages) vs. Self-Hosted Web Servers:</strong> While I wanted full control over the build pipeline via self-hosted Woodpecker, running a self-hosted web server just to serve static HTML was unnecessary drag. Pushing the compiled frontend to <strong>Cloudflare Pages</strong> gave me global CDN edge caching and zero runtime server maintenance.</li>
<li><strong>Pure Documentation vs. Narrative Storytelling:</strong> Standard documentation layouts work well for tactical guides, but they don't showcase strategic impact. Expanding the site's information architecture to separate <strong>guides/docs</strong> from <strong>engineering write-ups and case studies</strong> gave peers and engineering leaders clear, dedicated paths to explore my work.</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="execution">Execution<a href="https://blog.06222001.xyz/work/engineering-writeups/Notes#execution" class="hash-link" aria-label="Direct link to Execution" title="Direct link to Execution" translate="no">​</a></h2>
<p>Rather than abandoning my Markdown habit for a traditional blogging platform, I wrapped my existing notes repository in a full software delivery lifecycle:</p>
<ul>
<li><strong>Public/Private Vault Partitioning:</strong> Divided my personal Markdown knowledge base into strict public and private boundaries—keeping rough scratchpads, credentials, and proprietary work notes private while flagging polished guides for public release.</li>
<li><strong>Automated Note Publishing via Self-Hosted Woodpecker CI/CD:</strong> Configured a <strong>self-hosted Woodpecker CI/CD</strong> pipeline triggered on Git commits to automatically extract the public note subset, compile the <strong>Docusaurus</strong> frontend, verify broken links/builds, and push artifacts directly to production.</li>
<li><strong>Zero-Server Edge Delivery on Cloudflare Pages:</strong> Deployed the compiled static frontend to <strong>Cloudflare Pages</strong>, decoupling my self-hosted build infrastructure from globally distributed, zero-maintenance public serving.</li>
<li><strong>Multi-Format Content Architecture:</strong> Evolved the site beyond reference documentation to house dedicated sections for <strong>engineering write-ups</strong> and <strong>non-technical case studies</strong> (including the page you are reading right now), turning daily engineering work into visible proof of craft.</li>
</ul>
<h2 class="anchor anchorWithStickyNavbar_LWe7" id="impact">Impact<a href="https://blog.06222001.xyz/work/engineering-writeups/Notes#impact" class="hash-link" aria-label="Direct link to Impact" title="Direct link to Impact" translate="no">​</a></h2>
<ul>
<li><strong>Zero-Friction "Commit-to-Publish" Workflow:</strong> Turned personal note-taking into an automated publishing engine—committing a Markdown note triggers Woodpecker CI to build and deploy straight to Cloudflare's edge with zero manual file juggling.</li>
<li><strong>Safe Public/Private Isolation:</strong> Maintained strict separation between private working notes and public content inside a single, cohesive workflow without risking accidental data exposure.</li>
<li><strong>Controlled Builds, Zero-Maintenance Serving:</strong> Paired full pipeline customization on self-hosted Woodpecker with fast, globally cached frontend delivery on Cloudflare Pages.</li>
<li><strong>Scalable Visibility &amp; Personal Brand:</strong> Transformed years of behind-the-scenes engineering notes into a structured, searchable portfolio of guides, engineering write-ups, and case studies.</li>
</ul>]]></content:encoded>
        </item>
    </channel>
</rss>