NEWS
Steuerung Gecko in Touch 2 per iob möglich? (Wellis)
-
Io Broker 7.7.20
Als Docker von Buanet. Latestsimple-api
Einfache RESTful APIInstallierte Instanzen:
1
Verfügbare Version:
2.8.0
Installierte Version:
2.8.0Ich habe ihn nochmal neu gestartet.
Es geht es kommen Werte. :-)UID Erinnerungen alles drin plötzlich :-)
Dann schau ich mir das mal an und starte die Skripte alle mal bis auf targettemp, mag diese anpassung der temperatur nicht
-
Es scheint alles zugehen :-)
Ich hab aber nochmal ne Frage.
ich schicke den Befehl:
http://iobroker:8087/set/javascript.0.Datenpunkte.SwimSpa.0.ZielTemperatur?value=35dann gehts. Schicke ich es über die Loxone:
ich übertrage es mit /set/javascript.0.Datenpunkte.SwimSpa.0.Zieltemperatur?value=#V
wobei #V der wert ist all so 35
Es kommt dann
hast Du da ein Rat?
simple-api.0 2025-12-27 17:03:50.829 info State value to set for "javascript.0.Datenpunkte.SwimSpa.0.ZielTemperatur" has to be type "number" but received type "string"avascript.0 2025-12-27 17:04:05.364 error script.js.common.Spa.SpaUpdateValues_js: *** stderr: Error: Command failed: python3 /SpaController/spa_updateBulk.py d37e243f-9fba-4403-b441-df72cb3b1d84 http://172.17.0.3:8087 SPA80:34:28:20:e3:2c 192.168.188.68 javascript.0.Datenpunkte.SwimSpa Traceback (most recent call last): File "/SpaController/spa_updateBulk.py", line 346, in <module> asyncio.run(main()) ~~~~~~~~~~~^^^^^^^^ File "/usr/local/lib/python3.13/asyncio/runners.py", line 194, in run return runner.run(main) ~~~~~~~~~~^^^^^^ File "/usr/local/lib/python3.13/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "/usr/local/lib/python3.13/asyncio/base_events.py", line 721, in run_until_complete return future.result() ~~~~~~~~~~~~~^^ File "/SpaController/spa_updateBulk.py", line 191, in main currentIoBrVal = float(searchForValue("id", ioBrDp, "val", currentStates)) ValueError: could not convert string to float: '#V'
fggg -
Es scheint alles zugehen :-)
Ich hab aber nochmal ne Frage.
ich schicke den Befehl:
http://iobroker:8087/set/javascript.0.Datenpunkte.SwimSpa.0.ZielTemperatur?value=35dann gehts. Schicke ich es über die Loxone:
ich übertrage es mit /set/javascript.0.Datenpunkte.SwimSpa.0.Zieltemperatur?value=#V
wobei #V der wert ist all so 35
Es kommt dann
hast Du da ein Rat?
simple-api.0 2025-12-27 17:03:50.829 info State value to set for "javascript.0.Datenpunkte.SwimSpa.0.ZielTemperatur" has to be type "number" but received type "string"avascript.0 2025-12-27 17:04:05.364 error script.js.common.Spa.SpaUpdateValues_js: *** stderr: Error: Command failed: python3 /SpaController/spa_updateBulk.py d37e243f-9fba-4403-b441-df72cb3b1d84 http://172.17.0.3:8087 SPA80:34:28:20:e3:2c 192.168.188.68 javascript.0.Datenpunkte.SwimSpa Traceback (most recent call last): File "/SpaController/spa_updateBulk.py", line 346, in <module> asyncio.run(main()) ~~~~~~~~~~~^^^^^^^^ File "/usr/local/lib/python3.13/asyncio/runners.py", line 194, in run return runner.run(main) ~~~~~~~~~~^^^^^^ File "/usr/local/lib/python3.13/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "/usr/local/lib/python3.13/asyncio/base_events.py", line 721, in run_until_complete return future.result() ~~~~~~~~~~~~~^^ File "/SpaController/spa_updateBulk.py", line 191, in main currentIoBrVal = float(searchForValue("id", ioBrDp, "val", currentStates)) ValueError: could not convert string to float: '#V'
fggg@Stefan-Berlin1 sagte in Steuerung Gecko in Touch 2 per iob möglich? (Wellis):
Schön zu hören das es jetzt doch geht. Ich habe schon etwas drüber geknobelt und die Fehlerbehandlung noch weiter verbessert, aber lass das jetzt von den eingesetzten Scriptständen mal so wie es ist.Ich denke dein:
/set/javascript.0.Datenpunkte.SwimSpa.0.Zieltemperatur?value=#V
aus Loxone ist falsch. Ich vermute Loxone sendet wirklich den Wert "#V" und nicht die von dir erwartete Zahl "35". In der Folge schmiert auch spa_updateBulk.py ab, weil es jede Minute den Wert holt und an der Stelle eine Dezimalzahl und nicht "#V" erwartet...
Wechsle mal in die Objektansicht und stelle bei der Zieltemperatur manuell eine Zahl ein, sagen "33", dann:
- 1 Minute warten, spa_updateBulk.py sollte sauber laufen und ggf. die im SpaController eingestellte Zieltemperatur zurückschreiben.
- Jetzt mit Loxone deinen neuen Zielwert eintragen
Wenn in der Objektansicht jetzt "#V" steht, dann liegts an dem was Loxone sendet.
Wenn ich die Loxone Doku so lese müsste es "\v" sein um den Wert zu senden. Ich habe aber kein Beispiel zur Hand, da ich die Temperatur im Sommer komplett automatisch nachziehen lasse.
-
Loxone klappt teilweise ^^ sitze noch dran das die Frau nur mit dem intilligenten Raumtemperaturregler + und - drücken kann. Sowie die Frostfunktion
So aber natürlich nach den Updates wieder.
Hat sich was geändert?
musste java auf 9.0.18 updaten.Er findet Ihn aber. Das ist ja schonmal gut. Auch die Watercare Daten sind ok. Pumpen kann ich auch ansteuern. Er holt sich die Temperaturen nicht mehr (es steht -1 da)
Nun kommt als Java Meldung aber immer:
script.js.common.Spa.SpaUpdateValues_js: *** stderr: Error: Command failed: python3 /SpaController/spa_updateBulk.py 6e619fb7-7433-4ac0-a057-768b78eb8fc0 http://172.17.0.5:8087 SPA80:34:28:20:e3:2c 192.168.188.68 javascript.0.Datenpunkte.SwimSpa Traceback (most recent call last): File "/SpaController/spa_updateBulk.py", line 346, in <module> asyncio.run(main()) ~~~~~~~~~~~^^^^^^^^ File "/usr/local/lib/python3.13/asyncio/runners.py", line 194, in run return runner.run(main) ~~~~~~~~~~^^^^^^ File "/usr/local/lib/python3.13/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "/usr/local/lib/python3.13/asyncio/base_events.py", line 721, in run_until_complete return future.result() ~~~~~~~~~~~~~^^ File "/SpaController/spa_updateBulk.py", line 184, in main currentIoBrVal = float(searchForValue("id", ioBrDp, "val", currentStates)) TypeError: float() argument must be a string or a real number, not 'NoneType'eingestellt hab ich im Java:
Spiegeln von Skripten in den Dateipfad
Kommando "setObject" erlauben -> ja
Kommando "sendToHost" erlauben -> ja
Kommando "exec" erlauben -> ja
Nicht alle Zustände beim Start abonnieren -> nein also ohne haken
Maximale setState-Anfragen pro Minute pro Skript
1000
default 1000Maximale Auslöser/Trigger pro Skript (bis zur Warnung)
100
default 100Im den Scripten auf Pause -> SpaMoveTarget
-
Hallo,
das liegt nicht am JavaScript Update, 9.0.18 habe ich auch. Du hast noch eine ältere Version von spa_updateBulk.py im Einsatz, ich tippe von der Zeilennummer des Fehlers her auf 0.3.1. Aktualisiere bitte das Script auf die im Github-Repo liegende aktuelle Version 0.3.2, dann sollte der Fehler beim parsen und konvertieren der Zeichenkette weg sein. Ich habe da Ende letzten Jahres extra die Fehlerbehandlung verbessert.
rrov1
-
Hallo,
das liegt nicht am JavaScript Update, 9.0.18 habe ich auch. Du hast noch eine ältere Version von spa_updateBulk.py im Einsatz, ich tippe von der Zeilennummer des Fehlers her auf 0.3.1. Aktualisiere bitte das Script auf die im Github-Repo liegende aktuelle Version 0.3.2, dann sollte der Fehler beim parsen und konvertieren der Zeichenkette weg sein. Ich habe da Ende letzten Jahres extra die Fehlerbehandlung verbessert.
rrov1
@rrov1
Alles klar das hab ich wohl übersehen.
Mach ich mal die Tage abends 😊 -
Hallo mal wieder nach langer Zeit :-)
Bei der Neuinstallation meines Systems habe ich direkt am Anfang als immer noch Linuxlaie folgende Herausforderung:
tklein@iobroker:/opt$ pip install geckolib error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install. If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed. If you wish to install a non-Debian packaged Python application, it may be easiest to use pipx install xyz, which will manage a virtual environment for you. Make sure you have pipx installed. See /usr/share/doc/python3.12/README.venv for more information. note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification. tklein@iobroker:/opt$ python3 --version Python 3.12.3Python ist so wie ich es sehe installiert. Ebenfalls mit einer recht neuen Version.
Was kann/soll ich tun?
-
Hallo mal wieder nach langer Zeit :-)
Bei der Neuinstallation meines Systems habe ich direkt am Anfang als immer noch Linuxlaie folgende Herausforderung:
tklein@iobroker:/opt$ pip install geckolib error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install. If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed. If you wish to install a non-Debian packaged Python application, it may be easiest to use pipx install xyz, which will manage a virtual environment for you. Make sure you have pipx installed. See /usr/share/doc/python3.12/README.venv for more information. note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification. tklein@iobroker:/opt$ python3 --version Python 3.12.3Python ist so wie ich es sehe installiert. Ebenfalls mit einer recht neuen Version.
Was kann/soll ich tun?
-
python3 --version
Hi Namensvetter, dir erneuten lieben Dank für die Hilfestellung!
bin jetzt a bissle weitergekommen:
tklein@iobroker:/opt$ sudo apt install pipx [sudo] password for tklein: Reading package lists... Done Building dependency tree... Done Reading state information... Done .. Unpacking python3-venv (3.12.3-0ubuntu2.1) ... Selecting previously unselected package python3-argcomplete. Preparing to unpack .../04-python3-argcomplete_3.1.4-1ubuntu0.1_all.deb ... Unpacking python3-argcomplete (3.1.4-1ubuntu0.1) ... Selecting previously unselected package python3-platformdirs. Preparing to unpack .../05-python3-platformdirs_4.2.0-1_all.deb ... Unpacking python3-platformdirs (4.2.0-1) ... Selecting previously unselected package python3-colorama. Preparing to unpack .../06-python3-colorama_0.4.6-4_all.deb ... Unpacking python3-colorama (0.4.6-4) ... Selecting previously unselected package python3-click. Preparing to unpack .../07-python3-click_8.1.6-2_all.deb ... Unpacking python3-click (8.1.6-2) ... .. Processing triggers for man-db (2.12.0-4build2) ... tklein@iobroker:/opt$ ls iobroker zigbee2mqtt tklein@iobroker:/opt$ ls -la total 16 drwxr-xr-x 4 root root 4096 Jun 22 19:23 . drwxr-xr-x 21 root root 4096 Jun 29 11:41 .. drwxrwxr-x+ 6 iobroker iobroker 4096 Jun 22 18:42 iobroker drwxr-xr-x 12 zigbee-mqtt zigbee-mqtt 4096 Jun 26 12:02 zigbee2mqtt tklein@iobroker:/opt$ python3 --version Python 3.12.3 tklein@iobroker:/opt$ python3 -m geckolib shell /usr/bin/python3: No module named geckolib tklein@iobroker:/opt$ python3.12.3 -m geckolib shell python3.12.3: command not found tklein@iobroker:/opt$Ich hätte jetzt erwartet, dass das directory geckolib unter /opt ist
-
python3 --version
Hi Namensvetter, dir erneuten lieben Dank für die Hilfestellung!
bin jetzt a bissle weitergekommen:
tklein@iobroker:/opt$ sudo apt install pipx [sudo] password for tklein: Reading package lists... Done Building dependency tree... Done Reading state information... Done .. Unpacking python3-venv (3.12.3-0ubuntu2.1) ... Selecting previously unselected package python3-argcomplete. Preparing to unpack .../04-python3-argcomplete_3.1.4-1ubuntu0.1_all.deb ... Unpacking python3-argcomplete (3.1.4-1ubuntu0.1) ... Selecting previously unselected package python3-platformdirs. Preparing to unpack .../05-python3-platformdirs_4.2.0-1_all.deb ... Unpacking python3-platformdirs (4.2.0-1) ... Selecting previously unselected package python3-colorama. Preparing to unpack .../06-python3-colorama_0.4.6-4_all.deb ... Unpacking python3-colorama (0.4.6-4) ... Selecting previously unselected package python3-click. Preparing to unpack .../07-python3-click_8.1.6-2_all.deb ... Unpacking python3-click (8.1.6-2) ... .. Processing triggers for man-db (2.12.0-4build2) ... tklein@iobroker:/opt$ ls iobroker zigbee2mqtt tklein@iobroker:/opt$ ls -la total 16 drwxr-xr-x 4 root root 4096 Jun 22 19:23 . drwxr-xr-x 21 root root 4096 Jun 29 11:41 .. drwxrwxr-x+ 6 iobroker iobroker 4096 Jun 22 18:42 iobroker drwxr-xr-x 12 zigbee-mqtt zigbee-mqtt 4096 Jun 26 12:02 zigbee2mqtt tklein@iobroker:/opt$ python3 --version Python 3.12.3 tklein@iobroker:/opt$ python3 -m geckolib shell /usr/bin/python3: No module named geckolib tklein@iobroker:/opt$ python3.12.3 -m geckolib shell python3.12.3: command not found tklein@iobroker:/opt$Ich hätte jetzt erwartet, dass das directory geckolib unter /opt ist
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden