ha-bridge: Cannot run external script.
Hi, I am trying to execute nodejs script from ha-bridge and getting errors, I set command type to “Execute Script/Program” and my command is
[{"item":"nodejs ~/Downloads/ha-bridge/scripts/led.js 2 on", "type":"cmdDevice"}]
The command nodejs ~/Downloads/ha-bridge/scripts/led.js 2 on runs fine in terminal. But running in ha-bridge I am getting error:
Request Error, Please look in your habridge log: error {“type”:6,“address”:“/lights/2”,“description”:“Error on calling out to device”,“parameter”:“/lights/2state”}
Looking into debug log I see
Decode Json for url items: [{"item":"[{\"item\":\"nodejs ~/Downloads/ha-nridge/scripts/led.js 2 on\"}]","type":"cmdDevice"}]
Exec Request called with url: [{"item":"nodejs ~/Downloads/ha-nridge/scripts/led.js 2 on"}]
Executing request: [{"item":"nodejs ~/Downloads/ha-nridge/scripts/led.js 2 on"}] com.bwssystems.HABridge.plugins.exec.CommandHome
Could not execute request: [{"item":"nodejs ~/Downloads/ha-nridge/scripts/led.js 2 on"}]
Any idea what’s wrong? Thanks!
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 24 (9 by maintainers)
It’s working out beautifully. I put together a small blog post: http://codecorner.galanter.net/2017/02/24/full-control-of-your-limitless-ledmilight-v6-bulbs-from-amazon-echo/ maybe will be useful to others struggling with Milight v6.
Thanks,
Yuriy.
On Fri, Feb 24, 2017 at 8:45 PM, Yuriy Galanter yuri@galanter.net wrote: