question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nodered API errors w/ HASS.IO

See original GitHub issue

Hass.io running 0.84.6, and node-red 1.2.3 on a pi B.

Node-red appears to connect just fine with the “events:state” node, and reflects the time they last changed. It also seems to have no issue with the “current state” node. However, the “call service” nodes do not work.

In the node-red GUI, the error is "API Error at: (date/time)"

In the node-red module log, the error is:

7 Jan 13:07:42 - [warn] [api-call-service:Turn On Light] Error calling service, home assistant api error
7 Jan 13:07:42 - [error] [api-call-service:Turn On Light] Error calling service, home assistant api error

And in the system monitor, the following error: 19-01-07 21:07:39 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API error: Received message 8:0 is not WSMsgType.TEXT

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
SamJongenelencommented, Jan 25, 2019

I found the issue. On publish, the connection to hassio is made. This takes about five seconds. However, the Inject node fires before this! Setting the Inject node to wat five seconds and then fire solves my problem

0reactions
addons-assistant[bot]commented, Feb 24, 2019

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node-RED API Error with call service node
I have a sequence with a couple call service nodes that are generating an API errors when it runs, however, if I do...
Read more >
Handling errors - Node-RED
Node-RED provides two ways for a node to report an error. It can either just write a message to the log or it...
Read more >
node-red-contrib-home-assistant 0.3.2
If you are running Node Red inside Hass.io addon/container you can use Hass.io API Proxy address http://hassio/homeassistant as Home Assistant server ...
Read more >
Node-RED
Node-RED is a programming tool for wiring together hardware devices, APIs and ... An online flow library allows you to share your best...
Read more >
Running under Docker - Node-RED
This guide assumes you have some basic familiarity with Docker and the ... be run under Docker and has support for multiple architectures...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found