Code Monkey home page Code Monkey logo

Comments (4)

walthowd avatar walthowd commented on May 30, 2024

Can you post your node red logs?

from node-red-contrib-home-assistant.

flamingm0e avatar flamingm0e commented on May 30, 2024

You need node version 8+ in your node-red environment

from node-red-contrib-home-assistant.

vietk avatar vietk commented on May 30, 2024

I am using the official node-red docker image for the raspberry-pi : nodered/node-red-docker:0.18.3-rpi
Apparently it has a node v6 environment, I'll try the nodered/node-red-docker:0.18.3-rpi-v8

> [email protected] start /usr/src/node-red
> node $NODE_OPTIONS node_modules/node-red/red.js -v $FLOWS "--userDir" "/data"

2 Mar 14:49:11 - [info] 

Welcome to Node-RED
===================

2 Mar 14:49:11 - [info] Node-RED version: v0.18.3
2 Mar 14:49:11 - [info] Node.js  version: v6.11.0
2 Mar 14:49:11 - [info] Linux 4.9.59-v7+ arm LE
2 Mar 14:49:13 - [info] Loading palette nodes
2 Mar 14:49:21 - [warn] ------------------------------------------------------
2 Mar 14:49:21 - [warn] [node-red-contrib-home-assistant/server] SyntaxError: Unexpected identifier
2 Mar 14:49:21 - [warn] [node-red-contrib-home-assistant/server-events] SyntaxError: Unexpected identifier
2 Mar 14:49:21 - [warn] [node-red-contrib-home-assistant/server-state-changed] SyntaxError: Unexpected identifier
2 Mar 14:49:21 - [warn] [node-red-contrib-home-assistant/trigger-state] SyntaxError: Unexpected identifier
2 Mar 14:49:21 - [warn] [node-red-contrib-home-assistant/poll-state] SyntaxError: Unexpected identifier
2 Mar 14:49:21 - [warn] [node-red-contrib-home-assistant/api-call-service] SyntaxError: Unexpected identifier (line:2)
2 Mar 14:49:21 - [warn] [node-red-contrib-home-assistant/api-current-state] SyntaxError: Unexpected identifier (line:1)
2 Mar 14:49:21 - [warn] [node-red-contrib-home-assistant/api-get-history] SyntaxError: Unexpected identifier (line:2)
2 Mar 14:49:21 - [warn] [node-red-contrib-home-assistant/api-render-template] SyntaxError: Unexpected identifier (line:2)
2 Mar 14:49:21 - [warn] ------------------------------------------------------
2 Mar 14:49:21 - [info] Settings file  : /data/settings.js
2 Mar 14:49:21 - [info] User directory : /data
2 Mar 14:49:21 - [warn] Projects disabled : set editorTheme.projects.enabled=true to enable
2 Mar 14:49:21 - [info] Flows file     : /data/flows.json
2 Mar 14:49:21 - [info] Creating new flow file
2 Mar 14:49:21 - [info] Server now running at http://127.0.0.1:1880/
2 Mar 14:49:21 - [info] Starting flows
2 Mar 14:49:21 - [info] Started flows

from node-red-contrib-home-assistant.

vietk avatar vietk commented on May 30, 2024

Using the node v8 based images seems to solve the issue.

Thanks guys for the support

from node-red-contrib-home-assistant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.