Comments (11)
The only way I've been able to deal with this was to use a Docker container that someone else created who ran into the same thing. marthoc/node-red is the name of the Docker image. Otherwise, I'd assume it would involve the newer Node.js. The place I picked up this bit of info was here: https://community.home-assistant.io/t/my-docker-stack/43548/113 - the user was marthocoo - hope this helps!
from node-red-contrib-home-assistant.
https://hub.docker.com/r/nodered/node-red-docker/ docker image has new tags with upgraded node:
use nodered/node-red-docker:v8
(there is also rpi-v8 for those on rpi)
from node-red-contrib-home-assistant.
@vexter0944 It's all pretty well documented here already:
from node-red-contrib-home-assistant.
As another side note - installed node-red on an Ubuntu vm - brand new build - nothing else installed - when I installed the HASS node - this is what shows up in the error log -
7 Mar 13:29:37 - [info] Creating new flow file
7 Mar 13:29:37 - [info] Server now running at http://127.0.0.1:1880/
7 Mar 13:29:37 - [info] Starting flows
7 Mar 13:29:37 - [info] Started flows
7 Mar 13:30:03 - [info] Installing module: node-red-contrib-home-assistant, version: 0.3.0
7 Mar 13:31:25 - [info] Installed module: node-red-contrib-home-assistant
7 Mar 13:31:25 - [info] Added node types:
7 Mar 13:31:25 - [info] - node-red-contrib-home-assistant:api-call-service : SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
7 Mar 13:31:25 - [info] - node-red-contrib-home-assistant:api-current-state : SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
7 Mar 13:31:25 - [info] - node-red-contrib-home-assistant:api-get-history : SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
7 Mar 13:31:25 - [info] - node-red-contrib-home-assistant:api-render-template : SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
7 Mar 13:31:25 - [info] - node-red-contrib-home-assistant:poll-state : SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
7 Mar 13:31:25 - [info] - node-red-contrib-home-assistant:server : SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
7 Mar 13:31:25 - [info] - node-red-contrib-home-assistant:server-events : SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
7 Mar 13:31:25 - [info] - node-red-contrib-home-assistant:server-state-changed : SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
7 Mar 13:31:25 - [info] - node-red-contrib-home-assistant:trigger-state : SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
This does not appear to be Docker related so much as something to do with how this node was built and node-red.
from node-red-contrib-home-assistant.
Got some insight on this - The new 0.3.0 release of node-red-contrib-home-assistant is only compatible with Node.js in the LTS release series (currently 8.9.4). from a HASS user who ran into this to a point.
from node-red-contrib-home-assistant.
I've noticed this as well, which has left me using:
npm install [email protected]
Have you figured out a way to get 0.3.0 to install?
from node-red-contrib-home-assistant.
Unfortunately, I'm using the nodered/node-red-docker:rpi Docker image. I wonder if I could upgrade Node.js in that image...
from node-red-contrib-home-assistant.
It's a thought. I wish the author of this node would give us a little insight on this issue. I'm hoping the author hasn't stopped development on this node, it's starting to feel a little abandoned unfortunately.
from node-red-contrib-home-assistant.
Thanks for the heads up on that @walthowd - did not catch that - much appreciated!
from node-red-contrib-home-assistant.
@kabturek That solved it for me, thank you. Just switch to a new Docker and was wondering what was going on...
from node-red-contrib-home-assistant.
Thanks for fielding this guys
from node-red-contrib-home-assistant.
Related Issues (20)
- Support SSL LetsEncrypt 443 port? HOT 1
- History Node Not Filtering Per Entity
- Can't install node-red-contrib-home-assistant HOT 1
- Call Service with Merge Context not working properly
- The node doesn't see all of my services. HOT 1
- Install error on bcrypt HOT 4
- DEPRECATED HOT 1
- Templating not working properly in data field
- Accept boolean inputs to call_service nodes HOT 1
- Node Red still broken after HA update (0.106.1) HOT 2
- current state error HOT 1
- Entity could not be found in cache for entity_id: HOT 2
- Issue Installing HOT 1
- When HA is restarted the home-assistant nodes stop working without notice
- Error install HOT 1
- Change to OAuth Access Token HOT 2
- Node Red Stopped Responding after upgrading to HA 0.76.0 HOT 1
- Call service node replaces msg object
- install with npm: not a valid repo name HOT 1
- Updates? HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-red-contrib-home-assistant.