A Python script to integrate your Ecovacs vacuum to Homekit.
This script assumes you have the following installed:
"platforms": [{
"platform": "cmdSwitch2",
"name": "CMD Switch",
"switches": [{
"name": "Vacuum",
"on_cmd": "sucks clean 120",
"off_cmd": "sucks charge",
"state_cmd": "python3 /var/homebridge/vacstate.py",
"polling": true,
"interval": 120,
"timeout": 20
}]
MIT