Giter Site home page Giter Site logo

Comments (12)

alexsahka avatar alexsahka commented on June 22, 2024 1

I'm a really heavy user of node-red-contrib-hal. Sometimes I feel addicted...

from node-red-contrib-hal.

flic avatar flic commented on June 22, 2024

I thought about that but in the end decided to not save state in Node-RED, opting to keep state exclusively in MQTT. I didn't want to end up in a scenario where I keep an extra copy of state information in Node-RED and take action based on possible stale data. I might be reconsidering this in the future, but for the moment it isn't possible.

from node-red-contrib-hal.

alexsahka avatar alexsahka commented on June 22, 2024

When I keep state in MQTT then still there is a short time with - No Value state on deploy.
How to avoid this?

from node-red-contrib-hal.

flic avatar flic commented on June 22, 2024

Make sure that you configure your MQTT devices with retain=true so that the latest value is retained by MQTT. If you have that configured you should get the value pretty much instantly at startup.

from node-red-contrib-hal.

alexsahka avatar alexsahka commented on June 22, 2024

Yes, I keep MQTT devices with retain=true, but there is still a short no value period time about 0.5 to 1 sec long.
I use node-red-contrib-hal for lights logic and lights sometimes turning on/off, need to figure out the trigger delay on deploy.
Thanks.

from node-red-contrib-hal.

flic avatar flic commented on June 22, 2024

Oh okay, I see your point. The short delay never bothered me so I haven't considered it a problem.

from node-red-contrib-hal.

flic avatar flic commented on June 22, 2024

That's nice to hear, I thought I was the only user! :) I haven't been able to work on it much for the last year or so, so I'm just glad it holds together!

from node-red-contrib-hal.

alexsahka avatar alexsahka commented on June 22, 2024

Have you ever thought about grouping node-red-contrib-hal: item? For sake of easy finding/sorting?

from node-red-contrib-hal.

flic avatar flic commented on June 22, 2024

I have. I'm also considering if the item object itself should be a lot more advanced, if it would be useful to be able to define multiple characteristics on an item so that the item node itself knows that MQTT topic */relay/0=on means that the first relay is true and */relay/1=off means that the second relay on the same item is false.

I have the beginnings of a new hal2, but I haven't been able to work on it much lately. Maybe later.

from node-red-contrib-hal.

alexsahka avatar alexsahka commented on June 22, 2024

Great news.

from node-red-contrib-hal.

flic avatar flic commented on June 22, 2024

Hey, @alexsahka this might be of interest to you:

https://flows.nodered.org/node/node-red-contrib-hal2

...and yes, it does have persistent storage. ;)

It's a bit different conceptually than the old one so no guarantees that it fits into your work flow or that you like it, but I think it works a lot better myself. You can use them both in parallel, no collisions. The documentation is still a bit lacking unfortunately, but I published a few examples.

from node-red-contrib-hal.

alexsahka avatar alexsahka commented on June 22, 2024

Thank you! I will try it.

from node-red-contrib-hal.

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.