Smartmi-smart-heater
Smartmi-smart-heater copied to clipboard
智米智能电暖器
Smartmi Smart Heater
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.
Features
viomi.health_pot.v1
- 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
Setup
# 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.
Platform services
Service climate.set_hvac_mode
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). |
Service climate.set_temperature
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. |
Update
climate.xiaomi_heater_set_buzzer
设置蜂鸣器开关
Service data attribute | Optional | Description |
---|---|---|
entity_id |
yes | Only act on a specific heater. |
buzzer |
yes | 设置蜂鸣器开关 off 或者 on |
climate.xiaomi_heater_set_brightness
设置面板亮度
Service data attribute | Optional | Description |
---|---|---|
entity_id |
yes | Only act on a specific heater. |
brightness |
yes | 设置面板亮度,分别可以是0,1,2 |
climate.xiaomi_heater_set_poweroff_time
定时关闭
Service data attribute | Optional | Description |
---|---|---|
entity_id |
yes | Only act on a specific heater. |
buzzer |
yes | 延迟关闭的时间, 单位为分钟 |
climate.xiaomi_heater_set_child_lock
设置童锁
Service data attribute | Optional | Description |
---|---|---|
entity_id |
yes | Only act on a specific heater. |
buzzer |
yes | 设置儿童锁开关 off 或者 on |