Closed bertybassett closed 6 years ago
Hi, perhaps you can try this config (in my home it works):
{ "platform" : "MiRobotVacuumPlatform", "deviceCfgs" : [ { "ip" : "192.168.0.84", "token" : "xxx", "enablePauseToCharge" : true, "type" : "MiRobotVacuum", "robotVacuumName" : "Vacuum", "robotVacuumDisable" : false }
Try to use
sudo npm install -g miio@0.14.1
I had the same issue and now it's Ok.
sudo npm install -g miio@0.14.1 still same issue?
this fails? Isn't that from a different plugin? Not the plug in I am using?
{ "platform" : "MiRobotVacuumPlatform", "deviceCfgs" : [ { "ip" : "192.168.0.84", "token" : "xxx", "enablePauseToCharge" : true, "type" : "MiRobotVacuum", "robotVacuumName" : "Vacuum", "robotVacuumDisable" : false }
Did you test this config?
yes however the code appears wrong
"deviceCfgs" : [
where is the close bracket
ps thanks for the help so far.
Oh, my mistake...
{ "platform" : "MiRobotVacuumPlatform", "deviceCfgs" : [ { "ip" : "192.168.0.84", "token" : "xxx", "enablePauseToCharge" : true, "type" : "MiRobotVacuum", "robotVacuumName" : "Vacuum", "robotVacuumDisable" : false } ] }
Does it work?
same error
/usr/local/lib/node_modules/homebridge/lib/api.js:122
throw new Error("The requested platform '" + name + "' was not registered by any plugin.");
^
Error: The requested platform 'MiRobotVacuumPlatform' was not registered by any plugin.
at API.platform (/usr/local/lib/node_modules/homebridge/lib/api.js:122:13)
at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:294:45)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:85:36)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object.
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
this worked full uninstall then npm install -g homebridge-xiaomi-mi-robot-vacuum miio@0.14.1
You can now close this thread.
I have this working in Home Assistant so I know the IP address and token are good but in Homebridge I get this error
Error: The requested accessory 'MiRobotVacuum' was not registered by any plugin. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at API.accessory (/usr/local/lib/node_modules/homebridge/lib/api.js:64:13)
at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:264:42)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:86:38)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object.
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
My config.json