Skip to content

Commit

Permalink
🔥 add sub-entities for xiaomi.heater.ma8
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Jan 25, 2024
1 parent 3515e38 commit 2c0e934
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
7 changes: 5 additions & 2 deletions custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,9 @@
'button_actions': 'homepage,light',
'text_actions': 'play_text,execute_text_directive',
},
'xiaomi.heater.ma8': {
'button_actions': 'toggle',
},
'xiaomi.humidifier.p1200': {
'button_actions': 'loop_mode,reset_filter_life',
'select_properties': 'screen.brightness',
Expand Down Expand Up @@ -1601,8 +1604,8 @@
'number_properties': 'target_time,target_temperature',
},
'*.heater.*': {
'switch_properties': 'heater.on',
'number_properties': 'countdown_time',
'switch_properties': 'heater.on,horizontal_swing,alarm.alarm,delay.delay',
'number_properties': 'countdown_time,delay_time',
},
'*.ihcooker.*': {
'sensor_properties': 'temperature,left_time',
Expand Down
9 changes: 9 additions & 0 deletions custom_components/xiaomi_miot/translations/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,15 @@
"leve8": "八档"
}
},
"preset_mode": {
"state": {
"off": "关闭",
"auto": "自动",
"Heat": "制热",
"Warm": "温暖",
"Natural Wind": "自然风"
}
},
"swing_mode": {
"state": {
"off": "关闭",
Expand Down

0 comments on commit 2c0e934

Please sign in to comment.