RedMatic icon indicating copy to clipboard operation
RedMatic copied to clipboard

node-red 2.x upgrade

Open Darkman1900 opened this issue 3 years ago • 38 comments

Hi, is there a way to upgrade to node-red 2.x? Now I have the first nodes that are not working anymore. [email protected] [email protected] Thank you

Edit: Thx Tscherno for the hint We tried to build of the new version (Node-red v2.2) and it worked - only Node-RED process control in Raspberrymatic is showing the wrong state Thx - hope there will be a official upgrade in the next days

Darkman1900 avatar Feb 05 '22 11:02 Darkman1900

I just saw that Hobbyquaker did a change just 18 days ago with NodeRed 2.1.5 đź‘Ť

Tscherno avatar Feb 05 '22 11:02 Tscherno

Hi, I can add to the list: [email protected] It is also not working anymore after upgrading it...I hope the update of redmatic is approaching soon... How can I manually upgrade to node-red v2.2? Thanks a lot.

Meishop avatar Feb 08 '22 15:02 Meishop

Not for the faint of the heart, but i built a release for the prerelease: https://github.com/Tscherno/RedMatic-1/releases

Tscherno avatar Feb 08 '22 16:02 Tscherno

Hello,

A update of redmatic would be nice. I have got some problems with different package because of old environment. For now my entire flow are disabled because of a update of one package. The package was deinstalled and can't be installed again. The maintainer says that the reason is old json.

see https://github.com/windkh/node-red-contrib-telegrambot/issues/235

So I have now to decide to delete a lot of nodes from config or stay with disabled all flows until a new version, from package or node red, is available. :( Some Weeks ago I have had similar problem with other package. But this maintainer have make a new package with compatibility for old node red versions.

Regards

dibadodo avatar Feb 12 '22 17:02 dibadodo

Hello,

A update of redmatic would be nice. I have got some problems with different package because of old environment. For now my entire flow are disabled because of a update of one package. The package was deinstalled and can't be installed again. The maintainer says that the reason is old json.

see windkh/node-red-contrib-telegrambot#235

So I have now to decide to delete a lot of nodes from config or stay with disabled all flows until a new version, from package or node red, is available. :( Some Weeks ago I have had similar problem with other package. But this maintainer have make a new package with compatibility for old node red versions.

Regards

You can install or uninstall packages via SSH console: go to path (normally the path for your nodes) and use npm installer:

cd /usr/local/addons/redmatic/var

npm install --save --no-package-lock --global-style --save-prefix="~" --production <paket-name>
npm uninstall --no-package-lock --global-style --save-prefix="~" --production <paket-name>

in your case:

cd /usr/local/addons/redmatic/var
npm install --no-package-lock --global-style --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production [email protected]

should bring back a running version - make a backup before Hope that helps Best regards Michael

Darkman1900 avatar Feb 13 '22 09:02 Darkman1900

Hi Michael.

I tried your suggestions, but get some EROFS errors.

This code

cd /usr/local/addons/redmatic/var
npm remove --no-package-lock --no-audit --no-update-notifier --no-fund --save node-red-contrib-telegrambot

leads to

Unhandled rejection Error: EROFS: read-only file system, mkdir '/root/.npm'

Unhandled rejection Error: EROFS: read-only file system, mkdir '/root/.npm'

Unhandled rejection Error: EROFS: read-only file system, mkdir '/root/.npm'

Unhandled rejection Error: EROFS: read-only file system, mkdir '/root/.npm'

Unhandled rejection Error: EROFS: read-only file system, mkdir '/root/.npm'

Unhandled rejection Error: EROFS: read-only file system, mkdir '/root/.npm'

Unhandled rejection Error: EROFS: read-only file system, mkdir '/root/.npm'

Unhandled rejection Error: EROFS: read-only file system, mkdir '/root/.npm'

Unhandled rejection Error: EROFS: read-only file system, mkdir '/root/.npm'

Unhandled rejection Error: EROFS: read-only file system, mkdir '/root/.npm'

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

Have you had the same issue? Best regards, Tobi

tobilindner avatar Feb 13 '22 11:02 tobilindner

cd /usr/local/addons/redmatic/var
npm install --no-package-lock --global-style --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production [email protected]

Try install not remove

Darkman1900 avatar Feb 13 '22 16:02 Darkman1900

Hi Michael.

First of all, thanks for your quick response. I am using the CCU3 and logged in via SSH with the root user.

Unfortunatelly, I get the same error when trying to install: grafik

I first tried to uninstall/remove, because according the "package.json" file the newest version ([email protected]) is currently installed but can not uninstalled via RedMatic/NodeRed, because it is not shown within the installed nodes list.

Seems that I have to wait till a new RedMatic version with NodeRed >2.1.x is released...

Best, Tobi

tobilindner avatar Feb 13 '22 17:02 tobilindner

@tobilindner before node-red commands you should make your filesystem writable via

mount -o remount,rw /

Afterwards you should make it readonly again via

mount -o remount,r /

dehsgr avatar Feb 13 '22 19:02 dehsgr

Not for the faint of the heart, but i built a release for the prerelease:

https://github.com/Tscherno/RedMatic-1/releases

Does it works? What are your further steps? Would you release the 8.0 with the node red 2.0 version?

mschoenel avatar Feb 16 '22 15:02 mschoenel

well... i think i have to find a cheap rpi4 to run nodered on ...

gungam avatar Mar 23 '22 18:03 gungam

I would also really appreciate an update. Quite a lot contribs that can't be installed :/

andesse avatar Mar 23 '22 20:03 andesse

Redmatic is a great installation in Homematic environment. Please upgrade to the newest version. So many users will be happy to get an actual environment without the need to install a separate instance for nodered.

zapfs avatar Apr 20 '22 07:04 zapfs

Was kann die Gemeinde tun? Wie können wir unterstützen?

totti1171 avatar May 25 '22 17:05 totti1171

Es reicht auch Node-Red! Die Zusatzpakete kann sich ja jeder nach Bedarf installieren. Ist dann vielleicht weniger Arbeit.

andesse avatar May 26 '22 07:05 andesse

tja.... inzwischen wird es immer schwieriger redmatic am laufen zu halten.

Ich wäre dankbar, für einen Hinweis, ob ich mich umorientieren muss.

totti1171 avatar Jun 26 '22 19:06 totti1171

tja.... inzwischen wird es immer schwieriger redmatic am laufen zu halten.

Ich wäre dankbar, für einen Hinweis, ob ich mich umorientieren muss.

WĂĽrde ich auch drum bitten @hobbyquaker Ist das addon tot? Wie kann man helfen?, kann man zb commits fĂĽr die Doku machen?

Wie Zeitintensiv ist ein Upgrade?

andesse avatar Jun 26 '22 19:06 andesse

Ich ziehe einen Schlussstrich und migriere alles auf NodeRed integriert in Home Assistant. Dort entsteht gerade auch ganz aktuell ein neue Homematic Integration. Zusätzlich gibt es schon länger Raspberrymatic als Addon zum Installieren innerhalb von Home Assistant.

Tscherno avatar Jul 01 '22 05:07 Tscherno

@Tscherno ich auch. Ich hab mir heute nen Tinkerboard 2S bestellt... da läuft NodeRed dann alleine drauf. Durch die Aufteilung der Raspberrymatic und NodeRed auf 2 Tinkerboard hoffe ich vielleicht sogar um einen ganz kleinen Performance Anstieg beider Systeme :P

andesse avatar Jul 02 '22 21:07 andesse

Guter Hinweis mit der Migration auf ein "Standard-Node-RED". Danke. Ich habe ein paar Node-RED-Instanzen bei mir laufen, die meisten unter DietPi (weil schlank und schnell), da läuft alles glatt. Der Zugriff auf die Homematic klappt dabei sehr gut. Ich kann die Migration nur empfehlen. Das soll jetzt keine Kritik an RedMatic sein, ich kann nachvollziehen, wie aufwändig eine ständige "HinterherAktualisiererei" anderer integrierter Softwareteile mit dem jeweiligen Anwender-Gemecker sein kann. Man ist da stark von außen getrieben und kann nur noch reagieren. Insofern dennoch vielen Dank an RedMatic.

StephanStS avatar Jul 09 '22 13:07 StephanStS

Hab’s am laufen und läuft schneller als vorher. Irgendwie entlastet es auch die Raspberrymatic hab ich das Gefühl.

F41125E8-A632-4854-AF26-4190AAE1CEE3

andesse avatar Jul 09 '22 14:07 andesse

Guter Hinweis mit der Migration auf ein "Standard-Node-RED". Danke. Ich habe ein paar Node-RED-Instanzen bei mir laufen, die meisten unter DietPi (weil schlank und schnell), da läuft alles glatt. Der Zugriff auf die Homematic klappt dabei sehr gut. Ich kann die Migration nur empfehlen. Das soll jetzt keine Kritik an RedMatic sein, ich kann nachvollziehen, wie aufwändig eine ständige "HinterherAktualisiererei" anderer integrierter Softwareteile mit dem jeweiligen Anwender-Gemecker sein kann. Man ist da stark von außen getrieben und kann nur noch reagieren. Insofern dennoch vielen Dank an RedMatic.

Hi, ich habe fĂĽr kurze Zeit Node-Red auf meiner Synology DS920+ in einem Docker Container laufen lassen. Ich hatte das GefĂĽhl, dass das Homematic Plugin das ganze System in die Knie gezwungen hat.

Hab ich da etwas verbummelt, oder gibt es noch mehr mit dieser Erfahrung?

Tonitom avatar Jul 18 '22 06:07 Tonitom

@Tonitom nein, da hast Du nichts verbummelt. Bei mir lief die Raspi mit RedMatic Addon extrem träge. Jetzt wo beide Systeme getrennt auf Tinkerboard laufen, ist es gefühlt ein ganzes Stück schneller.

andesse avatar Jul 18 '22 06:07 andesse

ggf. als Entscheidungshilfe zu der oben angesprochenen Migration und den Beobachtungen.

Ich habe Homematic als piVCCU auf einem Raspberry laufen und bisher auch RedMatic verwendet.

Nun habe ich auf dem gleichen Pi einen weiteren lxc Container erstellt und dort Node-Red 3.x installiert (incl. mount des Memory-Sticks für Chart Daten etc. Ablage zur Schonung der Pi-SD-Karte) . Dann alle Flows von RedMatic exportiert und in Node-Red importiert. Nicht übernommene Passwörter und Einstellungen in wenigen Nodes wieder eingegeben bzw. angepasst (neue IP Adresse/neuer Pfad für Node-Red Web Zugänge) und alles lief problemlos. Nebeneffekt: Homematic CCU3 (piVCCU) startet VIEL schneller durch und das Backup der Homematic ist auch rasend schnell.

PS: Ich finde die Arbeiten von @hobbyquaker auch sehr gut, aber die Unabhängigkeit von eigenständiger SW mit eigenem Lebenszyklus und damit unabhängiger Pflege hat doch Vorteile.

GnomiBerlin avatar Sep 21 '22 09:09 GnomiBerlin

Hm, das ist vielleicht der richtige Weg. Performanz Probleme zwischen CCU3 und Node-Red gibt es keine?

Nebenfrage: Warum nicht gleich auf eine SSD installiert?

Tonitom avatar Sep 21 '22 10:09 Tonitom

Hi, welchen node nutzt ihr in nodered um euch mit der CCU zu verbinden?

drMaxxi avatar Sep 21 '22 11:09 drMaxxi

Derzeit noch node-red-contrib-ccu. Ich bin aber dabei einen eigen node zu entwickeln, um zukĂĽnftig via CCU-Jack die Anbindung zu machen.

ptweety avatar Sep 21 '22 12:09 ptweety

Derzeit noch node-red-contrib-ccu

dto. Das ist auch von @hobbyquaker. Denke, dass hier die Zukunft auch eher ungewiss ist.

Mein Favorit wäre zukünftig ein MQTT-Client auf der CCU. Habe mich aber noch nicht umgeschaut, was dafür in Frage kommt.

djiwondee avatar Sep 21 '22 12:09 djiwondee

Naja, wie geschrieben wäre das der CCU-Jack direkt als Addon auf der CCU oder extern im Docker

ptweety avatar Sep 21 '22 12:09 ptweety

@drMaxxi: nehme auch node-red-contrib-ccu was ohne Probleme läuft @Tonitom: Performance Probleme habe ich nie beobachtet (auch vor RedMatic). SSD: ich will den Pi so verbrauchsoptimiert wie möglich verwenden. Ich brauche keine schnelle Bootgeschwindigkeit und für die wenigen Daten zur Zwischenablage reicht ein alter Stick. @djiwondee: warum erst auf MQTT und dann zu Node-Red. Ich möchte immer so wenig wie möglich Instanzen wegen Pflege und Verfügbarkeit im Spiel haben. MQTT verwende ich zwischen Node-Red und anderen Komponenten, würde es aber nie zur CCU nehmen, wenn es nicht nötig wäre. Ohne Message Broker (Mosquitto o.ä.) ginge sonst nichts zwischen Node-Red und CCU. @ptweety: Eine ähnliche Meinung hätte ich zu CCU-Jack via Docker. Außerdem sind die CCU und Node-Red meine Logikschichten für funktionale Abläufe zwischen allen Komponenten. Warum sollte in CCU-Jack eine dritte Instanz mit Pflege installiert werden. Welchen Vorteil bringt das? Aber das ist alles nur meine Meinung und ggf. habe ich ja auch nicht alle Aspekte verstanden. .

GnomiBerlin avatar Sep 21 '22 14:09 GnomiBerlin