Urgent.News

What's breaking now, across hundreds of outlets.

AI

I used Claude Code to build a Home Assistant integration for a device nobody supports, and it's been running for weeks

I gave Claude Code a datasheet and it did the rest

I used Claude Code to build a Home Assistant integration for a device nobody supports, and it's been running for weeks

A Winsen ZH03B laser dust sensor was initially unable to be integrated with Home Assistant due to lack of native support. Using Claude Code, a custom C++ parsing function was generated from the sensor's datasheet, allowing for the extraction and conversion of the sensor's raw data into PM1.0, PM2.5, and PM10 readings. This integration took place within the existing ESPHome configuration on an ESP32 device, utilizing its UART functionality to receive the data.

Claude Code then created a dashboard in Home Assistant, displaying real-time PM1.0, PM2.5, and PM10 measurements in µg/m³ and providing a historical graph for tracking changes over time. This setup allows for detailed monitoring of air quality, specifically particulate levels, in the user's room. The user also demonstrated potential for expanding the setup with automated responses to specific particulate threshold breaches, such as turning on an air purifier or sending notifications.

Claude Code significantly simplified the process of connecting a hardware device to software, making DIY projects more accessible for those who may struggle with integrating hardware and software.

Rewritten by urgent.news; may contain errors — check the original.

Source: xda-developers.com

Read the original at xda-developers.com →

Report a problem with this story

More in AI

More from Tuesday, 1 December 2026 →