获取恒温水壶mac地址:
Hassio获取mac地址:
sudo docker exec -it homeassistant bash
带有MiKettle字样的,即为恒温水壶。
复制文件到自定义插件目录/config/custom_components/sensor
Hassio:
Hassbian:
sudo apt-get install python3-pip libglib2.0-dev
sudo pip3 install bluepy
配置Yaml:
sensor:
- platform: mikettle
mac: 01:23:be:cd:a8:db
group:
mikettle:
name: "米家恒温水壶"
view: false
entities:
- sensor.mikettle
automation:
- alias: heat_up_water_remind
trigger:
- platform: numeric_state
entity_id: sensor.mikettle
above: 95
action:
- service: tts.iflytek_say
data_template:
entity_id: media_player.mpd
message: 恒温水壶的水已经烧好了#颖儿*#
|