Skip to content

Commit

Permalink
Improve viomi.fridge.m1
Browse files Browse the repository at this point in the history
提升获取更多设备厂商可获取的属性以供使用。
例如:viomi.fridge.m1 
的Indoortemp属性代表室内温度,可供获取到冰箱所在室内的温度以供使用,如此用户可以省掉一个温度传感器。
  • Loading branch information
ptbsare authored Mar 26, 2024
1 parent 9f0d7dc commit 7e359ee
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions custom_components/xiaomi_miot/core/miio2miot_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1243,13 +1243,9 @@ def cbk(prop, params, props, **kwargs):
# ["Mode","RCSetTemp","FCSetTemp","RCSet","Error","IndoorTemp","SmartCool","SmartFreeze"]
# ["none",8 ,-15 ,"on" ,0 ,30 ,"off" ,"off"]
# 'chunk_properties': 8,
'miio_commands': [
{
'method': 'get_prop',
'params': ['RCSetTemp','FCSetTemp', 'RCSet', 'ScreenOn', 'Error', 'SmartCool', 'SmartFreeze', 'IndoorTemp'],
'values': ['RCSetTemp','FCSetTemp', 'RCSet', 'ScreenOn', 'Error', 'SmartCool', 'SmartFreeze', 'IndoorTemp'],
},
],
'chunk_properties': 1,
'miio_props': ['ScreenOn', 'Error', 'SmartCool', 'SmartFreeze', 'IndoorTemp'],
'entity_attrs': ['ScreenOn', 'Error', 'SmartCool', 'SmartFreeze', 'IndoorTemp'],
'miio_specs': {
'prop.2.1': {'prop': 'Mode', 'setter': 'setMode', 'dict': {
'smart': 1,
Expand Down

0 comments on commit 7e359ee

Please sign in to comment.