al-one / hass-xiaomi-miot

Automatic integrate all Xiaomi devices to HomeAssistant via miot-spec, support Wi-Fi, BLE, ZigBee devices. 小米米家智能家居设备接入Hass集成
https://miot-spec.com
Apache License 2.0
4.36k stars 613 forks source link

支持 bean.switch.* 86盒mesh单火开关模块 #1157

Open MapleEve opened 1 year ago

MapleEve commented 1 year ago

Device model / 设备型号

bean.switch.*

Component version / 插件版本

0.7.9

HA core version / HA版本

2023.6

Integrated mode / 集成方式

Automatic (自动模式)

The problem / 问题详情

由于很多插座是120的,所以只能买单火的mesh模块来吧开关改成智能控制,但是接入之后发现只有设备信息无法控制开关

Gateway 那边已经提了issue,但是想要用本地模式更快的实现各种自动化还是miot这边比较快一些

https://github.com/AlexxIT/XiaomiGateway3/issues/1074

Entity attributes / 实体属性

The miot link is below: one button(including double control model): https://home.miot-spec.com/spec/bean.switch.bl01 two buttons: https://home.miot-spec.com/spec/bean.switch.bl02 three buttons: https://home.miot-spec.com/spec/bean.switch.bl03

Home Assistant Logs / 系统日志

{ "home_assistant": { "installation_type": "Home Assistant Container", "version": "2023.6.1", "dev": false, "hassio": false, "virtualenv": false, "python_version": "3.11.3", "docker": true, "arch": "x86_64", "timezone": "Asia/Shanghai", "os_name": "Linux", "os_version": "3.10.108", "run_as_root": true }, "custom_components": { "xiaomi_cloud_map_extractor": { "version": "v2.2.0", "requirements": [ "pillow", "pybase64", "python-miio", "requests", "pycryptodome" ] }, "xiaomi_gateway3": { "version": "3.2.1", "requirements": [ "zigpy>=0.44.1" ] }, "hacs": { "version": "1.32.1", "requirements": [ "aiogithubapi>=22.10.1" ] }, "nodered": { "version": "1.2.0", "requirements": [] }, "heweather_forecast": { "version": "1.0.0", "requirements": [] }, "heweather_hourlyforecast": { "version": "1.0.0", "requirements": [] }, "lifesuggestion": { "version": "1.0.0", "requirements": [] }, "edge_tts": { "version": "0.0.1", "requirements": [ "edge-tts==6.1.5" ] }, "xiaomi_miot": { "version": "0.7.9", "requirements": [ "construct==2.10.56", "python-miio>=0.5.6", "micloud>=0.3" ] }, "lifesmart": { "version": "20.12.16", "requirements": [] }, "heweather": { "version": "1.0.0", "requirements": [] } }, "integration_manifest": { "domain": "xiaomi_gateway3", "name": "Xiaomi Gateway 3", "config_flow": true, "documentation": "https://github.com/AlexxIT/XiaomiGateway3", "issue_tracker": "https://github.com/AlexxIT/XiaomiGateway3/issues", "codeowners": [ "@AlexxIT" ], "dependencies": [ "http" ], "requirements": [ "zigpy>=0.44.1" ], "version": "3.2.1", "iot_class": "local_push", "is_built_in": false }, "data": { "version": "ebfc175", "options": { "host": "", "token": "", "ble": true, "stats": true, "debug": [], "memory": false }, "errors": [], "device": { "type": "mesh", "model": 9609, "fw_ver": null, "available": true, "decode_time": 170, "encode_time": 205, "entities": { "switch": "off", "mesh": { "state": "2023-06-10T16:25:04+00:00", "value": "2023-06-10T16:25:04.900395+00:00" } }, "gateways": [ "54ef44407ffe", "6490c1786c91" ], "stats": { "mac": "dced830d6a8b", "available": true, "msg_received": 30, "last_msg": "2.p.1" }, "unique_id": "dced830d6a8b" }, "logger": null } }

MapleEve commented 1 year ago

另外,石头扫地机器人 G20 好像缺了很多控制模式,不知道是否可以提 issue roborock.vacuum.a69

Vacuum.status 8 Vacuum.fault 0 Vacuum.mode 104 Vacuum.water level 203 Vacuum.mop mode 300 Filter.filter life level 86 Brush life level-10-2 93 Brush cleaner.brush life level 93 State updater lan Vacuum.status desc Charging Props