dsh-mihome

A whole-home smart-home workbench grown out of a Mi Home plugin. Registers 13 agent tools: Mi Home cloud login, device list, device spec, property read/write, Mi Home scenes and sensors, plus LAN/BLE scanning, whole-home inventory, per-device capabilities, control, admin-page reading, custom scenes and a capability catalog. Backends: Home Assistant entities, Tuya LAN, Shelly, classic TP-Link Kasa, Yeelight, Philips Hue, Tasmota/WLED, local miIO, ONVIF/DLNA, and router, switch, ONT and NAS admin pages. A sidebar workbench shows device tiles, detail pages, scenes and consumable gauges. Controls follow the capabilities a device actually reports; protocols that are not implemented stay discovery-only or read-only rather than guessing write commands. Needs Python 3.12 with a virtualenv built from requirements.txt, and requirements-optional.txt for mDNS, Tuya and BLE. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.

Overview

A whole-home smart-home workbench grown out of a Mi Home plugin. Registers 13 agent tools: Mi Home cloud login, device list, device spec, property read/write, Mi Home scenes and sensors, plus LAN/BLE scanning, whole-home inventory, per-device capabilities, control, admin-page reading, custom scenes and a capability catalog. Backends: Home Assistant entities, Tuya LAN, Shelly, classic TP-Link Kasa, Yeelight, Philips Hue, Tasmota/WLED, local miIO, ONVIF/DLNA, and router, switch, ONT and NAS admin pages. A sidebar workbench shows device tiles, detail pages, scenes and consumable gauges. Controls follow the capabilities a device actually reports; protocols that are not implemented stay discovery-only or read-only rather than guessing write commands. Needs Python 3.12 with a virtualenv built from requirements.txt, and requirements-optional.txt for mDNS, Tuya and BLE. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.

Installation

Install from npm

dsh plugin --profile web add @jessicaisleep/dsh-mihome

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

Install from GitHub

dsh plugin --profile web add github:Jessicaisleep/dsh-mihome

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.