Code Monkey home page Code Monkey logo

Comments (11)

Darksabre avatar Darksabre commented on May 31, 2024 11

Eagerly awaiting this fix. My Node-Red crashes every 30 minutes due to not handling Null states.

from node-red-contrib-home-assistant.

AYapejian avatar AYapejian commented on May 31, 2024 1

Yep, it's been merged into the dev-master branch. You could pull from that branch or wait a little longer for the release.

from node-red-contrib-home-assistant.

walthowd avatar walthowd commented on May 31, 2024

It looks like Home Assistant is generating an event with a null state that is crashing Node-RED.

You could start disabling some of your serve-state-changed (events: state) nodes to find the problematic node.

Or, if you are an advanced user, you could put something like socat between Home Assistant and Node-RED to log all the events and use the timestamp from the crash to identify the entity.

from node-red-contrib-home-assistant.

benjaml4 avatar benjaml4 commented on May 31, 2024

Yeah that's what I assumed. Hopefully someone with better knowledge of this plugin can attempt to catch the null states that cause the plugin to crash and to handle them better. I'm also having issues with only a single node where something in the plugin code seems to stop my flow and I have to restart it making the whole system unstable. It's no fun when you press a light switch and nothing happens because the flow needs to be redeployed ;)

from node-red-contrib-home-assistant.

oskarsyren avatar oskarsyren commented on May 31, 2024

It seems like there is a missing try/catch that could fix the problem in onHaEventsStateChanged.
Try/catch is used in poll-state.js and trigger-state.js so I think adding one to server-events-state-changed.js wouldn't hurt even though it doesn't fix the source of the problem which probably is home assistant sending a null event to node red.

from node-red-contrib-home-assistant.

Kanishkaz avatar Kanishkaz commented on May 31, 2024

When will this change be released?

from node-red-contrib-home-assistant.

dennisbrouwer91 avatar dennisbrouwer91 commented on May 31, 2024

I have the same issue. Any update regarding this?

from node-red-contrib-home-assistant.

flamingm0e avatar flamingm0e commented on May 31, 2024

Glad I found this report. I thought it was my MQTT causing issues. Now I see that HA is just sending null states to node-red.

from node-red-contrib-home-assistant.

addd45 avatar addd45 commented on May 31, 2024

Not to get testy here, but a lot of people's node-red instances (including mine of course) are unstable and unusable without this change being merged #51. Seems like a very simple change that should be merged ASAP, yet the dev seems to be ignoring this?
Again no disrespect, but this is kind of blocker bug :)

from node-red-contrib-home-assistant.

addd45 avatar addd45 commented on May 31, 2024

Ok great, sorry for the misunderstanding.

from node-red-contrib-home-assistant.

AYapejian avatar AYapejian commented on May 31, 2024

Merged and released

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.