Open hzonz opened 1 month ago
duplicate of #1735
flush_work,start_foam,clean_work
等操作在miot规格中都需要传参,不适合使用button
实体接入。
- xjx.toilet.relaxp
flush_work,start_foam,clean_work
等操作在miot规格中都需要传参,不适合使用实体接入。button
可以正常使用
尝试master分支。
wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot ARCHIVE_TAG=master bash -
尝试master分支。
wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot ARCHIVE_TAG=master bash -
感谢! 可以正常识别为开关状态,泡沫按钮和自洁按钮,重复。
这是修改后完整的实体:
'xjx.toilet.relaxp': {
'sensor_properties': 'status,bubble-level',
'switch_properties': 'status_seatheat,status_led,auto_led,flush_setting,statys_bubbleshield,'
'status_seat,status_cover,auto_seat_close,auto_cover_close,status_microw_seat,'
'status_microw_cover,status_footin_seat,status_footin_cover',
'select_properties': 'seat_temp',
'button_actions': 'stop_working,flush_work,start_foam,clean_work',
我的设备是 hyd.airer.znlyj5 (小米智能晾衣杆)
,在 configuration.yaml 里调整了一下 cover_position_mapping ,就能正确上升下降了。
xiaomi_miot:
device_customizes:
hyd.airer.znlyj5:
exclude_miot_properties: ''
cover_position_mapping: {
0: 50,
1: 0,
2: 100,
}
设备:米家智能晾衣机 型号:hyd.airer.znlyj5 问题:无法点击下降按钮(下降按钮灰色) 参考:#1203 代码:
'hyd.airer.*': { 'main_miot_services': 'airer', 'switch_properties': 'uv', 'select_properties': 'mode,dryer', 'number_properties': 'drying_time', 'exclude_miot_properties': 'motor_control', 'disable_target_position': True, 'position_reverse': False, 'cover_position_mapping': { 0: 50, 1: 100, 2: 0,
设备:小鲸洗一体式智能马桶 型号:xjx.toilet.relaxp 问题:缺少实体 代码:
'xjx.toilet.relaxp': { 'sensor_properties': 'seating_state', 'select_properties': 'status_seatheat,seat_temp,status_led,auto_led,status_seat,status_cover', 'button_actions': 'stop_working,flush_work,start_foam,clean_work',
添加,冲水,泡沫,自洁,停止,按钮。
座圈,盖板,座温,LED等其他控制,非bool值,只能使用‘select_properties’方式控制(选项),烦请大佬完善。