Connecting NodeRed to a CCU (Homematic) 

Open Source Hausautomation

Moderator: Co-Administratoren

Antworten
prfk
Beiträge: 5
Registriert: 04.01.2023, 20:23
System: CCU

Connecting NodeRed to a CCU (Homematic) 

Beitrag von prfk » 04.01.2023, 20:27

Hello, I am using NodeRed inside the Homeassistant. Beside that there is also Homematic Addon installed.

Now I like to connect NodeRed with the Homematic CCU with the help of the “nodered contrib ccu”.

(GitHub - ptweety/node-red-contrib-ccu: Node-RED Nodes for the Homematic CCU 1)

In the configuration of the node I use “localhost” for the CCU address and the ip 127.0.0.1 for the listen address.

For the ports I use the following:

BINRPC: 2048
XMLRPC: 2049

The result after deployment is, that the node indicator remain red and it shows "disconnected ".

I belive I need to do some kind of portforwarding for these ports in the NodeRed Config to make it work but I have no idea where.

Do you have any idea or a nice tutorial to help?

Thanks in advance

Paul

PS: Ihr könnt auch auf deutsch antworten :)

Benutzeravatar
Baxxy
Beiträge: 10648
Registriert: 18.12.2018, 15:45
System: Alternative CCU (auf Basis OCCU)
Hat sich bedankt: 597 Mal
Danksagung erhalten: 2180 Mal

Re: Connecting NodeRed to a CCU (Homematic) 

Beitrag von Baxxy » 04.01.2023, 22:23

Reicht ein Bild als Antwort? :wink:
HA_NodeRed_CCU_Connection_Setup.JPG
A: Hostname AddOn RaspberryMatic
B: IP-Adresse des NodeRed Containers
C: Hostname AddOn NodeRed

So läuft das auf einem meiner Testsysteme.

prfk
Beiträge: 5
Registriert: 04.01.2023, 20:23
System: CCU

Re: Connecting NodeRed to a CCU (Homematic) 

Beitrag von prfk » 04.01.2023, 23:02

Moin,
Danke für deine Antwort.

Bei mir läuft das ja in Homeassistant.
Ich hab also als IP "localhost" bzw. 127.0.0.1.

Aber die beiden Ports die angegeben sind muss ich doch irgendwo freigeben, bzw weiterleiten, richtig?

Freigegeben habe ich sie in der Raspberrymatic.
Aber ich den sie müssen auch noch in der NodeRed Config weitergeleitet werden.

Da weiß ich aber nicht wie....

prfk
Beiträge: 5
Registriert: 04.01.2023, 20:23
System: CCU

Re: Connecting NodeRed to a CCU (Homematic) 

Beitrag von prfk » 04.01.2023, 23:09

Was muss ich mit den angegebenen Ports machen?
Dateianhänge
Screenshot_20230104_230553_Home Assistant.jpg
So sind meine Einstellungen zur Zeit

Benutzeravatar
Baxxy
Beiträge: 10648
Registriert: 18.12.2018, 15:45
System: Alternative CCU (auf Basis OCCU)
Hat sich bedankt: 597 Mal
Danksagung erhalten: 2180 Mal

Re: Connecting NodeRed to a CCU (Homematic) 

Beitrag von Baxxy » 04.01.2023, 23:44

Du willst meine Blaupause nicht ausprobieren?
Gut.
Dann empfehle ich einen Exkurs in Docker-Netzwerke damit du lernst warum "localhost" und "127.0.0.1" nicht funktionieren können.

Da du nicht der erste mit dem Problemchen bist...
https://github.com/jens-maus/RaspberryM ... nt-2164197

prfk
Beiträge: 5
Registriert: 04.01.2023, 20:23
System: CCU

Re: Connecting NodeRed to a CCU (Homematic) 

Beitrag von prfk » 04.01.2023, 23:58

Geht!
Danke für deine Hife!

Antworten

Zurück zu „Home Assistant“