Skip to content

Commit

Permalink
Added support for Xiaomi Smart Space Heater 1S (zhimi.heater.mc2a) (#…
Browse files Browse the repository at this point in the history
…1868)

This PR adds support for Xiaomi Smart Space Heater 1S
(zhimi.heater.mc2a).
Changes are minimal as the mc2a is basically identical to the mc2.
  • Loading branch information
paranerd authored Dec 6, 2023
1 parent 7c539be commit 658ee2e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions miio/integrations/zhimi/heater/heater_miot.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,22 @@
# Indicator light (siid=7)
"led_brightness": {"siid": 7, "piid": 3},
},
"zhimi.heater.mc2a": {
# Source https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:heater:0000A01A:zhimi-mc2a:1
# Heater (siid=2)
"power": {"siid": 2, "piid": 1},
"target_temperature": {"siid": 2, "piid": 5},
# Countdown (siid=3)
"countdown_time": {"siid": 3, "piid": 1},
# Environment (siid=4)
"temperature": {"siid": 4, "piid": 7},
# Physical Control Locked (siid=5)
"child_lock": {"siid": 5, "piid": 1},
# Alarm (siid=6)
"buzzer": {"siid": 6, "piid": 1},
# Indicator light (siid=7)
"led_brightness": {"siid": 7, "piid": 3},
},
"zhimi.heater.za2": {
# Source https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:heater:0000A01A:zhimi-za2:1
# Heater (siid=2)
Expand Down Expand Up @@ -65,6 +81,10 @@
"temperature_range": (18, 28),
"delay_off_range": (0, 12 * 3600),
},
"zhimi.heater.mc2a": {
"temperature_range": (18, 28),
"delay_off_range": (0, 12 * 3600),
},
"zhimi.heater.za2": {
"temperature_range": (16, 28),
"delay_off_range": (0, 8 * 3600),
Expand Down

0 comments on commit 658ee2e

Please sign in to comment.