Hello there - i funnily enough came to Node Red via a job offer where i'm asked to simulate/add to a flow. I primarily need to present it as a way how i'd get it to run, but better would be to get a running JSON (requested if possible):
the lower part needs to be fitted.
Request here is:
E1; Toggle signal from heating controller: Pump on/off, digital input
E2: Signal state of safety temperature guard (STW), fault/normal, digital input
A1: toggle pump, on/off, digital output
Build a flow
E1 via MQTTin-Node; Topic HK3PumpeReglerEin, 1=on, 0=off //PumpControllerOn
E2 via MQTTin-Node; Topic HK3STW 1=normal, 0=fault
A1: via MQTTout-Node, Topic HK3PumpeAus, 1=on, 0=off //PumpOff
I've got Node red installed, was playing around it currently and tried to rebuild it.
As i did not find the trigger-fields (e.g. STW ) i tried to set it up as inject and debug...
For my understanding it's an And-comparator in between and that should be it?
I also do not have any Host running (have installed HomeAssistant and tried to play around with that then) and do not know how to "troubleshoot" this setup
You can do a lot of stuff in Node-red.
Or, you can install Home Assistant, which is an entire operating system with the applications that HA have chosen. And then you can install Node-red as well because there's a lot of stuff that HA doesn't do.
I suggest that you spend some time familiarising yourself with Node-red and flow based programming. There are a collection of introductory videos at Node-RED Essentials. They are done by the developers of node-red.
Now you understand more about flows and messages, you should not fall into the common beginners trap of trying to compare the contents of two discrete messages. There are probably hundreds of posts in the forum explaining this and few of them involve installing a logical AND node!
How do you work with new challenges on any topic? You research AND you request info from people that already know it. That's pretty basic for everything everywhere, so please elaborate how that's cheating.
And yes, i try to get something running because of the short time window until the interview.
Basically the requirement is to state the function (you need an AND from both HK3PumpeReglerEin & inverted SK3STW (as 1 is normal function) for HKPumpeAus to trigger)
So that's basic, however i want to offer more. For questions in the interview itself they pretty fastly know i don't know my way around, which i'll openly say - but in this environment it's rather about solution finding and will to go through...
And based on this i want to work further (after seeing HomeAssist i reeeeeeally want to play around with the stuff at my home now, given time).
So to my current understanding i for now need the way to project an negate for HK3STW and set both to an AND-gate.
I believe that the boolean ultimate node can handle 1/0. Have you read the readme?
As for Home Assistant, my advise would be to avoid it, at least until you have become familiar with node-red. There is very little that you can do with HA that you cannot do with native node-red, and it will just add complication, which is what you do not want at the moment.
regarding HomAssist, you're right, have to first get the basics running.
However, it's always good to directly have a goal which you can get running this way
If I were marking your work you would lose marks for using flow context. That is the equivalent of using global variables in your favorite programming language.