bemble / node-red-contrib-mi-devices

node-red extension to integrate Xiaomi gateway devices
16 stars 20 forks source link

node-red-contrib-mi-devices/dist/nodes/yeelight/index.html does not exist error #42

Open NameLessJedi opened 6 years ago

NameLessJedi commented 6 years ago

Hi, I do realize that this project is on hold but... I'm new to node-red (and node.js). I've installed node-red-contrib-mi-devices both using "Manage palette" and manually with npm install in proper dir but still get that error and don't see any nodes related to yeelight. Is there some easy fix for this? I'm using Node-RED 0.18.5 and Node.js 9.11.1 on linux

TIA

rolfz commented 6 years ago

Hi, I just had the same problem and removed the 2yeelight entries from the node-red-contrib-mi-devices/package.json file, this removed the error message from the "Manage palette" page.

hallard commented 6 years ago

I think this is due to latest node red versionthat shows when there is an error because I got the same config on 2 computer, one node red@0.17.5 no error and the other with red@0.19.2 same error as this issue.

So just change in package.json to remove the bad link

      "xiaomi-actions": "node-red-contrib-xiaomi-actions/xiaomi-actions.js",
      "xiaomi-yeelight": "dist/nodes/yeelight/index.js"
    }

to

      "xiaomi-actions": "node-red-contrib-xiaomi-actions/xiaomi-actions.js"
    }

and you done, and if you want to drive yeelight use the correct node

npm install node-red-contrib-yeelight
fjterrada69 commented 4 years ago

Good morning. Just delete those files and nothing else? I am having the same problem with the Xiaomi Gateway. Greetings.