百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
G

goodbye-mihome

> 编程语言
开源

用于管理小米 MiHome 网关、传感器和智能设备的 Web UI 和插件。

100 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

用于管理小米 MiHome 网关、传感器和智能设备的 Web UI 和插件。

Goodbye MiHome

Break into API of smart home products from Xiaomi and wrap sensors data to cozy web interface.

If you like this project, you might want to buy me a cup of coffee :)

Currently supported devices

  • Temperature and humidity sensor: collect data, show current value and line charts.
  • Magnet (door/window close sensor): collect data, show current status, pubsub service to be used in apps.
  • Gateway LED: change color, set brightness, toggle status, show current value.
  • Gateway Speaker: play standard and user-defined (uploaded via MiHome app) sounds with custom volume, interrupt playing.
  • Yeelight smart LED bulbs: toggle status, set brightness, set name, create scenes, manage cron jobs.

The list will expand as I receive more Xiaomi devices and make plugins for them. Feel free to write your plugins if you have other devices/sensors.

Setup and running

  1. Ensure you have Python 3, PostgreSQL, Redis installed.
  2. Clone the repo
  3. Create a PostgreSQL database and import init.sql
  4. Install required python packages: pip install -r requirements.txt
  5. Copy config.py.example to config.py and fill it with your settings
  6. Run python mihome.py to start data collector, web application and load apps defined in ENABLED_APPS.
    Additionally, run python mihome.py shell to start interactive intepreter (useful to test commands).

Apps

Besides displaying sensors and devices data and change settings from the web interface, you could write some useful apps using Goodbye-MiHome. For example, you could parse your electricity supplier's website and start red LED blinking on the gateway when there's a news about upcoming power outage in your area.

Some sample apps could be found in apps directory.

You could enable or disable an app by changing ENABLED_APPS section in config.py

Background images for web interface

To make web interface even better, you could put your favorite images into web/static/img/bg/ directory. Background image changes every 5 minutes (hovewer, you could tweak the interval in js file).

Issues· 3 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythonaqarasensorsmarthomexiaomi

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言