This is a custom component for home assistant to integrate the Smartmi smart heater.
Please follow the instructions on Retrieving the Access Token to get the API token to use in the configuration.yaml file.
Credits: Thanks to Rytilahti for all the work.
- Sensors
- hvac_modes: heat,off
- min_temp
- max_temp
- target_temp_step
- current_temperature
- temperature
- curr_tempe
- power
- humidity
- target_temperature
- Chart
- Temperature History
- Services
- set_hvac_mode
- set_temperature
- xiaomi_heater_set_buzzer
- xiaomi_heater_set_brightness
- xiaomi_heater_set_poweroff_time
# configuration.yaml
climate:
- platform: miheater
host: 192.168.1.13
token: a9bd32552dc9bd4e156954c20ddbcb38
name: 取暖器
Configuration variables:
- host (Required): The IP of your cooker.
- token (Required): The API token of your cooker.
- name (Optional): The name of your cooker.
Specify the heater mode.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
yes | Only act on a specific heater. |
hvac_mode |
yes | Specify the heater mode (heat/off). |
Set the temperature of heater.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
yes | Only act on a specific heater. |
temperature |
yes | Set the temperature of heater. |
设置蜂鸣器开关
Service data attribute | Optional | Description |
---|---|---|
entity_id |
yes | Only act on a specific heater. |
buzzer |
yes | 设置蜂鸣器开关 off 或者 on |
设置面板亮度
Service data attribute | Optional | Description |
---|---|---|
entity_id |
yes | Only act on a specific heater. |
brightness |
yes | 设置面板亮度,分别可以是0,1,2 |
定时关闭
Service data attribute | Optional | Description |
---|---|---|
entity_id |
yes | Only act on a specific heater. |
buzzer |
yes | 延迟关闭的时间, 单位为分钟 |
设置童锁
Service data attribute | Optional | Description |
---|---|---|
entity_id |
yes | Only act on a specific heater. |
buzzer |
yes | 设置儿童锁开关 off 或者 on |