Zwave and nodered

Hi flamingm0e,

Could you help me ? I m not abble to connect my IoT objects from Home-Assistant on Node-red as I reinstall Node-redadn delete all my nodes.

I tried differently solutions, but, I do not know how can I do.

Could you give me again your link where you explain how to connect Node-red with my Home-assistant ?

Thanks again for you help !

I’m not sure I understand why this is hard.

Install that in your node red. Connect to home assistant with it. Use the nodes and create your automations. They are literally in drop down menus.

In simplest terms, this is about all it takes to take a state change on Home Assistant, process it, and perform a change on another thing.

Thank you for your reply.

I just do not know how to create a node that can work with my connected objects on my platform.

Which plugin to use in Node-red? how to do ?

I can act with my RPI GPIO ports, but I want to act with my platform directly and that’s where I do not know how to do it.

Despite the different tutorials, I can not find the path.

That’s why your help is precious

I’ll do a test later with what you say

Thanks again for your help

You use the node that says ‘events: state’ if you want to watch for a state change on a thing.

You use the node that says ‘call service’ when you want to change the state or make a change on home assistant objects.

What part of this is confusing? You add your ‘things’ into Home Assistant (sensors, lights, switches), and then you can use Node Red to watch for sensors to sense things, lights/switches to come on, or to control those things and make lights/switches come on.

It appears that you are thinking about this in the wrong way. Your devices don’t just magically show up in Node Red by connecting to Home Assistant. You have to add them into Home Assistant first. If all you have is ZWave, add them in the ZWave GUI in your Home Assistant, and then interact with them from Node Red.

OK. Thank you for the clarification.
I actually have everything about Wifi and Zwave on the Home-Assistant.

What you tell me will help me configure Node-red.

I’m going to give a try based on what you say and I’ll keep you going.

Thanks again !

1 Like

I tried, but I do not understand.
When I try to add a “call service” to make an On / Off on one of my objects on Home-assistant, I have a message: Cannot GET /Homeassistant/Service.
image

It’s the same with the plugin “event: state”.

Let’s take a simple example of what I want to do:
I want to be able to turn on or off my wi-fi switch (on / off) from node-red.
My Home-Assistant
image

image

Everything is set up on the Home-Assistant, but I am unable to communicate with my RPI other than through the GPIO ports.

Could you show me a noose configuration that I’m supposed to do in order to act with my Node-red?

In fact, I do not know how to take things, and despite many tutorials on the Internet, I do not find a simple and clear procedure that explains me how to proceed … I go crazy

Thanks for your help.

Have you even connected your node-red to home assistant? You should have been prompted to set a connection to home assistant.

Have you looked through any of the configuration on the node-red module?

Here are the actions I did with Node-red:
The first launch from the Raspberry, install updates and upgrades, installation of nmp, followed by your home-assistant-contrib installation procedure

I will redo a clean installation and retry, maybe with all my esais, Node-red became unstable …

Do you have a complete and clean uninstall method of Node-red without having to reinstall the entire Debian and Home-assistant part?

Because also, I did not find how to do, so every time, I reinstall everything.

I’m doing white hair! lol

I REALLY do not understand why this is so difficult to grasp.

STOP uninstalling and reinstalling stuff. You are wasting time. But in answer to your question, yes you can uninstall and do a clean install of node-red whenever you like. The problem here is that you are ignoring the basic concepts of node-red in its entirety.

It is really simple. The first time you try to use the home assistant node-red modules, you are told you have to configure it.

Screenshot from 2017-11-26 14-28-21

You have to give it your HOME ASSISTANT URL in the form of http://ip.add.re.ss:8123, and the password if you have one.

Screenshot from 2017-11-26 14-26-28

This entire thing should have taken you about 10 minutes to accomplish, from installing the node-red module to first use.

I understand, yes.

But when I do that, I get the following error message in node-red
Can not GET / homeassistant / entities
image

My home-assistant plateforme

I do not want to take too much time either, actually, I think the problem comes from the fact that I do not master the concept Node-red, but yet, and as you say, it’s simple …

The worst thing is that I was able to act with my GPIO ports of raspberry directly with Node-red and make turn on or off a bulb … so it communicates …

No. There is a massive fundamental difference here. Communicating directly with GPIO through node-red is NOT communicating with home assistant.

You say you have configured the module but according to your screenshot, you haven’t.

Ok, thank you for this nuance that is important.

The configuration of the module, it was the link that you sent me, is not it?

image

The link I provided was for the node-red module. full stop.

The configuration of it is just like literally any other ‘server’ configuration you would do in Node-Red. When you add a node, and it has a ‘add new server’, you click the edit button next to it, configure the server connection, and every time AFTER that you add a node from that module, you use the drop down and select your server.

It is identical to configuring any other module that requires a connection to another server/API/whatever. This is not limited to Home Assistant or special in any way.

Yes quite.

And actually, I find some configuration tests in with the addition of several times the url address of my server, but here …

Without wanting to offend you, would you have the procedure to do a proper uninstallation of Node-red?

I want to be sure of my installation, which is no longer the case now with my different tests.

We will get there !

‘rm -rf ~/.node-red’

Thank you.
i keep you in touch

Hi flamingm0e,
so…

Réinstallation complète, RPI, strecth et Node-Red avec les mises à jour.
Lancement de Node-Red depuis la console ssh

verification of the good functioning since the url ip RPI: 1880 …

Installing node-red-contrib-home-assisstant from the console

Stop service Node-red from console ssh
image

Start Node-red-service from console

Could you see erro message ?
So…after this message, I can start Node-red from Url 192.xxx.xxx.xxx:1880 but the home wizard nodes do not appear as if you can see it with the palette Manager.
image

I uninstall contrib-home-assistant from the web console xxx.xxx.xxx.xxx:1880, and I see the result in the ssh console.

I stop and restart Node-red from the ssh console…

96/5000
I go on the url of Node-red, connect me and redo the installation from the palete manager …

image

I can see that, without to restart Node-Red…

I am trying to use the State_Change tab …

et voilà le message dont je te parlais au début qui refait surface…
image

And even if I click Add, the Stat_Change button turns blue to say that everything is
good, but as soon as I re-click on it, here is the message …

and if I stop Node-red and restart it, the ssh console error message comes back and I can not find my Home Assistant plugins anymore from the web console …

So I want to admit that I do not master all the concepts of Node-Red, but still, you will admit that there is a problem somewhere.

Either I’m doing something wrong, I’m not doing it right, I’m doing something wrong, I do not know, but it’s annoying.

Especially since I know that Node-Red is easy to use!

But here, I lose my language …

And I’m stuck on the progress of a project just because I’m not able to do what you do or other people can do simply …

As a reminder and possibly if other opinions could come to help me, it would be welcome.

I own a RPI 3 with the Strectch version installed, Home-Assitant with my different objects that work on the platform (wifi and Zwave).
My updates are done regularly, the installation of Node-red was made as well as Stretch.

I also achieve a mastery in terms of installation as system level than Node-red with the number of times I reinstalled …

I need help, pro developers or other experienced person, thank you for helping me.

The goal is simple:
Control my objects on my Home-Assistant platform using Node Red, as well as having a friendly Dashboard of my objects with Node-Red.

Again, thanks for your help…

Have you tried adding a password to your home assistant and putting the password into the Node-Red module configuration where it says ‘API Pass’?

As i told you, when i restart Node-Red, i lose the home-assistant nodes.
But i want to try from the url without restarting Node-Red, but that will not solve the situation…