智能家居控制系统:Home Assistant
jopen
11年前
Home Assistant 是一个运行在Python3之上,家庭自动化平台。目标是能够跟踪和控制家里的所有设备,并提供了一个平台,自动化控制。
它具有以下功能,通过内置的组件:
- 跟踪所有通过无线路由器连接的设备 (支持OpenWrt, Tomato, Netgear)
- 跟踪和控制飞利浦灯光色调。Track and control Philips Hue lights
- 跟踪和控制WeMo开关。Track and control WeMo switches
- 跟踪和控制谷歌的Chromecast。Track and control Google Chromecasts
- Track running services by monitoring
ps
output - Turn on the lights when people get home after sun set
- Turn on lights slowly during sun set to compensate for light loss
- Turn off all lights and devices when everybody leaves the house
- Offers web interface to monitor and control Home Assistant
- Offers a REST API for easy integration with other projects (see related projects for Android and Ruby support)
- Ability to have multiple instances of Home Assistant work together
Home Assistant also includes functionality for controlling HTPCs:
- Simulate key presses for Play/Pause, Next track, Prev track, Volume up, Volume Down
- Download files
- Open URLs in the default browser
The system is built modular so support for other devices or actions can be implemented easily. See also the section on architecture and the section on customizing.
架构
The core of Home Assistant exists of three parts; an Event Bus for firing events, a State Machine that keeps track of the state of things and a Service Registry to manage services.