Neueste Beiträge

#1
Sonstige Systeme / Aw: fhempy: Server startet nic...
Letzter Beitrag von MarkusAutomaticus - 03 Mai 2024, 18:23:19
Hier noch die Definition:

[code]define fhempy_local BindingsIo fhempy
attr fhempy_local alias fhempy_local
attr fhempy_local devStateIcon {      my $attr_ver = "1.1.0";;;;      my $status_img = "10px-kreis-gruen";;;;      my $status_txt = "connected";;;;      my $ver = ReadingsVal($name, "version", "-");;;;      my $ver_available = ReadingsVal($name, "version_available", $ver);;;;      my $update_icon = "";;;;      my $refresh_img = "refresh";;;;      my $refresh_txt = "Update fhempy";;;;      if ($ver_available ne $ver) {        $refresh_img = "refresh\@orange";;;;        $refresh_txt = "Version ".$ver_available." available for update";;;;      }      if (ReadingsVal($name, "state", "disconnected") eq "disconnected") {        $status_img = "10px-kreis-rot";;;;        $status_txt = "disconnected";;;;      }      $update_icon = "<a  href=\"/fhem?cmd.dummy=set $name update&XHR=1\" title=\"Start ".$ver_available." update\">".FW_makeImage($refresh_img, $refresh_txt)."</a>";;;;      my $restart_icon = "<a  href=\"/fhem?cmd.dummy=set $name restart&XHR=1\" title=\"Restart fhempy\">".FW_makeImage("control_reboot")."</a>";;;;      "<div><a>".FW_makeImage($status_img, $status_txt)."</a><a> ".$ver." </a>".$update_icon.$restart_icon."</div>"    }
attr fhempy_local group fhempy
attr fhempy_local icon file_json-ld2
attr fhempy_local room fhempy
#   BindingType fhempy
#   DEF        fhempy
#   DeviceName ws:127.0.0.1:15733
#   FUUID      64c3ef29-f33f-939b-6b92-e550960611890af5
#   IP         127.0.0.1
#   NAME       fhempy_local
#   NEXT_OPEN  1714753325.39437
#   NR         564
#   NTFY_ORDER 50-fhempy_local
#   PARTIAL   
#   PORT       15733
#   STATE      disconnected
#   TYPE       BindingsIo
#   binary     1
#   devioLoglevel 0
#   eventCount 3
#   installing 0
#   localBinding 1
#   nextOpenDelay 10
#   prev_error 127.0.0.1: Verbindungsaufbau abgelehnt (111)
#   READINGS:
#     2023-11-01 11:24:59   hostname        Jarvis4
#     2023-11-01 11:24:59   os              posix
#     2023-11-01 11:24:59   python          3.10.12
#     2023-11-01 11:24:59   release         5.15.0-87-generic
#     2024-05-03 18:21:55   state           disconnected
#     2023-11-01 11:24:59   system          Linux
#     2023-11-01 11:24:59   version         0.1.660
#     2023-12-28 11:25:23   version_available 0.1.694
#     2023-12-28 11:25:23   version_release_notes <html><a href="https://github.com/fhempy/fhempy/releases" target="_blank">Release Notes</a></html>
#   args:
#     fhempy_local
#     BindingsIo
#     fhempy
#   messages:
#     0:
#
setstate fhempy_local disconnected
setstate fhempy_local 2023-11-01 11:24:59 hostname Jarvis4
setstate fhempy_local 2023-11-01 11:24:59 os posix
setstate fhempy_local 2023-11-01 11:24:59 python 3.10.12
setstate fhempy_local 2023-11-01 11:24:59 release 5.15.0-87-generic
setstate fhempy_local 2024-05-03 18:21:55 state disconnected
setstate fhempy_local 2023-11-01 11:24:59 system Linux
setstate fhempy_local 2023-11-01 11:24:59 version 0.1.660
setstate fhempy_local 2023-12-28 11:25:23 version_available 0.1.694
setstate fhempy_local 2023-12-28 11:25:23 version_release_notes <html><a href="https://github.com/fhempy/fhempy/releases" target="_blank">Release Notes</a></html>

[/code]
#2
Sonstige Systeme / fhempy: Server startet nicht m...
Letzter Beitrag von MarkusAutomaticus - 03 Mai 2024, 18:17:05
Hallo zusammen,

ich habe fhempy zur Anbindung meiner RCT Solaranlage in FHEM integriert.
Ein Zeit lang hat auch alles geklappt, aber nun ist der fhempy Server und fhempy rot.

Als Fehlermeldung sehe ich folgendes:
prev_error
127.0.0.1: Verbindungsaufbau abgelehnt (111)

Es wird auch angezeigt, dass es eine neue Version gibt:

hostname
Jarvis4
2023-11-01 11:24:59
os
posix
2023-11-01 11:24:59
python
3.10.12
2023-11-01 11:24:59
release
5.15.0-87-generic
2023-11-01 11:24:59
state
disconnected
2024-05-03 18:06:06
system
Linux
2023-11-01 11:24:59
version
0.1.660
2023-11-01 11:24:59
version_available
0.1.694
2023-12-28 11:25:23
version_release_notes
Release Notes
2023-12-28 11:25:23



Aber weder ein "set update" noch ein update und NEustart von FHEM habe etwas gebracht.

Auch das Kommando:
sudo -u fhem pip3 install --upgrade fhempy welches ich hier aufgeschnappt habe, hat nichts am Zustand geändert.

Folgendes ist die Ausgabe obigen Kommandos:
markus@Jarvis4:~$ sudo -u fhem pip3 install --upgrade fhempy
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: fhempy in /opt/fhem/.local/lib/python3.10/site-packages (0.1.660)
Collecting fhempy
  Downloading fhempy-0.1.740-py3-none-any.whl (4.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 6.2 MB/s eta 0:00:00
Collecting websockets==12.0
  Downloading websockets-12.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (130 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 130.2/130.2 KB 10.7 MB/s eta 0:00:00
Collecting aiohttp[speedups]==3.9.5
  Downloading aiohttp-3.9.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 8.3 MB/s eta 0:00:00
Requirement already satisfied: requests==2.31.0 in /opt/fhem/.local/lib/python3.10/site-packages (from fhempy) (2.31.0)
Collecting packaging==24.0
  Downloading packaging-24.0-py3-none-any.whl (53 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.5/53.5 KB 5.0 MB/s eta 0:00:00
Requirement already satisfied: ifaddr==0.2.0 in /opt/fhem/.local/lib/python3.10/site-packages (from fhempy) (0.2.0)
Collecting pycryptodomex==3.20.0
  Downloading pycryptodomex-3.20.0-cp35-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 10.3 MB/s eta 0:00:00
Collecting pexpect==4.9.0
  Downloading pexpect-4.9.0-py2.py3-none-any.whl (63 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.8/63.8 KB 5.9 MB/s eta 0:00:00
Collecting markdown2==2.4.13
  Downloading markdown2-2.4.13-py2.py3-none-any.whl (41 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.3/41.3 KB 3.4 MB/s eta 0:00:00
Collecting aiofiles==23.2.1
  Downloading aiofiles-23.2.1-py3-none-any.whl (15 kB)
Collecting importlib_metadata==7.1.0
  Downloading importlib_metadata-7.1.0-py3-none-any.whl (24 kB)
Collecting zeroconf==0.131.0
  Downloading zeroconf-0.131.0-cp310-cp310-manylinux_2_31_x86_64.whl (10.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.4/10.4 MB 16.0 MB/s eta 0:00:00
Collecting async-upnp-client==0.38.3
  Downloading async_upnp_client-0.38.3.tar.gz (96 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.3/96.3 KB 10.4 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Requirement already satisfied: yarl<2.0,>=1.0 in /opt/fhem/.local/lib/python3.10/site-packages (from aiohttp[speedups]==3.9.5->fhempy) (1.9.2)
Requirement already satisfied: async-timeout<5.0,>=4.0 in /opt/fhem/.local/lib/python3.10/site-packages (from aiohttp[speedups]==3.9.5->fhempy) (4.0.2)
Requirement already satisfied: multidict<7.0,>=4.5 in /opt/fhem/.local/lib/python3.10/site-packages (from aiohttp[speedups]==3.9.5->fhempy) (6.0.4)
Requirement already satisfied: frozenlist>=1.1.1 in /opt/fhem/.local/lib/python3.10/site-packages (from aiohttp[speedups]==3.9.5->fhempy) (1.4.0)
Requirement already satisfied: attrs>=17.3.0 in /opt/fhem/.local/lib/python3.10/site-packages (from aiohttp[speedups]==3.9.5->fhempy) (23.1.0)
Requirement already satisfied: aiosignal>=1.1.2 in /opt/fhem/.local/lib/python3.10/site-packages (from aiohttp[speedups]==3.9.5->fhempy) (1.3.1)
Requirement already satisfied: Brotli in /opt/fhem/.local/lib/python3.10/site-packages (from aiohttp[speedups]==3.9.5->fhempy) (1.0.9)
Requirement already satisfied: aiodns in /opt/fhem/.local/lib/python3.10/site-packages (from aiohttp[speedups]==3.9.5->fhempy) (3.0.0)
Requirement already satisfied: defusedxml>=0.6.0 in /opt/fhem/.local/lib/python3.10/site-packages (from async-upnp-client==0.38.3->fhempy) (0.7.1)
Collecting python-didl-lite~=1.4.0
  Downloading python-didl-lite-1.4.0.tar.gz (15 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: voluptuous>=0.12.1 in /opt/fhem/.local/lib/python3.10/site-packages (from async-upnp-client==0.38.3->fhempy) (0.13.1)
Requirement already satisfied: zipp>=0.5 in /usr/lib/python3/dist-packages (from importlib_metadata==7.1.0->fhempy) (1.0.0)
Collecting ptyprocess>=0.5
  Downloading ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests==2.31.0->fhempy) (3.3)
Requirement already satisfied: charset-normalizer<4,>=2 in /opt/fhem/.local/lib/python3.10/site-packages (from requests==2.31.0->fhempy) (3.2.0)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests==2.31.0->fhempy) (2020.6.20)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/lib/python3/dist-packages (from requests==2.31.0->fhempy) (1.26.5)
Requirement already satisfied: pycares>=4.0.0 in /opt/fhem/.local/lib/python3.10/site-packages (from aiodns->aiohttp[speedups]==3.9.5->fhempy) (4.3.0)
Requirement already satisfied: cffi>=1.5.0 in /opt/fhem/.local/lib/python3.10/site-packages (from pycares>=4.0.0->aiodns->aiohttp[speedups]==3.9.5->fhempy) (1.15.1)
Requirement already satisfied: pycparser in /opt/fhem/.local/lib/python3.10/site-packages (from cffi>=1.5.0->pycares>=4.0.0->aiodns->aiohttp[speedups]==3.9.5->fhempy) (2.21)
Building wheels for collected packages: async-upnp-client, python-didl-lite
  Building wheel for async-upnp-client (setup.py) ... done
  Created wheel for async-upnp-client: filename=async_upnp_client-0.38.3-py3-none-any.whl size=87994 sha256=fc832bf729e5fe5046c6a003f217a451023218c8cf05e4cbe92b64ce13c19767
  Stored in directory: /opt/fhem/.cache/pip/wheels/eb/d4/b9/36efc56d03ca65f507a55b829bc9e5d4adc2a3191419e08fed
  Building wheel for python-didl-lite (setup.py) ... done
  Created wheel for python-didl-lite: filename=python_didl_lite-1.4.0-py3-none-any.whl size=12952 sha256=31804c8dcd36246a90bc0f4788d199d1dfad0ad29cfa6c065632f805e50808a5
  Stored in directory: /opt/fhem/.cache/pip/wheels/12/09/c5/0e483ab2294a38bd8b3b66ef0e363ad70c0fc1a2c7104ffd34
Successfully built async-upnp-client python-didl-lite
Installing collected packages: ptyprocess, zeroconf, websockets, python-didl-lite, pycryptodomex, pexpect, packaging, markdown2, importlib_metadata, aiofiles, aiohttp, async-upnp-client, fhempy
  Attempting uninstall: zeroconf
    Found existing installation: zeroconf 0.64.1
    Uninstalling zeroconf-0.64.1:
      Successfully uninstalled zeroconf-0.64.1
  Attempting uninstall: websockets
    Found existing installation: websockets 11.0.3
    Uninstalling websockets-11.0.3:
      Successfully uninstalled websockets-11.0.3
  Attempting uninstall: python-didl-lite
    Found existing installation: python-didl-lite 1.3.2
    Uninstalling python-didl-lite-1.3.2:
      Successfully uninstalled python-didl-lite-1.3.2
  Attempting uninstall: pycryptodomex
    Found existing installation: pycryptodomex 3.18.0
    Uninstalling pycryptodomex-3.18.0:
      Successfully uninstalled pycryptodomex-3.18.0
  Attempting uninstall: markdown2
    Found existing installation: markdown2 2.4.8
    Uninstalling markdown2-2.4.8:
      Successfully uninstalled markdown2-2.4.8
  WARNING: The script markdown2 is installed in '/opt/fhem/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  Attempting uninstall: importlib_metadata
    Found existing installation: importlib-metadata 6.1.0
    Uninstalling importlib-metadata-6.1.0:
      Successfully uninstalled importlib-metadata-6.1.0
  Attempting uninstall: aiohttp
    Found existing installation: aiohttp 3.8.4
    Uninstalling aiohttp-3.8.4:
      Successfully uninstalled aiohttp-3.8.4
  Attempting uninstall: async-upnp-client
    Found existing installation: async-upnp-client 0.31.2
    Uninstalling async-upnp-client-0.31.2:
      Successfully uninstalled async-upnp-client-0.31.2
  WARNING: The script upnp-client is installed in '/opt/fhem/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  Attempting uninstall: fhempy
    Found existing installation: fhempy 0.1.660
    Uninstalling fhempy-0.1.660:
      Successfully uninstalled fhempy-0.1.660
  WARNING: The script fhempy is installed in '/opt/fhem/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed aiofiles-23.2.1 aiohttp-3.9.5 async-upnp-client-0.38.3 fhempy-0.1.740 importlib_metadata-7.1.0 markdown2-2.4.13 packaging-24.0 pexpect-4.9.0 ptyprocess-0.7.0 pycryptodomex-3.20.0 python-didl-lite-1.4.0 websockets-12.0 zeroconf-0.131.0

Wie bekomme ich das System wieder ans Laufen?
#3
Sonstige Systeme / Aw: [Neues Modul] 74_Automower...
Letzter Beitrag von wieral - 03 Mai 2024, 18:07:04
Vielen Dank für die schnelle Antwort.

In der App werden keine Positionsdaten angezeigt. Somit gehe ich davon aus das es so ist.
Zu Testzwecken habe ich die Zeile 1032 rausgenommen. Darauf hin wurde das Device angelegt.
Daten des Mowers werden angezeigt. Leider keine Positionen.
#4
TabletUI / Aw: Darstellung Sonnenbatterie
Letzter Beitrag von Shadow3561 - 03 Mai 2024, 17:57:28
Zitat von: LordVoodoo am 02 Mai 2024, 17:36:40Vielleicht hilfreich für den einen oder anderen. Ich habe mir per SVG sechs Dateien erstellt, jeweils mit und ohne Animation:

PV-Anlage an Haus
PV-Anlage an Stromnetz
Strom-Netz an Haus

Die animierte Version nutzt einen wandernden Punkt mit Hilfe von SVG.
Ich hoffe, man kann es in dem Kurzvideo erkennen.


Ich mag es mit den Punkten auch mehr als mit den gestrichelten Linien. Daher wandern bei mir auch seit geraumer Zeit Punkte die virtuellen Stromleitungen lang.

Vielleicht magst du deins mal zu Verfügung stellen?

#5
Home Connect / Aw: HomeConnect - HowTo
Letzter Beitrag von VB90 - 03 Mai 2024, 17:29:44
Bei mir klappte der LogIn gerade auch auf der Website nicht.
Passwort zurück gesetzt, aber das alte genommen, nu rennt es wieder.

vb
#6
Unterstützende Dienste / Aw: Statistics für mehrere rea...
Letzter Beitrag von last-v8 - 03 Mai 2024, 17:09:25
Status: funktioniert soweit. Habe zusätzliche Parameter hinzugefügt- funktioniert auch. Vielen dank für Eure Inputs!
#7
Sonstige Systeme / Aw: [Neues Modul] 74_Automower...
Letzter Beitrag von Ellert - 03 Mai 2024, 17:07:30
Zitat"positions":[]
Der Mäher liefert keine Positionsdaten.

Ist das Typ bedingt?

Ich bin bisher davon ausgegangen, dass alle Mäher mit Connectmodul auch Positionsdaten liefern, daher die letzte Fehlermeldung mit Absturz.
#8
Anfängerfragen / Aw: Reading Werte finden und v...
Letzter Beitrag von ch.eick - 03 Mai 2024, 17:06:52
Zitat von: Prof. Dr. Peter Henning am 03 Mai 2024, 16:42:35Das kann doch nur der Eigentümer oder ein Admin machenKlar - ich habe automatisch angenommen, das bist Du.
Mehr Schein als sein ;-)
#9
Off-Topic / Aw: Wie macht ihr IPv6 zuhause...
Letzter Beitrag von Aurel_B - 03 Mai 2024, 17:05:54
Danke euch! Jetzt habe ich glaub ich den dreh langsam raus und es scheint (momentan) alles zu funktionieren! Grundsätzlich habe ich 2 Möglichkeiten ermittelt:

  • Ich verwende nur ULA IPv6 Adressen und mein Router macht auch bei IPv6 NAT.
    Vorteil: provider-unabhängig, ich habe intern die volle Kontrolle über meine Adressen, quasi wie bei IPv4.
    Nachteil: NAT..... (wird von der Fritzbox glaub ich gar nicht unterstützt für IPv6?)
  • Ich verwende zusätzlich zu den vom Provider vergebenen IPv6 Adressraum parallel einen ULA Adressraum, jeder Client hat also (mindestens) 2 IPv6 Adressen. Die Fritzbox verteilt hier die IPv6 ULA Adressen und gibt auch noch gleich die ULA Adresse des lokalen DNS Server bekannt (Heimnetz -> Netzwerk -> Netzwerkeinstellungen -> Erweitert -> IPv6 Einstellungen). Alle DNS Anfragen laufen damit (anscheinend) über diesen Server, egal ob IPv4 oder IPv6.
    Vorteil: kein NAT
    Nachteil: 2 Adressen, potentiell unübersichtlich

Macht das so Sinn? Wie gesagt funktioniert im Moment alles:

$ nslookup.exe Miele
Server:  UnKnown
Address:  fd00:4142::1

Name:    Miele.local
Address:  192.168.1.22

Längerfristig möchte ich das Verteilen der IPv6 ULA Adressen noch von der Fritzbox auf den Server (dnsmasq) verlagern.

Zitat von: RalfRog am 02 Mai 2024, 17:51:38Würde da nicht (neben den ULA-Adressen für intern) ein Zugriff per DYN-DNS Dienst helfen - bei einer oder zwei Adressen geht das doch vermutlich noch ohne weitere Kosten (ok, meiner sehe ich gerade akzeptiert keine neuen Accounts mehr).

War etwas missverständlich formuliert, es ging mir nur um feste Adressen intern, extern mache ich das weiterhin per DynDns  :)
#10
Anfängerfragen / Aw: Reading Werte finden und v...
Letzter Beitrag von Prof. Dr. Peter Henning - 03 Mai 2024, 16:42:35
Das kann doch nur der Eigentümer oder ein Admin machenKlar - ich habe automatisch angenommen, das bist Du.

LG

pah