Hallo zusammen,
ich mach hier einen neuen Thread auf um sich vom alten GOOGLECAST Modul abzugrenzen.
In diesem Thread soll nur mehr das neue googlecast Modul via fhempy (https://github.com/dominikkarall/fhem_pythonbinding/blob/master/README.md) diskutiert werden, damit ist die Trennung auch klarer und sollte zukünftig weniger Verwirrungen für Neueinsteiger bringen.
Wer fhempy noch nicht kennt, noch eine kurze Zusammenfassung:
fhempy ermöglicht es FHEM Module in Python zu schreiben. Dazu wird fhempy innerhalb von FHEM gestartet welches dann über Websockets mit FHEM kommuniziert. Die Basisinstallation von fhempy ist Voraussetzung um die Module nutzen zu können.
Installationsanleitung in 5 Schritten:
https://github.com/dominikkarall/fhem_pythonbinding/blob/master/README.md
googlecast Nutzung:
https://github.com/dominikkarall/fhem_pythonbinding/blob/master/FHEM/bindings/python/lib/googlecast/README.md
Hi,
dankeschön, das neue Plugin für Chromecast funktioniert wunderbar.
Super Sache!!!!
Und das man die Xiaomi-token auslesen kann ist ja der Hammer. (ich hatte da bis jetzt immer so eine gehackte APK am Handy)
Ich muss noch testen ob Chromcast auch in einem anderen Netzwerk funktioniert, das alte konnte das nicht.
Internet >> Firewall-1>>Chromcast (usw..)>>Firewall-2>>Fhem
Frage:
Ist es besser die Xiaomi Geräte mit dem neuen Plugin zu betreiben oder kann man auf dem alten Plugin bleiben?
Gibt es da unterschiede?
LG
KOAL
Hi,
FHEM über die Firewall mit dem Chromecast zu verbinden ist sicher technisch möglich. Musst nur prüfen welchen Ports du alles freischalten musst. Wichtig ist, dass mDNS über die Firewall hinweg funktioniert.
Bzgl. der Xiaomi Geräte, das kommt auf das Gerät drauf an. miio unterstützt alle Geräte die direkt im WLAN hängen, xiaomi_gateway3 alle Geräte die an dem Xiaomi Gateway 3 hängen. Es hängt also vom Gerät ab das du einbinden willst. Für weitere Fragen dazu bitte den fhempy miio oder xiaomi_gateway3 Thread nutzen.
Hi,
ich habe heut einmal das neue Modul nach Anleitung installiert.
Nach der Istallation bleibt das BindingsIo Device "disconnected"
Im FHEM Log kommt wiederholt:
2020.12.22 15:04:48 1 : BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2020.12.22 15:04:48 1 : BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2020.12.22 15:04:58 1 : BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2020.12.22 15:04:58 1 : BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2020.12.22 15:04:59 3 : Pythonbinding_15733: starting
2020.12.22 15:04:59 3 : Pythonbinding_15733: using logfile: ./log/PythonBinding-2020-12-22.log
2020.12.22 15:04:59 3 : Pythonbinding_15733: read: end of file reached while sysread
2020.12.22 15:04:59 3 : Pythonbinding_15733: stopped
das PythonBinding Log sagt folgendes, auch vielfach wiederholt:
SyntaxError: invalid syntax
File "FHEM/bindings/python/bin/fhempy", line 88
logging.getLogger(__name__).info(f"Successfully installed {package}")
^
Hat jemand einen Tipp, wo ich ansetzen kann?
Danke & Viele Grüße,
Oliver
Welche Python Version wird benutzt?
Zitat von: dominik am 22 Dezember 2020, 15:24:42
Welche Python Version wird benutzt?
Es ist die Version 3.5.3-1
https://github.com/dominikkarall/fhempy#installation
Python >= 3.7 ist notwendig.
Kannst du bitte mal python3 auf der Console starten und folgendes eingeben
>>> import sys
>>> sys.version_info
sys.version_info(major=3, minor=7, micro=3, releaselevel='final', serial=0)
Weil eigentlich solltest du eine Fehlermeldung erhalten, dass deine Python Version zu alt ist.
Es ist tatsächlich die falsche Version:
>>> import sys
>>> sys.version_info
sys.version_info(major=3, minor=5, micro=3, releaselevel='final', serial=0)
Wenn ich sudo apt install python3 python3-pip libssl-dev libffi-dev
eingebe wird aber nichts weiter aktualisiert.
Ich glaube da musst du auf Buster aktualisieren.
Zitat von: dominik am 22 Dezember 2020, 15:44:08
Ich glaube da musst du auf Buster aktualisieren.
Danke, das war der entscheidende Hinweis!
Zur Info, wahrscheinlich kann ich heute die Spotify Integration noch online stellen :)
Spotify Support ist online.
Man muss dazu die Attribute
- spotify_sp_dc
- spotify_sp_key
setzen. Wie das geht, steht direkt unter den Attributen wenn man diese auswählt.
Danach
set cast play https://open.spotify.com/artist/4PBCFEjR4a3OGdOZ6jeKKM
Hallo, hatte schon im original spotify-Thread geschrieben, aber da kommt leider keine Reaktion.
Ich habe das Problem, dass bei mir immer angezeigt wird, dass das Modul nicht geladen werden kann wenn ich versuche das Device zu erstellen.
Cannot load module Spotify
Api habe ich selbstverständlich erstellt und die Reurl auch eingetragen. Die beiden Schlüssel vor dem Erstellen ausgelesen und entsprechend ins define eingefügt.
Hier was beim ausführen des Define im Log auftaucht:
2020.12.28 11:18:59.174 1: reload: Error:Modul 37_Spotify deactivated:
Too many arguments for Cpanel::JSON::XS::encode_json at ./FHEM/37_Spotify.pm line 368, near "0)"
Not enough arguments for main::Spotify_apiRequest at ./FHEM/37_Spotify.pm line 368, near "0)"
Too many arguments for Cpanel::JSON::XS::encode_json at ./FHEM/37_Spotify.pm line 376, near "0)"
Not enough arguments for main::Spotify_apiRequest at ./FHEM/37_Spotify.pm line 376, near "0)"
2020.12.28 11:18:59.174 0: Too many arguments for Cpanel::JSON::XS::encode_json at ./FHEM/37_Spotify.pm line 368, near "0)"
Not enough arguments for main::Spotify_apiRequest at ./FHEM/37_Spotify.pm line 368, near "0)"
Too many arguments for Cpanel::JSON::XS::encode_json at ./FHEM/37_Spotify.pm line 376, near "0)"
Not enough arguments for main::Spotify_apiRequest at ./FHEM/37_Spotify.pm line 376, near "0)"
Hi,
da bist du hier falsch, hier geht es nur um das googlecast Modul, welches Spotify abspielen am Cast Device ermöglicht.
Hi,
ich finde es toll, dass Du das Modul weiterentwickelst! Vielen Dank dafür!
Leider funktioniert es bei mir nicht, die Attribute werden bei mir nicht angezeigt... liege ich richtig, dass ich über "update all" aktualisieren muss? Bei "update list" zeigt er mir dann auch schon an, dass das Update scheinbar noch nicht durchgeführt wurde (dominkkarall wird immer noch aufgeführt). Bei "update all" stand bei den GoogleDevices auch, dass FHEM irgendwas "installiert", aber eine Veränderung konnte ich danach nicht feststellen. Neustart von FHEM wurde natürlich durchgeführt.
Würdest Du mir weiterhelfen bzw mir sagen, welche Infos Du noch brauchst, um den Fehler einzugrenzen?
Schöne Grüße
2020.12.28 13:36:55 1 : Downloading https://fhem.de/fhemupdate/controls_fhem.txt
2020.12.28 13:36:55 1 :
2020.12.28 13:36:55 1 : fhem
2020.12.28 13:36:56 1 : nothing to do...
2020.12.28 13:36:56 1 : Downloading https://raw.githubusercontent.com/knowthelist/fhem-tablet-ui/master/controls_fhemtabletui.txt
2020.12.28 13:36:56 1 :
2020.12.28 13:36:56 1 : fhemtabletui
2020.12.28 13:36:56 1 : nothing to do...
2020.12.28 13:36:56 1 : Downloading https://raw.githubusercontent.com/dominikkarall/fhempy/master/controls_pythonbinding.txt
2020.12.28 13:36:56 1 :
2020.12.28 13:36:56 1 : pythonbinding
2020.12.28 13:36:57 1 : nothing to do...
2020.12.28 13:36:57 1 : Downloading https://raw.githubusercontent.com/ThorstenPferdekaemper/FHEM-FUIP/master/controls_fuip.txt
2020.12.28 13:36:57 1 :
2020.12.28 13:36:57 1 : fuip
2020.12.28 13:36:57 1 : nothing to do...
http://fhem.de/fhemupdate/controls_fhem.txt
https://raw.githubusercontent.com/knowthelist/fhem-tablet-ui/master/controls_fhemtabletui.txt
https://raw.githubusercontent.com/dominikkarall/fhempy/master/controls_pythonbinding.txt
https://raw.githubusercontent.com/ThorstenPferdekaemper/FHEM-FUIP/master/controls_fuip.txt
Hi,
mach bitte Mal
sudo -u fhem pip3 uninstall fhempy
Und starte danach FHEM neu.
Das war die Lösung, jetzt kann ich mich weiter reinfuchsen! Vielen Dank!
edit:
spotify_user
attr spotify_sp... required
aber bin nach Anleitung vorgegangen... abspielen tut er die Beispiel - Playlist leider nicht
edit2:
naja, vielleicht sollte ich geduldiger werden und FHEM einfach nochmal neu starten :-) Außerdem sind Seiler und Speer eine hervorragende Wahl :-)
:)) Eigentlich sollte es auch ohne Neustart gehen, das muss ich mir nochmals ansehen.
So, nach einigem Probieren hab ichs jetzt auch am Laufen :)
Musste allerdings aiohttp, pychromecast, spotipy, spotify_token und youtube_dl manuell installieren. Evtl. weil ich die Remote Variante am Laufen habe auf dem separaten raspi?
Ansonsten mal noch eine andere Frage: gibts die Möglichkeit, dass er nach einem "speak" Befehl mit dem vorher laufenden Stream weitermacht? Bisher hab ich mir damit beholfen, dass ich vor dem Befehl die "mediaContentId" merke und danach die URL mit "play" wieder abspiele. Funktioniert, hat aber den Nachteil, dass Cover, Texte usw. nicht mehr angezeigt werden.
Hi,
ja, sollte machbar sein, zumindest für Streams.
Kannst du mir mal ein Log posten wo eines der Packages nicht installiert war? Das sollte sich immer von selbst installieren.
Auf dem remote Pybinding war nichts in den Logs, weder Fehler, noch andere Log Einträge zu dem Zeitpunkt. Der Fehler war immer nur innerhalb von fhem zu sehen, beim Defininieren des Cast Devices bzw. dann innerhalb vom neuen Cast Device. Davon hab ich leider keinen Log Auszug, aber im Prinzip war immer nur der Teil zu sehen, dass eines der Pakete gefehlt hat.
journalctl -u fhempy
Sollte dir am remote peer das Log anzeigen, vielleicht findest du da noch was. Es sollte stehen, Installation failed oder so.
Ich hab mal alles von heute hier reinkopiert, ich kann darin nichts in der Richtung finden. Hatte auch während dem Einrichten "journalctl -fu fhempy" am Laufen und da kamen zu dem Zeitpunkt keine neuen Zeilen dazu
Dec 29 12:49:02 raspberrypi systemd[1]: Started FHEM PythonBinding.
Dec 29 12:49:05 raspberrypi fhempy[2510]: 2020-12-29 12:49:05,963 - INFO - lib.fhem_pythonbinding: Starting pythonbinding...
Dec 29 12:49:15 raspberrypi fhempy[2510]: 2020-12-29 12:49:15,764 - INFO - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Dec 29 12:49:15 raspberrypi fhempy[2510]: 2020-12-29 12:49:15,796 - INFO - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Dec 29 12:49:16 raspberrypi fhempy[2510]: 2020-12-29 12:49:16,488 - ERROR - lib.fhem_pythonbinding: Connection closed error
Dec 29 12:49:16 raspberrypi fhempy[2510]: Traceback (most recent call last):
Dec 29 12:49:16 raspberrypi fhempy[2510]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 827, in transfer_data
Dec 29 12:49:16 raspberrypi fhempy[2510]: message = await self.read_message()
Dec 29 12:49:16 raspberrypi fhempy[2510]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 895, in read_message
Dec 29 12:49:16 raspberrypi fhempy[2510]: frame = await self.read_data_frame(max_size=self.max_size)
Dec 29 12:49:16 raspberrypi fhempy[2510]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 971, in read_data_frame
Dec 29 12:49:16 raspberrypi fhempy[2510]: frame = await self.read_frame(max_size)
Dec 29 12:49:16 raspberrypi fhempy[2510]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 1051, in read_frame
Dec 29 12:49:16 raspberrypi fhempy[2510]: extensions=self.extensions,
Dec 29 12:49:16 raspberrypi fhempy[2510]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/framing.py", line 105, in read
Dec 29 12:49:16 raspberrypi fhempy[2510]: data = await reader(2)
Dec 29 12:49:16 raspberrypi fhempy[2510]: File "/usr/lib/python3.7/asyncio/streams.py", line 677, in readexactly
Dec 29 12:49:16 raspberrypi fhempy[2510]: raise IncompleteReadError(incomplete, n)
Dec 29 12:49:16 raspberrypi fhempy[2510]: asyncio.streams.IncompleteReadError: 0 bytes read on a total of 2 expected bytes
Dec 29 12:49:16 raspberrypi fhempy[2510]: The above exception was the direct cause of the following exception:
Dec 29 12:49:16 raspberrypi fhempy[2510]: Traceback (most recent call last):
Dec 29 12:49:16 raspberrypi fhempy[2510]: File "/usr/local/lib/python3.7/dist-packages/lib/fhem_pythonbinding.py", line 42, in pybinding
Dec 29 12:49:16 raspberrypi fhempy[2510]: async for message in websocket:
Dec 29 12:49:16 raspberrypi fhempy[2510]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 439, in __aiter__
Dec 29 12:49:16 raspberrypi fhempy[2510]: yield await self.recv()
Dec 29 12:49:16 raspberrypi fhempy[2510]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 509, in recv
Dec 29 12:49:16 raspberrypi fhempy[2510]: await self.ensure_open()
Dec 29 12:49:16 raspberrypi fhempy[2510]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 803, in ensure_open
Dec 29 12:49:16 raspberrypi fhempy[2510]: raise self.connection_closed_exc()
Dec 29 12:49:16 raspberrypi fhempy[2510]: websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason
Dec 29 12:49:16 raspberrypi fhempy[2510]: 2020-12-29 12:49:16,512 - INFO - lib.fhem_pythonbinding: Restart binding
Dec 29 12:49:16 raspberrypi systemd[1]: fhempy.service: Main process exited, code=exited, status=1/FAILURE
Dec 29 12:49:16 raspberrypi systemd[1]: fhempy.service: Failed with result 'exit-code'.
Dec 29 12:49:17 raspberrypi systemd[1]: fhempy.service: Service RestartSec=100ms expired, scheduling restart.
Dec 29 12:49:17 raspberrypi systemd[1]: fhempy.service: Scheduled restart job, restart counter is at 6.
Dec 29 12:49:17 raspberrypi systemd[1]: Stopped FHEM PythonBinding.
Dec 29 12:49:17 raspberrypi systemd[1]: Started FHEM PythonBinding.
Dec 29 12:49:20 raspberrypi fhempy[2512]: 2020-12-29 12:49:20,991 - INFO - lib.fhem_pythonbinding: Starting pythonbinding...
Dec 29 12:49:27 raspberrypi fhempy[2512]: 2020-12-29 12:49:27,019 - INFO - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Dec 29 12:51:35 raspberrypi fhempy[2512]: 2020-12-29 12:51:35,905 - ERROR - lib.fhem_pythonbinding: Failed to handle message:
Dec 29 12:51:35 raspberrypi fhempy[2512]: Traceback (most recent call last):
Dec 29 12:51:35 raspberrypi fhempy[2512]: File "/usr/local/lib/python3.7/dist-packages/lib/fhem_pythonbinding.py", line 279, in _onMessage
Dec 29 12:51:35 raspberrypi fhempy[2512]: nmInstance = loadedModuleInstances[hash["NAME"]]
Dec 29 12:51:35 raspberrypi fhempy[2512]: KeyError: 'SmartDisplay'
Dec 29 12:53:46 raspberrypi fhempy[2512]: 2020-12-29 12:53:46,361 - ERROR - lib.fhem_pythonbinding: Failed to handle message:
Dec 29 12:53:46 raspberrypi fhempy[2512]: Traceback (most recent call last):
Dec 29 12:53:46 raspberrypi fhempy[2512]: File "/usr/local/lib/python3.7/dist-packages/lib/fhem_pythonbinding.py", line 279, in _onMessage
Dec 29 12:53:46 raspberrypi fhempy[2512]: nmInstance = loadedModuleInstances[hash["NAME"]]
Dec 29 12:53:46 raspberrypi fhempy[2512]: KeyError: 'SmartDisplay'
Dec 29 12:55:01 raspberrypi fhempy[2512]: 2020-12-29 12:55:01,115 - ERROR - lib.fhem_pythonbinding: Connection closed error
Dec 29 12:55:01 raspberrypi fhempy[2512]: Traceback (most recent call last):
Dec 29 12:55:01 raspberrypi fhempy[2512]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 827, in transfer_data
Dec 29 12:55:01 raspberrypi fhempy[2512]: message = await self.read_message()
Dec 29 12:55:01 raspberrypi fhempy[2512]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 895, in read_message
Dec 29 12:55:01 raspberrypi fhempy[2512]: frame = await self.read_data_frame(max_size=self.max_size)
Dec 29 12:55:01 raspberrypi fhempy[2512]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 971, in read_data_frame
Dec 29 12:55:01 raspberrypi fhempy[2512]: frame = await self.read_frame(max_size)
Dec 29 12:55:01 raspberrypi fhempy[2512]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 1051, in read_frame
Dec 29 12:55:01 raspberrypi fhempy[2512]: extensions=self.extensions,
Dec 29 12:55:01 raspberrypi fhempy[2512]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/framing.py", line 105, in read
Dec 29 12:55:01 raspberrypi fhempy[2512]: data = await reader(2)
Dec 29 12:55:01 raspberrypi fhempy[2512]: File "/usr/lib/python3.7/asyncio/streams.py", line 677, in readexactly
Dec 29 12:55:01 raspberrypi fhempy[2512]: raise IncompleteReadError(incomplete, n)
Dec 29 12:55:01 raspberrypi fhempy[2512]: asyncio.streams.IncompleteReadError: 0 bytes read on a total of 2 expected bytes
Dec 29 12:55:01 raspberrypi fhempy[2512]: The above exception was the direct cause of the following exception:
Dec 29 12:55:01 raspberrypi fhempy[2512]: Traceback (most recent call last):
Dec 29 12:55:01 raspberrypi fhempy[2512]: File "/usr/local/lib/python3.7/dist-packages/lib/fhem_pythonbinding.py", line 42, in pybinding
Dec 29 12:55:01 raspberrypi fhempy[2512]: async for message in websocket:
Dec 29 12:55:01 raspberrypi fhempy[2512]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 439, in __aiter__
Dec 29 12:55:01 raspberrypi fhempy[2512]: yield await self.recv()
Dec 29 12:55:01 raspberrypi fhempy[2512]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 509, in recv
Dec 29 12:55:01 raspberrypi fhempy[2512]: await self.ensure_open()
Dec 29 12:55:01 raspberrypi fhempy[2512]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 803, in ensure_open
Dec 29 12:55:01 raspberrypi fhempy[2512]: raise self.connection_closed_exc()
Dec 29 12:55:01 raspberrypi fhempy[2512]: websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason
Dec 29 12:55:01 raspberrypi fhempy[2512]: 2020-12-29 12:55:01,136 - INFO - lib.fhem_pythonbinding: Restart binding
Dec 29 12:55:01 raspberrypi systemd[1]: fhempy.service: Main process exited, code=exited, status=1/FAILURE
Dec 29 12:55:01 raspberrypi systemd[1]: fhempy.service: Failed with result 'exit-code'.
Dec 29 12:55:01 raspberrypi systemd[1]: fhempy.service: Service RestartSec=100ms expired, scheduling restart.
Dec 29 12:55:01 raspberrypi systemd[1]: fhempy.service: Scheduled restart job, restart counter is at 7.
Dec 29 12:55:01 raspberrypi systemd[1]: Stopped FHEM PythonBinding.
Dec 29 12:55:01 raspberrypi systemd[1]: Started FHEM PythonBinding.
Dec 29 12:55:05 raspberrypi fhempy[2526]: 2020-12-29 12:55:05,464 - INFO - lib.fhem_pythonbinding: Starting pythonbinding...
Dec 29 12:55:25 raspberrypi fhempy[2526]: 2020-12-29 12:55:25,512 - INFO - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Dec 29 13:00:36 raspberrypi fhempy[2526]: 2020-12-29 13:00:36,211 - ERROR - lib.fhem_pythonbinding: Failed to handle message:
Dec 29 13:00:36 raspberrypi fhempy[2526]: Traceback (most recent call last):
Dec 29 13:00:36 raspberrypi fhempy[2526]: File "/usr/local/lib/python3.7/dist-packages/lib/fhem_pythonbinding.py", line 279, in _onMessage
Dec 29 13:00:36 raspberrypi fhempy[2526]: nmInstance = loadedModuleInstances[hash["NAME"]]
Dec 29 13:00:36 raspberrypi fhempy[2526]: KeyError: 'SmartDisplay'
Dec 29 13:00:47 raspberrypi fhempy[2526]: 2020-12-29 13:00:47,992 - ERROR - lib.fhem_pythonbinding: Failed to handle message:
Dec 29 13:00:47 raspberrypi fhempy[2526]: Traceback (most recent call last):
Dec 29 13:00:47 raspberrypi fhempy[2526]: File "/usr/local/lib/python3.7/dist-packages/lib/fhem_pythonbinding.py", line 279, in _onMessage
Dec 29 13:00:47 raspberrypi fhempy[2526]: nmInstance = loadedModuleInstances[hash["NAME"]]
Dec 29 13:00:47 raspberrypi fhempy[2526]: KeyError: 'SmartDisplay'
Dec 29 13:01:03 raspberrypi fhempy[2526]: 2020-12-29 13:01:03,306 - ERROR - lib.fhem_pythonbinding: Failed to handle message:
Dec 29 13:01:03 raspberrypi fhempy[2526]: Traceback (most recent call last):
Dec 29 13:01:03 raspberrypi fhempy[2526]: File "/usr/local/lib/python3.7/dist-packages/lib/fhem_pythonbinding.py", line 279, in _onMessage
Dec 29 13:01:03 raspberrypi fhempy[2526]: nmInstance = loadedModuleInstances[hash["NAME"]]
Dec 29 13:01:03 raspberrypi fhempy[2526]: KeyError: 'SmartDisplay'
Dec 29 13:35:46 raspberrypi systemd[1]: Stopping FHEM PythonBinding...
Dec 29 13:35:46 raspberrypi systemd[1]: fhempy.service: Main process exited, code=killed, status=15/TERM
Dec 29 13:35:46 raspberrypi systemd[1]: fhempy.service: Succeeded.
Dec 29 13:35:46 raspberrypi systemd[1]: Stopped FHEM PythonBinding.
Dec 29 13:35:46 raspberrypi systemd[1]: Started FHEM PythonBinding.
Dec 29 13:35:51 raspberrypi fhempy[5355]: 2020-12-29 13:35:51,322 - INFO - lib.fhem_pythonbinding: Starting pythonbinding...
Dec 29 13:35:57 raspberrypi fhempy[5355]: 2020-12-29 13:35:57,103 - INFO - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Dec 29 13:36:18 raspberrypi fhempy[5355]: 2020-12-29 13:36:18,304 - ERROR - pygatt.backends.gatttool.gatttool: Timed out connecting to E8:65:F3:5F:7F:F7 after 20 seconds.
Dec 29 13:36:43 raspberrypi fhempy[5355]: 2020-12-29 13:36:43,825 - ERROR - pygatt.backends.gatttool.gatttool: Timed out connecting to E8:65:F3:5F:7F:F7 after 20 seconds.
Dec 29 13:37:09 raspberrypi fhempy[5355]: 2020-12-29 13:37:09,347 - ERROR - pygatt.backends.gatttool.gatttool: Timed out connecting to E8:65:F3:5F:7F:F7 after 20 seconds.
Dec 29 13:37:11 raspberrypi fhempy[5355]: 2020-12-29 13:37:11,123 - ERROR - lib.fhem_pythonbinding: Failed to handle message:
Dec 29 13:37:11 raspberrypi fhempy[5355]: Traceback (most recent call last):
Dec 29 13:37:11 raspberrypi fhempy[5355]: File "/usr/local/lib/python3.7/dist-packages/lib/fhem_pythonbinding.py", line 279, in _onMessage
Dec 29 13:37:11 raspberrypi fhempy[5355]: nmInstance = loadedModuleInstances[hash["NAME"]]
Dec 29 13:37:11 raspberrypi fhempy[5355]: KeyError: 'SmartDisplay'
Dec 29 13:37:34 raspberrypi fhempy[5355]: 2020-12-29 13:37:34,917 - ERROR - pygatt.backends.gatttool.gatttool: Timed out connecting to E8:65:F3:5F:7F:F7 after 20 seconds.
Dec 29 13:37:39 raspberrypi fhempy[5355]: 2020-12-29 13:37:39,926 - ERROR - nespresso_ble: Failed to get_info, more than 3 times
Dec 29 13:44:41 raspberrypi systemd[1]: Stopping FHEM PythonBinding...
Dec 29 13:44:41 raspberrypi systemd[1]: fhempy.service: Main process exited, code=killed, status=15/TERM
Dec 29 13:44:41 raspberrypi systemd[1]: fhempy.service: Succeeded.
Dec 29 13:44:41 raspberrypi systemd[1]: Stopped FHEM PythonBinding.
Dec 29 13:44:41 raspberrypi systemd[1]: Started FHEM PythonBinding.
Dec 29 13:44:45 raspberrypi fhempy[5533]: 2020-12-29 13:44:45,882 - INFO - lib.fhem_pythonbinding: Starting pythonbinding...
Dec 29 13:44:53 raspberrypi fhempy[5533]: 2020-12-29 13:44:53,987 - INFO - lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Dec 29 13:45:47 raspberrypi systemd[1]: Stopping FHEM PythonBinding...
Dec 29 13:45:47 raspberrypi systemd[1]: fhempy.service: Main process exited, code=killed, status=15/TERM
Dec 29 13:45:47 raspberrypi systemd[1]: fhempy.service: Succeeded.
Dec 29 13:45:47 raspberrypi systemd[1]: Stopped FHEM PythonBinding.
Dec 29 13:47:07 raspberrypi systemd[1]: Started FHEM PythonBinding.
Dec 29 13:47:09 raspberrypi fhempy[5559]: 2020-12-29 13:47:09,661 - INFO - __main__: Attempting install of zeroconf>=0.28.6
Dec 29 13:48:03 raspberrypi fhempy[5559]: 2020-12-29 13:48:03,430 - INFO - __main__: Successfully installed zeroconf>=0.28.6
Dec 29 13:48:06 raspberrypi fhempy[5559]: 2020-12-29 13:48:06,895 - INFO - fhempy.lib.fhem_pythonbinding: Starting pythonbinding...
Dec 29 13:48:20 raspberrypi fhempy[5559]: 2020-12-29 13:48:20,960 - INFO - fhempy.lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Dec 29 13:48:29 raspberrypi systemd[1]: Stopping FHEM PythonBinding...
Dec 29 13:48:29 raspberrypi systemd[1]: fhempy.service: Main process exited, code=killed, status=15/TERM
Dec 29 13:48:29 raspberrypi systemd[1]: fhempy.service: Succeeded.
Dec 29 13:48:29 raspberrypi systemd[1]: Stopped FHEM PythonBinding.
Dec 29 13:48:29 raspberrypi systemd[1]: Started FHEM PythonBinding.
Dec 29 13:48:33 raspberrypi fhempy[5592]: 2020-12-29 13:48:33,946 - INFO - fhempy.lib.fhem_pythonbinding: Starting pythonbinding...
Dec 29 13:48:41 raspberrypi fhempy[5592]: 2020-12-29 13:48:41,730 - INFO - fhempy.lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Dec 29 13:48:45 raspberrypi fhempy[5592]: 2020-12-29 13:48:45,394 - ERROR - fhempy.lib.fhem_pythonbinding: Failed to handle message:
Dec 29 13:48:45 raspberrypi fhempy[5592]: Traceback (most recent call last):
Dec 29 13:48:45 raspberrypi fhempy[5592]: File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 300, in _onMessage
Dec 29 13:48:45 raspberrypi fhempy[5592]: nmInstance = loadedModuleInstances[hash["NAME"]]
Dec 29 13:48:45 raspberrypi fhempy[5592]: KeyError: 'SmartDisplay'
Dec 29 13:49:04 raspberrypi fhempy[5592]: 2020-12-29 13:49:04,669 - ERROR - pygatt.backends.gatttool.gatttool: Timed out connecting to E8:65:F3:5F:7F:F7 after 20 seconds.
Dec 29 13:49:46 raspberrypi systemd[1]: Stopping FHEM PythonBinding...
Dec 29 13:49:46 raspberrypi systemd[1]: fhempy.service: Main process exited, code=killed, status=15/TERM
Dec 29 13:49:46 raspberrypi systemd[1]: fhempy.service: Succeeded.
Dec 29 13:49:46 raspberrypi systemd[1]: Stopped FHEM PythonBinding.
Dec 29 13:49:46 raspberrypi systemd[1]: Started FHEM PythonBinding.
Dec 29 13:49:50 raspberrypi fhempy[5616]: 2020-12-29 13:49:50,496 - INFO - fhempy.lib.fhem_pythonbinding: Starting pythonbinding...
Dec 29 13:49:57 raspberrypi fhempy[5616]: 2020-12-29 13:49:57,194 - INFO - fhempy.lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Dec 29 13:53:31 raspberrypi fhempy[5616]: 2020-12-29 13:53:31,498 - ERROR - fhempy.lib.fhem_pythonbinding: Failed to handle message:
Dec 29 13:53:31 raspberrypi fhempy[5616]: Traceback (most recent call last):
Dec 29 13:53:31 raspberrypi fhempy[5616]: File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 300, in _onMessage
Dec 29 13:53:31 raspberrypi fhempy[5616]: nmInstance = loadedModuleInstances[hash["NAME"]]
Dec 29 13:53:31 raspberrypi fhempy[5616]: KeyError: 'SmartDisplay'
Dec 29 13:53:55 raspberrypi fhempy[5616]: 2020-12-29 13:53:55,456 - ERROR - fhempy.lib.fhem_pythonbinding: Failed to handle message:
Dec 29 13:53:55 raspberrypi fhempy[5616]: Traceback (most recent call last):
Dec 29 13:53:55 raspberrypi fhempy[5616]: File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 300, in _onMessage
Dec 29 13:53:55 raspberrypi fhempy[5616]: nmInstance = loadedModuleInstances[hash["NAME"]]
Dec 29 13:53:55 raspberrypi fhempy[5616]: KeyError: 'SmartDisplay'
Dec 29 13:54:09 raspberrypi systemd[1]: Stopping FHEM PythonBinding...
Dec 29 13:54:09 raspberrypi systemd[1]: fhempy.service: Main process exited, code=killed, status=15/TERM
Dec 29 13:54:09 raspberrypi systemd[1]: fhempy.service: Succeeded.
Dec 29 13:54:09 raspberrypi systemd[1]: Stopped FHEM PythonBinding.
Dec 29 13:54:09 raspberrypi systemd[1]: Started FHEM PythonBinding.
Dec 29 13:54:13 raspberrypi fhempy[5647]: 2020-12-29 13:54:13,834 - INFO - fhempy.lib.fhem_pythonbinding: Starting pythonbinding...
Dec 29 13:54:21 raspberrypi fhempy[5647]: 2020-12-29 13:54:21,079 - INFO - fhempy.lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Dec 29 13:56:32 raspberrypi systemd[1]: Stopping FHEM PythonBinding...
Dec 29 13:56:32 raspberrypi systemd[1]: fhempy.service: Main process exited, code=killed, status=15/TERM
Dec 29 13:56:32 raspberrypi systemd[1]: fhempy.service: Succeeded.
Dec 29 13:56:32 raspberrypi systemd[1]: Stopped FHEM PythonBinding.
Dec 29 13:56:32 raspberrypi systemd[1]: Started FHEM PythonBinding.
Dec 29 13:56:37 raspberrypi fhempy[5673]: 2020-12-29 13:56:37,122 - INFO - fhempy.lib.fhem_pythonbinding: Starting pythonbinding...
Dec 29 13:56:43 raspberrypi fhempy[5673]: 2020-12-29 13:56:43,114 - INFO - fhempy.lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Dec 29 13:56:47 raspberrypi fhempy[5673]: 2020-12-29 13:56:47,041 - ERROR - fhempy.lib.fhem_pythonbinding: Failed to handle message:
Dec 29 13:56:47 raspberrypi fhempy[5673]: Traceback (most recent call last):
Dec 29 13:56:47 raspberrypi fhempy[5673]: File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 300, in _onMessage
Dec 29 13:56:47 raspberrypi fhempy[5673]: nmInstance = loadedModuleInstances[hash["NAME"]]
Dec 29 13:56:47 raspberrypi fhempy[5673]: KeyError: 'SmartDisplay'
Dec 29 13:57:13 raspberrypi fhempy[5673]: 2020-12-29 13:57:13,571 - ERROR - fhempy.lib.fhem_pythonbinding: Failed to handle message:
Dec 29 13:57:13 raspberrypi fhempy[5673]: Traceback (most recent call last):
Dec 29 13:57:13 raspberrypi fhempy[5673]: File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 300, in _onMessage
Dec 29 13:57:13 raspberrypi fhempy[5673]: nmInstance = loadedModuleInstances[hash["NAME"]]
Dec 29 13:57:13 raspberrypi fhempy[5673]: KeyError: 'SmartDisplay'
Dec 29 13:57:21 raspberrypi systemd[1]: Stopping FHEM PythonBinding...
Dec 29 13:57:21 raspberrypi systemd[1]: fhempy.service: Main process exited, code=killed, status=15/TERM
Dec 29 13:57:21 raspberrypi systemd[1]: fhempy.service: Succeeded.
Dec 29 13:57:21 raspberrypi systemd[1]: Stopped FHEM PythonBinding.
Dec 29 13:57:21 raspberrypi systemd[1]: Started FHEM PythonBinding.
Dec 29 13:57:25 raspberrypi fhempy[5694]: 2020-12-29 13:57:25,488 - INFO - fhempy.lib.fhem_pythonbinding: Starting pythonbinding...
Dec 29 13:57:31 raspberrypi fhempy[5694]: 2020-12-29 13:57:31,445 - INFO - fhempy.lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Dec 29 13:57:31 raspberrypi fhempy[5694]: 2020-12-29 13:57:31,516 - INFO - fhempy.lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Dec 29 13:57:32 raspberrypi fhempy[5694]: 2020-12-29 13:57:32,206 - ERROR - fhempy.lib.fhem_pythonbinding: Connection closed error
Dec 29 13:57:32 raspberrypi fhempy[5694]: Traceback (most recent call last):
Dec 29 13:57:32 raspberrypi fhempy[5694]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 827, in transfer_data
Dec 29 13:57:32 raspberrypi fhempy[5694]: message = await self.read_message()
Dec 29 13:57:32 raspberrypi fhempy[5694]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 895, in read_message
Dec 29 13:57:32 raspberrypi fhempy[5694]: frame = await self.read_data_frame(max_size=self.max_size)
Dec 29 13:57:32 raspberrypi fhempy[5694]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 971, in read_data_frame
Dec 29 13:57:32 raspberrypi fhempy[5694]: frame = await self.read_frame(max_size)
Dec 29 13:57:32 raspberrypi fhempy[5694]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 1051, in read_frame
Dec 29 13:57:32 raspberrypi fhempy[5694]: extensions=self.extensions,
Dec 29 13:57:32 raspberrypi fhempy[5694]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/framing.py", line 105, in read
Dec 29 13:57:32 raspberrypi fhempy[5694]: data = await reader(2)
Dec 29 13:57:32 raspberrypi fhempy[5694]: File "/usr/lib/python3.7/asyncio/streams.py", line 677, in readexactly
Dec 29 13:57:32 raspberrypi fhempy[5694]: raise IncompleteReadError(incomplete, n)
Dec 29 13:57:32 raspberrypi fhempy[5694]: asyncio.streams.IncompleteReadError: 0 bytes read on a total of 2 expected bytes
Dec 29 13:57:32 raspberrypi fhempy[5694]: The above exception was the direct cause of the following exception:
Dec 29 13:57:32 raspberrypi fhempy[5694]: Traceback (most recent call last):
Dec 29 13:57:32 raspberrypi fhempy[5694]: File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 63, in pybinding
Dec 29 13:57:32 raspberrypi fhempy[5694]: async for message in websocket:
Dec 29 13:57:32 raspberrypi fhempy[5694]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 439, in __aiter__
Dec 29 13:57:32 raspberrypi fhempy[5694]: yield await self.recv()
Dec 29 13:57:32 raspberrypi fhempy[5694]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 509, in recv
Dec 29 13:57:32 raspberrypi fhempy[5694]: await self.ensure_open()
Dec 29 13:57:32 raspberrypi fhempy[5694]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 803, in ensure_open
Dec 29 13:57:32 raspberrypi fhempy[5694]: raise self.connection_closed_exc()
Dec 29 13:57:32 raspberrypi fhempy[5694]: websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason
Dec 29 13:57:32 raspberrypi fhempy[5694]: 2020-12-29 13:57:32,243 - INFO - fhempy.lib.fhem_pythonbinding: Restart binding
Dec 29 13:57:32 raspberrypi systemd[1]: fhempy.service: Main process exited, code=exited, status=1/FAILURE
Dec 29 13:57:32 raspberrypi systemd[1]: fhempy.service: Failed with result 'exit-code'.
Dec 29 13:57:32 raspberrypi systemd[1]: fhempy.service: Service RestartSec=100ms expired, scheduling restart.
Dec 29 13:57:32 raspberrypi systemd[1]: fhempy.service: Scheduled restart job, restart counter is at 1.
Dec 29 13:57:32 raspberrypi systemd[1]: Stopped FHEM PythonBinding.
Dec 29 13:57:32 raspberrypi systemd[1]: Started FHEM PythonBinding.
Dec 29 13:57:37 raspberrypi fhempy[5702]: 2020-12-29 13:57:37,281 - INFO - fhempy.lib.fhem_pythonbinding: Starting pythonbinding...
Dec 29 13:57:46 raspberrypi fhempy[5702]: 2020-12-29 13:57:46,083 - INFO - fhempy.lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Dec 29 13:58:07 raspberrypi fhempy[5702]: 2020-12-29 13:58:07,087 - ERROR - pygatt.backends.gatttool.gatttool: Timed out connecting to E8:65:F3:5F:7F:F7 after 20 seconds.
Dec 29 13:58:17 raspberrypi fhempy[5702]: 2020-12-29 13:58:17,507 - ERROR - pygatt.backends.gatttool.gatttool: Timed out connecting to E8:65:F3:5F:7F:F7 after 20 seconds.
Dec 29 13:58:32 raspberrypi fhempy[5702]: 2020-12-29 13:58:32,614 - ERROR - pygatt.backends.gatttool.gatttool: Timed out connecting to E8:65:F3:5F:7F:F7 after 20 seconds.
Dec 29 13:58:46 raspberrypi systemd[1]: Stopping FHEM PythonBinding...
Dec 29 13:58:46 raspberrypi systemd[1]: fhempy.service: Main process exited, code=killed, status=15/TERM
Dec 29 13:58:46 raspberrypi systemd[1]: fhempy.service: Succeeded.
Dec 29 13:58:46 raspberrypi systemd[1]: Stopped FHEM PythonBinding.
Dec 29 14:02:19 raspberrypi systemd[1]: Started FHEM PythonBinding.
Dec 29 14:02:23 raspberrypi fhempy[5749]: 2020-12-29 14:02:23,813 - INFO - fhempy.lib.fhem_pythonbinding: Starting pythonbinding...
Dec 29 14:02:32 raspberrypi fhempy[5749]: 2020-12-29 14:02:32,411 - INFO - fhempy.lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Dec 29 14:02:32 raspberrypi fhempy[5749]: 2020-12-29 14:02:32,484 - INFO - fhempy.lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Dec 29 14:02:33 raspberrypi fhempy[5749]: 2020-12-29 14:02:33,224 - ERROR - fhempy.lib.fhem_pythonbinding: Connection closed error
Dec 29 14:02:33 raspberrypi fhempy[5749]: Traceback (most recent call last):
Dec 29 14:02:33 raspberrypi fhempy[5749]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 827, in transfer_data
Dec 29 14:02:33 raspberrypi fhempy[5749]: message = await self.read_message()
Dec 29 14:02:33 raspberrypi fhempy[5749]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 895, in read_message
Dec 29 14:02:33 raspberrypi fhempy[5749]: frame = await self.read_data_frame(max_size=self.max_size)
Dec 29 14:02:33 raspberrypi fhempy[5749]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 971, in read_data_frame
Dec 29 14:02:33 raspberrypi fhempy[5749]: frame = await self.read_frame(max_size)
Dec 29 14:02:33 raspberrypi fhempy[5749]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 1051, in read_frame
Dec 29 14:02:33 raspberrypi fhempy[5749]: extensions=self.extensions,
Dec 29 14:02:33 raspberrypi fhempy[5749]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/framing.py", line 105, in read
Dec 29 14:02:33 raspberrypi fhempy[5749]: data = await reader(2)
Dec 29 14:02:33 raspberrypi fhempy[5749]: File "/usr/lib/python3.7/asyncio/streams.py", line 677, in readexactly
Dec 29 14:02:33 raspberrypi fhempy[5749]: raise IncompleteReadError(incomplete, n)
Dec 29 14:02:33 raspberrypi fhempy[5749]: asyncio.streams.IncompleteReadError: 0 bytes read on a total of 2 expected bytes
Dec 29 14:02:33 raspberrypi fhempy[5749]: The above exception was the direct cause of the following exception:
Dec 29 14:02:33 raspberrypi fhempy[5749]: Traceback (most recent call last):
Dec 29 14:02:33 raspberrypi fhempy[5749]: File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 63, in pybinding
Dec 29 14:02:33 raspberrypi fhempy[5749]: async for message in websocket:
Dec 29 14:02:33 raspberrypi fhempy[5749]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 439, in __aiter__
Dec 29 14:02:33 raspberrypi fhempy[5749]: yield await self.recv()
Dec 29 14:02:33 raspberrypi fhempy[5749]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 509, in recv
Dec 29 14:02:33 raspberrypi fhempy[5749]: await self.ensure_open()
Dec 29 14:02:33 raspberrypi fhempy[5749]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 803, in ensure_open
Dec 29 14:02:33 raspberrypi fhempy[5749]: raise self.connection_closed_exc()
Dec 29 14:02:33 raspberrypi fhempy[5749]: websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason
Dec 29 14:02:33 raspberrypi fhempy[5749]: 2020-12-29 14:02:33,260 - INFO - fhempy.lib.fhem_pythonbinding: Restart binding
Dec 29 14:02:33 raspberrypi systemd[1]: fhempy.service: Main process exited, code=exited, status=1/FAILURE
Dec 29 14:02:33 raspberrypi systemd[1]: fhempy.service: Failed with result 'exit-code'.
Dec 29 14:02:33 raspberrypi systemd[1]: fhempy.service: Service RestartSec=100ms expired, scheduling restart.
Dec 29 14:02:33 raspberrypi systemd[1]: fhempy.service: Scheduled restart job, restart counter is at 1.
Dec 29 14:02:33 raspberrypi systemd[1]: Stopped FHEM PythonBinding.
Dec 29 14:02:34 raspberrypi systemd[1]: Started FHEM PythonBinding.
Dec 29 14:02:38 raspberrypi fhempy[5759]: 2020-12-29 14:02:38,159 - INFO - fhempy.lib.fhem_pythonbinding: Starting pythonbinding...
Dec 29 14:02:44 raspberrypi fhempy[5759]: 2020-12-29 14:02:44,075 - INFO - fhempy.lib.fhem_pythonbinding: FHEM connection started: 192.168.5.2
Dec 29 14:12:37 raspberrypi fhempy[5759]: 2020-12-29 14:12:37,482 - ERROR - Wohnzimmer.SmartDisplay: Failed to play: ed97364c-b284-4965-b614-f2fe87ef6e50
Dec 29 14:12:37 raspberrypi fhempy[5759]: Traceback (most recent call last):
Dec 29 14:12:37 raspberrypi fhempy[5759]: File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 247, in playDefaultMedia
Dec 29 14:12:37 raspberrypi fhempy[5759]: res = await session.get(uri)
Dec 29 14:12:37 raspberrypi fhempy[5759]: File "/usr/local/lib/python3.7/dist-packages/aiohttp/client.py", line 513, in _request
Dec 29 14:12:37 raspberrypi fhempy[5759]: traces=traces,
Dec 29 14:12:37 raspberrypi fhempy[5759]: File "/usr/local/lib/python3.7/dist-packages/aiohttp/client_reqrep.py", line 305, in __init__
Dec 29 14:12:37 raspberrypi fhempy[5759]: self.update_host(url)
Dec 29 14:12:37 raspberrypi fhempy[5759]: File "/usr/local/lib/python3.7/dist-packages/aiohttp/client_reqrep.py", line 366, in update_host
Dec 29 14:12:37 raspberrypi fhempy[5759]: raise InvalidURL(url)
Dec 29 14:12:37 raspberrypi fhempy[5759]: aiohttp.client_exceptions.InvalidURL: ed97364c-b284-4965-b614-f2fe87ef6e50
Dec 29 14:12:37 raspberrypi fhempy[5759]: 2020-12-29 14:12:37,513 - ERROR - asyncio: Unclosed client session
Dec 29 14:12:37 raspberrypi fhempy[5759]: client_session: <aiohttp.client.ClientSession object at 0xb2037ab0>
Dec 29 14:19:16 raspberrypi fhempy[5759]: 2020-12-29 14:19:16,004 - ERROR - asyncio: Unclosed client session
Dec 29 14:19:16 raspberrypi fhempy[5759]: client_session: <aiohttp.client.ClientSession object at 0xae7ca510>
Dec 29 14:59:27 raspberrypi fhempy[5759]: 2020-12-29 14:59:27,213 - ERROR - pychromecast.socket_client: [Smart Clock(192.168.5.32):8009] Failed to connect to service Lenovo-Smart-Clock-e13250dee7a25d075fa6bae980206816._googlecast._tcp.local., retrying in 5.0s
Dec 29 14:59:32 raspberrypi fhempy[5759]: 2020-12-29 14:59:32,022 - ERROR - pychromecast.socket_client: [Smart Clock(192.168.5.32):8009] Failed to connect to service Lenovo-Smart-Clock-e13250dee7a25d075fa6bae980206816._googlecast._tcp.local., retrying in 5.0s
Dec 29 17:37:10 raspberrypi fhempy[5759]: 2020-12-29 17:37:10,339 - ERROR - asyncio: Unclosed client session
Dec 29 17:37:10 raspberrypi fhempy[5759]: client_session: <aiohttp.client.ClientSession object at 0xb081b550>
Ok, danke! Dann werde ich bei mir nochmals testen warum das nicht geht.
Das hier fällt mir aber noch auf
Dec 29 13:57:13 raspberrypi fhempy[5673]: 2020-12-29 13:57:13,571 - ERROR - fhempy.lib.fhem_pythonbinding: Failed to handle message:
Dec 29 13:57:13 raspberrypi fhempy[5673]: Traceback (most recent call last):
Dec 29 13:57:13 raspberrypi fhempy[5673]: File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 300, in _onMessage
Dec 29 13:57:13 raspberrypi fhempy[5673]: nmInstance = loadedModuleInstances[hash["NAME"]]
Dec 29 13:57:13 raspberrypi fhempy[5673]: KeyError: 'SmartDisplay'
Kommt das nach jedem Start? Ist das dein Smart Display mit googlecast angebunden?
Hi Dominik,
Spotify funktioniert super. Ich habe nur festgestellt, wenn ich den Link als Favorite abspeichere und dann abspielen will, kommt folgende Fehlermeldung.
Failed to execute function Set: Traceback (most recent call last):
File "/opt/fhem/FHEM/bindings/python/fhempy/lib/fhem_pythonbinding.py", line 333, in _onMessage
ret = await asyncio.wait_for(
File "/usr/lib/python3.8/asyncio/tasks.py", line 483, in wait_for
return fut.result()
File "/opt/fhem/FHEM/bindings/python/fhempy/lib/googlecast/googlecast.py", line 145, in Set
return await super().Set(hash, args, argsh)
File "/opt/fhem/FHEM/bindings/python/fhempy/lib/generic.py", line 78, in Set
return await utils.handle_set(self._conf_set, self, hash, args, argsh)
File "/opt/fhem/FHEM/bindings/python/fhempy/lib/utils.py", line 210, in handle_set
return await fct_call(hash, final_params)
File "/opt/fhem/FHEM/bindings/python/fhempy/lib/googlecast/googlecast.py", line 161, in set_playFavorite
url = await fhem.AttrVal(self.hash["NAME"], "favorite_" + id, "")
TypeError: can only concatenate str (not "builtin_function_or_method") to str
Wenn ich mir noch was wünschen darf, "Schuffle" wäre nicht schlecht. ;)
VG Andreas
Ist heute Abend erledigt...
https://github.com/dominikkarall/fhempy/commit/7aa7b26878057f86847296b729c2fc8686598008
Shuffle kann ich einbauen, das wird dann aber im spotify Modul drin sein (https://github.com/dominikkarall/fhempy/blob/master/FHEM/bindings/python/fhempy/lib/spotify/README.md (https://github.com/dominikkarall/fhempy/blob/master/FHEM/bindings/python/fhempy/lib/spotify/README.md)), da Shuffle sonst nicht für die restlichen Cast Applikationen funktioniert. Google bietet da nur pause, play, next, prev, stop als Mediensteuerung.
Alles klar, ich habe das Spotify-Modul eingebunden. Es funktioniert auch, aber es kommt folgende Fehlermeldung:
Failed to execute function FW_detailFn: Traceback (most recent call last): File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 333, in _onMessage ret = await asyncio.wait_for( File "/usr/lib/python3.8/asyncio/tasks.py", line 483, in wait_for return fut.result() File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/spotify/spotify.py", line 107, in FW_detailFn if self._attr_spotify_connect == "on": AttributeError: 'spotify' object has no attribute '_attr_spotify_connect'
VG Andreas
Yep, den Fehler habe ich soeben ein paar Stunden gesucht :)
Ist in den nächsten 30min behoben.
Zitat von: dominik am 29 Dezember 2020, 20:22:58
Das hier fällt mir aber noch auf
Dec 29 13:57:13 raspberrypi fhempy[5673]: 2020-12-29 13:57:13,571 - ERROR - fhempy.lib.fhem_pythonbinding: Failed to handle message:
Dec 29 13:57:13 raspberrypi fhempy[5673]: Traceback (most recent call last):
Dec 29 13:57:13 raspberrypi fhempy[5673]: File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 300, in _onMessage
Dec 29 13:57:13 raspberrypi fhempy[5673]: nmInstance = loadedModuleInstances[hash["NAME"]]
Dec 29 13:57:13 raspberrypi fhempy[5673]: KeyError: 'SmartDisplay'
Kommt das nach jedem Start? Ist das dein Smart Display mit googlecast angebunden?
Ja das ist eines meiner Geräte. Hatte mich verschrieben, "Smart Display" mit Leerzeichen wäre richtig gewesen. Konnte den Fehler nach der Korrektur nicht mehr entdecken.
Was mir aber noch aufgefallen ist: obwohl ich das über das remote Binding eingerichtet habe, wird bei mir ein "fhempy_peer_127_0_1_1" Device angelegt. Die IP macht auch nicht wirklich Sinn oder? Wenn dann wäre es ja 127.0.0.1?
Hm...kannst du mal prüfen ob fhempy mit --local Argument gestartet wurde
$ ps -efa|grep fhempy
fhem 30570 538 7 20:25 ? 00:00:27 python3 FHEM/bindings/python/bin/fhempy --local
Ein 127.0.1.1 Device sollte nie angelegt werden. 127.0.1.1 ist scheinbar eine Adresse die sich auf den Hostname bei Debian bezieht, kannte ich auch noch nicht.
fhem_peer_... wird automatisch angelegt, wenn im Netzwerk ein fhempy erkannt wird, bei lokaler Nutzung wird es durch das --local Argument deaktiviert.
Hallo Dominik,
PlayFavorite geht wieder, aber Spotify will nicht mehr so richtig. Manchmal geht's, manchmal nicht. Ich kann noch nicht nachvollziehen, warum es manchmal funktioniert. Anbei Mal der Auszug aus dem Log. Kannst du damit was anfangen?
2020-12-31 11:42:12,082 - ERROR - castdevice_Kueche: Failed to play spotify track
Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/googlecast/googlecast.py", line 302, in playSpotify
await utils.run_blocking(functools.partial(sp.launch_app))
File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 28, in run_blocking
return await asyncio.get_event_loop().run_in_executor(pool, function)
File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/opt/fhem/.local/lib/python3.8/site-packages/pychromecast/controllers/spotify.py", line 88, in launch_app
raise LaunchError(
pychromecast.error.LaunchError: Timeout when waiting for status response from Spotify app
VG Andreas
Probier mal einen neue sp_dc und sp_key zu setzen. Diese Meldung kommt immer, wenn Spotify am Device nicht fertig gestartet werden konnte weil User Authentifizierung fehlgeschlagen ist.
Das hat funktioniert. Hast du das Problem schon öfter gehabt?
Ich habe gesehen, dass du Shuffle schon mit eingebunden hast. Funktioniert es schon? Wenn ja, was für einen Wert muss ich übergeben? Im Log steht "2020-12-31 14:31:22,390 - WARNING - spotipy.client: state must be a boolean" mit true habe ich es schon probiert - ohne Erfolg.
VG Andreas
Nein, noch nicht. Ich habe schon einen Weg gefunden, wie man die 2 Werte automatisch über Username/Passwort jederzeit aktualisieren kann :) Falls das Problem also regelmäßig auftritt, dann kommt das weiter rauf auf meiner Prio Liste.
Shuffle folgt heute noch ein Update, dann funktioniert es auch.
:) sehr schön.
Ich wünsche noch einen guten Rutsch ins neue Jahr. 8) Heute ist Sylvester. ;)
VG Andreas
Zitat von: dominik am 30 Dezember 2020, 20:33:53
Hm...kannst du mal prüfen ob fhempy mit --local Argument gestartet wurde
$ ps -efa|grep fhempy
fhem 30570 538 7 20:25 ? 00:00:27 python3 FHEM/bindings/python/bin/fhempy --local
Ein 127.0.1.1 Device sollte nie angelegt werden. 127.0.1.1 ist scheinbar eine Adresse die sich auf den Hostname bei Debian bezieht, kannte ich auch noch nicht.
fhem_peer_... wird automatisch angelegt, wenn im Netzwerk ein fhempy erkannt wird, bei lokaler Nutzung wird es durch das --local Argument deaktiviert.
root@fhem:/opt/fhem# ps -efa|grep fhempy
root 4149 4015 0 15:09 pts/1 00:00:00 grep fhempy
so sollte es auf dem Server auch sein, auf dem fhem läuft - oder? Also fhem läuft bei mir unter Docker auf meinem Synology NAS und die Remote Instanz bekanntlich auf dem raspi zero. Könnte das Verhalten evtl. daher kommen, dass ich zuerst versucht hatte zusätzlich eine lokale Instanz laufen zu lassen? (hatte nicht funktioniert, vermutlich wegen Docker...)
Hier die Ausgabe des im anderen Thread genannten Befehls:
Collecting spotify_token
Using cached https://files.pythonhosted.org/packages/d6/f5/9bf0e6664d6afa27e7329c949707d9c3ce143b1154895d0f49b836952bf4/spotify_token-1.0.0-py2.py3-none-any.whl
Collecting lxml>=4.4.1 (from spotify_token)
Using cached https://files.pythonhosted.org/packages/db/f7/43fecb94d66959c1e23aa53d6161231dca0e93ec500224cf31b3c4073e37/lxml-4.6.2.tar.gz
Requirement already satisfied: requests>=2.0 in /usr/lib/python3/dist-packages (from spotify_token) (2.21.0)
Requirement already satisfied: beautifulsoup4>=4.8.1 in ./.local/lib/python3.7/site-packages (from spotify_token) (4.9.3)
Requirement already satisfied: soupsieve>1.2; python_version >= "3.0" in ./.local/lib/python3.7/site-packages (from beautifulsoup4>=4.8.1->spotify_token) (2.1)
Building wheels for collected packages: lxml
Running setup.py bdist_wheel for lxml ... /^canceled
Operation cancelled by user
Wurde mit Code 1 beendet, was einen Fehler bedeutet. Leider gibt es keine vernünftige Dokumentation was welcher Fehlercode genau bedeutet.
Zitat von: ReneH87 am 31 Dezember 2020, 15:13:11
root@fhem:/opt/fhem# ps -efa|grep fhempy
root 4149 4015 0 15:09 pts/1 00:00:00 grep fhempy
so sollte es auf dem Server auch sein, auf dem fhem läuft - oder? Also fhem läuft bei mir unter Docker auf meinem Synology NAS und die Remote Instanz bekanntlich auf dem raspi zero. Könnte das Verhalten evtl. daher kommen, dass ich zuerst versucht hatte zusätzlich eine lokale Instanz laufen zu lassen? (hatte nicht funktioniert, vermutlich wegen Docker...)
Den Fehler mit 127.0.1.1 konnte ich finden und ist behoben. Sollte nicht mehr vorkommen, das 127.0.1.1 Device kannst du löschen.
Zitat von: Superposchi am 02 Januar 2021, 13:04:10
Hier die Ausgabe des im anderen Thread genannten Befehls:
Collecting spotify_token
Using cached https://files.pythonhosted.org/packages/d6/f5/9bf0e6664d6afa27e7329c949707d9c3ce143b1154895d0f49b836952bf4/spotify_token-1.0.0-py2.py3-none-any.whl
Collecting lxml>=4.4.1 (from spotify_token)
Using cached https://files.pythonhosted.org/packages/db/f7/43fecb94d66959c1e23aa53d6161231dca0e93ec500224cf31b3c4073e37/lxml-4.6.2.tar.gz
Requirement already satisfied: requests>=2.0 in /usr/lib/python3/dist-packages (from spotify_token) (2.21.0)
Requirement already satisfied: beautifulsoup4>=4.8.1 in ./.local/lib/python3.7/site-packages (from spotify_token) (4.9.3)
Requirement already satisfied: soupsieve>1.2; python_version >= "3.0" in ./.local/lib/python3.7/site-packages (from beautifulsoup4>=4.8.1->spotify_token) (2.1)
Building wheels for collected packages: lxml
Running setup.py bdist_wheel for lxml ... /^canceled
Operation cancelled by user
Wurde mit Code 1 beendet, was einen Fehler bedeutet. Leider gibt es keine vernünftige Dokumentation was welcher Fehlercode genau bedeutet.
Hast du Strg-C gedrückt?
ZitatRunning setup.py bdist_wheel for lxml ... /^canceled
Operation cancelled by user
Hier steht durch den User abgebrochen.
Habe ich auch gesehen, aber ich habe nichts abgebrochen.
Es hörte irgendwann 2 Zeilen vor dem geposteten Ende auf und nach ca. 10 Minuten kamen die letzten beiden Zeilen mit der Fehlermeldung Code 1. Doch es wurde nicht von mir abgebrochen.
Wenn ich den Text richtig verstehe kann Fhem das Googlecgemacht.st-Module nicht laden, die Frage ist aber warum und wieso. habe ja nur ein Update
Hab den Befehl gerade extra noch mal abgesetzt. Diesmal passierte gar nichts, hab extra 5 Minuten gewartet, keine einzige Rückmeldung.
Warum es nicht geht, habe ich dir hier schon beantwortet:
https://forum.fhem.de/index.php/topic,117289.msg1116837.html#msg1116837
Probier bitte auch
sudo apt-get install python3-lxml python3-dev
und danach nochmals
sudo -u fhem pip3 install spotify_token
Der erste Befehl brachte folgende Rückmeldung:
python3-bs4 python3-html5lib python3-lxml python3-soupsieve python3-webencodings
0 upgraded, 5 newly installed, 0 to remove and 27 not upgraded.
Need to get 1.306 kB of archives.
After this operation, 4.356 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://cdn-aws.deb.debian.org/debian buster/main armhf python3-soupsieve all 1.8+dfsg-1 [27,6 kB]
Get:2 https://cdn-aws.deb.debian.org/debian buster/main armhf python3-bs4 all 4.7.1-1 [94,1 kB]
Get:3 https://cdn-aws.deb.debian.org/debian buster/main armhf python3-webencodings all 0.5.1-1 [10,9 kB]
Get:4 https://cdn-aws.deb.debian.org/debian buster/main armhf python3-html5lib all 1.0.1-1 [89,5 kB]
Get:5 https://cdn-aws.deb.debian.org/debian-security buster/updates/main armhf python3-lxml armhf 4.3.2-1+deb10u2 [1.084 kB]
Fetched 1.306 kB in 2s (793 kB/s)
Selecting previously unselected package python3-soupsieve.
(Reading database ... 41772 files and directories currently installed.)
Preparing to unpack .../python3-soupsieve_1.8+dfsg-1_all.deb ...
Unpacking python3-soupsieve (1.8+dfsg-1) ...
Selecting previously unselected package python3-bs4.
Preparing to unpack .../python3-bs4_4.7.1-1_all.deb ...
Unpacking python3-bs4 (4.7.1-1) ...
Selecting previously unselected package python3-webencodings.
Preparing to unpack .../python3-webencodings_0.5.1-1_all.deb ...
Unpacking python3-webencodings (0.5.1-1) ...
Selecting previously unselected package python3-html5lib.
Preparing to unpack .../python3-html5lib_1.0.1-1_all.deb ...
Unpacking python3-html5lib (1.0.1-1) ...
Selecting previously unselected package python3-lxml:armhf.
Preparing to unpack .../python3-lxml_4.3.2-1+deb10u2_armhf.deb ...
Unpacking python3-lxml:armhf (4.3.2-1+deb10u2) ...
Setting up python3-webencodings (0.5.1-1) ...
Setting up python3-html5lib (1.0.1-1) ...
Setting up python3-lxml:armhf (4.3.2-1+deb10u2) ...
Setting up python3-soupsieve (1.8+dfsg-1) ...
Setting up python3-bs4 (4.7.1-1) ...
Der zweite Befehl läuft bis zu:
Collecting spotify_token
Using cached https://files.pythonhosted.org/packages/d6/f5/9bf0e6664d6afa27e7329c949707d9c3ce143b1154895d0f49b836952bf4/spotify_token-1.0.0-py2.py3-none-any.whl
Requirement already satisfied: requests>=2.0 in /usr/lib/python3/dist-packages (from spotify_token) (2.21.0)
Collecting lxml>=4.4.1 (from spotify_token)
Using cached https://files.pythonhosted.org/packages/db/f7/43fecb94d66959c1e23aa53d6161231dca0e93ec500224cf31b3c4073e37/lxml-4.6.2.tar.gz
Requirement already satisfied: beautifulsoup4>=4.8.1 in ./.local/lib/python3.7/site-packages (from spotify_token) (4.9.3)
Requirement already satisfied: soupsieve>1.2; python_version >= "3.0" in ./.local/lib/python3.7/site-packages (from beautifulsoup4>=4.8.1->spotify_token) (2.1)
Building wheels for collected packages: lxml
Running setup.py bdist_wheel for lxml ...
und bleibt dann quasi stehen. Genau wie beim letzten Mal, als dann irgendwann der angebliche Abbruch durch den User kam.
Nach mehreren Mnuten kommt dann plötzlich noch folgendes hinzu (angefangen bei der Zeile die oben die letzte war):
[code] Running setup.py bdist_wheel for lxml ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-0dl1osex/lxml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(cod
e, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-lysgoufd --python-tag cp37:
Building lxml version 4.6.2.
Building without Cython.
Building against libxml2 2.9.4 and libxslt 1.1.32
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/lxml
copying src/lxml/sax.py -> build/lib.linux-armv7l-3.7/lxml
copying src/lxml/_elementpath.py -> build/lib.linux-armv7l-3.7/lxml
copying src/lxml/builder.py -> build/lib.linux-armv7l-3.7/lxml
copying src/lxml/ElementInclude.py -> build/lib.linux-armv7l-3.7/lxml
copying src/lxml/__init__.py -> build/lib.linux-armv7l-3.7/lxml
copying src/lxml/usedoctest.py -> build/lib.linux-armv7l-3.7/lxml
copying src/lxml/cssselect.py -> build/lib.linux-armv7l-3.7/lxml
copying src/lxml/pyclasslookup.py -> build/lib.linux-armv7l-3.7/lxml
copying src/lxml/doctestcompare.py -> build/lib.linux-armv7l-3.7/lxml
creating build/lib.linux-armv7l-3.7/lxml/includes
copying src/lxml/includes/__init__.py -> build/lib.linux-armv7l-3.7/lxml/includes
creating build/lib.linux-armv7l-3.7/lxml/html
copying src/lxml/html/diff.py -> build/lib.linux-armv7l-3.7/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.linux-armv7l-3.7/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.linux-armv7l-3.7/lxml/html
copying src/lxml/html/builder.py -> build/lib.linux-armv7l-3.7/lxml/html
copying src/lxml/html/__init__.py -> build/lib.linux-armv7l-3.7/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.linux-armv7l-3.7/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.linux-armv7l-3.7/lxml/html
copying src/lxml/html/clean.py -> build/lib.linux-armv7l-3.7/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.linux-armv7l-3.7/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.linux-armv7l-3.7/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.linux-armv7l-3.7/lxml/html
copying src/lxml/html/formfill.py -> build/lib.linux-armv7l-3.7/lxml/html
copying src/lxml/html/defs.py -> build/lib.linux-armv7l-3.7/lxml/html
creating build/lib.linux-armv7l-3.7/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py -> build/lib.linux-armv7l-3.7/lxml/isoschematron
copying src/lxml/etree.h -> build/lib.linux-armv7l-3.7/lxml
copying src/lxml/etree_api.h -> build/lib.linux-armv7l-3.7/lxml
copying src/lxml/lxml.etree.h -> build/lib.linux-armv7l-3.7/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.linux-armv7l-3.7/lxml
copying src/lxml/includes/etreepublic.pxd -> build/lib.linux-armv7l-3.7/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.linux-armv7l-3.7/lxml/includes
copying src/lxml/includes/xmlerror.pxd -> build/lib.linux-armv7l-3.7/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.linux-armv7l-3.7/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.linux-armv7l-3.7/lxml/includes
copying src/lxml/includes/__init__.pxd -> build/lib.linux-armv7l-3.7/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.linux-armv7l-3.7/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.linux-armv7l-3.7/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.linux-armv7l-3.7/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.linux-armv7l-3.7/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.linux-armv7l-3.7/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.linux-armv7l-3.7/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.linux-armv7l-3.7/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.linux-armv7l-3.7/lxml/includes
copying src/lxml/includes/c14n.pxd -> build/lib.linux-armv7l-3.7/lxml/includes
copying src/lxml/includes/schematron.pxd -> build/lib.linux-armv7l-3.7/lxml/includes
Auch wenn es mehrere Minute dort steht, einfach nicht angreifen. Wenn es 1h steht, dann Bescheid geben.
Ich glaube dein Log ist nicht komplett, oder endet es aktuell mit
copying src/lxml/includes/schematron.pxd -> build/lib.linux-armv7l-3.7/lxml/includes
?
Sorry, das ist einfach Scheiße, ich muss den Befehl in einem Terminalfenster des Containers starten was dann wiederum ein neues Brwoserfenster öffnet wo die Ausführung mitgeloggt wird. Leider kann man dort nur Seitenweise kopieren und auch nur mit Rechtsclick und kopieren (strg-C funktioniert komischerweise nicht). Hab die Seite leider schon zu gemacht. Aberdas Log endete wieder mit einem angeblichen User-Abbruch obwohl ich wieder nichts weiter gemacht habe als die Anwendung zu wechseln.
Werde die Befehle noch mal ausführen und dann noch mal schauen.
So, hab den Befehl noch mal ausgeführt und nach gut einer halben Stunde mit insgesamt 3 Pausen wo sich minutenlang nichts getan hat, hat er den Befehl mit Code 1 abgebrochen. Hier die letzten Zeilen des Protokolls:
copying src/lxml/includes/lxml-version.h -> build/lib.linux-armv7l-3.7/lxml/includes
creating build/lib.linux-armv7l-3.7/lxml/isoschematron/resources
creating build/lib.linux-armv7l-3.7/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.linux-armv7l-3.7/lxml/isoschematron/resources/rng
creating build/lib.linux-armv7l-3.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.linux-armv7l-3.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.linux-armv7l-3.7/lxml/isoschematron/resources/xsl
creating build/lib.linux-armv7l-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.linux-armv7l-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.linux-armv7l-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.linux-armv7l-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.linux-armv7l-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.linux-armv7l-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.linux-armv7l-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.linux-armv7l-3.7
creating build/temp.linux-armv7l-3.7/src
creating build/temp.linux-armv7l-3.7/src/lxml
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -I/usr/include/libxml2 -Isrc -Isrc/lxml/incl
udes -I/usr/include/python3.7m -c src/lxml/etree.c -o build/temp.linux-armv7l-3.7/src/lxml/etree.o -w
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.7/src/lxml/etree.
o -lxslt -lexslt -lxml2 -lrt -lz -lm -o build/lib.linux-armv7l-3.7/lxml/etree.cpython-37m-arm-linux-gnueabihf.so
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-lc23qcqh/lxml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))"
install --record /tmp/pip-record-ssjpq1kw/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-lc23qcqh/lxml/
sudo apt install lib32z1-dev
und danach nochmals...
Hier das Protokoll des Befehls. Wurde mit Code100 beendet. Scheint wohl nicht geklappt zu haben, also bevor ich den anderen Befehl wiederhole und noch mal eine halbe Stunde vergeht, klören wir besser erst mal das, oder?
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package lib32z1-dev
Was kann das denn bedeuten wenn er das Paket nicht finden kann?
sudo apt-get install zlib1g-dev
probier mal das
Das ist erfolgreich durchgelaufen.
Soll ich jetzt den anderen noch mal probieren?
Ja, bitte
Hab die Befehle noch mal durch, jetzt hat auch die Installation des Spotify_Tokens offenbar geklappt.
"sudo -u fhem pip3 install spotify_token":
Collecting spotify_token
Using cached https://files.pythonhosted.org/packages/d6/f5/9bf0e6664d6afa27e7329c949707d9c3ce143b1154895d0f49b836952bf4/spotify_token-1.0.0-py2.py3-none-any.whl
Requirement already satisfied: beautifulsoup4>=4.8.1 in ./.local/lib/python3.7/site-packages (from spotify_token) (4.9.3)
Collecting lxml>=4.4.1 (from spotify_token)
Using cached https://files.pythonhosted.org/packages/db/f7/43fecb94d66959c1e23aa53d6161231dca0e93ec500224cf31b3c4073e37/lxml-4.6.2.tar.gz
Requirement already satisfied: requests>=2.0 in /usr/lib/python3/dist-packages (from spotify_token) (2.21.0)
Requirement already satisfied: soupsieve>1.2; python_version >= "3.0" in ./.local/lib/python3.7/site-packages (from beautifulsoup4>=4.8.1->spotify_token) (2.1)
Building wheels for collected packages: lxml
Running setup.py bdist_wheel for lxml ... done
Stored in directory: /opt/fhem/.cache/pip/wheels/a0/0c/b2/b0e301d586f899fdabf46a03ee9d037d2c6df30bc9efa57bae
Successfully built lxml
Installing collected packages: lxml, spotify-token
Successfully installed lxml-4.6.2 spotify-token-1.0.0
Leider hat das an der Fehlermeldung der Googlecast-Devices nicht geändert. Die zeigen immer noch "Module failed to load: googlecast Maybe you need to update fhempy on this or remote peer. Stacktrace: Traceback (most recent call last): File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 241, in _onMessage module_object = importlib.import_module(pymodule) File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 28, in import spotify_token as st ModuleNotFoundError: No module named 'spotify_token'" an.
Hier das List zum Device:
Internals:
.AttrList .*
.FhemMetaInternals 1
DEF googlecast "Schlafzimmerlautsprecher"
FUUID 5fba773c-f33f-793a-5007-c9bf0d1a378d6c54
FVERSION 10_PythonModule.pm:0.182830/2019-01-16
IODev local_pybinding
NAME Schlafzimmerlautsprecher
NR 92
PYTHONTYPE googlecast
STATE Module failed to load: googlecast
Maybe you need to update fhempy on this or remote peer.
Stacktrace:
Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 241, in _onMessage
module_object = importlib.import_module(pymodule)
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 28, in <module>
import spotify_token as st
ModuleNotFoundError: No module named 'spotify_token'
TYPE PythonModule
.attraggr:
.attreocr:
.*
.attrminint:
.attrtocr:
.*
READINGS:
2021-01-01 15:31:16 app_id
2020-11-22 20:55:53 cast_type cast
2021-01-01 02:10:52 connection connected
2021-01-01 15:31:16 display_name
2020-12-22 19:38:03 icon_url
2020-11-22 20:55:53 ignore_cec 0
2020-11-22 20:55:53 is_active_input 0
2020-11-22 20:55:53 is_stand_by 1
2020-12-12 18:50:03 mediaAlbum
2020-12-12 18:50:03 mediaArtist
2020-12-28 21:35:08 mediaContentId
2020-12-28 21:35:08 mediaContentType
2020-12-28 21:30:08 mediaCurrentPosPercent
2020-12-28 21:30:08 mediaCurrentPosition
2020-12-28 21:35:08 mediaDuration
2020-12-12 18:50:03 mediaImageHeight
2020-12-12 18:50:03 mediaImageUrl
2020-12-12 18:50:03 mediaImageWidth
2020-12-28 21:35:08 mediaPlayerState UNKNOWN
2020-12-28 21:35:08 mediaStreamType UNKNOWN
2020-12-12 18:50:03 mediaTitle
2020-11-22 20:55:53 model_name Google Nest Mini
2020-11-22 20:55:53 mute 0
2020-11-22 20:55:53 name Schlafzimmerlautsprecher
2021-01-01 15:31:16 session_id
2021-01-02 12:44:39 state Module failed to load: googlecast
Maybe you need to update fhempy on this or remote peer.
Stacktrace:
Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 241, in _onMessage
module_object = importlib.import_module(pymodule)
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 28, in <module>
import spotify_token as st
ModuleNotFoundError: No module named 'spotify_token'
2021-01-01 15:31:16 status_text
2020-12-28 21:35:08 transport_id
2020-11-22 20:55:53 uuid dbef8319-c89c-e735-11f6-ce7777b133b2
2021-01-01 15:26:28 volume 26
args:
Schlafzimmerlautsprecher
PythonModule
googlecast
Schlafzimmerlautsprecher
argsh:
Attributes:
IODev local_pybinding
event-on-change-reading .*
group Audiosystem
icon audio_loudness
room Devices,GAssistant
timestamp-on-change-reading .*
userattr favorite_1 favorite_2 favorite_3 favorite_4 favorite_5
verbose 2
muss der Server erst neugestartet werden oder ist der Fehler immer noch vorhanden?
Probier Mal einen Neustart
Hab ich, jetzt werden die Google-Nest wieder als online angezeigt. Danke soweit schon mal.
Jetzt geht es nur noch darum, meine Spotify Playlists vom Fhem-Server ohne öffnen der Webseite direkt auf einem der Nest abspielen zu können, das muss aber nicht mehr heute Abend sein. Denke mal du willst auch noch etwas Ruhe haben, oder?
Zwei Fragen am Rande, die sich mir noch stellen:
1) Woher kam das Problem jetzt genau? Hab ja nur ein Update gemacht
2) Muss ich dieses Prozedere jetzt nach jedem Update machen damit es läuft?
Das war nur bei diesem Update, wegen neuer Abhängigkeit spotify_token.
Jetzt musst du spotify_sp_dc und spotify_sp_key setzen. Dazu einfach die Attribute auswählen, dann siehst du in der Beschreibung was zu tun ist.
sp_dc hab ich gefunden und eingetragen, aber sp_key finde ich auf der Webseite nirgendwo aufgelistet.
Ich arbeite aber nur mit Edge und nicht mit Chrome. Kann das einen Unterschied machen?
Sollten im Edge denke ich auch beide verwendet werden.
Ansonsten starte einfach mal kurz Chrome und übernimm die Werte von dort. Du kannst ihn danach auch deinstallieren.
Hab Chrome installiert, leider ist da die aufgerufene Seite komplett leer.
Nachdem ich die Desktop-App über Chrome runtergeladen habe und mich dort mal angemeldet habe waren die Daten auf der Seite angezeigt, tatsächlich auch mit dem sp_key.
Was kommt als nächstes?
Beide Werte eintragen...danach kannst mit play ... (Spotify Link) abspielen.
Ne ging leider nicht sonst hätte ich nicht gefragt.
Musste erst wieder neustarten, davor war der Spotify-User noch nicht korrekt hinterlegt.
Erst nach dem Neustart stimmte der Eintrag und es ging mit Play und die url der Playlist oder einem vorher bestückten Favoriten.
Ok, Neustart sollte eigentlich nicht notwendig sein, aber gut, jetzt klappt es ja.
Danke für die ganze Hilfe hätte das alleine nie hinbekommen.
Also ich muss doch noch mal nachfragen.
Gestern Abend hat es funktioniert, ich konnte mit Play eine url von Spotify abspielen oder auch die url an einen Favoriteneintrag hängen und den mit playFavorite abspielen.
Heute reagiert zwar der Google-Nest noch, doch von Spotify wird nichts mehr ausgegeben.
Es sollte doch auch Musik wiedergegeben werden wenn weder eine Spotify Webseite, noch die Desktop-App geöffnet sind, oder nicht? Aber selbst wenn ich eins offen habe, kommt keine Musik.
Ich hänge mal das List des Wohnzimmer-Nest an:
Internals:
.AttrList favorite_1 favorite_2 favorite_3 favorite_4 favorite_5 spotify_sp_dc spotify_sp_key IODev event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading
.FhemMetaInternals 1
CASTNAME Wohnzimmerlautsprecher
DEF googlecast Wohnzimmerlautsprecher
FUUID 5fbac9e2-f33f-793a-66ea-c20857e12b91fab7
FVERSION 10_PythonModule.pm:0.182830/2019-01-16
IODev local_pybinding
NAME Wohnzimmerlautsprecher
NR 94
PYTHONTYPE googlecast
STATE online
TYPE PythonModule
.attraggr:
.attreocr:
.*
.attrminint:
.attrtocr:
.*
READINGS:
2021-01-03 10:41:53 app_id CC32E753
2020-11-22 21:28:19 cast_type cast
2021-01-03 10:33:56 connection connected
2021-01-03 10:41:53 display_name Spotify
2021-01-03 10:41:53 icon_url https://lh3.googleusercontent.com/HOX9yqNu6y87Chb1lHYqhKVTQW43oFAFFe2ojx94yCLh0yMzgygTrM0RweAexApRWqq6UahgrWYimVgK
2020-11-22 21:28:19 ignore_cec 0
2020-11-22 21:28:19 is_active_input 0
2020-11-22 21:28:19 is_stand_by 1
2021-01-03 00:25:28 mediaAlbum
2021-01-03 00:25:28 mediaArtist
2021-01-03 10:39:02 mediaContentId
2021-01-03 10:39:02 mediaContentType
2021-01-03 10:34:02 mediaCurrentPosPercent
2021-01-03 10:34:02 mediaCurrentPosition
2021-01-03 10:39:02 mediaDuration
2021-01-03 00:25:28 mediaImageHeight
2021-01-03 00:25:28 mediaImageUrl
2021-01-03 00:25:28 mediaImageWidth
2021-01-03 10:39:02 mediaPlayerState UNKNOWN
2021-01-03 10:39:02 mediaStreamType UNKNOWN
2021-01-03 00:25:28 mediaTitle
2020-11-22 21:28:19 model_name Google Nest Mini
2020-11-22 21:28:19 mute 0
2020-11-22 21:28:19 name Wohnzimmerlautsprecher
2021-01-03 10:41:53 session_id 38606f3a-f54c-431a-872a-1f68fdf38424
2021-01-02 21:59:01 spotify_user xxx
2021-01-03 10:34:02 state online
2021-01-03 10:41:53 status_text Spotify
2021-01-03 10:41:53 transport_id 38606f3a-f54c-431a-872a-1f68fdf38424
2020-11-22 21:28:19 uuid ec715a28-897e-dc95-3c87-e44ecb1699c0
2021-01-03 10:42:13 volume 25
args:
Wohnzimmerlautsprecher
PythonModule
googlecast
Wohnzimmerlautsprecher
argsh:
Attributes:
IODev local_pybinding
event-on-change-reading .*
favorite_1 xxx
favorite_2 xxx
group Audiosystem
icon audio_loudness
room Devices,GAssistant
spotify_sp_dc xxx
spotify_sp_key xxx
timestamp-on-change-reading .*
userattr favorite_1 favorite_2 favorite_3 favorite_4 favorite_5
Wenn du noch was anderes brauchst wo du nachsehen kann, sag kurz Bescheid.
Versuch Mal die Attribute neu zu setzen. Hast du in der Zwischenzeit Spotify Web Player benutzt? Es könnte sein, dass bei der Nutzung die alten Cookies deaktiviert werden.
Achtung: Bitte die Attribute hier nicht posten, damit kann man sich einloggen!!
Ja, ich habe Spotify auch über den WebPlayer benutzt und ja sp_dc war tatsächlich anders, sp_key aber identisch.
Habe trotzdem beide Attribute neu gesetzt und auch einen Neustart durchgeführt. Leider ohne Erfolg. Der Nest reagiert (man hört ein kurzes Ping), aber dann kommt keine Music.
Danke für den Hinweis mit den Attributen, hab sie im Post vorher gexxxt. Hatte ich vergessen.
Versuch mal alle Spotify Web anmelden auszuloggen, dann nur auf einem Browser Login und die Attribute kopieren. Dann Web Player im Browser schließen und nicht mehr öffnen.
Im Moment weiß ich noch nicht wie das bei Spotify abläuft und warum ein Token der 1 Jahr halten sollte vorher deaktiviert wird. Im schlimmsten Fall muss ich noch einen anderen Weg implementieren. Gefunden hätte ich schon was.
Ich hatte gestern zusätzlich zur WebPlayer auch die DesktopApp in Gebrauch, soll ich mich da sicherheitshalber auch ausloggen?
Das würde dann eine manuelle BEdienung von Spotify ausschließen, was ja nicht so gut wäre.
Also ich hab mich jetzt sowohl im WebPlayer als auch in der Desktop-App abgemeldet, mich dann im WebPlayer neu angemeldet.
Beide Attribute (Diesmal waren sie gleich) neu gesetzt und den Server neu gestartet.
Brachte leider alles keinen Erfolg. Es wird keine Musik abgespielt obwohl der Nest reagiert.
Die beiden Cookies sind eigentlich niemals gleich, schon alleine deren Länge ist komplett unterschiedlich.
Probier es bitte nochmals. Hier noch eine Anleitung mit etwas komplexere Vorgehensweise, führt aber zum gleichen Ergebnis:
https://github.com/enriquegh/spotify-webplayer-token#usage
Mit gleich war nicht der Vergleich zwischen den beiden Attributen gemeint, sondern der Vergleich mit den jeweiligen Attributen und ihren jeweiligen Vorgängerwerten.
Ehe ich diese Anleitung abarbeite (muss sowieso mal sehen ob ich das überhaupt hinbekomme) ist mir aufgefallen, dass ich vom WebPlayer nicht auf die Google-Nest-Geräte streamen kann. Gestern Abend wurde mir beide Google-Nest-Geräte unter "Mit Gerät verbinden" angezeigt, heute nicht mehr. Wenn ich das richtig verstanden habe, basiert das doch auf spotify_connect, oder?
Jein, die Google Nest/Home Geräte funktionieren so:
- Sie werden als Cast Device (nicht Spotify Connect!) in der Spotify App angezeigt, wenn das nicht passiert, dann vielleicht mal das Gerät neu starten
- Wenn Spotify eine Verbindung zum Cast Device aufbaut, startet es zuerst die Spotify App und schickt dann die Authentifizierungsdaten an das Cast Device. Damit weiß Spotify, dass es eine Spotify App auf einem Cast Device gibt die es ansprechen kann.
- Ab diesen Zeitpunkt läuft alles über das Spotify Connect Protokoll
Also mal ganz von Vorne, ich versteh nämlich nur noch Bahnhof.
Das was ich sagen kann ist folgendes: In der Desktop-App (die ich mal testweise gestartet habe) werden die Google-Nest beide angezeigt, in der WebPlayer Version wird keins angezeigt. In beiden Playern wird ein WebPlayer (Microsoft Edge) angezeigt. Dieser war beim WebPlayer ursprüglich auch als wiedergabendes Gerät aktiviert.
Aus der Desktop-App kann ich auf die Nest-Lautsprecher streamen oder wahlweise jedes andere angezeigte Gerät. Lediglich bei Auswahl des WebPlayers (Microsoft Edge) verstummt die Wiedergabe. In der Desktop-App wird komischerweise der WebPlayer (Microsoft Edge) auch doppelt angezeigt
Es esxistiert also keine Verbindung mit dem WebPlayer. Ich denke also, dass das Problem ein generelles ist und gar nicht an den GoogleCast-Devices in Fhem liegt.
Wäre es sinnvoll mal komplett von vorne anzufangen, also das Spotify-Device zu prüfen?
So wie es bei dir angezeigt wird, ist es richtig. Im Webplayer werden die Nest Devices erst angezeigt wenn die Spotify App darauf läuft, vorher nicht.
Auf den Nest läuft keine App oder Software, da lässt sich nichts installieren.
Oder meinst du, die Wiedergabe?
Ich verzweifele gerade.
Das Spotify Ding da drauf ist eine App oder wahrscheinlich eher PWA.
Ehrlich gesagt ist es mir inzwischen egal, ich werd die Sache wohl aufgeben, das bringt doch nix bei dem Chaos.
Was mir als Laie jedenfalls klar ist bei deinen Ausführungen: Wenn im WebPlayer die Nest-Lautsprecher nicht existieren, kann Fhem - was auf den WebPlayer zugreift - auch nicht auf diese Geräte streamen. Punkt.
Also für mich als Laie ist es ein Kommunikationsproblem zwischen Fhem, dem WebPlayer und den Nest-Lautsprechern.
Die Frage ist wie man dem auf die Spur kommen kann.
Also ganz ehrlich, ich verstehe es nicht. Ich mache gerade alles dicht um aufzuräumen und schalte im Spotify-Device zufäälig mit toggle um und es wird wieder was auf dem Notebook wiedergegeben. Also gleich das Googlecast-Device ausprobiert und siehe da, auch das funktioniert plötzlich.
Keihne Ahnung was und warum da passiert ist, aber das ganze ist irgendwie nicht sauber.
Trotzdem verstehe ich nicht wie Fhem auf einen der Nest-Lautsprecher streamen kann wenn der Lautsprecher im WebPlayer nicht zur Auswahl steht.
FHEM startet die Spotify App am Nest und dann kann es darauf streamen.
Warum dann nicht eben schon, hab ja nichts verändert, nur aufgeräumt.
Egal, es funktioniert, sollten wieder Probleme auftreten muss ich mich halt wieder melden.
Tja, schneller als gedacht, da bin ich wieder.
Ein bischen rumgespielt und schon geht es wieder nicht mehr.
Da muss irgendeine Konstellation sein, die Fhem blockiert und ich denke, das es in unser beider Interesse ist diese zu finden, oder?
Poste mal das Log wenn es nicht geht und bitte um detaillierte Fehlerbeschreibung. "Geht nicht" ist leider etwas wenig ;)
Welches Log? Fhem Log oder das Log eines speziellen Device?
Geht nicht habe ich schon mehrfach beschrieben, der Nest reagiert - merkt man daran, dass er kurz aufpingt - doch dann kommt eben keine Wiedergabe. Das Device bleibt stur auf Online stehen, da ändert sich nichts.
Es muss was mit dem SpotifyMusic-Device zu tun haben, also mit dem Fhempy - spotify, denn nach dem ich da vorhin auf toggle geklickt hatte ging es ja kurzzeitig.
Welche Devices brauche ich denn eigentlich zwingend für die Wiedergabe von Spotify auf den google-nest? Vielleicht kann man ja ein oder mehrere Devices löschen und so Fehlerquellen eliminieren.
Die Spotify Devices haben damit nichts zu tun.
Was das jeweilige Modul macht, hatte ich die schon irgendwo gepostet.
/opt/fhem/log/PythonBinding*.log
Hier mal das fhem-Log, vielleicht hilft das ja schon mal weiter.
Zusätzlich das PhytonBinding.log
Also können die beiden Spotify Devices gelöscht werden, sowohl das was auf das ursprüngliche Spotify-Modul zugreift als auch das Device, das auf das Phyton-Spotify-Modul zugreift.
Hallo Zusammen,
ich habe bei mir das gleiche Verhalten wie bei Superposchi festgestellt. Beim 1. Mal hat das erneute setzen der beiden Attribute "spotify_sp_dc" und "spotify_sp_key" noch funktioniert - leider bringt das jetzt auch nichts mehr. Im Log kommen immer folgende Einträge:
2021-01-03 15:23:23,497 - ERROR - castdevice_Kueche: Failed to play spotify track
Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/googlecast/googlecast.py", line 302, in playSpotify
await utils.run_blocking(functools.partial(sp.launch_app))
File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 29, in run_blocking
return await asyncio.get_event_loop().run_in_executor(pool, function)
File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/opt/fhem/.local/lib/python3.8/site-packages/pychromecast/controllers/spotify.py", line 88, in launch_app
raise LaunchError(
pychromecast.error.LaunchError: Timeout when waiting for status response from Spotify app
VG Andreas
Was mir inzwischen aufgefallen ist, ich musste im Spotify-Device, also das, was per fehmpy-spotify zugreift, die Autorisierung und den Authcode neu setzen, das war alles weg, werde jetzt mal Fhem neustarten (musste ich ja bei Erstellung auch) und dann mal sehen.
Also nachdem der Authcode im Spotify-Device gesetzt ist schreint es zu funktionieren. Da hat das Gedächtnis wohl ein Loch und die Authorisierung wird vergessen.
Keine Ahnung ob das die Lösung ist. Ist mir nur beim Probieren aufgefallen.
Könnt ihr bitte Mal probieren die Cookies im Inkognito Browser Mode rauskopieren und dann Browser schließen?
Woran hast du gemerkt, dass die fhempy spotify Authorization weg war? Kein User Reading mehr gehabt?
Im Reading login erscheint "Connect Spotify account (new window/tab)" wo erneut zugestimmt werden muss und dann ein autocode erscheint.
Das mit dem Incognito Mode kriege ich nicht auf die Reihe. Erstens weiß ich nicht was du meinst und zweitens versuche ich den eben zu vermeiden wo es nur gehz
Das Reading "Connect Spotify account" erscheint IMMER. Damit man bei einer bestehenden Verbindung auch auf einen anderen Account switchen kann.
Inkognito Mode: https://support.google.com/chrome/answer/95464?co=GENIE.Platform%3DDesktop&hl=de
Damit werden keinerlei Daten innerhalb des Browsers zum Surfverhalten gespeichert.
Ich weiß was der Inkognitomode ist, aber hab ihn bisher nie verwendet, insofern versteh ich den Sinn nicht.
Es läuft wieder. Ich habe die Cookies aus dem Inkognito-Browser kopiert, wie vorgeschlagen. Mal sehen wie lange es funktioniert. Ich berichte...
Wie können im Incognito-Brwoser Coockies aufgezeichnet werden, das wiederspricht doch der Funktion der Geheimhaltung? Deshalb mein Kommentar mir Verstehe ich nicht.
Aber hauptsache es funktioniert und bin gespannt wie lange.
Werde es spätestens morgen auch noch mal probieren.
Sorry, aber wenn du es nicht verstehst, dann Google doch einfach mal:
https://support.google.com/chrome/answer/7440301
@a_quadrat
Also Spotify ist überall geschlossen. Dann habe ich Spotify im Incognito-Browserfenster geöffnet und mich dort angemeldet, Cookies akzeptiert.
Wie und wo hast du die Cookies aus dem Inkognito-Browser genommen? Ist das der gleiche Seitenaufruf wie er in Fhem angezeigt wird oder handelt es sich dabei um eine andere Adresse?
Ja, ist der gleiche Aufruf. Es war auch eine neue Zeichenfolge.
Also wenn ich den gleichen Aufruf benutze, macht er mir das immer in einem normalen Browserfenster auf und es sind die gleichen Einträge wie bereits hinterlegt.
Du hast einfach "chrome://settings/cookies/detail?site=spotify.com" im Chrome Inkognito-Browserfenster eingegeben?
Du kannst auf der Seite im Chrome Browser auf das Schloss Symbol neben der URL drücken und dort die Cookies auswählen.
Gefunden, sind auch neue Werte. Habe diese in die Devices entsprechend eingetragen.
Leider funktioniert es noch nicht. Starte jetzt mal den Server neu, das musste ja schon öfters mal sein.
Melde mich wenn er wieder online ist.
So, jetzt ist das Chaos wieder perfekt und die Nest-Devices zeigen im STATE eine Fehlermeldung an:
Failed to execute function Define: Traceback (most recent call last): File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 335, in _onMessage fct_timeout, File "/usr/lib/python3.7/asyncio/tasks.py", line 416, in wait_for return fut.result() File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 112, in Define await super().Define(hash, args, argsh) File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py", line 86, in Define await utils.handle_define_attr(self._conf_attr, self, hash) File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 108, in handle_define_attr await fct_call(hash) File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 255, in set_attr_spotify_cookie data = st.start_session(self._attr_spotify_sp_dc, self._attr_spotify_sp_key) File "/opt/fhem/.local/lib/python3.7/site-packages/spotify_token.py", line 19, in start_session headers=headers, cookies=cookies) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get return self.request('GET', url, **kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request resp = self.send(prep, **send_kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send history = [resp for resp in gen] if allow_redirects else [] File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in history = [resp for resp in gen] if allow_redirects else [] File "/usr/lib/python3/dist-packages/requests/sessions.py", line 165, in resolve_redirects raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects, response=resp) requests.exceptions.TooManyRedirects: Exceeded 30 redirects.
Ist zwar was anderes als Gestern, aber irgendwie habe ich gerade das Gefühl ich drehe mich im Kreise.
Bei mir funktioniert es auch nicht mehr, ich bin ebenfalls ratlos...
Bekommst du die selbe Fehlermeldung?
Ich glaube ich habe da was gefunden. Probier bitte mal einfach den gleichen sp_dc und sp_key mit attr zu bestätigen (also im FHEM Web attr drücken). Danach nochmals play probieren.
Hat nichts geändert.
Hatte vorher auch schon die ganzen Befehle bezüglich Spotify-Token Installation durchlaufen lassen.
Bei mir steht immer noch die Fehlermeldung
Interessant ist vielleicht, dass er bei der Lautsprechergruppe (in der Home App angelegt) folgendes bei STATE anzeigt:"PythonBinding timeout"
Also, ich glaube aktuell geht der sp_dc und key jeweils nur 1h.
Die Aktualisierung erfolgt NUR beim Setzen eines der Attribute. Wenn es also jemand am Laufen hat und danach nicht mehr geht, bitte Mal nur eines der Attribute nochmals auf den gleichen Wert setzen, sonst nichts ändern.
Ich baue noch ein, dass es nach 1h aktualisiert wird.
Ich habe gerade ncoh mal ein Update vom Fhem gemacht. Dabei ist mir folgendes Aufgefallen:
2021.01.03 22:21:49.169 1 : ws:127.0.0.1:15733 disconnected, waiting to reappear (local_pybinding)
2021.01.03 22:21:49.174 1 : BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Connection refused (111)
2021.01.03 22:22:01.887 1 : ws:127.0.0.1:15733 reappeared (local_pybinding)
2021.01.03 22:22:05.259 1 : BindingsIo: ERROR: Timeout while waiting for function to finish (id: 1131209)
2021.01.03 22:22:07.774 1 : BindingsIo: ERROR: Timeout while waiting for function to finish (id: 87973160)
Hat das vielleicht irgendwas mit meinen Problemen zutun?
Die Fehlermeldung hängt ja offenbar nicht mit der Attribut-Problematik zusammen, oder?
Das passt, beim Update wir fhempy aktualisiert und neu gestartet, daher ist es kurz nicht erreichbar.
Ja, hat auch nichts gebracht, die Fehlermeldung ist nach wie vor bei beiden NEst Devices vorhanden, lediglich die Gruppe zeigt "PythonBinding timeout" an.
Bei den echten Google-Nest-Devices steht wie oben schon mal geschrieben:
Failed to execute function Define: Traceback (most recent call last): File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 335, in _onMessage fct_timeout, File "/usr/lib/python3.7/asyncio/tasks.py", line 416, in wait_for return fut.result() File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 112, in Define await super().Define(hash, args, argsh) File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py", line 86, in Define await utils.handle_define_attr(self._conf_attr, self, hash) File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 108, in handle_define_attr await fct_call(hash) File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 255, in set_attr_spotify_cookie data = st.start_session(self._attr_spotify_sp_dc, self._attr_spotify_sp_key) File "/opt/fhem/.local/lib/python3.7/site-packages/spotify_token.py", line 19, in start_session headers=headers, cookies=cookies) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get return self.request('GET', url, **kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request resp = self.send(prep, **send_kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send history = [resp for resp in gen] if allow_redirects else [] File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in history = [resp for resp in gen] if allow_redirects else [] File "/usr/lib/python3/dist-packages/requests/sessions.py", line 165, in resolve_redirects raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects, response=resp) requests.exceptions.TooManyRedirects: Exceeded 30 redirects.
So, habe noch etwas rumgespielt und probiert.
Wie ich schon mal geschrieben hatte, habe ich die Googlecast-Devices manuell angelegt, Fhem hat aber auch die gleichen Geräte automatisch angelegt.
Jetzt habe ich mal die SP_DC und SP_Key Daten von den manuell erstellten auf die automatisch erstellten Devices übertragen und siehe da, nach einem Server-Neustart stand statt wie bisher "online" plötzlich "PythonBinding timeout" im State.
Vielleicht hilft das ja als Information ein Stück weiter.
Bitte erkläre was du gemacht hast, dann kann ich besser weiter helfen. "rumgespielt" kann ich nur raten.
Ich vermute du hast discover_mdns eingesetzt? Warum legst du dann nochmals das gleiche Device manuell an?
In welchen Device stand danach "PythonBinding timeout"? Was steht im PythonBinding Log?
Also, ich habe damals die Devices manuell angelegt, weil ich nicht mitbekommen habe, dass Fhem automatisch welche angelegt hatte. Nicht mehr und nicht weniger.
Was ich unter "rumgespielt" gemacht habe, steht im Post vorher. Ich habe lediglich die Werte der beiden Attribute SP_DC und SP_Key aus den manuelle angelegten Devices (die ja rumzicken) kopiert und entsprechend in den automatisch erzeigten eingefügt. Die Automatisch erzeugten standen vorher alls auf online, nach dem Einfügen der Attribute und einem Fhem-Neustart stand das Device bei dem ich die Attribute testweise übertragen hatte eben auf "PythonBinding timeout".
Mehr habe ich nicht gemacht und genauer kann ich es nicht erklären.
Anbei noch die Logs von PythonBinding von gestern und heute und das List des automatisch erstellten Devices:
Internals:
.AttrList favorite_1 favorite_2 favorite_3 favorite_4 favorite_5 spotify_sp_dc spotify_sp_key IODev event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading
.FhemMetaInternals 1
DEF googlecast 'Wohnzimmerlautsprecher'
FUUID 5fcd0e72-f33f-793a-526c-c0aeb5c75a9ed69f
FVERSION 10_PythonModule.pm:0.182830/2019-01-16
IODev local_pybinding
NAME Google_Nest_Mini_Wohnzimmerlautsprecher
NR 134
PYTHONTYPE googlecast
STATE PythonBinding timeout
TYPE PythonModule
.attraggr:
.attrminint:
READINGS:
2021-01-04 09:12:58 app_id
2020-12-06 20:02:49 cast_type cast
2021-01-04 12:15:20 connection connected
2021-01-04 09:12:58 display_name
2021-01-04 09:07:57 icon_url
2020-12-06 20:02:49 ignore_cec 0
2020-12-06 20:02:50 is_active_input 0
2020-12-06 20:02:50 is_stand_by 1
2021-01-03 16:52:52 mediaAlbum
2021-01-03 16:52:52 mediaArtist
2021-01-04 09:12:58 mediaContentId
2021-01-04 09:12:58 mediaContentType
2021-01-03 19:30:22 mediaCurrentPosPercent
2021-01-03 19:30:22 mediaCurrentPosition
2021-01-04 09:12:58 mediaDuration
2021-01-03 16:52:52 mediaImageHeight
2021-01-03 16:52:52 mediaImageUrl
2021-01-03 16:52:52 mediaImageWidth
2021-01-04 09:12:58 mediaPlayerState UNKNOWN
2021-01-04 09:12:58 mediaStreamType UNKNOWN
2021-01-03 16:52:52 mediaTitle
2020-12-06 20:02:49 model_name Google Nest Mini
2020-12-06 20:02:50 mute 0
2020-12-06 20:02:49 name Wohnzimmerlautsprecher
2021-01-04 09:12:58 session_id
2021-01-04 12:15:16 spotify_user attr spotify_sp... required
2021-01-04 12:20:28 state PythonBinding timeout
2021-01-04 09:12:58 status_text
2021-01-04 09:12:58 transport_id
2020-12-06 20:02:49 uuid ec715a28-897e-dc95-3c87-e44ecb1699c0
2021-01-03 19:30:16 volume 65
args:
Google_Nest_Mini_Wohnzimmerlautsprecher
PythonModule
googlecast
Wohnzimmerlautsprecher
argsh:
Attributes:
IODev local_pybinding
favorite_2 https://open.spotify.com/playlist/4MwJ4E9RlPUii28R0t5dDL
favorite_3 https://open.spotify.com/playlist/2RxtpesK6vFl9g4q9YQdwD
icon scene_scene
spotify_sp_dc xxx
spotify_sp_key xxx
userattr favorite_1 favorite_2 favorite_3 favorite_4 favorite_5
"discover_mdns" sagt mir gar nichts.
Hier noch die Fehlermeldung die im manuell erzeigten Device steht:
Failed to execute function Define: Traceback (most recent call last): File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 335, in _onMessage fct_timeout, File "/usr/lib/python3.7/asyncio/tasks.py", line 416, in wait_for return fut.result() File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 112, in Define await super().Define(hash, args, argsh) File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py", line 86, in Define await utils.handle_define_attr(self._conf_attr, self, hash) File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 108, in handle_define_attr await fct_call(hash) File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 255, in set_attr_spotify_cookie data = st.start_session(self._attr_spotify_sp_dc, self._attr_spotify_sp_key) File "/opt/fhem/.local/lib/python3.7/site-packages/spotify_token.py", line 19, in start_session headers=headers, cookies=cookies) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get return self.request('GET', url, **kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request resp = self.send(prep, **send_kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send history = [resp for resp in gen] if allow_redirects else [] File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in history = [resp for resp in gen] if allow_redirects else [] File "/usr/lib/python3/dist-packages/requests/sessions.py", line 165, in resolve_redirects raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects, response=resp) requests.exceptions.TooManyRedirects: Exceeded 30 redirects.
Das List dazu:
Internals:
.AttrList favorite_1 favorite_2 favorite_3 favorite_4 favorite_5 spotify_sp_dc spotify_sp_key IODev event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading
.FhemMetaInternals 1
.triggerUsed 0
DEF googlecast Wohnzimmerlautsprecher
FUUID 5fbac9e2-f33f-793a-66ea-c20857e12b91fab7
FVERSION 10_PythonModule.pm:0.182830/2019-01-16
IODev local_pybinding
NAME Wohnzimmerlautsprecher
NR 94
PYTHONTYPE googlecast
STATE Failed to execute function Define: Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 335, in _onMessage
fct_timeout,
File "/usr/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
return fut.result()
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 112, in Define
await super().Define(hash, args, argsh)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py", line 86, in Define
await utils.handle_define_attr(self._conf_attr, self, hash)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 108, in handle_define_attr
await fct_call(hash)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 255, in set_attr_spotify_cookie
data = st.start_session(self._attr_spotify_sp_dc, self._attr_spotify_sp_key)
File "/opt/fhem/.local/lib/python3.7/site-packages/spotify_token.py", line 19, in start_session
headers=headers, cookies=cookies)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
history = [resp for resp in gen] if allow_redirects else []
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
history = [resp for resp in gen] if allow_redirects else []
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 165, in resolve_redirects
raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects, response=resp)
requests.exceptions.TooManyRedirects: Exceeded 30 redirects.
TYPE PythonModule
.attraggr:
.attrminint:
READINGS:
2021-01-03 20:02:45 app_id CC32E753
2020-11-22 21:28:19 cast_type cast
2021-01-03 20:12:01 connection connected
2021-01-03 20:02:45 display_name Spotify
2021-01-03 20:02:45 icon_url https://lh3.googleusercontent.com/HOX9yqNu6y87Chb1lHYqhKVTQW43oFAFFe2ojx94yCLh0yMzgygTrM0RweAexApRWqq6UahgrWYimVgK
2020-11-22 21:28:19 ignore_cec 0
2020-11-22 21:28:19 is_active_input 0
2020-11-22 21:28:19 is_stand_by 1
2021-01-03 16:52:52 mediaAlbum
2021-01-03 16:52:52 mediaArtist
2021-01-03 19:35:22 mediaContentId
2021-01-03 19:35:22 mediaContentType
2021-01-03 19:30:22 mediaCurrentPosPercent
2021-01-03 19:30:22 mediaCurrentPosition
2021-01-03 19:35:22 mediaDuration
2021-01-03 16:52:52 mediaImageHeight
2021-01-03 16:52:52 mediaImageUrl
2021-01-03 16:52:52 mediaImageWidth
2021-01-03 19:35:22 mediaPlayerState UNKNOWN
2021-01-03 19:35:22 mediaStreamType UNKNOWN
2021-01-03 16:52:52 mediaTitle
2020-11-22 21:28:19 model_name Google Nest Mini
2020-11-22 21:28:19 mute 0
2020-11-22 21:28:19 name Wohnzimmerlautsprecher
2021-01-03 20:02:45 session_id 650da717-4f0b-49e3-b89a-4ff289dc5c1c
2021-01-03 20:11:54 spotify_user Marko Poschen (marko.poschen@gmx.de)
2021-01-04 12:20:35 state Failed to execute function Define: Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 335, in _onMessage
fct_timeout,
File "/usr/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
return fut.result()
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 112, in Define
await super().Define(hash, args, argsh)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py", line 86, in Define
await utils.handle_define_attr(self._conf_attr, self, hash)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 108, in handle_define_attr
await fct_call(hash)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 255, in set_attr_spotify_cookie
data = st.start_session(self._attr_spotify_sp_dc, self._attr_spotify_sp_key)
File "/opt/fhem/.local/lib/python3.7/site-packages/spotify_token.py", line 19, in start_session
headers=headers, cookies=cookies)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
history = [resp for resp in gen] if allow_redirects else []
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
history = [resp for resp in gen] if allow_redirects else []
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 165, in resolve_redirects
raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects, response=resp)
requests.exceptions.TooManyRedirects: Exceeded 30 redirects.
2021-01-03 20:02:45 status_text Spotify
2021-01-03 20:02:45 transport_id 650da717-4f0b-49e3-b89a-4ff289dc5c1c
2020-11-22 21:28:19 uuid ec715a28-897e-dc95-3c87-e44ecb1699c0
2021-01-03 19:30:00 volume 65
args:
Wohnzimmerlautsprecher
PythonModule
googlecast
Wohnzimmerlautsprecher
argsh:
Attributes:
IODev local_pybinding
favorite_1 https://open.spotify.com/playlist/4MwJ4E9RlPUii28R0t5dDL
favorite_2 https://open.spotify.com/playlist/2RxtpesK6vFl9g4q9YQdwD
group Audiosystem
icon audio_loudness
room Devices,GAssistant
spotify_sp_dc xxx
spotify_sp_key xxx
userattr favorite_1 favorite_2 favorite_3 favorite_4 favorite_5
verbose 3
Achtung, bitte sp_dc und sp_key nicht posten.
Ok, ich glaube zuerst müssen wir aufräumen. Mir ist kein Modul außer discover_mdns bekannt welches Googlecast Devices anlegt. Irgendwas ist da in deiner FHEM Installation was da Devices anlegt, bitte das mal ausfindig machen und löschen damit wir von einem sauberen Stand weiter arbeiten können.
//Edit: Ich bring heute oder morgen noch ein Update, eventuell sind die Probleme mit Spotify dann auch behoben. Bitte aber dennoch mal aufräumen, da es sonst zu unübersichtlich in der Fehleranalyse wird.
So, ich habe jetzt alle Devices gelöscht, das SpotifyMusic (Original Spotify-Modul), das Spotify (Fhempy-spotify), die drei manuellen Lautsprecher (fhempy-googlecast), die automatisch angelegten Lautsprecher (fhempy-googlecast) und ein discover_mdns-Device.
Das heißt ich muss morgen alles von Grund auf neu erstellen.
So...Fix ist online. Spotify sollte nun dauerhaft funktionieren.
Bitte um Test. Version: 0.1.15
Zitat von: dominik am 02 Januar 2021, 15:49:20
Den Fehler mit 127.0.1.1 konnte ich finden und ist behoben. Sollte nicht mehr vorkommen, das 127.0.1.1 Device kannst du löschen.
klappt, kann den Fehler nicht mehr entdecken :)
Nach dem Update ist mir das noch im abesetzen raspi aufgefallen im Log (funktioniert trotzdem alles, nur zur Info):
Jan 05 16:04:28 raspberrypi fhempy[3746]: 2021-01-05 16:04:28,844 - ERROR - fhempy.lib.fhem: Timeout - NO RESPONSE for command: CommandDefine(undef, "fhempy_peer_192_168_5_7 BindingsIo 192.168.5.7:15733 Python")
Jan 05 16:04:28 raspberrypi fhempy[3746]: 2021-01-05 16:04:28,853 - ERROR - fhempy.lib.fhem: Timeout - NO RESPONSE for command: CommandDefine(undef, "fhempy_peer_192_168_5_7 BindingsIo 192.168.5.7:15733 Python")
Jan 05 16:04:28 raspberrypi fhempy[3746]: 2021-01-05 16:04:28,858 - ERROR - fhempy.lib.fhem: Timeout - NO RESPONSE for command: setDevAttrList('Badezimmer.GoogleHomeMini', 'favorite_1 favorite_2 favorite_3 favorite_4 favorite_5 spotify_sp_dc spotify_sp_key IODev '.$readingFnAttributes)
Jan 05 16:04:28 raspberrypi fhempy[3746]: 2021-01-05 16:04:28,872 - ERROR - fhempy.lib.fhem: Timeout - NO RESPONSE for command: setDevAttrList('Schlafzimmer.LenovoSmartClock', 'favorite_1 favorite_2 favorite_3 favorite_4 favorite_5 spotify_sp_dc spotify_sp_key IODev '.$readingFnAttributes)
Jan 05 16:04:28 raspberrypi fhempy[3746]: 2021-01-05 16:04:28,878 - ERROR - fhempy.lib.fhem: Timeout - NO RESPONSE for command: setDevAttrList('Wohnzimmer.SmartDisplay', 'favorite_1 favorite_2 favorite_3 favorite_4 favorite_5 spotify_sp_dc spotify_sp_key IODev '.$readingFnAttributes)
War das kurz nach dem Update vor dem Neustart? Oder nach dem Neustart?
Das war nach einem Update und anschließenden Neustart von fhempy auf dem remote raspi. fhem hatte sich verbunden, dann ist fhempy auf dem remote raspi abgeschmiert, hat autom. neu gestartet und dann kamen die Meldungen. Hier mal das gesamte Log:
Jan 05 16:03:20 raspberrypi systemd[1]: Started FHEM PythonBinding.
Jan 05 16:03:25 raspberrypi fhempy[3733]: 2021-01-05 16:03:25,963 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
Jan 05 16:03:26 raspberrypi fhempy[3733]: 2021-01-05 16:03:26,199 - INFO - fhempy.lib.fhem_pythonbinding: Advertise fhempy on local network
Jan 05 16:03:27 raspberrypi fhempy[3733]: 2021-01-05 16:03:27,113 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
Jan 05 16:03:35 raspberrypi fhempy[3733]: 2021-01-05 16:03:35,840 - INFO - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 192.168.5.2
Jan 05 16:03:36 raspberrypi fhempy[3733]: 2021-01-05 16:03:36,006 - INFO - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 192.168.5.2
Jan 05 16:03:47 raspberrypi fhempy[3733]: 2021-01-05 16:03:47,268 - ERROR - fhempy.lib.fhem: Connection closed, can't send message.
Jan 05 16:03:47 raspberrypi fhempy[3733]: 2021-01-05 16:03:47,292 - ERROR - fhempy.lib.fhem_pythonbinding: Connection closed error
Jan 05 16:03:47 raspberrypi fhempy[3733]: Traceback (most recent call last):
Jan 05 16:03:47 raspberrypi fhempy[3733]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 827, in transfer_data
Jan 05 16:03:47 raspberrypi fhempy[3733]: message = await self.read_message()
Jan 05 16:03:47 raspberrypi fhempy[3733]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 895, in read_message
Jan 05 16:03:47 raspberrypi fhempy[3733]: frame = await self.read_data_frame(max_size=self.max_size)
Jan 05 16:03:47 raspberrypi fhempy[3733]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 971, in read_data_frame
Jan 05 16:03:47 raspberrypi fhempy[3733]: frame = await self.read_frame(max_size)
Jan 05 16:03:47 raspberrypi fhempy[3733]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 1051, in read_frame
Jan 05 16:03:47 raspberrypi fhempy[3733]: extensions=self.extensions,
Jan 05 16:03:47 raspberrypi fhempy[3733]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/framing.py", line 105, in read
Jan 05 16:03:47 raspberrypi fhempy[3733]: data = await reader(2)
Jan 05 16:03:47 raspberrypi fhempy[3733]: File "/usr/lib/python3.7/asyncio/streams.py", line 679, in readexactly
Jan 05 16:03:47 raspberrypi fhempy[3733]: await self._wait_for_data('readexactly')
Jan 05 16:03:47 raspberrypi fhempy[3733]: File "/usr/lib/python3.7/asyncio/streams.py", line 473, in _wait_for_data
Jan 05 16:03:47 raspberrypi fhempy[3733]: await self._waiter
Jan 05 16:03:47 raspberrypi fhempy[3733]: concurrent.futures._base.CancelledError
Jan 05 16:03:47 raspberrypi fhempy[3733]: The above exception was the direct cause of the following exception:
Jan 05 16:03:47 raspberrypi fhempy[3733]: Traceback (most recent call last):
Jan 05 16:03:47 raspberrypi fhempy[3733]: File "/home/pi/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 63, in pybinding
Jan 05 16:03:47 raspberrypi fhempy[3733]: async for message in websocket:
Jan 05 16:03:47 raspberrypi fhempy[3733]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 439, in __aiter__
Jan 05 16:03:47 raspberrypi fhempy[3733]: yield await self.recv()
Jan 05 16:03:47 raspberrypi fhempy[3733]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 509, in recv
Jan 05 16:03:47 raspberrypi fhempy[3733]: await self.ensure_open()
Jan 05 16:03:47 raspberrypi fhempy[3733]: File "/home/pi/.local/lib/python3.7/site-packages/websockets/protocol.py", line 803, in ensure_open
Jan 05 16:03:47 raspberrypi fhempy[3733]: raise self.connection_closed_exc()
Jan 05 16:03:47 raspberrypi fhempy[3733]: websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason
Jan 05 16:03:47 raspberrypi fhempy[3733]: 2021-01-05 16:03:47,323 - INFO - fhempy.lib.fhem_pythonbinding: Restart binding
Jan 05 16:03:48 raspberrypi systemd[1]: fhempy.service: Main process exited, code=exited, status=1/FAILURE
Jan 05 16:03:48 raspberrypi systemd[1]: fhempy.service: Failed with result 'exit-code'.
Jan 05 16:03:48 raspberrypi systemd[1]: fhempy.service: Service RestartSec=100ms expired, scheduling restart.
Jan 05 16:03:48 raspberrypi systemd[1]: fhempy.service: Scheduled restart job, restart counter is at 1.
Jan 05 16:03:48 raspberrypi systemd[1]: Stopped FHEM PythonBinding.
Jan 05 16:03:48 raspberrypi systemd[1]: Started FHEM PythonBinding.
Jan 05 16:03:53 raspberrypi fhempy[3746]: 2021-01-05 16:03:53,192 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
Jan 05 16:03:53 raspberrypi fhempy[3746]: 2021-01-05 16:03:53,346 - INFO - fhempy.lib.fhem_pythonbinding: Advertise fhempy on local network
Jan 05 16:03:54 raspberrypi fhempy[3746]: 2021-01-05 16:03:54,244 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
Jan 05 16:04:02 raspberrypi fhempy[3746]: 2021-01-05 16:04:02,266 - INFO - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 192.168.5.2
Jan 05 16:04:02 raspberrypi fhempy[3746]: 2021-01-05 16:04:02,415 - INFO - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 192.168.5.2
Jan 05 16:04:28 raspberrypi fhempy[3746]: 2021-01-05 16:04:28,844 - ERROR - fhempy.lib.fhem: Timeout - NO RESPONSE for command: CommandDefine(undef, "fhempy_peer_192_168_5_7 BindingsIo 192.168.5.7:15733 Python")
Jan 05 16:04:28 raspberrypi fhempy[3746]: 2021-01-05 16:04:28,853 - ERROR - fhempy.lib.fhem: Timeout - NO RESPONSE for command: CommandDefine(undef, "fhempy_peer_192_168_5_7 BindingsIo 192.168.5.7:15733 Python")
Jan 05 16:04:28 raspberrypi fhempy[3746]: 2021-01-05 16:04:28,858 - ERROR - fhempy.lib.fhem: Timeout - NO RESPONSE for command: setDevAttrList('Badezimmer.GoogleHomeMini', 'favorite_1 favorite_2 favorite_3 favorite_4 favorite_5 spotify_sp_dc spotify_sp_key IODev '.$readingFnAttributes)
Jan 05 16:04:28 raspberrypi fhempy[3746]: 2021-01-05 16:04:28,872 - ERROR - fhempy.lib.fhem: Timeout - NO RESPONSE for command: setDevAttrList('Schlafzimmer.LenovoSmartClock', 'favorite_1 favorite_2 favorite_3 favorite_4 favorite_5 spotify_sp_dc spotify_sp_key IODev '.$readingFnAttributes)
Jan 05 16:04:28 raspberrypi fhempy[3746]: 2021-01-05 16:04:28,878 - ERROR - fhempy.lib.fhem: Timeout - NO RESPONSE for command: setDevAttrList('Wohnzimmer.SmartDisplay', 'favorite_1 favorite_2 favorite_3 favorite_4 favorite_5 spotify_sp_dc spotify_sp_key IODev '.$readingFnAttributes)
Ah, da kommen 2 FHEM Connections rein statt eine, dann startet fhempy automatisch neu. Das dürfte irgendwo in DevIo.pm sein, den Fehler habe ich noch nicht gefunden.
Remote fhempy startet automatisch neu beim Update, da der das Update automatisch mitmacht.
So, da ich gestern alle Devices auf deinen Wunsch gelöscht habe, wärst du so freundlich mal alles der Reihe nach mit mir durchzugehen.
Welche Devices brauche ich um
a) von Fhem aus auf meinen google-Nest per Speak Text abzusetzen
b) von Fhem ohne den Webplayer oder die App geöffnet zu haben Musik auf meinen Google-Nest abzuspielen
define castnest PythonModule googlecast MeinNestName
Danach noch sd_dc, sd_key.
Sonst nichts, probier bitte nur das und wenn es nicht geht, meldest du dich bitte.
Hallo, also habe die beiden Google-Nest und die entsprechende Gruppe manuell wieder angelegt und sp_dc und sp_key aus dem inkognito-Browser in den Attributen eingefügt.
Speak funktioniert, wobei man jetzt nicht nur bei der Commandzeile sondern auch wenn man einen BEfehl über Set und die Auswahlfelder absetzt den Text in Anführungszeichen setzen muss. Play, also Spotify funktioniert hingegen nicht.
Was mir schon mal aufgefallen ist im Reading "Spotify_User" der Devices steht trotz der eingetragenen Attribute und einem Neustart immer noch "
attr spotify_sp... required", genauso wie es sonst nur vor dem eintragen der Attribute erscheint.
Also sieht so aus, als wenn Attribute und die Sitzung des WebPlayers im Inkognito-Brwoser nicht passen würde.
Wie kann ich sicherstellen, dass der Webbrowser eine aktuelle Instanz verwendet und die aktuellsten sp_dc und sp_key Werte anzeigt?
Hast du dich im Inkognito Browser eh nicht abgemeldet? Also Logout bei Spotify gedrückt.
Nein, ist auf dem Notebook geöffnet und das hab ich einfach zugeklappt so dass alles in den Ruhezustand geht, dadurch bleiben Anmeldungen erhalten. Habs gerade extra noch mal nachgeschaut.
Allerdings habe ich mich ja angemeldet bevor du das mit dieser 1 Stunde gefunden hattest, weiß also nicht ob die Keys trotz laufender Anmeldung nicht "veraltet sind".
Ich habe es gerade bei mir nochmals mit einem dc/key Paar von gestern auf meinem Nest Hub Max probiert. Funktioniert.
Was kommt für eine Fehlermeldung? Was steht im Log?
Hat sonst schon jemand getestet?
Ich habe es seit gestern am Laufen. Bis jetzt funktioniert es ohne Probleme :).
VG Andreas
Also ich habe mich jetzt bei allen Spotify-Anwendungen abgemeldet und anschließend im normalen Chrome Broser wieder angemeldet.
Nach dem Server-Neustart stehen die beiden Devices für die Nest-Lautsprecher statt wie vorher auf "online" jetzt wieder auf:
Failed to execute function Define: Traceback (most recent call last): File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 335, in _onMessage fct_timeout, File "/usr/lib/python3.7/asyncio/tasks.py", line 416, in wait_for return fut.result() File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 112, in Define await super().Define(hash, args, argsh) File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py", line 86, in Define await utils.handle_define_attr(self._conf_attr, self, hash) File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 108, in handle_define_attr await fct_call(hash) File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 255, in set_attr_spotify_cookie data = st.start_session(self._attr_spotify_sp_dc, self._attr_spotify_sp_key) File "/opt/fhem/.local/lib/python3.7/site-packages/spotify_token.py", line 19, in start_session headers=headers, cookies=cookies) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get return self.request('GET', url, **kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request resp = self.send(prep, **send_kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send history = [resp for resp in gen] if allow_redirects else [] File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in history = [resp for resp in gen] if allow_redirects else [] File "/usr/lib/python3/dist-packages/requests/sessions.py", line 165, in resolve_redirects raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects, response=resp) requests.exceptions.TooManyRedirects: Exceeded 30 redirects.
Die Lautsprechergruppe ist von "Online" auf "PythonBinding timeout" gewechselt.
Speak und alle anderen Befehle können nicht mehr ausgewählt werden.
Hier das List des Wohnzimmerlautsprechers:
Internals:
.AttrList favorite_1 favorite_2 favorite_3 favorite_4 favorite_5 spotify_sp_dc spotify_sp_key IODev event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading
.FhemMetaInternals 1
DEF googlecast Wohnzimmerlautsprecher
FUUID 5ff499cd-f33f-793a-00f2-d3111a8f03bbe3f5
FVERSION 10_PythonModule.pm:0.182830/2019-01-16
IODev local_pybinding
NAME Wohnzimmerlautsprecher
NR 191
PYTHONTYPE googlecast
STATE Failed to execute function Define: Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 335, in _onMessage
fct_timeout,
File "/usr/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
return fut.result()
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 112, in Define
await super().Define(hash, args, argsh)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py", line 86, in Define
await utils.handle_define_attr(self._conf_attr, self, hash)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 108, in handle_define_attr
await fct_call(hash)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 255, in set_attr_spotify_cookie
data = st.start_session(self._attr_spotify_sp_dc, self._attr_spotify_sp_key)
File "/opt/fhem/.local/lib/python3.7/site-packages/spotify_token.py", line 19, in start_session
headers=headers, cookies=cookies)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
history = [resp for resp in gen] if allow_redirects else []
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
history = [resp for resp in gen] if allow_redirects else []
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 165, in resolve_redirects
raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects, response=resp)
requests.exceptions.TooManyRedirects: Exceeded 30 redirects.
TYPE PythonModule
.attraggr:
.attrminint:
READINGS:
2021-01-05 20:35:04 app_id
2021-01-05 17:54:41 cast_type cast
2021-01-06 04:31:48 connection connected
2021-01-05 20:35:04 display_name
2021-01-05 17:54:41 ignore_cec 0
2021-01-05 17:54:41 is_active_input 0
2021-01-05 17:54:41 is_stand_by 1
2021-01-05 18:30:29 mediaContentId
2021-01-05 18:30:29 mediaContentType
2021-01-05 18:25:29 mediaCurrentPosPercent
2021-01-05 18:25:29 mediaCurrentPosition
2021-01-05 18:30:29 mediaDuration
2021-01-05 18:30:29 mediaPlayerState UNKNOWN
2021-01-05 18:30:29 mediaStreamType UNKNOWN
2021-01-05 17:54:41 model_name Google Nest Mini
2021-01-05 17:54:41 mute 0
2021-01-05 17:54:41 name Wohnzimmerlautsprecher
2021-01-05 20:35:04 session_id
2021-01-05 18:17:11 spotify_user attr spotify_sp... required
2021-01-06 17:24:19 state Failed to execute function Define: Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 335, in _onMessage
fct_timeout,
File "/usr/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
return fut.result()
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 112, in Define
await super().Define(hash, args, argsh)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py", line 86, in Define
await utils.handle_define_attr(self._conf_attr, self, hash)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 108, in handle_define_attr
await fct_call(hash)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 255, in set_attr_spotify_cookie
data = st.start_session(self._attr_spotify_sp_dc, self._attr_spotify_sp_key)
File "/opt/fhem/.local/lib/python3.7/site-packages/spotify_token.py", line 19, in start_session
headers=headers, cookies=cookies)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in send
history = [resp for resp in gen] if allow_redirects else []
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 668, in <listcomp>
history = [resp for resp in gen] if allow_redirects else []
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 165, in resolve_redirects
raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects, response=resp)
requests.exceptions.TooManyRedirects: Exceeded 30 redirects.
2021-01-05 20:35:04 status_text
2021-01-05 18:30:29 transport_id
2021-01-05 17:54:41 uuid ec715a28-897e-dc95-3c87-e44ecb1699c0
2021-01-06 14:20:05 volume 65
args:
Wohnzimmerlautsprecher
PythonModule
googlecast
Wohnzimmerlautsprecher
argsh:
Attributes:
IODev local_pybinding
cmdIcon pause:rc_PAUSE play:rc_PLAY
favorite_1 https://open.spotify.com/playlist/37i9dQZF1EgoFqquhlQhCX
favorite_2 https://open.spotify.com/playlist/4MwJ4E9RlPUii28R0t5dDL
favorite_3 https://open.spotify.com/playlist/2RxtpesK6vFl9g4q9YQdwD
favorite_4 https://open.spotify.com/playlist/2ftQtVEUV8RnTI8HQ67OYb
group Audio
icon audio_loudness
room Devices
spotify_sp_dc xxx
spotify_sp_key xxx
webCmd volume:play:pause
Ich habe testweise beim Wohnzimmerlautsprecher die beiden Attribute SP_DC und SP_Key gelöscht und den Server neugestartet.
Resultat: Der Wohnzimmerlautsprecher steht wieder auf online und ist für eine Befehleingabe bereit.
Der Fehler kommt und geht mit dem setzen der beiden Attribute.
Was mir im Startlog des Containers aufgefallen ist (Also das Protokoll von Fhem beim Starten) sind folgende Zeilen:
2021.01.06 18:28:48.543 1: BindingsIo: ERROR: Timeout while waiting for function to finish (id: 74142870)
2021.01.06 18:28:51.055 1: BindingsIo: ERROR: Timeout while waiting for function to finish (id: 65998167)
Hi,
in dem Fehlerauszug sehe ich, dass du noch nicht die letzte Version nutzt. Bitte mach noch ein "update". Sollte dann 0.1.18 im BindingsIo Device angezeigt werden.
So, ich habe Fhem noch mal upgedated, und den Server mit shutdown restart neugestartet und den kompletten Container neugestartet.
Es gibt jetzt nur noch 1 Zeile bezüglich Bindingslo im Startprotokoll
2021.01.07 13:40:14.215 1: BindingsIo: ERROR: Timeout while waiting for function to finish (id: 54137577)
Beim start meckerte er mir auch ein Problem mit meiner 99_myutils an, was vorher noch nie der Fall war und ich die Datei auch nicht geändert habe. Nur zur Info.
ich weiss nicht ob es eine Rolle spielt, aber meine Python Version ist 3.8.
Zitat von: Superposchi am 07 Januar 2021, 13:43:18
So, ich habe Fhem noch mal upgedated, und den Server mit shutdown restart neugestartet und den kompletten Container neugestartet.
Es gibt jetzt nur noch 1 Zeile bezüglich Bindingslo im Startprotokoll
2021.01.07 13:40:14.215 1: BindingsIo: ERROR: Timeout while waiting for function to finish (id: 54137577)
Beim start meckerte er mir auch ein Problem mit meiner 99_myutils an, was vorher noch nie der Fall war und ich die Datei auch nicht geändert habe. Nur zur Info.
Ok, und was ist der Status mit Spotify? Das Timeout ist aber auch eigenartig, in welchem Bereich des Logs kommt das? Was steht davor und danach?
Die Python Version sollte damit nicht zusammen hängen. Ich nutze 3.7.3.
In dem Thread https://forum.fhem.de/index.php/topic,117513.msg1119042.html#new (https://forum.fhem.de/index.php/topic,117513.msg1119042.html#new) habe ich ein kompletteres Startprotokoll eingestellt, kannst du dort schauen was vorher und hinterher steht wenn das wichtig für dich ist. es handelt sich dabei um das Protokoll, dass der Container beim Start produziert, sollte meines Wissens identisch mit dem Fhem-Log sein.
Die Attribute sp_dc und sp_key habe ich gelöscht, bei den Readings steht bezüglich Spotify nur noch:
spotify_user attr spotify_sp... required 2021-01-08 08:34:41
Sobald ich die Attribute einfüge kommt die bereits mehrfach geschriebene Fehlermeldung im state-reading.
Zitat von: Superposchi am 08 Januar 2021, 08:42:26
In dem Thread https://forum.fhem.de/index.php/topic,117513.msg1119042.html#new (https://forum.fhem.de/index.php/topic,117513.msg1119042.html#new) habe ich ein kompletteres Startprotokoll eingestellt, kannst du dort schauen was vorher und hinterher steht wenn das wichtig für dich ist. es handelt sich dabei um das Protokoll, dass der Container beim Start produziert, sollte meines Wissens identisch mit dem Fhem-Log sein.
Die Attribute sp_dc und sp_key habe ich gelöscht, bei den Readings steht bezüglich Spotify nur noch:
spotify_user attr spotify_sp... required 2021-01-08 08:34:41
Sobald ich die Attribute einfüge kommt die bereits mehrfach geschriebene Fehlermeldung im state-reading.
Welche mehrfach geschriebene Fehlermeldung meinst du? Seit dem Update finde ich hier keine, außer die Startfehlermeldung.
Ich hatte mindestens dreimal eine 8-zeiligen Text der im STATE angezeigt wurde sobald die Attribute eingefügt waren gepostet, finde aber keinen einzigen mehr davon.
Ist aber auch egal, es läuft. Ich habe den Fehler gefunden. Beim Einfügen des SP_DC wurde im Dialogfesnter nie der komplette String angezeigt. Es wurde vorne vorne etwas abgeschnitten, somit habe ich einen unvollständigen String eingefügt.
Hinten hatte ich kontrolliert, aber vorne nicht.
Mal sehen ob es auf dauer so bleibt wenn ich die App am Notebook starte.
Nach meiner Info, dass du ein "update" machen sollst (06 Januar 2021, 23:17:25), hast du nichts mehr gepostet. Also bitte keine falschen Behauptungen anstellen.
Aber ok, jetzt läuft es ja...
Nein, dass war vorher, letzten Freitag- vergangenen Sonntag. Und ich finde sie ja selber nicht mehr.
Du hattest auch nie wirklich darauf reagiert, jetzt ist offensichtlich warum - die Post wurde aus irgendeinem Grund nicht im Forum veröffentlicht.
Ja, es läuft im Moment, aber das hatten wir ja schon öfters.
Nachdem ich dann auf "normalem Weg" Spotify gehört habe ging es dann plötzlich nicht mehr. Deshalb freue ich mich nicht zu früh.
Wenn du bis Di/Mi nichts von mir gehört hast, dann können wir davon ausgehen, dass es dauerhaft funktioniert.
Ich habe mal zwei grundlegende Fragen zu deinem Modul:
1) Kann man irgendwie auf Ausgabebefehle reagieren, also zb. wenn ein set speak oder set play gesendet wird die Lautstärke erhöhen und danach verringern?
2) Was passiert wenn mehrere set speak Befehle sich überschneiden, werden diese nacheinander ausgeführt oder überschlägt sich der Ton oder wird die erste Ausgabe abgeschnitten?
1) Aktuell nicht, musst du im Moment manuell machen. Vorher volume, warten und danach volume.
2) Wahrscheinlich wird der 2. den 1. unterbrechen, gerne mal testen
Wäre denn für den ersten Fall eine Möglichkeit soweit zukünftig mit einzubauen.
Wird halt schnell sehr viel und unübersichtlich mit den Lautstärkebefehlen, ganz zu schweigen von den ganzen Verzögerungen die dann eingebaut werden müssen.
Vielleicht kannst du es ja als Wunsch für ein künftiges Feature sehen.
Ja, schau ich mir an. Kommt dann nach der tuya Modul Fertigstellung.
So, wie fast schon erwartet funktionieren die LAutsprecher nicht mehr mit play/spotify nachdem ich am Notebook über die Desktop-App Music auf einem der Lautsprecher gestreamt und Fhem neu gestartet habe.
In den Readings taucht wieder:
spotify_user attr spotify_sp... required
auf.
Was nach meinem Verständnis bedeutet, dass die Attribute und damit die Autorisierung nicht mehr gültig ist, richtig?
Nein, das bedeutet, dass die Attribute nicht gesetzt sind. Ist in den beiden Attributen ein Wert drin?
Ja, es ist der Wert drin, der gestern Abend und auch heute Morgen vor dem "normalen" hören üder die App funktioniert hat.
Habe mal testweise einfach die Attribute bearbeitet und neu gesetzt ohne sie zu verändern, dann funktioniert es sofort wieder.
Welche Version hast du im Einsatz?
Welche Version wovon?
Da must du leider etwas konkreter werden, vorallem, woher ich die Information bekomme.
googlecast Device öffnen, dort auf das IODev Device bei den Internals klicken und dann sieht man dort das Reading version.
Version 0.1.18
Es sollte auch nach einem Neustart funktionieren, auch wenn im Reading fälschlicherweise attr spotify... steht. Solange die Attribute da sind, passt es.
Was soll ich dazu sagen, Tut es aber nicht.
Hmm...das ist eigenartig, kannst du bitte mal probieren nur fhempy neu zu starten? Einfach PythonBinding Device auswählen und dort restart. Warte nach dem Neustart eine Minute bis du in FHEM weiter klickst, da beim fhempy Neustart sehr viele Commands an FHEM geschickt werden.
Das kann ich erst machen nachdem der Fehler wieder auftritt, aktuell geht es ja nachdem ich die Attribute einfach aufgerufen und ohne zu ändern bestätigt habe.
Damit ich dann nicht erneut posten muss, was sollte dadurch passieren? Irgendetwas sichtbares oder sollte es dann einfach funktionieren?
Ich habe aus deinem Post verstanden, dass es nicht mehr funktionierte nach Neustart von FHEM und voriger Spotify Wiedergabe über Spotify App. Probier das bitte nochmals, sollte es gehen, dann liegt es scheinbar nicht daran. Wenn es nicht geht, dann start bitte fhempy neu und teste danach ob es funktioniert.
Ja das war auch so, doch wie ebenfalls bereits geschrieben hatte es bereits wieder funktioniert nachdem ich einfach die beiden Attribute sp_dc und sp_key einfach aufgerufen und unverändert bestätigt habe.
Werde das andere aber auch morgen oder übermorgen noch mal probieren und mich dann zurück melden.
Hallo,
erstmal danke für das Modul. mein altes GOOGLECAST hatte sich klammheimlich schon vor langer Zeit verabschiedet, und da ich es nur genutzt habe um "lauter" und "leiser" Tasten auf meinem FHEM Tablet zu realisieren, hab ich das nie richtig gemerkt.
Zum aktuellen Modul als Feedback: Bei der Ersteinrichtung scheint fhempy ziemlich lange im Hintergrund zu werkeln und nicht ansprechbar zu sein. Zumindest gibt es anfangs eine Menge "verbindung verweigert" Meldungen im Log. Kann man da was machen? Das dürfte Erstbenutzer sehr irritieren und evtl. glauben lassen, sie haben was falsch gemacht. Hat sich bei mir nach 5-6 Meldungen beruhigt und dann hat alles funktioniert.
Ein paar Frage eher zu allgemeinen Verwendung:
Kann man über das Modul auch Befehle absetzen die dann interpretiert werden? Wie z.B. "spiele radiosender xzy"? (Ich denke da jetzt an Buttons auf meinem FHEM Tablet für die Lieblingsradiosender)
Nachdem Google Music zugemacht hat und YouTube Music nur kostenpflichtig sinnvoll nutzbar ist: Welche Optionen gibt es um eigene Musik abzuspielen. Derzeit kann ich nur vom Handy auf mein Google Mini streamen.
Im Angebot hätte ich eine Synology - da könnte ich das directory auf dem Raspberry mounten, habe Plex installiert und natürlich DSAudio.
Die Frage wäre hier noch die Steuerung. Derzeit steuere ich FHEM über gAssistant (ich hatte mal IFTTT und Talk im Einsatz, aber da muss ich ja ein Passwort hinterlegen). Selbst wenn ich MP3s über googlecast starten kann, würde ich das natürlich gerne über einen Sprachbefehl tun.
Gibt es da Lösungen oder Ideen?
Gruß,
Jörg
Hi,
danke dir für die Rückmeldung. Kannst du bitte noch spezifizieren zu welchem Zeitpunkt der Installation die Fehlermeldungen mit "Verbindung verweigert" kamen? War das beim Update? Oder nach dem Neustart?
Zitat von: Adimarantis am 18 Januar 2021, 09:21:33
Kann man über das Modul auch Befehle absetzen die dann interpretiert werden? Wie z.B. "spiele radiosender xzy"? (Ich denke da jetzt an Buttons auf meinem FHEM Tablet für die Lieblingsradiosender)
Ja, einfach Radiosender URL bei Play angeben. Am Chromecast kann man auch URLs zu TV Streams angeben.
Zitat
Nachdem Google Music zugemacht hat und YouTube Music nur kostenpflichtig sinnvoll nutzbar ist: Welche Optionen gibt es um eigene Musik abzuspielen. Derzeit kann ich nur vom Handy auf mein Google Mini streamen.
Im Angebot hätte ich eine Synology - da könnte ich das directory auf dem Raspberry mounten, habe Plex installiert und natürlich DSAudio.
Du könntest noch Spotify nutzen. Eigene Musik abzuspielen sollte gehen, wenn es eine Streaming URL (http) gibt. Das habe ich aber selbst nicht getestet.
Zitat
Die Frage wäre hier noch die Steuerung. Derzeit steuere ich FHEM über gAssistant (ich hatte mal IFTTT und Talk im Einsatz, aber da muss ich ja ein Passwort hinterlegen). Selbst wenn ich MP3s über googlecast starten kann, würde ich das natürlich gerne über einen Sprachbefehl tun.
Gibt es da Lösungen oder Ideen?
Dazu musst du Routinen einrichten und dummys nutzen. Das ist etwas umständlich. Ich würde eher empfehlen Spotify zu nutzen, dann kannst du sowohl von FHEM aus als auch per Standard Sprachbefehl alles machen.
Hallo Dominik,
ich versuche das mal aus dem Logfile zu rekonstruieren.
Erst habe die entsprechenden Installation auf der Raspberry Kommandozeile gemacht.
Dann weiter in FHEM:
2021.01.13 17:44:15 1: UPD FHEM/10_PythonModule.pm
2021.01.13 17:44:16 1: UPD FHEM/10_BindingsIo.pm
2021.01.13 17:44:16 1: UPD FHEM/10_PythonBinding.pm
2021.01.13 17:44:16 1: UPD FHEM/bindings/python/bin/fhempy
...
2021.01.13 17:45:06 0: Server shutdown
...
2021.01.13 18:01:39 1: define GoogleBad PythonModule googlecast "Badezimmer": Before you use PythonModule please define BindingsIo once:
define pyBinding BindingsIo Python
2021.01.13 18:01:50 1: pyBinding: Can't connect to ws:127.0.0.1:15733: Operation now in progress
2021.01.13 18:01:51 1: pyBinding: Can't connect to ws:127.0.0.1:15733: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.13 18:01:51 1: BindingsIo: ERROR pyBinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.13 18:02:01 1: BindingsIo: ERROR pyBinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.13 18:02:12 1: BindingsIo: ERROR pyBinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.13 18:02:22 1: BindingsIo: ERROR pyBinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.13 18:02:32 1: BindingsIo: ERROR pyBinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.13 18:02:45 1: BindingsIo: ERROR pyBinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.13 18:02:56 1: BindingsIo: ERROR pyBinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.13 18:03:06 1: ws:127.0.0.1:15733 reappeared (pyBinding)
2021.01.13 18:05:53 1: ws:127.0.0.1:15733 disconnected, waiting to reappear (pyBinding)
2021.01.13 18:05:53 1: BindingsIo: ERROR pyBinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.13 18:06:04 1: ws:127.0.0.1:15733 reappeared (pyBinding)
....
2021.01.13 18:17:48 1: ws:127.0.0.1:15733 disconnected, waiting to reappear (pyBinding)
2021.01.13 18:17:48 1: BindingsIo: ERROR pyBinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.13 18:18:00 1: ws:127.0.0.1:15733 reappeared (pyBinding)
Zwischen dem Shutdown und dem define habe ich wohl zuerst den Schritt mit den define pyBinding ausgelassen, das dann aber gleich nachgeholt und die eigentliche Device erstellt.
Dann gab es erst ständig Fehler, dann paar mal reappear/disconnect und danach war es dann eigentlich stabil.
Mit den Radiosendern habe ich das Problem, dass ich keine URL finde die funktioniert. Auf der Homepage von Bayern1 sind z.B. links auf m3u Dateien, die gehen dann auch im VLC auf. Diese links gehen mit "set play" aber weder direkt noch der link den dann VLC unter medieninfo anzeigt. Wenn ich den Radiosender über Sprachbefehl starte (kommt dann wohl von Tunein) steht bei FHEM zwar eine URL drin, die ist aber mit "set play" auch nicht nutzbar.
Beim Abspielen von Musik geht es hauptsächlich um Sachen die es gar nicht bei Spotify gibt (z.B. die Lieblingsweihnachtslieder meiner Frau, die wir von einer Kassette digitalisiert haben). Ich kann zwar mit dem Handy oder PLEX ein Streaming anstossen, aber eben nicht mit FHEM oder über Google Sprachbefehl.
Gruß,
Jörg
Liege ich richtig der Annahme, dass der Google Nest Mini 2 nicht unterstützt wird? Ich nutze das fhempy und habe das discover device angelegt. Das zeigt auch alles opened und connected an. Automatisch wird aber kein Chromecast angelegt. Wenn ich mir eine App aus dem Store lade die Chromecast devices sucht, wird das Nest Mini auch nicht angezeigt.
Ich hab zwei Mini's im Einsatz (woran erkennt man ob es ein Nest 2 ist?). Ich habe diese erst über die Google Home App eingebunden und dort einen Namen vergeben. Diesen Namen habe ich dann zur Erstellung des FHEM device verwendet, was anstandslos funktioniert hat.
Jörg
https://www.tink.de/blog/google-nest-mini-vs-google-home-mini-unterschiede-smarte-lautsprecher/
In Google Home hab ich ihn eingerichtet aber ich habe versucht ihn über das fhempy discover Modul automatisch hinzufügen zulassen ohne Erfolg. Wenn ich es richtig verstehe muss das doch als Chromecast in meinem Netzwerk gefunden werden. Habe dann testweise auf meinem Android Smartphone die App "XCast" installiert und die findet den Mini auch nicht. Aber wäre doch quatsch wenn die vom Home auf Nest die Chromecast-Receiver Funktion entfernt hätten? Werde noch nicht so ganz schlau dadraus.
Zitat von: Adimarantis am 20 Januar 2021, 22:49:04
Hallo Dominik,
ich versuche das mal aus dem Logfile zu rekonstruieren.
Erst habe die entsprechenden Installation auf der Raspberry Kommandozeile gemacht.
Dann weiter in FHEM:
2021.01.13 17:44:15 1: UPD FHEM/10_PythonModule.pm
2021.01.13 17:44:16 1: UPD FHEM/10_BindingsIo.pm
2021.01.13 17:44:16 1: UPD FHEM/10_PythonBinding.pm
2021.01.13 17:44:16 1: UPD FHEM/bindings/python/bin/fhempy
...
2021.01.13 17:45:06 0: Server shutdown
...
2021.01.13 18:01:39 1: define GoogleBad PythonModule googlecast "Badezimmer": Before you use PythonModule please define BindingsIo once:
define pyBinding BindingsIo Python
2021.01.13 18:01:50 1: pyBinding: Can't connect to ws:127.0.0.1:15733: Operation now in progress
2021.01.13 18:01:51 1: pyBinding: Can't connect to ws:127.0.0.1:15733: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.13 18:01:51 1: BindingsIo: ERROR pyBinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.13 18:02:01 1: BindingsIo: ERROR pyBinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.13 18:02:12 1: BindingsIo: ERROR pyBinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.13 18:02:22 1: BindingsIo: ERROR pyBinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.13 18:02:32 1: BindingsIo: ERROR pyBinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.13 18:02:45 1: BindingsIo: ERROR pyBinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.13 18:02:56 1: BindingsIo: ERROR pyBinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.13 18:03:06 1: ws:127.0.0.1:15733 reappeared (pyBinding)
2021.01.13 18:05:53 1: ws:127.0.0.1:15733 disconnected, waiting to reappear (pyBinding)
2021.01.13 18:05:53 1: BindingsIo: ERROR pyBinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.13 18:06:04 1: ws:127.0.0.1:15733 reappeared (pyBinding)
....
2021.01.13 18:17:48 1: ws:127.0.0.1:15733 disconnected, waiting to reappear (pyBinding)
2021.01.13 18:17:48 1: BindingsIo: ERROR pyBinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.13 18:18:00 1: ws:127.0.0.1:15733 reappeared (pyBinding)
Zwischen dem Shutdown und dem define habe ich wohl zuerst den Schritt mit den define pyBinding ausgelassen, das dann aber gleich nachgeholt und die eigentliche Device erstellt.
Dann gab es erst ständig Fehler, dann paar mal reappear/disconnect und danach war es dann eigentlich stabil.
Mit den Radiosendern habe ich das Problem, dass ich keine URL finde die funktioniert. Auf der Homepage von Bayern1 sind z.B. links auf m3u Dateien, die gehen dann auch im VLC auf. Diese links gehen mit "set play" aber weder direkt noch der link den dann VLC unter medieninfo anzeigt. Wenn ich den Radiosender über Sprachbefehl starte (kommt dann wohl von Tunein) steht bei FHEM zwar eine URL drin, die ist aber mit "set play" auch nicht nutzbar.
Beim Abspielen von Musik geht es hauptsächlich um Sachen die es gar nicht bei Spotify gibt (z.B. die Lieblingsweihnachtslieder meiner Frau, die wir von einer Kassette digitalisiert haben). Ich kann zwar mit dem Handy oder PLEX ein Streaming anstossen, aber eben nicht mit FHEM oder über Google Sprachbefehl.
Gruß,
Jörg
Ich habe nun im BindingsIo noch ein "info" Reading eingebaut wo drin steht, dass man warten soll bis die Verbindung aufgebaut wurde. Hoffe das hilft für Neueinsteiger. Den Fehler selbst kann ich leider nicht unterdrücken.
Diese Bayern1 URL funktioniert bei mir:
https://br-br1-franken.cast.addradio.de/br/br1/franken/mp3/mid
Es dauert aber fast eine Minute bis das Abspielen startet - zumindest ist das bei mir so.
Wenn du einen Server hast, der per http das File als Stream bereitstellen kann, dann sollte das play genauso gehen wie bei Bayern1.
Zitat von: NePheus am 21 Januar 2021, 16:25:05
https://www.tink.de/blog/google-nest-mini-vs-google-home-mini-unterschiede-smarte-lautsprecher/
In Google Home hab ich ihn eingerichtet aber ich habe versucht ihn über das fhempy discover Modul automatisch hinzufügen zulassen ohne Erfolg. Wenn ich es richtig verstehe muss das doch als Chromecast in meinem Netzwerk gefunden werden. Habe dann testweise auf meinem Android Smartphone die App "XCast" installiert und die findet den Mini auch nicht. Aber wäre doch quatsch wenn die vom Home auf Nest die Chromecast-Receiver Funktion entfernt hätten? Werde noch nicht so ganz schlau dadraus.
Verstehe ich es richtig, dass du das Gerät in der Home App findest und es dort auch benannt hast? Die XCast App zeigt das Device dann trotzdem nicht an? Wie siehst es bei Spotify aus, zeigt das das Device an?
Klingt für mich nach Netzwerkproblem, nur eigenartig, dass die Home App das Gerät erkannt hat.
Installier mal die App "Service Browser" und prüfe ob dort ein Eintrag _googlecast._tcp...... auftaucht. Wenn nicht, dann liegt es garantiert am Netzwerk.
_googlecast._tcp findet er und zeigt auch nest mini an. Spotify connect nutze ich darauf regelmäßig ohne Probleme. Als ich ohne Erfolg fhempy ausprobiert habe, habe ich das Gerät in Google Home noch von "Nest Mini" in "Wohnzimmer" umbenannt, weil ich dachte er kommt evtl. mit Leerstellen nicht klar, ohne Erfolg. Vielleicht muss ich mal versuchen das Gerät direkt anzulegen.
Ja, probier mal "define asdf PythonModule googlecast Wohnzimmer"
Das hat jetzt funktioniert, danke!
Muss dazu auch sagen, dass ich vor der fhempy Installation noch das Buster update gemacht habe und als ich fhempy laut Anleitung installiert habe, er mir in fhem immer eine Meldung ausgegeben hat, dass er das Modul BindingsIO nicht findet. Dann musste ich manuell die 10_... Scripts auf 755+x stellen dann ging es und er zeigt mir wie schon gesagt auch alles als connected und opened an. Ob das jetzt was damit zu tun hat, dass das discover nichts gefunden hat weiß ich nicht.
Sicher, dass er das Modul nicht gefunden hat? Poste bitte mal das Log von dem Fehler.
Zitat von: dominik am 21 Januar 2021, 20:46:42
Diese Bayern1 URL funktioniert bei mir:
https://br-br1-franken.cast.addradio.de/br/br1/franken/mp3/mid
Es dauert aber fast eine Minute bis das Abspielen startet - zumindest ist das bei mir so.
Wenn du einen Server hast, der per http das File als Stream bereitstellen kann, dann sollte das play genauso gehen wie bei Bayern1.
Danke für den Tipp - ich habe jetzt auch die richtige URL für meine Region gefunden. Das klappt.
Das mit dem Streaming hab ich jetzt zwar mal rudimentär hinbekommen, aber das geht hoffentlich einfacher:
Habe auf meiner Synology "Icecast" von einer Community Paketquelle geholt. Da ist auch der "ezstream" client drin.
Mit ezstream kann ich eine playlist mit lokalen MP3 an icecast schicken, dessen URL ich wiederum über googlecast an meine Google Mini übergebe. Dauert wie beim Radiosender eine Weile bis das losläuft (da hab ich aber noch von von einer "burst" option gelesen).
Das kommt mir jetzt halt ziemlich umständlich vor. Und wenn ich das noch über Sprachbefehl über FHEM triggern möchte sehe ich sowas wie dummy-device mit gassistent -> ssh auf diskstation für ezstream / set play auf googlecast ....
Einfachere Ideen?
Jörg
Vielleicht geht ein simpler HTTP Server der die Files bereitstellt? Dann musst du nur "set play http://192.168.0.3/path/to/file.mp3" machen.
Könnte mir vorstellen, dass das funktioniert - selbst nicht getestet, da ich keine lokalen Musik Files mehr habe.
Hallo Dominik,
das klappt schon (schnell mal ein mp3 auf meinen webserver gelegt). Nutzt jetzt aber nur, wenn man nur eine Datei abspielen will - eine m3u Datei geht da schon nicht mehr.
Gruß,
Jörg
Zitat von: dominik am 22 Januar 2021, 20:36:25
Sicher, dass er das Modul nicht gefunden hat? Poste bitte mal das Log von dem Fehler.
Meinst du im FHEM Log? Da finde ich die Stelle garnicht mehr. Habe aber das hier gefunden:
2021.01.17 21:54:00 3: BindingsIo v1.0.0
2021.01.17 21:54:00 3: PythonBinding v1.0.0
2021.01.17 21:54:00 3: Pythonbinding_15733: starting
2021.01.17 21:54:00 3: Pythonbinding_15733: using logfile: ./log/PythonBinding-2021-01-17.log
2021.01.17 21:54:00 3: Pythonbinding_15733: read: end of file reached while sysread
2021.01.17 21:54:00 3: Pythonbinding_15733: stopped
2021.01.17 21:54:00 3: Pythonbinding_15733: starting
2021.01.17 21:54:00 3: Pythonbinding_15733: using logfile: ./log/PythonBinding-2021-01-17.log
2021.01.17 21:54:03 3: Opening local_pybinding device ws:127.0.0.1:15733
2021.01.17 21:54:03 1: local_pybinding: Can't connect to ws:127.0.0.1:15733: Operation now in progress
2021.01.17 21:54:03 1: local_pybinding: Can't connect to ws:127.0.0.1:15733: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.17 21:54:03 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.17 21:54:13 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.17 21:54:23 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.17 21:54:31 3: PythonModule v1.0.0 (discover_mdns)
2021.01.17 21:54:33 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.17 21:54:43 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.17 21:54:54 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.17 21:55:04 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.17 21:55:14 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.17 21:55:25 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.17 21:55:27 3: Pythonbinding_15733: read: end of file reached while sysread
2021.01.17 21:55:27 3: Pythonbinding_15733: stopped
2021.01.17 21:55:27 3: Pythonbinding_15733: starting
2021.01.17 21:55:27 3: Pythonbinding_15733: using logfile: ./log/PythonBinding-2021-01-17.log
2021.01.17 21:55:35 1: ws:127.0.0.1:15733 reappeared (local_pybinding)
2021.01.17 21:58:31 3: Pythonbinding_15733: read: end of file reached while sysread
2021.01.17 21:58:31 3: Pythonbinding_15733: stopped
2021.01.17 21:58:31 3: Pythonbinding_15733: starting
2021.01.17 21:58:31 3: Pythonbinding_15733: using logfile: ./log/PythonBinding-2021-01-17.log
2021.01.17 21:58:32 3: BindingsIo v1.0.0
2021.01.17 21:58:51 3: PythonModule v1.0.0 (discover_mdns)
Ja, FHEM Log meinte ich. Die Meldungen die du gepostet hast sind ok. Die kommen solange fhempy startet, in der Zeit werden noch Installationen durchgeführt.
@Jörg, ich denke eine m3u wird vom Standard Player nicht unterstützt. PyChromecast unterstützt nun aber auch das Abspielen per BubbleUPnP Cast App, vielleicht klappt es damit. Den muss ich aber noch integrieren, dann kannst du testen.
Ich habe gerade die BubbleUPNP Version getestet, auch da geht kein m3u.
Nachdem m3u ja nur eine Playlist ist, könntest du auch folgendes machen:
set cast play LIED1
set cast addToQueue LIED2
set cast addToQueue LIED3
set cast addToQueue LIED4
set cast addToQueue LIED5
Dann werden die hintereinander abgespielt.
Hey, kann mir jemand nen Tipp geben, wie ich das fhempy im Docker-Container zum laufen bekomme?
FHEM läuft mit dem offiziellen Docker-Container bei mir auf dem RaspberryPI3 eigentlich out of the box. Nur das Modul hier bereitet mir Probleme.
Eine Zeit lang hat es funktioniert, aber irgendwann gings nicht mehr.
Im Status des GoogleCast Devices steht:
Module failed to load: googlecast
Maybe you need to update fhempy on this or remote peer.
Stacktrace:
Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 243, in _onMessage
functools.partial(importlib.import_module, pymodule)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 32, in run_blocking
return await asyncio.get_event_loop().run_in_executor(pool, function)
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 28, in <module>
import spotify_token as st
ModuleNotFoundError: No module named 'spotify_token'
Und wenn ich "pip3 install fhempy" versuche im terminal:
cat log.txt
Collecting fhempy
Using cached https://files.pythonhosted.org/packages/e1/7b/21043db7294388143ed c45026fa5e2bc9d6e6027c886f8f44a88fcec7455/fhempy-0.1.25-py3-none-any.whl
Collecting cryptography>=3.3.1 (from fhempy)
Using cached https://files.pythonhosted.org/packages/b7/82/f7a4ddc1af185936c1e 4fa000942ffa8fb2d98cff26b75afa7b3c63391c4/cryptography-3.3.1.tar.gz
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Requirement already satisfied: importlib-metadata>=3.3.0 in /usr/local/lib/pytho n3.7/dist-packages (from fhempy) (3.4.0)
Requirement already satisfied: websockets>=8.1 in /usr/local/lib/python3.7/dist- packages (from fhempy) (8.1)
Collecting zeroconf>=0.28.6 (from fhempy)
Using cached https://files.pythonhosted.org/packages/67/b4/bffd1025384b89fca82 9921b1e76582dd195513879895f03ceb6e484f54b/zeroconf-0.28.8-py3-none-any.whl
Requirement already satisfied: six>=1.4.1 in /usr/lib/python3/dist-packages (fro m cryptography>=3.3.1->fhempy) (1.12.0)
Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.7/dist-packa ges (from cryptography>=3.3.1->fhempy) (1.14.4)
Requirement already satisfied: typing-extensions>=3.6.4; python_version < "3.8" in /usr/local/lib/python3.7/dist-packages (from importlib-metadata>=3.3.0->fhemp y) (3.7.4.3)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.7/dist-packag es (from importlib-metadata>=3.3.0->fhempy) (3.4.0)
Collecting ifaddr>=0.1.7 (from zeroconf>=0.28.6->fhempy)
Using cached https://files.pythonhosted.org/packages/92/0f/a577a724c03982b8002 32713874e805c8fcc14f4a2c3060902ed20b50da8/ifaddr-0.1.7-py2.py3-none-any.whl
Requirement already satisfied: pycparser in /usr/local/lib/python3.7/dist-packag es (from cffi>=1.12->cryptography>=3.3.1->fhempy) (2.20)
Building wheels for collected packages: cryptography
Running setup.py bdist_wheel for cryptography: started
Running setup.py bdist_wheel for cryptography: still running...
Running setup.py bdist_wheel for cryptography: finished with status 'error'
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokeni ze;__file__='/tmp/pip-install-m_e3psfu/cryptography/setup.py';f=getattr(tokenize , 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(com pile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-c_250hd6 --python-t ag cp37:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/cryptography
copying src/cryptography/__init__.py -> build/lib.linux-armv7l-3.7/cryptograph y
copying src/cryptography/utils.py -> build/lib.linux-armv7l-3.7/cryptography
copying src/cryptography/fernet.py -> build/lib.linux-armv7l-3.7/cryptography
copying src/cryptography/__about__.py -> build/lib.linux-armv7l-3.7/cryptograp hy
copying src/cryptography/exceptions.py -> build/lib.linux-armv7l-3.7/cryptogra phy
creating build/lib.linux-armv7l-3.7/cryptography/hazmat
copying src/cryptography/hazmat/__init__.py -> build/lib.linux-armv7l-3.7/cryp tography/hazmat
copying src/cryptography/hazmat/_oid.py -> build/lib.linux-armv7l-3.7/cryptogr aphy/hazmat
copying src/cryptography/hazmat/_der.py -> build/lib.linux-armv7l-3.7/cryptogr aphy/hazmat
creating build/lib.linux-armv7l-3.7/cryptography/x509
copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-a rmv7l-3.7/cryptography/x509
copying src/cryptography/x509/base.py -> build/lib.linux-armv7l-3.7/cryptograp hy/x509
copying src/cryptography/x509/__init__.py -> build/lib.linux-armv7l-3.7/crypto graphy/x509
copying src/cryptography/x509/ocsp.py -> build/lib.linux-armv7l-3.7/cryptograp hy/x509
copying src/cryptography/x509/oid.py -> build/lib.linux-armv7l-3.7/cryptograph y/x509
copying src/cryptography/x509/extensions.py -> build/lib.linux-armv7l-3.7/cryp tography/x509
copying src/cryptography/x509/general_name.py -> build/lib.linux-armv7l-3.7/cr yptography/x509
copying src/cryptography/x509/name.py -> build/lib.linux-armv7l-3.7/cryptograp hy/x509
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-armv7l -3.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-armv 7l-3.7/cryptography/hazmat/backends
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-armv7l -3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-armv7 l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-armv 7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-armv7 l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-armv7l-3 .7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux -armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-armv7l-3 .7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-armv 7l-3.7/cryptography/hazmat/primitives
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/bindings
copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-armv7l -3.7/cryptography/hazmat/bindings
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-armv 7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux- armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux -armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux- armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linu x-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-ar mv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-a rmv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-arm v7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ocsp.py -> build/lib.linux-ar mv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-arm v7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux -armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-ar mv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-a rmv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.l inux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-ar mv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux -armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.l inux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-ar mv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-ar mv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linu x-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-armv 7l-3.7/cryptography/hazmat/backends/openssl
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux- armv7l-3.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.li nux-armv7l-3.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux- armv7l-3.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib. linux-armv7l-3.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux -armv7l-3.7/cryptography/hazmat/primitives/ciphers
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/serializati on
copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib. linux-armv7l-3.7/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/ lib.linux-armv7l-3.7/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/li b.linux-armv7l-3.7/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/pkcs7.py -> build/lib .linux-armv7l-3.7/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.l inux-armv7l-3.7/cryptography/hazmat/primitives/serialization
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-armv 7l-3.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-a rmv7l-3.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux- armv7l-3.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-arm v7l-3.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-ar mv7l-3.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-ar mv7l-3.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux -armv7l-3.7/cryptography/hazmat/primitives/kdf
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux -armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.l inux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib. linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib .linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.li nux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linu x-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linu x-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.li nux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib. linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.lin ux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux
edit
Zitat von: dominik am 23 Januar 2021, 20:22:13
set cast play LIED1
set cast addToQueue LIED2
set cast addToQueue LIED3
set cast addToQueue LIED4
set cast addToQueue LIED5
Danke Dominik. Das hört sich zumindest nach einem Ansatz an. Bei uns stellt sich die Frage meistens zur Adventszeit, sonst taugt eigentlich Radio oder Spotify - d.h. ich hab noch ein wenig Zeit zu sehen, was es bis dahin gibt. Auf jeden Fall eine Fallbacklösung :)
Jörg
Hallo Dominik,
seit dem heutigen update, 27.01.21, erhalte ich folgende Fehlermeldung:
Module failed to load: googlecast
Maybe you need to update fhempy on this or remote peer.
Stacktrace:
Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 252, in _onMessage
module_object = await utils.run_blocking(
File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 32, in run_blocking
return await asyncio.get_event_loop().run_in_executor(pool, function)
File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/googlecast/googlecast.py", line 20, in <module>
from pychromecast.controllers.bubbleupnp import BubbleUPNPController
ModuleNotFoundError: No module named 'pychromecast.controllers.bubbleupnp'/code]
Für Hilfe wäre ich dankbar
BubbleUPNPController benötigt eine neuere pychromecast. in der manifest.json ist noch eine zu alte version (7.3.0), habe das manuell angepasst und die 7.7.2 wurde beim restart von pythonbinding installiert. dann läufts wieder. Wird im nächsten releas bestimmt gefixed...
Gruss Jan
Hallo Jan,
Vielen Dank für den Hinweis.
Wo und wie müsste ich etwas manuell anpassen?
Gruß Armin
Hallo Armin,
ich habe diese Dateien angepasst:
/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/manifest.json
und
/opt/fhem/FHEM/bindings/python/fhempy/lib/googlecast/manifest.json
{
"requirements": [
"pychromecast>=7.7.2",
"youtube_dl>=2020.12.22",
"spotipy>=2.16.1",
"zeroconf==0.28.6",
"spotify-token>=1.0.0",
"aiohttp"
]
}
Bei Dir müsste da noch "pychromecast>=7.3.0" stehen...
Anschliessend pythonbinding neu starten und die Abhängigkeiten für googlecast werden automatisch neu installiert...
Du hast laut log python3.8 also ist die Datei
/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/googlecast/manifest.json
Wenn es dringend ist, ändere es ab, ansonsten warte das Fix bzw. Update ab, das bestimmt nicht lange auf sich warten lässt...
Gruss Jan
Hallo Jan,
vielen Dank für die Erklärungen.
Einen schönen Abend.
Hi,
ist nun in Version 0.1.27 gefixed.
Hallo Dominik,
ich habe folgenden Fehler beim update des neuen GoogleCast-Moduls s.u.
Was kann ich da machen?
Module failed to load: googlecast
Maybe you need to update fhempy on this or remote peer.
Stacktrace:
Traceback (most recent call last):
File "/home/pi/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 252, in _onMessage
module_object = await utils.run_blocking(
File "/home/pi/.local/lib/python3.8/site-packages/fhempy/lib/utils.py", line 32, in run_blocking
return await asyncio.get_event_loop().run_in_executor(pool, function)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/pi/.local/lib/python3.8/site-packages/fhempy/lib/googlecast/googlecast.py", line 31, in <module>
import spotify_token as st
ModuleNotFoundError: No module named 'spotify_token'
Im PhytonBinding..log steht folgendes:
2021-01-29 18:45:46,830 - INFO - lib.fhem_pythonbinding: Starting pythonbinding...
Traceback (most recent call last):
File "FHEM/bindings/python/pythonbinding.py", line 81, in <module>
fpb.run()
File "/opt/fhem/FHEM/bindings/python/lib/fhem_pythonbinding.py", line 276, in run
asyncio.get_event_loop().run_until_complete(
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/usr/local/lib/python3.8/asyncio/tasks.py", line 684, in _wrap_awaitable
return (yield from awaitable.__await__())
File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/server.py", line 965, in __await_impl__
server = await self._create_server()
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1463, in create_server
raise OSError(err.errno, 'error while attempting '
OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 15733): address already in use
2 Fehler sehe ich hier:
- ModuleNotFoundError: No module named 'spotify_token'
Probier bitte mal
sudo -u fhem pip3 install spotify_token
und poste dann die Ausgabe.
- OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 15733): address already in use
Hier läuft schon ein fhempy auf dem gleichen Node. Hast du das manuell gestartet?
Hier ist die Ausgabe:
pi@raspberrypi:/opt/fhem/log $ sudo -u fhem pip3 install spotify_token
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting spotify_token
Downloading spotify_token-1.0.0-py2.py3-none-any.whl (3.5 kB)
Requirement already satisfied: requests>=2.0 in /usr/local/lib/python3.8/site-packages (from spotify_token) (2.25.0)
Collecting beautifulsoup4>=4.8.1
Downloading beautifulsoup4-4.9.3-py3-none-any.whl (115 kB)
|████████████████████████████████| 115 kB 2.2 MB/s
Collecting lxml>=4.4.1
Downloading lxml-4.6.2.tar.gz (3.2 MB)
|████████████████████████████████| 3.2 MB 2.9 MB/s
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ysawmp8w/lxml/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ysawmp8w/lxml/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-2v7nuv37
cwd: /tmp/pip-install-ysawmp8w/lxml/
Complete output (3 lines):
Building lxml version 4.6.2.
Building without Cython.
Error: Please make sure the libxml2 and libxslt development packages are installed.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 20.2.4; however, version 21.0 is available.
You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
Kann sein, dass ich fhempy schon lokal gestartet hatte.
Ich starte den pi noch mal neu.
Mach mal
sudo apt install libxml2-dev libxslt-dev
Danke Dominik,
Zitat von: dominik am 29 Januar 2021, 23:48:15
Mach mal
sudo apt install libxml2-dev libxslt-dev
Das habe ich gemacht.
Im PhytonBindingLog gibt es weiter den Fehler:
2021-01-30 18:15:15,348 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-01-30 18:15:15,434 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
Traceback (most recent call last):
File "FHEM/bindings/python/bin/fhempy", line 121, in <module>
fpb.run()
File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 463, in run
asyncio.get_event_loop().run_until_complete(
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/usr/local/lib/python3.8/asyncio/tasks.py", line 684, in _wrap_awaitable
return (yield from awaitable.__await__())
File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/server.py", line 965, in __await_impl__
server = await self._create_server()
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1463, in create_server
raise OSError(err.errno, 'error while attempting '
OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 15733): address already in use
Ich habe einmal sudo fuser 15733/tcp ausgeführt.
Ergebnis: 15733/tcp: 2271
pi@raspberrypi:~ $ ps -p 2271
PID TTY TIME CMD
2271 ? 00:00:22 fhempy
Wenn ich den Prozess kille, entsteht relativ schnell wieder ein neuer fhempy-Prozess.
Was kann das Problem sein?
Ich hatte die Installation befolgt und folgendes ausgeführt:
Systemd configuration for autostart
curl -sL https://raw.githubusercontent.com/dominikkarall/fhempy/master/install_systemd_fhempy.sh | sudo -E bash -
Wird über den /etc/systemd/system/fhempy.service fhempy immer wieder gestartet oder liegt es an dem User pi unter dem er dort gestartet wird?
Geht es hier um einen fhempy peer oder eine lokale fhempy Installation? Lokale fhempy Installation bedeutet, dass es am gleichen Node wie FHEM läuft.
Ich habe die nach Deiner Anleitung installiert: https://github.com/dominikkarall/fhempy
Systemd configuration for autostart
curl -sL https://raw.githubusercontent.com/dominikkarall/fhempy/master/install_systemd_fhempy.sh | sudo -E bash -
Ich weiß nicht genau, was peer bedeutet.
Das Command ist NUR für fhempy peers notwendig, was das ist steht hier beschrieben:
https://github.com/dominikkarall/fhempy#fhempy-peers-eg-extend-bluetooth-range
Falls du die Commands nun auf deinem FHEM System ausgeführt hast, musst du nun folgendes machen
sudo systemctl stop fhempy
sudo systemctl disable fhempy
pip3 uninstall fhempy
Danach bitte nochmals im Log prüfen was drin steht.
Hi,
peer bedeutet dass fhempy nicht auf dem selben raspi wie deine fhem Instanz läuft... Wenn fhempy auf dem selben raspi läuft wie dein fhem Instanz ist es lokal... Wenn es lokal läuft brauchst du gar nicht den Dienst einzurichten. Dann erfolgt alles automatisch mit dem define des BindingsIO
define local_pybinding BindingsIo Python
Gruss Jan
Zitat von: JF Mennedy am 30 Januar 2021, 21:16:59
Hi,
peer bedeutet dass fhempy nicht auf dem selben raspi wie deine fhem Instanz läuft... Wenn fhempy auf dem selben raspi läuft wie dein fhem Instanz ist es lokal... Wenn es lokal läuft brauchst du gar nicht den Dienst einzurichten. Dann erfolgt alles automatisch mit dem define des BindingsIO
define local_pybinding BindingsIo Python
Gruss Jan
Danke für die Erklärung.
Dann hab ich das jetzt verstanden.
Zitat von: dominik am 30 Januar 2021, 21:14:20
Das Command ist NUR für fhempy peers notwendig, was das ist steht hier beschrieben:
https://github.com/dominikkarall/fhempy#fhempy-peers-eg-extend-bluetooth-range
Falls du die Commands nun auf deinem FHEM System ausgeführt hast, musst du nun folgendes machen
sudo systemctl stop fhempy
sudo systemctl disable fhempy
pip3 uninstall fhempy
Danach bitte nochmals im Log prüfen was drin steht.
Im Log steht jetzt:
2021-01-30 21:34:31,530 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-01-30 21:34:31,619 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
Traceback (most recent call last):
File "FHEM/bindings/python/bin/fhempy", line 121, in <module>
fpb.run()
File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 463, in run
asyncio.get_event_loop().run_until_complete(
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/usr/local/lib/python3.8/asyncio/tasks.py", line 684, in _wrap_awaitable
return (yield from awaitable.__await__())
File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/server.py", line 965, in __await_impl__
server = await self._create_server()
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1463, in create_server
raise OSError(err.errno, 'error while attempting '
OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 15733): address already in use
2021-01-30 21:34:54,624 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-01-30 21:34:54,732 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-01-30 21:34:54,777 - INFO - asyncio: <Server sockets=(<asyncio.TransportSocket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('0.0.0.0', 15733)>,)> is serving
2021-01-30 21:35:04,492 - INFO - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-01-30 21:35:04,591 - WARNING - asyncio: Executing <Task pending name='Task-5' coro=<WebSocketServerProtocol.handler() running at /opt/fhem/.local/lib/python3.8/site-packages/websockets/server.py:191> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x75cf2ec8>()] created at /usr/local/lib/python3.8/asyncio/base_events.py:422> created at /opt/fhem/.local/lib/python3.8/site-packages/websockets/server.py:116> took 0.115 seconds
Sieht also besser aus.
Mein Device:
define castWohnzimmer PythonModule googlecast Wohnzimmer
attr castWohnzimmer userattr favorite_1 favorite_2 favorite_3 favorite_4 favorite_5
attr castWohnzimmer IODev local_pybinding
attr castWohnzimmer icon gassistant
sagt allerdings immer noch:
castWohnzimmer PythonBinding offline
Nach stop und start von fhem jetzt immerhin das:
castWohnzimmer Installing updates...
Ok, jetzt bitte nochmals
sudo -u fhem pip3 install spotify-token
Hallo Domonik,
nach mehreren update Versuchen habe ich immer noch die
Version 1.26.
Was muss ich machen, um die aktuelle Version 1.27 zu
bekommen?
Internals:
.FhemMetaInternals 1
BindingType Python
DEF Python
DeviceName ws:127.0.0.1:15733
FD 231
FUUID 5f513675-f33f-3b5c-6a47-c3e970bbbfac9d07
FVERSION 10_BindingsIo.pm:0.182830/2019-01-16
IP 127.0.0.1
NAME local_pybinding
NR 1075
NTFY_ORDER 50-local_pybinding
PARTIAL
PORT 15733
STATE opened
TYPE BindingsIo
WEBSOCKET 1
localBinding 1
nextOpenDelay 10
.attraggr:
.attrminint:
READINGS:
2021-01-31 08:45:25 info ready
2021-01-31 08:45:24 state opened
2021-01-27 08:05:42 version 0.1.26
args:
local_pybinding
BindingsIo
Python
argsh:
Attributes:
room 06_1_Sprachausgabe,hidden
verbose 3
sudo -u fhem pip3 install --upgrade fhempy
Da ist mir leider ein Fehler im Update Prozess unterlaufen, daher muss nun einmalig manuell aktualisiert werden.
Zitat von: dominik am 31 Januar 2021, 08:19:16
Ok, jetzt bitte nochmals
sudo -u fhem pip3 install spotify-token
Warte noch ein bisschen, ich werde die Abhängigkeit rausnehmen. In dem Package sind zu viele requirements drin die gar nicht gebraucht werden.
So, Version 1.0.45. Installier bitte diese, damit sollte es mit spotify_token keine Probleme mehr geben, habe die Dependency entfernt.
Vielen Dank Dominik für Deine Hilfe
Es hat jetzt funktioniert.
Meine googlecast Devices waren jetzt verbunden (ready).
Dann habe ich allerdings den RPI rebootet, um zu überprüfen, ob es dann auch noch funktioniert.
Im local_pybinding-Device steht dann: "info Please wait till connection is established, might take a few minutes"
Und das steht auch noch nach Stunden da und die googlecast Devices sind offline.
Im PythonBinding.log steht folgendes:
2021-01-31 12:55:01,662 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-01-31 12:55:01,813 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-01-31 12:55:01,888 - INFO - asyncio: <Server sockets=(<asyncio.TransportSocket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('0.0.0.0', 15733)>,)> is serving
2021-01-31 12:55:09,521 - INFO - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-01-31 12:55:09,644 - WARNING - asyncio: Executing <Task pending name='Task-5' coro=<WebSocketServerProtocol.handler() running at /opt/fhem/.local/lib/python3.8/site-packages/websockets/server.py:191> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x75cd8f88>()] created at /usr/local/lib/python3.8/asyncio/base_events.py:422> created at /opt/fhem/.local/lib/python3.8/site-packages/websockets/server.py:116> took 0.141 seconds
2021-01-31 12:55:09,980 - WARNING - asyncio: Executing <Task pending name='Task-9' coro=<PyBinding.onMessage() running at /opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py:126> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/local/lib/python3.8/asyncio/futures.py:360, <TaskWakeupMethWrapper object at 0x74ae9f88>()] created at /usr/local/lib/python3.8/asyncio/base_events.py:422> created at /usr/local/lib/python3.8/asyncio/tasks.py:382> took 0.311 seconds
Kannst du bitte mal schauen ob im FHEM Log was steht?
Da steht nur folgendes:
2021.01.31 12:56:43 3: BindingsIo v1.0.0
2021.01.31 12:56:43 3: PythonBinding v1.0.0
2021.01.31 12:56:43 3: PythonModule v1.0.0 (googlecast)
2021.01.31 12:56:43 3: PythonModule v1.0.0 (googlecast)
....
2021.01.31 18:48:11 3: BindingsIo v1.0.0
2021.01.31 18:48:11 3: PythonBinding v1.0.0
2021.01.31 18:48:11 3: PythonModule v1.0.0 (googlecast)
2021.01.31 18:48:11 3: PythonModule v1.0.0 (googlecast)
Ich habe jetzt fhem mal gestoppt: sudo systemctl stop fhem und wieder gestartet.
Danach war alles wieder OK.
Device: castWohnzimmer online
Jetzt läuft es, obwohl im PhytonBindingLog wieder folgender Fehler zufinden ist:
2021-01-31 19:11:54,488 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
Traceback (most recent call last):
File "FHEM/bindings/python/bin/fhempy", line 121, in <module>
fpb.run()
File "/opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 463, in run
asyncio.get_event_loop().run_until_complete(
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/usr/local/lib/python3.8/asyncio/tasks.py", line 684, in _wrap_awaitable
return (yield from awaitable.__await__())
File "/opt/fhem/.local/lib/python3.8/site-packages/websockets/server.py", line 965, in __await_impl__
server = await self._create_server()
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1463, in create_server
raise OSError(err.errno, 'error while attempting '
OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 15733): address already in use
Ich reboote den RPI noch einmal und gucke, was dann passiert.
Hmm....ich dachte du hast nun systemctl disable gemacht und fhempy für den User pi deinstalliert? Du hast wieder 2 fhempy laufen.
Wie Jan schon geschrieben hat, wenn du fhempy am FHEM System nutzt, ist es kein peer. Du musst/darfst also kein systemctl installieren.
Bitte hier entsprechend die Commands ausführen:
Zitat von: dominik am 30 Januar 2021, 21:14:20
Das Command ist NUR für fhempy peers notwendig, was das ist steht hier beschrieben:
https://github.com/dominikkarall/fhempy#fhempy-peers-eg-extend-bluetooth-range
Falls du die Commands nun auf deinem FHEM System ausgeführt hast, musst du nun folgendes machen
sudo systemctl stop fhempy
sudo systemctl disable fhempy
pip3 uninstall fhempy
Danach bitte nochmals im Log prüfen was drin steht.
Das dachte ich auch, dass ich das gemacht hatte.
Vielleicht liegt es daran,dass ich folgendes über die FHEM-Oberfläche probiert hatte: set Pythonbinding_0 restart
Nach dem erneuten reboot des RPI geht wieder alles.
Allerdings steht im fhem.log folgendes:
2021.01.31 19:15:51 3: Pythonbinding_0: starting
2021.01.31 19:15:51 3: Pythonbinding_0: using logfile: ./log/PythonBinding-2021-01-31.log
2021.01.31 19:15:51 2: gassistant: starting gassistant-fhem: /usr/bin/gassistant-fhem -c ./gassistant-fhem.cfg
2021.01.31 19:15:51 3: gassistant: starting
2021.01.31 19:15:51 3: gassistant: using logfile: ./log/gassistant-2021-01-31.log
2021.01.31 19:15:51 0: Featurelevel: 6
2021.01.31 19:15:51 0: Server started with 57 defined entities (fhem.pl:23613/2021-01-25 perl:5.020002 os:linux user:fhem pid:698)
2021.01.31 19:15:53 3: FHEM2FHEM device opened (remoterpi)
2021.01.31 19:15:56 3: Opening local_pybinding device ws:127.0.0.1:15733
2021.01.31 19:15:56 1: local_pybinding: Can't connect to ws:127.0.0.1:15733: Die Operation ist jetzt in Bearbeitung
2021.01.31 19:15:56 1: local_pybinding: Can't connect to ws:127.0.0.1:15733: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.31 19:15:56 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.01.31 19:16:07 1: ws:127.0.0.1:15733 reappeared (local_pybinding)
2021.01.31 19:17:28 2: AttrTemplates: got 217 entries
Und im PhytonBinding.log folgendes:
2021-01-31 19:15:59,356 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-01-31 19:15:59,505 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-01-31 19:15:59,568 - INFO - asyncio: <Server sockets=(<asyncio.TransportSocket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('0.0.0.0', 15733)>,)> is serving
2021-01-31 19:16:07,373 - INFO - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-01-31 19:16:07,508 - WARNING - asyncio: Executing <Task pending name='Task-5' coro=<WebSocketServerProtocol.handler() running at /opt/fhem/.local/lib/python3.8/site-packages/websockets/server.py:191> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x75d59f70>()] created at /usr/local/lib/python3.8/asyncio/base_events.py:422> created at /opt/fhem/.local/lib/python3.8/site-packages/websockets/server.py:116> took 0.157 seconds
2021-01-31 19:16:07,868 - WARNING - asyncio: Executing <Task pending name='Task-9' coro=<PyBinding.onMessage() running at /opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py:126> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/local/lib/python3.8/asyncio/futures.py:360, <TaskWakeupMethWrapper object at 0x754a8f88>()] created at /usr/local/lib/python3.8/asyncio/base_events.py:422> created at /usr/local/lib/python3.8/asyncio/tasks.py:382> took 0.328 seconds
2021-01-31 19:16:08,437 - WARNING - asyncio: Executing <Task pending name='Task-12' coro=<PyBinding.onMessage() running at /opt/fhem/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py:126> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/local/lib/python3.8/asyncio/futures.py:360, <TaskWakeupMethWrapper object at 0x74adc2f8>()] created at /usr/local/lib/python3.8/asyncio/base_events.py:422> created at /usr/local/lib/python3.8/asyncio/tasks.py:382> took 0.499 seconds
Prüfe bitte ob du nur Pythonbinding_0 oder auch ein Pythonbinding_15733 hast.
Falls beides, dann bitte das mit _0 löschen.
Ich habe nur Pythonbinding_0.
Vielleicht liegt es ja daran:
Ich arbeite meistens direkt über die fhem.cfg und speichere sie ab.
Danach steht im Reading "info" des Devices "local_pybinding" "Please wait till connection is established, might take a few minutes".
Und das bleibt dann so. Dann sind die cast-Devices offline.
Im log ist nichts zu finden.
Erst, wenn ich danach fhem stoppe und starte (sudo systemctl stop fhem), geht es wieder.
Kannst Du da etwas machen?
Das kann sein, dass es am fhem.cfg bearbeiten liegt.
Ist PythonBinding auf running nach dem fhem.cfg bearbeiten oder auf stopped?
Das Reading "PythonBinding" des Devices "Pythonbinding_0" steht auf "running FHEM/bindings/python/bin/fhempy", allerdings mit einem älteren Zeitpunkt: "2021-02-02 18:54:32", nachdem ich gerade die fhem.cfg gespeichert habe.
State ist active
Aber wie gesagt, das Reading "info" des Devices "local_pybinding" steht auf "Please wait till connection is established, might take a few minutes" mit aktuellem Zeitpunkt und die googlecast-Devices sind offline.
Kannst du im PythonBinding Log schauen ob nach dem fhem.cfg bearbeiten etwas auftaucht? Bitte auch im fhem Log.
...und auch ein "ps -efa | grep fhempy" auf der Konsole ausführen und die Ausgabe posten.
Für mich hört sich das so an, als würde die Verbindung vom fhempy Prozess zum BindingIo nicht mehr hergestellt werden.
Zitat von: dominik am 03 Februar 2021, 19:21:07
Kannst du im PythonBinding Log schauen ob nach dem fhem.cfg bearbeiten etwas auftaucht? Bitte auch im fhem Log.
...und auch ein "ps -efa | grep fhempy" auf der Konsole ausführen und die Ausgabe posten.
Für mich hört sich das so an, als würde die Verbindung vom fhempy Prozess zum BindingIo nicht mehr hergestellt werden.
1) Im PythonBinding Log steht nichts.
2) Im fhem.log steht folgendes
2021.02.04 18:26:42 1: BindingsIo: ERROR: Timeout while waiting for function to finish (id: 33218654)
2021.02.04 18:26:52 1: BindingsIo: ERROR: Timeout while waiting for function to finish (id: 59948867)
2021.02.04 18:26:52 1: BindingsIo: ERROR: Too many timeouts, disconnect now and try to reconnect
2021.02.04 18:26:52 1: ws:127.0.0.1:15733 disconnected, waiting to reappear (local_pybinding)
2021.02.04 18:26:52 1: Pythonbinding_0 is against deletion (Pythonbinding_0 will be deleted after pythonbinding.py has stopped or after 5 seconds. whatever comes first.), continuing with rereadcfg anyway
2021.02.04 18:26:52 1: gassistant is against deletion (gassistant will be deleted after gassistant-fhem has stopped or after 5 seconds. whatever comes first.), continuing with rereadcfg anyway
2021.02.04 18:26:52 1: Including fhem.cfg
2021.02.04 18:26:52 3: telnetPort: port 7072 opened
....
....
2021.02.04 18:26:56 3: BindingsIo v1.0.0
2021.02.04 18:26:56 3: PythonBinding v1.0.0
2021.02.04 18:26:56 3: PythonModule v1.0.0 (googlecast)
2021.02.04 18:26:56 3: PythonModule v1.0.0 (googlecast)
2021.02.04 18:26:56 1: Including ./log/fhem.save
2021.02.04 18:26:56 3: [SamsungAV] device Fernseher initialising....
3) Vor dem save der fhem.cfg:
fhem 26103 26093 0 Feb02 ? 00:16:40 python3 FHEM/bindings/python/bin
Nach dem save der fhem.cfg gibt es einen solchen Prozess nicht mehr
Nach einem Stop und dann Neustart von fhem gibt es den Prozess wieder.
Dann sind die cast-Devices auch wieder online.
Ich sehe du hast gassistant auch im Einsatz, ist das nach einem fhem.cfg speichern da? Da ist genau der gleiche Mechanismus implementiert für den Restart nach dem Speichern der fhem.cfg.
Ja, habe ich gerade getestet.
Auch hier sind die Geräte nicht mehr erreichbar nach einem save der fhem.cfg.
Erst wieder nach Neustart von fhem.
Ok, da stimmt irgendwas im CoProcess Handling nicht. Ich muss mir das genauer ansehen, eigentlich wird CoProcess::start() aufgerufen...
Hallo Dominik,
wäre super, wenn Du da etwas machen könntest.
Bzgl. gassistant habe ich mir bisher immer mit einem reload und restart nach einem save der fhem.cfg geholfen.
Das kannst du vorerst auch bei fhempy machen. Einfach im BindingIo Device restart ausführen.
Hallo,
anscheinend gab es ein Update auf meinem System welches mir das "fhempy" zerschossen hat.
root@FHEM-SERVER:~# journalctl -u fhempy.service -f
-- Logs begin at Fri 2021-02-12 19:38:33 UTC. --
Feb 13 11:06:47 FHEM-SERVER systemd[44430]: fhempy.service: Failed to determine user credentials: No such process
Feb 13 11:06:47 FHEM-SERVER systemd[44430]: fhempy.service: Failed at step USER spawning /home/pi/.local/bin/fhempy: No such process
Feb 13 11:06:47 FHEM-SERVER systemd[1]: fhempy.service: Main process exited, code=exited, status=217/USER
Feb 13 11:06:47 FHEM-SERVER systemd[1]: fhempy.service: Failed with result 'exit-code'.
Feb 13 11:06:47 FHEM-SERVER systemd[1]: fhempy.service: Service RestartSec=100ms expired, scheduling restart.
Feb 13 11:06:47 FHEM-SERVER systemd[1]: fhempy.service: Scheduled restart job, restart counter is at 5.
Feb 13 11:06:47 FHEM-SERVER systemd[1]: Stopped FHEM PythonBinding.
Feb 13 11:06:47 FHEM-SERVER systemd[1]: fhempy.service: Start request repeated too quickly.
Feb 13 11:06:47 FHEM-SERVER systemd[1]: fhempy.service: Failed with result 'exit-code'.
Feb 13 11:06:47 FHEM-SERVER systemd[1]: Failed to start FHEM PythonBinding.
Ein Update vom fhempy...
root@FHEM-SERVER:~# pip3 install --upgrade fhempy
error: Can not find Rust compiler
----------------------------------------
Failed building wheel for cryptography
Running setup.py clean for cryptography
Failed to build cryptography
error: Can not find Rust compiler
----------------------------------------
Can't roll back cryptography; was not uninstalled
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-_lhvgl2a/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-g5wdvc74/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-_lhvgl2a/cryptography/
In FHEM sieht das ganze nun so aus:
Module failed to load: googlecast
Maybe you need to update fhempy on this or remote peer.
Stacktrace:
Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 253, in _onMessage
functools.partial(importlib.import_module, pymodule)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 32, in run_blocking
return await asyncio.get_event_loop().run_in_executor(pool, function)
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 20, in <module>
from pychromecast.controllers.bubbleupnp import BubbleUPNPController
ModuleNotFoundError: No module named 'pychromecast.controllers.bubbleupnp'
Bitte um Hilfe, DANKE!
LG
KOAL
UPDATE:
Nach einem Update auf Rust 1.50.0, mit dem Befel:
curl -sf -L https://static.rust-lang.org/rustup.sh | sh
Ging das Update von fhempy durch, aber in FHEM selbst funktioniert es noch immer nicht
root@FHEM-SERVER:~# pip3 install --upgrade fhempy
Requirement already up-to-date: fhempy in /usr/local/lib/python3.7/dist-packages (0.1.48)
Requirement already satisfied, skipping upgrade: websockets>=8.1 in /usr/local/lib/python3.7/dist-packages (from fhempy) (8.1)
Requirement already satisfied, skipping upgrade: cryptography>=3.3.1 in /usr/local/lib/python3.7/dist-packages (from fhempy) (3.4.4)
Requirement already satisfied, skipping upgrade: importlib-metadata>=3.3.0 in /usr/local/lib/python3.7/dist-packages (from fhempy) (3.4.0)
Requirement already satisfied, skipping upgrade: zeroconf>=0.28.6 in /usr/local/lib/python3.7/dist-packages (from fhempy) (0.28.6)
Requirement already satisfied, skipping upgrade: cffi>=1.12 in /usr/local/lib/python3.7/dist-packages (from cryptography>=3.3.1->fhempy) (1.14.5)
Requirement already satisfied, skipping upgrade: zipp>=0.5 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata>=3.3.0->fhempy) (3.4.0)
Requirement already satisfied, skipping upgrade: typing-extensions>=3.6.4; python_version < "3.8" in /usr/local/lib/python3.7/dist-packages (from importlib-metadata>=3.3.0->fhempy) (3.7.4.3)
Requirement already satisfied, skipping upgrade: ifaddr>=0.1.7 in /usr/local/lib/python3.7/dist-packages (from zeroconf>=0.28.6->fhempy) (0.1.7)
Requirement already satisfied, skipping upgrade: pycparser in /usr/local/lib/python3.7/dist-packages (from cffi>=1.12->cryptography>=3.3.1->fhempy) (2.20)
root@FHEM-SERVER:~#
Ich kann jedoch fhempy nicht starten:
root@FHEM-SERVER:~# journalctl -u fhempy.service -f
-- Logs begin at Sat 2021-02-13 11:22:05 UTC. --
Feb 13 11:27:22 FHEM-SERVER systemd[2233]: fhempy.service: Failed to determine user credentials: No such process
Feb 13 11:27:22 FHEM-SERVER systemd[2233]: fhempy.service: Failed at step USER spawning /home/pi/.local/bin/fhempy: No such process
Feb 13 11:27:22 FHEM-SERVER systemd[1]: fhempy.service: Main process exited, code=exited, status=217/USER
Feb 13 11:27:22 FHEM-SERVER systemd[1]: fhempy.service: Failed with result 'exit-code'.
Feb 13 11:27:23 FHEM-SERVER systemd[1]: fhempy.service: Service RestartSec=100ms expired, scheduling restart.
Feb 13 11:27:23 FHEM-SERVER systemd[1]: fhempy.service: Scheduled restart job, restart counter is at 5.
Feb 13 11:27:23 FHEM-SERVER systemd[1]: Stopped FHEM PythonBinding.
Feb 13 11:27:23 FHEM-SERVER systemd[1]: fhempy.service: Start request repeated too quickly.
Feb 13 11:27:23 FHEM-SERVER systemd[1]: fhempy.service: Failed with result 'exit-code'.
Feb 13 11:27:23 FHEM-SERVER systemd[1]: Failed to start FHEM PythonBinding.
System: (uodate/ugrade alles auf akuellem Stand)
root@FHEM-SERVER:~# cat /etc/issue
Debian GNU/Linux 10 \n \l
Fhem-Version:
6.0.23723
Pychromecast Verion:
root@FHEM-SERVER:~# sudo -u fhem pip3 show pychromecast
Name: PyChromecast
Version: 7.5.1
Summary: Python module to talk to Google Chromecast.
Home-page: https://github.com/balloob/pychromecast
Author: Paulus Schoutsen
Author-email: paulus@paulusschoutsen.nl
License: MIT
Location: /usr/local/lib/python3.7/dist-packages
Requires: casttube, protobuf, zeroconf, requests
Required-by:
Hmm :/
hat jemand die gleichen Problem?
Hi,
auf nem FHEM System, also kein remote peer, solltest Du fhempy gar nicht per pip installieren. Das geschieht alles automatisch mit der Definition des BindingsIO define local_pybinding BindingsIo Python
Gruss Jan
UPDATE:
erstmal danke für die Antwort "JF Mennedy".
Somit ist es voll OK wenn FHEMPY nicht läuft und ich kann es auch wieder deinstallieren am Hauptserver?
Ich konnte das Problem nun "lösen" bzw. umgehen...keine Ahnung ob das Ok ist.
Eventuell kann das jemand bestätigen nicht das ich mir so einen Sicherheitslücke geschaffen habe.
Lösung:
sudo pip install git+https://github.com/dominikkarall/pychromecast.git
dadurch wurde PyChromecast von Version 8.1.0 auf 7.1.1 downgegraded, und schwups war es in FHEM wieder OK.
Successfully built PyChromecast
Installing collected packages: PyChromecast
Found existing installation: PyChromecast 8.1.0
Uninstalling PyChromecast-8.1.0:
Successfully uninstalled PyChromecast-8.1.0
Successfully installed PyChromecast-7.1.1
Google spricht wieder mit mir :) FHEM:
CASTNAME: Wohnzimmer
DEF: googlecast "Wohnzimmer"
IODev: local_pybinding
NAME: Wohnzimmer.chromecast
NR: 2157
PYTHONTYPE: googlecast
STATE: online
TYPE: PythonModule
Denk das Problem ist behoben.
DANKE
Hallo zusammen,
hat jemand fhempy in Docker am laufen? Bei mir bleibt local_pybinding immer auf disconnected stehen.
Im fhempy.log steht folgendes:
2021-02-13 13:19:12,690 - INFO - __main__: Attempting install of fhempy>=0.1.12
2021-02-13 13:19:57,641 - ERROR - __main__: Unable to install package fhempy>=0.1.12: Failed building wheel for cryptography
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-bafee938/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-n22o6ttk/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-bafee938/cryptography/
2021-02-13 13:19:57,642 - ERROR - __main__: Failed to install fhempy, exit now...
Und im fhem.log steht das hier und wiederholt sich ständig:
2021.02.13 13:22:43.799 3: Pythonbinding_15733: read: end of file reached while sysread
2021.02.13 13:22:43.799 3: Pythonbinding_15733: stopped
2021.02.13 13:22:43.808 3: Pythonbinding_15733: starting
2021.02.13 13:22:43.812 3: Pythonbinding_15733: using logfile: ./log/fhempy-2021-02-13.log
2021.02.13 13:22:43.813 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Connection refused (111)
2021.02.13 13:22:55.607 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Connection refused (111)
2021.02.13 13:23:08.625 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Connection refused (111)
2021.02.13 13:23:21.734 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Connection refused (111)
2021.02.13 13:23:32.358 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Connection refused (111)
Jemand eine Idee, was ich falsch mache?
Grüße, Benjamin
Zitat von: KOAL am 13 Februar 2021, 13:04:02
UPDATE:
erstmal danke für die Antwort "JF Mennedy".
Somit ist es voll OK wenn FHEMPY nicht läuft und ich kann es auch wieder deinstallieren am Hauptserver?
Ich konnte das Problem nun "lösen" bzw. umgehen...keine Ahnung ob das Ok ist.
Eventuell kann das jemand bestätigen nicht das ich mir so einen Sicherheitslücke geschaffen habe.
Lösung:
sudo pip install git+https://github.com/dominikkarall/pychromecast.git
dadurch wurde PyChromecast von Version 8.1.0 auf 7.1.1 downgegraded, und schwups war es in FHEM wieder OK.
Successfully built PyChromecast
Installing collected packages: PyChromecast
Found existing installation: PyChromecast 8.1.0
Uninstalling PyChromecast-8.1.0:
Successfully uninstalled PyChromecast-8.1.0
Successfully installed PyChromecast-7.1.1
Google spricht wieder mit mir :) FHEM:
CASTNAME: Wohnzimmer
DEF: googlecast "Wohnzimmer"
IODev: local_pybinding
NAME: Wohnzimmer.chromecast
NR: 2157
PYTHONTYPE: googlecast
STATE: online
TYPE: PythonModule
Denk das Problem ist behoben.
DANKE
Hi,
mein pychromecast Repository ist schon ziemlich alt. Da sollte schon 8.x verwendet werden.
2 Fragen
- Lässt du fhempy bewusst als root User laufen? Das solltest du nicht machen, fhempy benötigt kein root und sollte daher als pi oder ähnlicher User laufen. fhempy ist somit OHNE sudo zu installieren.
- cryptography dürfte das Problem sein. Installiere bitte nochmals die apt Pakete hier: https://github.com/dominikkarall/fhempy#console danach starte nochmals neu.
Mach bitte auch ein "sudo pip3 install --upgrade pychromecast" damit du wieder die letzte Version hast.
Zitat von: benm am 13 Februar 2021, 13:25:22
Hallo zusammen,
hat jemand fhempy in Docker am laufen? Bei mir bleibt local_pybinding immer auf disconnected stehen.
Im fhempy.log steht folgendes:
2021-02-13 13:19:12,690 - INFO - __main__: Attempting install of fhempy>=0.1.12
2021-02-13 13:19:57,641 - ERROR - __main__: Unable to install package fhempy>=0.1.12: Failed building wheel for cryptography
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-bafee938/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-n22o6ttk/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-bafee938/cryptography/
2021-02-13 13:19:57,642 - ERROR - __main__: Failed to install fhempy, exit now...
Und im fhem.log steht das hier und wiederholt sich ständig:
2021.02.13 13:22:43.799 3: Pythonbinding_15733: read: end of file reached while sysread
2021.02.13 13:22:43.799 3: Pythonbinding_15733: stopped
2021.02.13 13:22:43.808 3: Pythonbinding_15733: starting
2021.02.13 13:22:43.812 3: Pythonbinding_15733: using logfile: ./log/fhempy-2021-02-13.log
2021.02.13 13:22:43.813 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Connection refused (111)
2021.02.13 13:22:55.607 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Connection refused (111)
2021.02.13 13:23:08.625 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Connection refused (111)
2021.02.13 13:23:21.734 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Connection refused (111)
2021.02.13 13:23:32.358 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Connection refused (111)
Jemand eine Idee, was ich falsch mache?
Grüße, Benjamin
Dürfte ebenfalls das cryptography package sein. Kannst du bitte auch nochmals per apt alles installieren: https://github.com/dominikkarall/fhempy#console
Danach bitte nochmals testen.
Zitat von: dominik am 13 Februar 2021, 18:23:36
Dürfte ebenfalls das cryptography package sein. Kannst du bitte auch nochmals per apt alles installieren: https://github.com/dominikkarall/fhempy#console
Danach bitte nochmals testen.
Danke für deine schnelle Antwort...hatte vergessen zu schreiben, dass ich das auch schon gemacht habe. Hab mein Container aber noch mal ohne irgendwelche Parameter gestartet und nur die Installation für fhempy durchgeführt.
Leider wieder das gleiche Ergebnis:
2021-02-13 21:05:05,192 - INFO - __main__: Attempting install of fhempy>=0.1.12
2021-02-13 21:06:25,724 - ERROR - __main__: Unable to install package fhempy>=0.1.12: Failed building wheel for cryptography
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-7_4zn6dv/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-cvz5l3ym/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-7_4zn6dv/cryptography/
2021-02-13 21:06:25,725 - ERROR - __main__: Failed to install fhempy, exit now...
Keine Ahnung ob das hilft, ich bin gerade dabei meine FHEM Installation in Docker neu aufzusetzen, deshalb habe ich noch nichts anderes installiert. Ich nutze diese FHEM Docker:
https://github.com/fhem/fhem-docker (https://github.com/fhem/fhem-docker)
Mein Container habe ich bisher so erzeugt:
sudo docker run -d --name fhem -p 8083:8083 -p 15733:15733 --restart always -v /opt/fhem:/opt/fhem --device=/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AL021S0E-if00-port0:/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AL021S0E-if00-port0 -e TZ=Europe/Berlin -e APT_PKGS="python3 python3-pip python3-dev libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libglib2.0-dev libdbus-1-dev bluez libbluetooth-dev" -e CPAN_PKGS="Protocol::WebSocket" --add-host host.docker.internal:host-gateway fhem/fhem
Nach deinem Hinweis habe ich mein Container noch mal so erstellt:
docker run -d --name fhem -p 8083:8083 -v /opt/fhem:/opt/fhem fhem/fhem
und dann per apt installiert.
Kannst du mal im Container ein
sudo -u fhem pip3 install cryptography
machen und mir die Ausgabe posten.
Zitat von: benm am 13 Februar 2021, 13:25:22
Hallo zusammen,
hat jemand fhempy in Docker am laufen? Bei mir bleibt local_pybinding immer auf disconnected stehen.
Im fhempy.log steht folgendes:
2021-02-13 13:19:12,690 - INFO - __main__: Attempting install of fhempy>=0.1.12
2021-02-13 13:19:57,641 - ERROR - __main__: Unable to install package fhempy>=0.1.12: Failed building wheel for cryptography
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-bafee938/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-n22o6ttk/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-bafee938/cryptography/
2021-02-13 13:19:57,642 - ERROR - __main__: Failed to install fhempy, exit now...
Und im fhem.log steht das hier und wiederholt sich ständig:
2021.02.13 13:22:43.799 3: Pythonbinding_15733: read: end of file reached while sysread
2021.02.13 13:22:43.799 3: Pythonbinding_15733: stopped
2021.02.13 13:22:43.808 3: Pythonbinding_15733: starting
2021.02.13 13:22:43.812 3: Pythonbinding_15733: using logfile: ./log/fhempy-2021-02-13.log
2021.02.13 13:22:43.813 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Connection refused (111)
2021.02.13 13:22:55.607 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Connection refused (111)
2021.02.13 13:23:08.625 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Connection refused (111)
2021.02.13 13:23:21.734 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Connection refused (111)
2021.02.13 13:23:32.358 1: BindingsIo: ERROR local_pybinding - error while connecting: 127.0.0.1: Connection refused (111)
Jemand eine Idee, was ich falsch mache?
Grüße, Benjamin
Da schließ ich mich mal an.. Selber Fehler auf nen RPI 3B+ mit aktuellen Buster.. Bei mir scheitert der auch am Cryptomodul.
Zitat von: dominik am 13 Februar 2021, 22:41:30
Kannst du mal im Container ein
sudo -u fhem pip3 install cryptography
machen und mir die Ausgabe posten.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: cryptography in /usr/lib/python3/dist-packages (2.6.1)
Bitte dann folgendes testen:
sudo -u fhem pip3 install --upgrade cryptography
sudo -u fhem pip3 install --upgrade fhempy
Zitat von: dominik am 14 Februar 2021, 08:52:06
Bitte dann folgendes testen:
sudo -u fhem pip3 install --upgrade cryptography
sudo -u fhem pip3 install --upgrade fhempy
Bleibt dabei.. Alles auf dem neusten Stand.
pi@fhem:~ $ sudo -u fhem pip3 install --upgrade cryptography
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already up-to-date: cryptography in /opt/fhem/.local/lib/python3.7/site-packages (3.4.5)
Requirement already satisfied, skipping upgrade: cffi>=1.12 in /opt/fhem/.local/lib/python3.7/site-packages (from cryptography) (1.14.5)
Requirement already satisfied, skipping upgrade: pycparser in /opt/fhem/.local/lib/python3.7/site-packages (from cffi>=1.12->cryptography) (2.20)
pi@fhem:~ $ sudo -u fhem pip3 install --upgrade fhempy
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already up-to-date: fhempy in /opt/fhem/.local/lib/python3.7/site-packages (0.1.48)
Requirement already satisfied, skipping upgrade: websockets>=8.1 in /opt/fhem/.local/lib/python3.7/site-packages (from fhempy) (8.1)
Requirement already satisfied, skipping upgrade: importlib-metadata>=3.3.0 in /opt/fhem/.local/lib/python3.7/site-packages (from fhempy) (3.4.0)
Requirement already satisfied, skipping upgrade: zeroconf>=0.28.6 in /opt/fhem/.local/lib/python3.7/site-packages (from fhempy) (0.28.6)
Requirement already satisfied, skipping upgrade: cryptography>=3.3.1 in /opt/fhem/.local/lib/python3.7/site-packages (from fhempy) (3.4.5)
Requirement already satisfied, skipping upgrade: typing-extensions>=3.6.4; python_version < "3.8" in /opt/fhem/.local/lib/python3.7/site-packages (from importlib-metadata>=3.3.0->fhempy) (3.7.4.3)
Requirement already satisfied, skipping upgrade: zipp>=0.5 in /opt/fhem/.local/lib/python3.7/site-packages (from importlib-metadata>=3.3.0->fhempy) (3.4.0)
Requirement already satisfied, skipping upgrade: ifaddr>=0.1.7 in /opt/fhem/.local/lib/python3.7/site-packages (from zeroconf>=0.28.6->fhempy) (0.1.7)
Requirement already satisfied, skipping upgrade: cffi>=1.12 in /opt/fhem/.local/lib/python3.7/site-packages (from cryptography>=3.3.1->fhempy) (1.14.5)
Requirement already satisfied, skipping upgrade: pycparser in /opt/fhem/.local/lib/python3.7/site-packages (from cffi>=1.12->cryptography>=3.3.1->fhempy) (2.20)
pi@fhem:~ $
Und wenn du jetzt fhempy startest kommt trotzdem der Fehler? Kannst du das bitte nochmals testen.
Zitat von: dominik am 14 Februar 2021, 09:25:50
Und wenn du jetzt fhempy startest kommt trotzdem der Fehler? Kannst du das bitte nochmals testen.
Okay.. Nun läufts... Wieso auch immer, der hat doch nichts neues installiert :o Na, dann erstmal weitermachen und die Minis in Fhem integrieren, dann seh ich ja was geht und was nicht.
Edit: Super, nun sind beide Minis auch wieder in Fhem. Du solltest aber vielleicht noch in der Readme erwähnen das <NAME> für den Namen aus der Google Home App steht.. Da braucht ich echt ne Minute um zu kapieren was gemeint war.
Zitat von: dominik am 13 Februar 2021, 22:41:30
Kannst du mal im Container ein
sudo -u fhem pip3 install cryptography
machen und mir die Ausgabe posten.
Hi Dominik,
habe ich ausgeführt und bekomme folgendes zurück (hoffe es ist nicht zu viel...):
┌────────────────────────────────────────────────────────────────────┐
│ • MobaXterm 20.6 • │
│ (SSH client, X-server and networking tools) │
│ │
│ ➤ SSH session to pi@192.168.86.152 │
│ • SSH compression : ✔ │
│ • SSH-browser : ✔ │
│ • X11-forwarding : ✔ (remote display is forwarded through SSH) │
│ • DISPLAY : ✔ (automatically set on remote server) │
│ │
│ ➤ For more info, ctrl+click on help or visit our website │
└────────────────────────────────────────────────────────────────────┘
Linux raspberrypi 5.10.14-v7+ #1401 SMP Mon Feb 8 14:23:24 GMT 2021 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Feb 14 13:01:57 2021 from 192.168.86.40
SSH is enabled and the default password for the 'pi' user has not been changed.
This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.
Wi-Fi is currently blocked by rfkill.
Use raspi-config to set the country before use.
pi@raspberrypi:~ $ docker exec -it fhem bash
root@6f2a32ab32b7:/opt/fhem# sudo -u fhem pip3 install cryptography
Collecting cryptography
Using cached https://files.pythonhosted.org/packages/60/6d/b32368327f600a12e59fb51a904fc6200dd7e65e953fd6fc6ae6468e3423/cryptography-3.4.5.tar.gz
Installing build dependencies ... done
Requirement already satisfied: cffi>=1.12 in ./.local/lib/python3.7/site-packages (from cryptography) (1.14.5)
Requirement already satisfied: pycparser in ./.local/lib/python3.7/site-packages (from cffi>=1.12->cryptography) (2.20)
Building wheels for collected packages: cryptography
Running setup.py bdist_wheel for cryptography ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-4gzaxddm/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-716o1ldc --python-tag cp37:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/cryptography
copying src/cryptography/utils.py -> build/lib.linux-armv7l-3.7/cryptography
copying src/cryptography/fernet.py -> build/lib.linux-armv7l-3.7/cryptography
copying src/cryptography/exceptions.py -> build/lib.linux-armv7l-3.7/cryptography
copying src/cryptography/__about__.py -> build/lib.linux-armv7l-3.7/cryptography
copying src/cryptography/__init__.py -> build/lib.linux-armv7l-3.7/cryptography
creating build/lib.linux-armv7l-3.7/cryptography/x509
copying src/cryptography/x509/oid.py -> build/lib.linux-armv7l-3.7/cryptography/x509
copying src/cryptography/x509/ocsp.py -> build/lib.linux-armv7l-3.7/cryptography/x509
copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-armv7l-3.7/cryptography/x509
copying src/cryptography/x509/name.py -> build/lib.linux-armv7l-3.7/cryptography/x509
copying src/cryptography/x509/general_name.py -> build/lib.linux-armv7l-3.7/cryptography/x509
copying src/cryptography/x509/extensions.py -> build/lib.linux-armv7l-3.7/cryptography/x509
copying src/cryptography/x509/base.py -> build/lib.linux-armv7l-3.7/cryptography/x509
copying src/cryptography/x509/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/x509
creating build/lib.linux-armv7l-3.7/cryptography/hazmat
copying src/cryptography/hazmat/_oid.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat
copying src/cryptography/hazmat/_types.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat
copying src/cryptography/hazmat/_der.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat
copying src/cryptography/hazmat/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/bindings
copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/bindings
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/_asymmetric.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/_serialization.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/_cipheralgorithm.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/bindings/openssl
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/ciphers
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/kdf
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/twofactor
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/pkcs7.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/serialization
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ocsp.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
running egg_info
writing src/cryptography.egg-info/PKG-INFO
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
writing requirements to src/cryptography.egg-info/requires.txt
writing top-level names to src/cryptography.egg-info/top_level.txt
reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files found matching 'vectors'
warning: no previously-included files matching '*' found under directory 'vectors'
warning: no previously-included files matching '*' found under directory '.github'
warning: no previously-included files found matching 'release.py'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'dev-requirements.txt'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'mypy.ini'
warning: no previously-included files matching '*' found under directory '.zuul.d'
warning: no previously-included files matching '*' found under directory '.zuul.playbooks'
writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
copying src/cryptography/py.typed -> build/lib.linux-armv7l-3.7/cryptography
running build_ext
generating cffi module 'build/temp.linux-armv7l-3.7/_padding.c'
creating build/temp.linux-armv7l-3.7
generating cffi module 'build/temp.linux-armv7l-3.7/_openssl.c'
running build_rust
=============================DEBUG ASSISTANCE=============================
If you are seeing a compilation error please try the following steps to
successfully install cryptography:
1) Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
2) Read https://cryptography.io/en/latest/installation.html for specific
instructions for your platform.
3) Check our frequently asked questions for more information:
https://cryptography.io/en/latest/faq.html
4) Ensure you have a recent Rust toolchain installed:
https://cryptography.io/en/latest/installation.html#rust
5) If you are experiencing issues with Rust for *this release only* you may
set the environment variable `CRYPTOGRAPHY_DONT_BUILD_RUST=1`.
=============================DEBUG ASSISTANCE=============================
error: Can not find Rust compiler
----------------------------------------
Failed building wheel for cryptography
Running setup.py clean for cryptography
Failed to build cryptography
Installing collected packages: cryptography
Running setup.py install for cryptography ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-4gzaxddm/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-wyoldcwf/install-record.txt --single-version-externally-managed --compile --user --prefix=:
running install
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/cryptography
copying src/cryptography/utils.py -> build/lib.linux-armv7l-3.7/cryptography
copying src/cryptography/fernet.py -> build/lib.linux-armv7l-3.7/cryptography
copying src/cryptography/exceptions.py -> build/lib.linux-armv7l-3.7/cryptography
copying src/cryptography/__about__.py -> build/lib.linux-armv7l-3.7/cryptography
copying src/cryptography/__init__.py -> build/lib.linux-armv7l-3.7/cryptography
creating build/lib.linux-armv7l-3.7/cryptography/x509
copying src/cryptography/x509/oid.py -> build/lib.linux-armv7l-3.7/cryptography/x509
copying src/cryptography/x509/ocsp.py -> build/lib.linux-armv7l-3.7/cryptography/x509
copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-armv7l-3.7/cryptography/x509
copying src/cryptography/x509/name.py -> build/lib.linux-armv7l-3.7/cryptography/x509
copying src/cryptography/x509/general_name.py -> build/lib.linux-armv7l-3.7/cryptography/x509
copying src/cryptography/x509/extensions.py -> build/lib.linux-armv7l-3.7/cryptography/x509
copying src/cryptography/x509/base.py -> build/lib.linux-armv7l-3.7/cryptography/x509
copying src/cryptography/x509/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/x509
creating build/lib.linux-armv7l-3.7/cryptography/hazmat
copying src/cryptography/hazmat/_oid.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat
copying src/cryptography/hazmat/_types.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat
copying src/cryptography/hazmat/_der.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat
copying src/cryptography/hazmat/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/bindings
copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/bindings
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/_asymmetric.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/_serialization.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/_cipheralgorithm.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/bindings/openssl
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/ciphers
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/kdf
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/twofactor
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/asymmetric
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/pkcs7.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/primitives/serialization
creating build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ocsp.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-armv7l-3.7/cryptography/hazmat/backends/openssl
running egg_info
writing src/cryptography.egg-info/PKG-INFO
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
writing requirements to src/cryptography.egg-info/requires.txt
writing top-level names to src/cryptography.egg-info/top_level.txt
reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files found matching 'vectors'
warning: no previously-included files matching '*' found under directory 'vectors'
warning: no previously-included files matching '*' found under directory '.github'
warning: no previously-included files found matching 'release.py'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'dev-requirements.txt'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'mypy.ini'
warning: no previously-included files matching '*' found under directory '.zuul.d'
warning: no previously-included files matching '*' found under directory '.zuul.playbooks'
writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
copying src/cryptography/py.typed -> build/lib.linux-armv7l-3.7/cryptography
running build_ext
generating cffi module 'build/temp.linux-armv7l-3.7/_padding.c'
creating build/temp.linux-armv7l-3.7
generating cffi module 'build/temp.linux-armv7l-3.7/_openssl.c'
running build_rust
=============================DEBUG ASSISTANCE=============================
If you are seeing a compilation error please try the following steps to
successfully install cryptography:
1) Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
2) Read https://cryptography.io/en/latest/installation.html for specific
instructions for your platform.
3) Check our frequently asked questions for more information:
https://cryptography.io/en/latest/faq.html
4) Ensure you have a recent Rust toolchain installed:
https://cryptography.io/en/latest/installation.html#rust
5) If you are experiencing issues with Rust for *this release only* you may
set the environment variable `CRYPTOGRAPHY_DONT_BUILD_RUST=1`.
=============================DEBUG ASSISTANCE=============================
error: Can not find Rust compiler
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-4gzaxddm/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-wyoldcwf/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-4gzaxddm/cryptography/
root@6f2a32ab32b7:/opt/fhem#
Wegen der Zeile:
error: Can not find Rust compiler
habe ich Rust installiert:
curl https://sh.rustup.rs -sSf | sh
Hat leider keine Besserung gebracht
Obwohl das vermutlich nichts bringt, wegen der obrigen Fehlermeldung habe ich deinen zweiten Vorschlag auch ausgeführt:
Zitat von: dominik am 14 Februar 2021, 08:52:06
Bitte dann folgendes testen:
sudo -u fhem pip3 install --upgrade cryptography
sudo -u fhem pip3 install --upgrade fhempy
Als Ergebnis kam das raus:
running build_rust
=============================DEBUG ASSISTANCE=============================
If you are seeing a compilation error please try the following steps to
successfully install cryptography:
1) Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
2) Read https://cryptography.io/en/latest/installation.html for specific
instructions for your platform.
3) Check our frequently asked questions for more information:
https://cryptography.io/en/latest/faq.html
4) Ensure you have a recent Rust toolchain installed:
https://cryptography.io/en/latest/installation.html#rust
5) If you are experiencing issues with Rust for *this release only* you may
set the environment variable `CRYPTOGRAPHY_DONT_BUILD_RUST=1`.
=============================DEBUG ASSISTANCE=============================
error: Can not find Rust compiler
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-ngq5wpyw/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-ho0_lwtc/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-ngq5wpyw/cryptography/
Ich vermute, dass es mit dem fehlenden Rust Compiler zu tun hat...stehe aber auf dem Schlauch.
Ok, der Fehler liegt an der neuen Cryptography Rust Abhängigkeit, hat wohl mehrere erwischt:
https://github.com/pyca/cryptography/issues/5771
Ich schau mal was ich tun kann, eventuell entferne ich die Abhängigkeit auch und suche eine andere Library.
Zitat von: dominik am 14 Februar 2021, 14:55:36
Ok, der Fehler liegt an der neuen Cryptography Rust Abhängigkeit, hat wohl mehrere erwischt:
https://github.com/pyca/cryptography/issues/5771
Ich schau mal was ich tun kann, eventuell entferne ich die Abhängigkeit auch und suche eine andere Library.
:'(
Danke dir...eine Möglichkeit die alte Version zu installieren gibt es nicht?!?
Scheinbar hat es jetzt geklappt.
Hab mir einige Posts hier durchgelesen:
https://github.com/pyca/cryptography/issues/5771 (https://github.com/pyca/cryptography/issues/5771)
Dort steht, dass als Lösungsvorschlag:
apt install -y rustc python3-pip
Danach noch mal:
sudo -u fhem pip3 install cryptography
Und es läuft durch.
Danke dir noch mal für deine Hilfe!
Edit 17:54 Uhr:
Leider noch mal eine Korrektur, ich glaube es geht doch nicht. Meine Google Cast Geräte bleiben alle offline.
Kann das damit was zu tun haben?:
2021-02-14 17:32:39,013 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-02-14 17:32:39,039 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-02-14 17:32:39,050 - INFO - asyncio: <Server sockets=[<socket.socket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('0.0.0.0', 15733)>]> is serving
2021-02-14 17:32:46,639 - INFO - asyncio: poll took 7587.267 ms: 1 events
2021-02-14 17:32:46,663 - INFO - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-02-14 17:32:47,020 - WARNING - asyncio: Executing <Task pending coro=<PyBinding.onMessage() running at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py:126> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/lib/python3.7/asyncio/futures.py:348, <TaskWakeupMethWrapper object at 0x73fcf530>()] created at /usr/lib/python3.7/asyncio/base_events.py:396> created at /usr/lib/python3.7/asyncio/tasks.py:325> took 0.205 seconds
2021-02-14 17:32:47,953 - WARNING - asyncio: Executing <Handle <TaskWakeupMethWrapper object at 0x71c41930>(<Future finis...events.py:396>) created at /usr/lib/python3.7/asyncio/tasks.py:368> took 0.311 seconds
2021-02-14 17:32:56,228 - INFO - asyncio: poll took 6990.183 ms: 1 events
2021-02-14 17:32:59,775 - INFO - asyncio: poll took 2730.697 ms: 1 events
Die beiden Befehle hatte ich auch ausgeführt:
sudo -u fhem pip3 install --upgrade cryptography
sudo -u fhem pip3 install --upgrade fhempy
Das Log sieht eigentlich gut aus.
Auch nach einem Neustart von fhempy tut es nicht? Stell mal bei einem Googlecast Device verbose auf 5 und schau dann nochmals im fhempy Log.
Zitat von: dominik am 14 Februar 2021, 20:59:08
Das Log sieht eigentlich gut aus.
Auch nach einem Neustart von fhempy tut es nicht? Stell mal bei einem Googlecast Device verbose auf 5 und schau dann nochmals im fhempy Log.
Hab bei dem "cast" welches den Namen "Wohnzimmer" (Nest Wifi) hat auf Verbose 5 gestellt. Hab zusätzlich noch zwei andere GoogleCast Geräte (Chromecast Audio und Nest Mini) hinzugefügt (ohne Verbose hoch zu setzen), beide sind auch "offline".
Das ist das LOG File von fhempy seit dem Container-Restart:
2021-02-14 19:00:14,993 - WARNING - asyncio: Executing <Handle _SelectorSocketTransport._read_ready() created at /usr/lib/python3.7/asyncio/selector_events.py:249> took 0.107 seconds
2021-02-14 21:04:13,088 - INFO - asyncio: poll took 7437795.551 ms: 1 events
2021-02-14 21:04:30,119 - INFO - asyncio: poll took 16837.416 ms: 1 events
2021-02-14 21:06:18,150 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-02-14 21:06:18,190 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-02-14 21:06:18,215 - INFO - asyncio: <Server sockets=[<socket.socket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('0.0.0.0', 15733)>]> is serving
2021-02-14 21:06:25,492 - INFO - asyncio: poll took 7275.678 ms: 1 events
2021-02-14 21:06:25,537 - INFO - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-02-14 21:06:25,702 - WARNING - asyncio: Executing <Task pending coro=<PyBinding.onMessage() running at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py:126> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/lib/python3.7/asyncio/futures.py:348, <TaskWakeupMethWrapper object at 0x75375350>()] created at /usr/lib/python3.7/asyncio/base_events.py:396> created at /usr/lib/python3.7/asyncio/tasks.py:325> took 0.101 seconds
2021-02-14 21:06:25,818 - WARNING - asyncio: Executing <Task pending coro=<PyBinding.onMessage() running at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py:126> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/lib/python3.7/asyncio/futures.py:348, <TaskWakeupMethWrapper object at 0x749d4630>()] created at /usr/lib/python3.7/asyncio/base_events.py:396> created at /usr/lib/python3.7/asyncio/tasks.py:325> took 0.109 seconds
2021-02-14 21:06:25,948 - WARNING - asyncio: Executing <Task pending coro=<PyBinding.onMessage() running at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py:126> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/lib/python3.7/asyncio/futures.py:348, <TaskWakeupMethWrapper object at 0x749fcc10>()] created at /usr/lib/python3.7/asyncio/base_events.py:396> created at /usr/lib/python3.7/asyncio/tasks.py:325> took 0.113 seconds
2021-02-14 21:06:27,251 - WARNING - asyncio: Executing <Handle <TaskWakeupMethWrapper object at 0x71787690>(<Future finis...events.py:396>) created at /usr/lib/python3.7/asyncio/tasks.py:368> took 0.509 seconds
2021-02-14 21:06:29,071 - INFO - asyncio: poll took 1790.579 ms: 1 events
2021-02-14 21:06:29,613 - DEBUG - cast: Start discovery
2021-02-14 21:06:32,912 - INFO - asyncio: poll took 3291.207 ms: 1 events
2021-02-14 21:06:34,067 - INFO - asyncio: poll took 1092.769 ms: 1 events
2021-02-14 21:06:39,925 - INFO - asyncio: poll took 5823.931 ms: 1 events
2021-02-14 21:07:57,532 - INFO - asyncio: poll took 76782.353 ms: 1 events
2021-02-14 21:08:00,971 - INFO - asyncio: poll took 3381.136 ms: 1 events
2021-02-14 21:08:11,609 - INFO - asyncio: poll took 10571.946 ms: 1 events
Kann es sein, dass das Device aus dem Container nicht gefunden werden kann? Eventuell Netzwerk Thema?
Hallo funktioniert bei Euch noch spotify mit googlecast?
Bis vor ein paar Tagen alles gut, doch jetzt gehts nicht merhr und im log steht folgendes:
2021-03-26 15:22:42,941 - ERROR - Google_Home_Mini: No device with id "a5d21dadee4casasdafgasg1a4ebc821a0c" known by Spotify
2021-03-26 15:22:42,941 - ERROR - Google_Home_Mini: Known devices: []
Das erste Mal war das am 22.03. im Log..
Habe noch mal die sp_dc und sp_key erneuert, Spotify_USer wird auch in den Readings richtig angezeigt...
Hat hier eventuell Spotify etwas geändert?
Gruss Jan
Anscheinend ist das Problem bereits bei spotipy bekannt...
https://github.com/plamere/spotipy/issues/659
Hallo,
ich hoffe, ich frage nichts, was hier schon behandelt wurde.
Ich habe mit dem "Fünfzeiler" das Binding auf meinem RPi installiert und anschließend ein googlecast device angelegt.
defmod FG_CAST PythonModule googlecast "Flur Erdgeschoss"
Das wurde aber nicht installiert.
Bei der Fehlersuche habe ich bemerkt, dass das Binding fhempy nicht automatisch gestartet wurde.
Nach einem manuellen Start wurde alles installiert und meine Sprachausgabe funktioniert.
Nur bleibt das Problem, dass fhempy (0.1.57) nicht automatisch startet.
Kann mir hier jemand einen Tipp geben?
Besten Dank im Voraus!
Hi,
das mit Spotify dürfte wohl ein generelles Problem sein.
Kannst du mal folgendes probieren:
- define spotify_player PythonModule spotify
- Einloggen über den Link in den Readings
- set home_mini startSpotify
- set spotify_player update_devices
- DeviceID kopieren (nur die ID, nicht den Name)
- set spotify_player play https://SPOTIFYURL DEVICEID
Sollte das gehen, dann muss ich wohl im Chromecast Modul den Spotify Login + sp_dc integrieren.
Zitat von: Atara am 31 März 2021, 09:29:05
Hallo,
ich hoffe, ich frage nichts, was hier schon behandelt wurde.
Ich habe mit dem "Fünfzeiler" das Binding auf meinem RPi installiert und anschließend ein googlecast device angelegt.
defmod FG_CAST PythonModule googlecast "Flur Erdgeschoss"
Das wurde aber nicht installiert.
Bei der Fehlersuche habe ich bemerkt, dass das Binding fhempy nicht automatisch gestartet wurde.
Nach einem manuellen Start wurde alles installiert und meine Sprachausgabe funktioniert.
Nur bleibt das Problem, dass fhempy (0.1.57) nicht automatisch startet.
Kann mir hier jemand einen Tipp geben?
Besten Dank im Voraus!
define local_pybinding BindingsIo Python
hast du gemacht? Existiert ein Device Pythonbinding_15733? Das macht den Autostart.
Zitat von: dominik am 04 April 2021, 20:07:43
Hi,
das mit Spotify dürfte wohl ein generelles Problem sein.
Kannst du mal folgendes probieren:
- define spotify_player PythonModule spotify
- Einloggen über den Link in den Readings
- set home_mini startSpotify
- set spotify_player update_devices
- DeviceID kopieren (nur die ID, nicht den Name)
- set spotify_player play https://SPOTIFYURL DEVICEID
Sollte das gehen, dann muss ich wohl im Chromecast Modul den Spotify Login + sp_dc integrieren.
Hi Dominik,
- set home_mini startSpotify
-> Pling auf Ghome ertönt
- set spotify_player update_devices
-> Ich bekomme eine Device ID
- set spotify_player play https://SPOTIFYURL DEVICEID := set Google_Home_Mini_Bureau play https://open.spotify.com/playlist/37i9asdasdad0zmsulfyDdq 12esdfsdfsdfsdfsd741c97f56b9d38d73fa1c222cc
-> Antwort von Fhem "Usage: set Google_Home_Mini_Bureau play url"
Gruss Jan
Hi Jan,
ich habe es bei mir gerade mit folgendem play probiert:
set spotify_player play https://open.spotify.com/artist/3fgrINtlzNkMEhUEq0CZS8 DEVICEID
Da hat es funktioniert über FHEM Web. Eventuell hat sich da noch irgendwo ein Leerzeichen eingeschlichen bei dir?
Kannst du es mal mit einer öffentlichen Playlist oder Artist Link testen? Wobei eine private Playlist eigentlich auch klappen sollte.
Ok, ich Hornochse.. hab set play auf dem CastDevice ausgeführt.. Im Spoti-Player gehts...
Das ist alles, was ich in der fhem.cfg habe:
define local_pybinding BindingsIo Python
attr local_pybinding room hidden
define FG_CAST PythonModule googlecast "Flur Erdgeschoss"
attr FG_CAST IODev local_pybinding
attr FG_CAST cmdIcon pause:rc_PAUSE play:rc_PLAY
attr FG_CAST icon gassistant
attr FG_CAST webCmd volume:play:pause
Ein Pythonbinding_15733 existiert nicht.
Schau mal im Raum hidden...
Hallo JF Mennedy,
da ist nur das local_pybinding.
Ich habe es mit list gemacht und alles gefunden, bis auf das Pythonbinding_15733.
Wenn es irgend etwas hilft, kann ich das Binding noch einmal löschen.
Allerdings muss ich doch scher auch irgend etwas mit Pip deinstallieren, oder?
Vielen Dank für die Hilfe!
Beste Grüße
Frank
Hi Franz,
schaut fast so aus als wenn Dominik dir da weiterhelfen muss.. Normalerweise sollte das Pythonbinding_15733 automatisch angelegt werden, wenn Du das local_binding definierst... Auch alle Abhängigkeiten sollten automatisch installiert werden.. Hast du es mit defmod oder define angelegt? Ich habe schon mal Probleme gehabt, wenn ich mit defmod gearbeitet habe...
Wo läuft dein python binding? Auf dem selben host wie fhem?
Gruss Jan
So schaut mein BindingsIo aus :
BindingType Python
DEF Python
DeviceName ws:127.0.0.1:15733
FD 85
FUUID 5fec57b2-f33f-7f5e-ad9f-350de361d7cfa081
IP 127.0.0.1
NAME local_pybinding
NR 1649
NTFY_ORDER 50-local_pybinding
PARTIAL
PORT 15733
STATE opened
TYPE BindingsIo
WEBSOCKET 1
localBinding 1
nextOpenDelay 10
READINGS:
2021-04-06 05:51:19 info ready
2021-04-06 05:51:17 state opened
2021-04-05 09:10:28 version 0.1.57
args:
local_pybinding
BindingsIo
Python
argsh:
Attributes:
DbLogExclude .*
alias local_pybinding
room 55_System,77_GoogleCast,hidden
Und das ist das zugehörige PythonBinding, welches dann angelegt wird:
Internals:
DEF 0
FD 68
FUUID 5fec57b2-f33f-7f5e-48a5-43287e9c586a19be
LAST_START 2021-04-06 05:51:12
LAST_STOP 2021-04-06 05:51:12
NAME Pythonbinding_15733
NR 1650
NTFY_ORDER 50-Pythonbinding_15733
PID 3695
STARTS 4
STATE active
TYPE PythonBinding
currentlogfile ./log/PythonBinding-2021-04-06.log
logfile ./log/PythonBinding-%Y-%m-%d.log
CoProcess:
cmdFn PythonBinding_getCmd
name fhempy
state running FHEM/bindings/python/bin/fhempy
READINGS:
2021-04-06 05:51:12 fhempy running FHEM/bindings/python/bin/fhempy
2021-04-04 21:30:51 state active
Attributes:
DbLogExclude .*
alias Pythonbinding_15733
logfile ./log/PythonBinding-%Y-%m-%d.log
nrarchive 10
room 55_System,77_GoogleCast,hidden
Kannst du sehen, ob schon ein python instanz läuft oder dein Port 15733 benutzt wird? Versuch mal
sudo killall python3
Und schau danach, ob das Pythonbinding_15733 angelegt wird...
Hallo JF Mennedy,
deine Frage mit dem defmod vs. define hat mich auf was gestoßen.
Ob das die Ursache war weiß ich aber nicht.
Ich habe zwar nicht defmod verwendet aber das define per Editor in die fhem.cfg geschrieben und dann ein "rereadcfg" gemacht.
Ich habe die Netzdevices gerne oben im File.
Das war bisher auch kein Problem aber bisher hat auch kein Device bei seine Definition weitere Devices bei mir angelegt.
Auf jeden Fall habe ich alles noch mal rausgeschmissen, das fhempy im Binding-Verzeichnis umbenannt und anschließend noch einmal ein "update all" gemacht.
Anschließend das "define PYTHONBINDING_0 PythonBinding" über das Eingabefeld ausgeführt.
Dabei wurde nun auch das Pythonbinding_15733 angelegt und alles ist gut.
Mein vorheriges Vorgehen habe ich nicht versucht zu rekonstruieren.
Daher kann ich nicht sagen, ob es tatsächlich der Grund für das Fehlverhalten war.
Nun ist aber alles, wie es soll.
Vielen Dank für deine Hilfe und Grüße
von
Frank
Na prima, freut mich 👍👍👍
Zitat von: dominik am 14 Februar 2021, 21:18:41
Kann es sein, dass das Device aus dem Container nicht gefunden werden kann? Eventuell Netzwerk Thema?
Für alle Docker-Anfänger, wie ich es einer bin: Wenn man FHEM im Docker laufen lässt, dann ist man in einem anderen Netz, deshalb läuft googlecast und Sonos z.B. nicht. Deshalb habe ich jetzt mein Docker mit
--net=host
laufen, damit geht es. Klar, damit ist es unsicher, war mein FHEM vorher ohne Docker aber ja auch...
Jetzt lief alles und ich habe mich ans Übertragen aller meiner Geräte mittels RAW gemacht. Das hat auch funktioniert, allerdings bekomme ich jetzt von fhempy folgende Fehlermeldungen:
2021-04-07 21:12:29,117 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-04-07 21:12:29,149 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
Traceback (most recent call last):
File "FHEM/bindings/python/bin/fhempy", line 121, in <module>
fpb.run()
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 468, in run
pybinding, "0.0.0.0", port, ping_timeout=None, ping_interval=None
File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
return future.result()
File "/usr/lib/python3.7/asyncio/tasks.py", line 603, in _wrap_awaitable
return (yield from awaitable.__await__())
File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/server.py", line 965, in __await_impl__
server = await self._create_server()
File "/usr/lib/python3.7/asyncio/base_events.py", line 1378, in create_server
% (sa, err.strerror.lower())) from None
OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 15733): address already in use
Diese wiederholt sich so ständig. Klar, irgendein Gerät von mir nutzt wohl auch '0.0.0.0', allerdings hab ich keine Ahnung welches...kann man das irgendwie raus bekommen?
Danke im Voraus für eure Hilfe.
Grüße, Benjamin
Zitat von: dominik am 04 April 2021, 20:07:43
Hi,
das mit Spotify dürfte wohl ein generelles Problem sein.
Kannst du mal folgendes probieren:
- define spotify_player PythonModule spotify
- Einloggen über den Link in den Readings
- set home_mini startSpotify
- set spotify_player update_devices
- DeviceID kopieren (nur die ID, nicht den Name)
- set spotify_player play https://SPOTIFYURL DEVICEID
Sollte das gehen, dann muss ich wohl im Chromecast Modul den Spotify Login + sp_dc integrieren.
Hi Dominik,
baust Du den Login und sp_dc noch in das Modul ein? Ich würde mich da ja mal selber dran wagen, weiss aber nicht genau wie und wo ich da ansetzen soll...
Im Chromecast Modul sind ja schon der Login (sp_key) und sp_dc über die Attribute eingetragen, oder?
Gruss Jan
Zitat von: benm am 07 April 2021, 21:18:20
Für alle Docker-Anfänger, wie ich es einer bin: Wenn man FHEM im Docker laufen lässt, dann ist man in einem anderen Netz, deshalb läuft googlecast und Sonos z.B. nicht. Deshalb habe ich jetzt mein Docker mit --net=host
laufen, damit geht es. Klar, damit ist es unsicher, war mein FHEM vorher ohne Docker aber ja auch...
Jetzt lief alles und ich habe mich ans Übertragen aller meiner Geräte mittels RAW gemacht. Das hat auch funktioniert, allerdings bekomme ich jetzt von fhempy folgende Fehlermeldungen:
2021-04-07 21:12:29,117 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-04-07 21:12:29,149 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
Traceback (most recent call last):
File "FHEM/bindings/python/bin/fhempy", line 121, in <module>
fpb.run()
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 468, in run
pybinding, "0.0.0.0", port, ping_timeout=None, ping_interval=None
File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
return future.result()
File "/usr/lib/python3.7/asyncio/tasks.py", line 603, in _wrap_awaitable
return (yield from awaitable.__await__())
File "/opt/fhem/.local/lib/python3.7/site-packages/websockets/server.py", line 965, in __await_impl__
server = await self._create_server()
File "/usr/lib/python3.7/asyncio/base_events.py", line 1378, in create_server
% (sa, err.strerror.lower())) from None
OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 15733): address already in use
Diese wiederholt sich so ständig. Klar, irgendein Gerät von mir nutzt wohl auch '0.0.0.0', allerdings hab ich keine Ahnung welches...kann man das irgendwie raus bekommen?
Danke im Voraus für eure Hilfe.
Grüße, Benjamin
Da dürfte fhempy nochmals gestartet werden. Hast du vielleicht irgendwo konfiguriert, dass fhempy per Script gestartet wird? Weil eigentlich macht das das PythonBinding Modul.
Zitat von: JF Mennedy am 13 April 2021, 17:38:15
Hi Dominik,
baust Du den Login und sp_dc noch in das Modul ein? Ich würde mich da ja mal selber dran wagen, weiss aber nicht genau wie und wo ich da ansetzen soll...
Im Chromecast Modul sind ja schon der Login (sp_key) und sp_dc über die Attribute eingetragen, oder?
Gruss Jan
Ja, ist geplant. Ich muss da ein paar Teile aus dem spotify Modul verwenden und diese im googlecast Modul mit einbauen. Ich habe es mal auf meine Todo Liste gesetzt, kann aber durchaus noch 2-3 Wochen dauern, da ich gerade wenig Zeit habe.
Hi Dominik,
kein Problem, bin im Moment auch total eingespannt bei der Arbeit...Mit dieser Anpassung im Code geht Spotify wieder:
# Match active spotify devices with the spotify controller's device id
spotify_device_id = None
sp = SpotifyController(self.spotify_access_token, self.spotify_expires)
self.cast.register_handler(sp)
await utils.run_blocking(functools.partial(sp.launch_app))
#spotify_device_id = None
spotify_device_id = sp.device
#for device in devices_available["devices"]:
# if device["id"] == sp.device:
# spotify_device_id = device["id"]
# break
if not spotify_device_id:
self.logger.error(
'No device with id "{}" known by Spotify'.format(sp.device)
)
self.logger.error(
"Known devices: {}".format(devices_available["devices"])
)
return
Kannst ja mal schaun, ob das auch in Deinem Sinne so ok ist....
Gruss Jan
Hallo Dominic,
ich habe seit geraumer Zeit Probleme mit Spotify. Es wird wieder einmal nichts auf einen Google-Nest abgespielt.
Der Lautsprecher reagiert zwar indem er einen Ping von sich gibt, aber danach kommt nichts mehr.
Das Fhempy-Log ist seit Tagen komplett leer. Im Nest-Device steht im Reading "spotify_user" nur "login required" drin.
Im Spotify-login-Reading steht "Connect Spotify account (new window/tab)"
Dachte zuerst das Problem hat eine andere Ursache, aber jetzt habe ich hier gelesen, dass es wohl generelle Probleme gegeben hat.
Was kann/muss ich tun damit es wieder läuft?
In der version 0.1.60 wurde das login geändert.. Du musst dich einmal neu anmelden auf deinen Geräten..
Hallo Zusammen,
ich habe gestern ein Update auf die neue Version gemacht. Spotify geht wieder :), aber seitdem funktioniert die Speak-Funktion nicht mehr.
Hat noch jemand das Problem? Oder liegt es an meinem System?
VG Andreas
Zitatich habe gestern ein Update auf die neue Version gemacht. Spotify geht wieder :), aber seitdem funktioniert die Speak-Funktion nicht mehr.
Hat noch jemand das Problem? Oder liegt es an meinem System?
Ja!!!!!!!! ,bei mir auch. Ich lasse mir die Temperaturen und Fensterzustände bei kritischen Situationen durchsagen. habe heute den ganzen Tag probiert und herausgefunden das alle meine original google mini und co. , auch in Gruppen nichts mehr mit Speak sagen. ein einzelner LG WK7 mit Assistent machts noch, aber dann auch nur direkt und nicht aus der Gruppe heraus. ärgerlich. Es sieht so aus als ob Google seinen Geräten ein neues Updaten verpasst hat. Pakete wie nodejs usw. habe ich auch schon aktualisiert. keine Chance. Auch der direkte URL-Stream läuft mit PLAY im Gegensatz zum normalen WEB-Radiostream nicht.
http://translate.google.com/translate_tts?tl=de&client=tw-ob&q=das%20ist%20ein%20test
.
Auch mit dem alten Modul geht das nicht mehr.
Über den Webbrowser oder VLC wird der Stream ausgegeben! ich tappe total im dunklen. bin auch in der Programmierung nicht fit. Da kann, glaube ich, nur einer helfen, wenn er mal Zeit hat.
Danke für deine Antwort, dann scheint es an Google zu liegen.
Bei mir geht 'Speak' ebenfalls nicht mehr.
Es kommt, wie immer, ein Ping am Lautsprecher und danach nichts mehr.
Seit heute läuft Speak wieder! jedenfalls im Moment
Bei mir läuft's auch wieder :).
Aber verdammt langsame Geschwindigkeit, genau wie direkt bei Google translate selbst. Naja vielleicht ändert sich das auch wieder.
es funktioniert wieder aber diese weinerlich bist selbstmordgefährdet klingende Stimme nervt echt. War irgendwie besser als es gar nicht mehr funktioniert hat ...
habe schon mal ein Feedback an google geschickt.....vieleicht wird es irgendwann mal wieder besser
Das Speak ist schon klasse. Ich lasse meiner Frau berichten, dass die Waschmaschine fertig ist. :D (Sie findet es wirklich gut!)
Ein anderes Thema beschäftigt mich gerade:
Ich streame gerne Radiostreams auf meinen Onkyo per googlecast. Das funktioniert recht gut.
Mir ist aber aufgefallen, dass keine Daten zum Stream angezeigt werden. Ich fänd es prima, wenn z.B. Radiosender, Artist oder Song angezeigt werden. Das ließe sich doch prima im FTUI visualisieren. :)
Wenn ich den Stream im VLC am PC abspiele, erhalte ich diese Daten. Die sind also da.
Muss ich noch was einstellen oder ist das im Moment nicht möglich?
Beispielstreams:
set onkyo.chromecast play http://streams.radiobob.de/bob-acdc/mp3-192/mediaplayer
http://br-br3-live.cast.addradio.de/br/br3/live/mp3/128/stream.mp3
Für mein zuvor beschriebenes Problem habe ich nun folgenden Workaround gefunden; elegant ist aber anders, finde ich:
Ich verwende den MPD, um den Stream aus dem Internet zu holen und gebe als Output-Device einen httpd an: z.B. localhost:8000
Der MPD zeigt mir Artist und Title als Reading an, welches ich dann am FTUI ausgeben kann.
Nun nutze ich fhempy-googlecast, um den Stream am localhost an den Onkyo weiterzuleiten. Dabei wird der Stream vom MPD per lame re-encodiert. Ein Durchreichen habe ich nicht gefunden. Es geht, ist aber gefühlt Käse, zwei Devices zum Streamen einzuschalten :(
Weiterer Nachteil:
Wenn man einen Stream am MPD umschaltet, dauert es doch einige Sekunden, bis das am Onkyo ankommt.
Hallo,
Spotify geht seit einiger Zeit nicht mehr, liegt jedoch an der pychromecast lib und nicht an fhempy.
Es gibt schon ein fix bei pychromecast, habe es bei mir eingebaut und dann geht es wieder.
unter \.local\lib\python3.x\site-packages\pychromecast\controllers\spotify.py ersetzen durch:
"""
Controller to interface with Spotify.
"""
import logging
import threading
import requests
import json
from . import BaseController
from ..config import APP_SPOTIFY
from ..error import LaunchError
APP_NAMESPACE = "urn:x-cast:com.spotify.chromecast.secure.v1"
TYPE_GET_INFO = "getInfo"
TYPE_GET_INFO_RESPONSE = "getInfoResponse"
#TYPE_SET_CREDENTIALS = "setCredentials"
#TYPE_SET_CREDENTIALS_ERROR = "setCredentialsError"
#TYPE_SET_CREDENTIALS_RESPONSE = "setCredentialsResponse"
TYPE_ADD_USER = "addUser"
TYPE_ADD_USER_RESPONSE = "addUserResponse"
TYPE_ADD_USER_ERROR = "addUserError"
# pylint: disable=too-many-instance-attributes
class SpotifyController(BaseController):
"""Controller to interact with Spotify namespace."""
def __init__(self, access_token=None, expires=None):
super().__init__(APP_NAMESPACE, APP_SPOTIFY)
self.logger = logging.getLogger(__name__)
self.session_started = False
self.access_token = access_token
self.expires = expires
self.is_launched = False
self.device = None
self.credential_error = False
self.waiting = threading.Event()
def receive_message(self, _message, data: dict):
"""
Handle the auth flow and active player selection.
Called when a message is received.
"""
if data["type"] == TYPE_GET_INFO_RESPONSE:
self.device = data["payload"]["deviceID"]
self.client = data["payload"]["clientID"]
headers = {
'authority': 'spclient.wg.spotify.com',
'authorization': 'Bearer {}'.format(self.access_token),
'content-type': 'text/plain;charset=UTF-8'
}
request_body = json.dumps({'clientId': self.client, 'deviceId': self.device})
response = requests.post('https://spclient.wg.spotify.com/device-auth/v1/refresh', headers=headers, data=request_body)
json_resp = response.json()
self.send_message({
"type": TYPE_ADD_USER,
"payload": {
"blob": json_resp["accessToken"],
"tokenType": "accesstoken"
}
})
if data["type"] == TYPE_ADD_USER_RESPONSE:
self.is_launched = True
self.waiting.set()
if data["type"] == TYPE_ADD_USER_ERROR:
self.device = None
self.credential_error = True
self.waiting.set()
return True
def launch_app(self, timeout=10):
"""
Launch Spotify application.
Will raise a LaunchError exception if there is no response from the
Spotify app within timeout seconds.
"""
if self.access_token is None or self.expires is None:
raise ValueError("access_token and expires cannot be empty")
def callback():
"""Callback function"""
self.send_message({"type": TYPE_GET_INFO, "payload": {}})
self.device = None
self.credential_error = False
self.waiting.clear()
self.launch(callback_function=callback)
counter = 0
while counter < (timeout + 1):
if self.is_launched:
return
self.waiting.wait(1)
counter += 1
if not self.is_launched:
raise LaunchError(
"Timeout when waiting for status response from Spotify app"
)
# pylint: disable=too-many-locals
def quick_play(self, **kwargs):
"""
Launches the spotify controller and returns when it's ready.
To actually play media, another application using spotify connect is required.
"""
self.access_token = kwargs["access_token"]
self.expires = kwargs["expires"]
self.launch_app(timeout=20)
Ich habe zusätzlich zu dieser Änderung auch ein Update auf die Versin 9.2.0 von pychromecast gemacht... (.local\lib\python3.x\site-packages\fhempy\lib\googlecast\manifest.json)
Gruss Jan
Hi Jan,
danke für die Info! Ist in der 9.2.0 Version der Bug schon behoben? Wenn ja, dann aktualisiere ich gleich die Abhängigkeit.
Hi Dominik,
nein ist noch nicht behoben, ist aber schon ein PR gestellt... Ich halte das mal im Auge und melde mich, wenn es gemerged ist...
Gruss Jan
Super, danke dir!
Hi,
hier der Stand der Dinge bezüglich Pychromecast und Spotify: Anscheinend wird Pychromecast nicht aktualisiert https://github.com/home-assistant-libs/pychromecast/pull/509 (https://github.com/home-assistant-libs/pychromecast/pull/509), dafür ist Spotify in eine eigene Lib https://github.com/fondberg/spotcast (https://github.com/fondberg/spotcast) ausgelagert worden.
Zur Zeit läuft Spotify bei mir mit pychromecast 9.2.0 und dem beschriebenen Fix, aber wahrscheinlich auch nur so lange, bis auf Seiten von Spotify wieder etwas geändert wird, was im Übrigen auch der Grund war, weshalb der SpotifyController aus Pychromecast ausgelagert wird :-(
Gruss Jan
Zitat von: JF Mennedy am 16 August 2021, 11:52:19
Es gibt schon ein fix bei pychromecast, habe es bei mir eingebaut und dann geht es wieder.
unter \.local\lib\python3.x\site-packages\pychromecast\controllers\spotify.py ersetzen durch:
Hi, ich stochere gerade im Nebelmeer - wo finde ich denn das file auf Buster? /usr/local/lib/python3.7/* war nicht erfolgreich :(
Hi,
/opt/fhem/.local/......
Funktioniert Spotify an Googlecast-Devices nun oder nicht?
Ich verliere den Überblick
Und wenn nicht, gibt es bereits einen Fix?
Hi, es gibt keinen offiziellen fix und wird es vermutlich auch nicht geben.
Wenn Du unter /opt/fhem/.local/lib/python3.x/site-packages/pychromecast/controllers/spotify.py
durch folgenden Code ersetzt, sollte Spotify wieder funktionieren. Bei mir geht es auf jeden Fall...
"""
Controller to interface with Spotify.
"""
import logging
import threading
import requests
import json
from . import BaseController
from ..config import APP_SPOTIFY
from ..error import LaunchError
APP_NAMESPACE = "urn:x-cast:com.spotify.chromecast.secure.v1"
TYPE_GET_INFO = "getInfo"
TYPE_GET_INFO_RESPONSE = "getInfoResponse"
#TYPE_SET_CREDENTIALS = "setCredentials"
#TYPE_SET_CREDENTIALS_ERROR = "setCredentialsError"
#TYPE_SET_CREDENTIALS_RESPONSE = "setCredentialsResponse"
TYPE_ADD_USER = "addUser"
TYPE_ADD_USER_RESPONSE = "addUserResponse"
TYPE_ADD_USER_ERROR = "addUserError"
# pylint: disable=too-many-instance-attributes
class SpotifyController(BaseController):
"""Controller to interact with Spotify namespace."""
def __init__(self, access_token=None, expires=None):
super().__init__(APP_NAMESPACE, APP_SPOTIFY)
self.logger = logging.getLogger(__name__)
self.session_started = False
self.access_token = access_token
self.expires = expires
self.is_launched = False
self.device = None
self.credential_error = False
self.waiting = threading.Event()
def receive_message(self, _message, data: dict):
"""
Handle the auth flow and active player selection.
Called when a message is received.
"""
if data["type"] == TYPE_GET_INFO_RESPONSE:
self.device = data["payload"]["deviceID"]
self.client = data["payload"]["clientID"]
headers = {
'authority': 'spclient.wg.spotify.com',
'authorization': 'Bearer {}'.format(self.access_token),
'content-type': 'text/plain;charset=UTF-8'
}
request_body = json.dumps({'clientId': self.client, 'deviceId': self.device})
response = requests.post('https://spclient.wg.spotify.com/device-auth/v1/refresh', headers=headers, data=request_body)
json_resp = response.json()
self.send_message({
"type": TYPE_ADD_USER,
"payload": {
"blob": json_resp["accessToken"],
"tokenType": "accesstoken"
}
})
if data["type"] == TYPE_ADD_USER_RESPONSE:
self.is_launched = True
self.waiting.set()
if data["type"] == TYPE_ADD_USER_ERROR:
self.device = None
self.credential_error = True
self.waiting.set()
return True
def launch_app(self, timeout=10):
"""
Launch Spotify application.
Will raise a LaunchError exception if there is no response from the
Spotify app within timeout seconds.
"""
if self.access_token is None or self.expires is None:
raise ValueError("access_token and expires cannot be empty")
def callback():
"""Callback function"""
self.send_message({"type": TYPE_GET_INFO, "payload": {}})
self.device = None
self.credential_error = False
self.waiting.clear()
self.launch(callback_function=callback)
counter = 0
while counter < (timeout + 1):
if self.is_launched:
return
self.waiting.wait(1)
counter += 1
if not self.is_launched:
raise LaunchError(
"Timeout when waiting for status response from Spotify app"
)
# pylint: disable=too-many-locals
def quick_play(self, **kwargs):
"""
Launches the spotify controller and returns when it's ready.
To actually play media, another application using spotify connect is required.
"""
self.access_token = kwargs["access_token"]
self.expires = kwargs["expires"]
self.launch_app(timeout=20)
Gruss Jan
Geht bei mir nicht. Gibt als State ein Timeout vom python-binding ... Webradio klappt famos.
Zur Installationsanleitung: ggf. sollte man in die Anleitung noch aufnehmen, dass auch der auth-code gesetzt werden muss; nicht nur die beiden spotify_sp* attribute
Bei mir funktioniert es auf beiden Google-Nest-Lautsprechern. Mal sehen wie lange - Danke für die Lösung.
@hkspks
Trag die beiden Readings spotify_sp und spotify_key mal neu ein, da war mal was, dass die sich nach einer bestimmten Zeit geändert automatisch haben.
Hi,
ich versuche gerade fhempy ans laufen zu bringen und scheitere leider.
Ich habe auf meinem PI zunaechst Python 3.7 installiert mit
sudo apt install python3 python3-pip python3-dev libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libglib2.0-dev libdbus-1-dev bluez libbluetooth-dev
sowie ein
sudo cpan Protocol::WebSocket
ausgefuehrt.
Dann in fhem mein updatefile erweitert
update add https://raw.githubusercontent.com/dom...
und das update durrchgefuehrt
ein
define local_pybinding BindingsIo Python
erzeugt zwar auch ein Pytonbinding_15733 der auch active ist,
aber leider bekomme ich nicht den "opened" status im neu definierten "local_pybinding"
fhempy_log meldet:
Unable to install package fhempy>=0.1.12: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-9ja41_su/websockets/
Was kann ich tun?
welches Update hast du gemacht?
Hat noch jemand probleme Spotify über ein Googlecast-Device abzuspielen?
Auf dem Webplayer hat sich wohl was geändert, jedenfalls wird mir als Streaming-Ziel neuerdings nur noch der Rechner und GoogleCast angezeigt und erst wenn ich GoogleCast auswähle kann ich meine Nest-Geräte auswählen. Früher konnte ich die Nest-Geräte direkt auswählen. Weiß nicht ob das was damit zu tun hat.
Ergänzung:
Die beiden Devices zeigen an ob aus dem Webplayer auf einem der Nest-Geräte gestreamt wird oder nicht.
Lassen sich im streamingfall auch komplett bedienen (Pause, Start, Stop etc.)
Lediglich das Streamen zu starten funktioniert nicht mehr.
Zitat von: Superposchi am 07 Oktober 2021, 12:45:15
Hat noch jemand probleme Spotify über ein Googlecast-Device abzuspielen?
Auf dem Webplayer hat sich wohl was geändert, jedenfalls wird mir als Streaming-Ziel neuerdings nur noch der Rechner und GoogleCast angezeigt und erst wenn ich GoogleCast auswähle kann ich meine Nest-Geräte auswählen. Früher konnte ich die Nest-Geräte direkt auswählen. Weiß nicht ob das was damit zu tun hat.
Kann ich bestätigen.
Ist bei mir auch so.
Bis denn
SouzA
Auch mit dieser (Link) Anpassung funktioniert es nicht?
https://forum.fhem.de/index.php/topic,116455.msg1173670.html#msg1173670
heute morgen gab es bei den kids keine musik aber heute abend geht es wieder...
Nein, bis vorgestern ging es mit der Änderung an der Datei und der .pm.
Doch seit vorgestern geht kein Start mehr.
Wie gesagt, wenn eine Verbindung hergestellt ist funktioniert die Bedienung einwandfrei.
Lediglich das Ansprechen des Googlecast-Gerätes scheint nicht zu funktionieren, was dazu passt, dass Spotify in der Auswahl der Streaming-Ziele wohl was verändert hat.
Komisch, bei mir läuft noch alles wie gewünscht...
Die Url wird aus einem Favorit aufgerufen
set Google_Home_Mini_Julia playFavorite 2
attr Google_Home_Mini_Julia favorite_2 https://open.spotify.com/playlist/7r7uO6oaiT0KAmJWksGkED
Nein, bei mir geht weder Play noch PlayFavorit. Der Set-Befehl verpufft einfach und es passiert nichts.
Wie gesagt, wenn etwas gestreamt wird, funktioniert die Bedienung perfekt, ur der Start eines Streams geht nicht.
Wie ist denn bei dir die Auswahl des Streaming-Ziels? Kannst du das Google-Gerät direkt auswählen oder musst du auch erst Googlecast auswählen und dann das Gerät.
Zitat von: Superposchi am 10 Oktober 2021, 14:23:35
Nein, bei mir geht weder Play noch PlayFavorit. Der Set-Befehl verpufft einfach und es passiert nichts.
Wie gesagt, wenn etwas gestreamt wird, funktioniert die Bedienung perfekt, ur der Start eines Streams geht nicht.
Wie ist denn bei dir die Auswahl des Streaming-Ziels? Kannst du das Google-Gerät direkt auswählen oder musst du auch erst Googlecast auswählen und dann das Gerät.
Eventuell sp_dc/key neu setzen? Vielleicht ist der abgelaufen.
ich verstehe die frage nach der auswahl des streaming zieles nicht... wir reden doch vom fhempy modul googlecast, oder? da ist das streaming ziel ja eindeutig, namlich der googlecast von dem der befehl abgesetzt wird...
Alles Durchprobiert
Hallo, auch hier war die fehlerhafte DNS-Auflösung das Problem
Und täglich grüßt das Murmeltier.
Nachdem ich wegen dem GoogleAssistant meinen Docker-Container neu erstellen musste funktionieren nun die Cast-Devices wieder mal nicht mehr mit Spotify.
Keine Ahnung wie oft schon, aber der Fehler das einfach nichts gestartet wird tritt ja immer wieder auf.
Nur weiß ich nicht, wonach ich noch schauen soll. Die 37.spotify habe ich vom alten Container kopiert, muss also die Anpassungen beinhalten. Authcode und sp_dc, sp_key sind alle neu gesetzt.
Es ist halt blöd, dass es auch keinerlei Hinweis gibt wo es hakt. Es verpufft einfach im Nirvana wenn mit Play eine Spotify-url aufgerufen wird.
Edit: nach dem gefühlt 28. Neustart des Fhem-Servers geht's dann auf einmal.
Hallo Zusammen,
die Einrichtung von fhempy und den devices (5 Google Home Minis, 3 Google Chromecats Audio) in FHEM haben gut funktioniert und ich konnte problemlos Spotify streamen oder "speak"-Ausgaben laufenlassen.
Ich habe aber eine Frage zum Verhalten von fhempy: googlecast und Google Home Mini Geräten in Verbindung mit der Google Home App:
Nachdem ich die Google Home Minis in FHEM mit fhempy:googlecast eingebunden hatte, konnte ich die GHM's in der Google Home App nicht mehr "managen". In der App konnte man nur noch die Lautstärke anpassen. Außerdem waren sie aus den gruppen, die in der Google Home App definiert waren, verschwunden. Die Chromecast Audios funktionierten und waren in der Google Home App weiter normal zu bedienen.
Da die Google Home App ja durchaus für die Konfiguration der GHM gebraucht wird (zumindest kenne ich keinen anderen Weg, die Dinger zu konfigurieren), habe ich die GHM aus FHEM wieder gelöscht und neu gestartet. Danach waren sie wieder voll-umfänglich in der Google Home App konfigurierbar und sind sofort wieder in den Gruppen der Google Home App aufgetaucht.
Hat das außer mir noch jemand beobachten können ?
Im fhempy-Log finde wiederkehrend folgende Fehlermeldung, hab aber keine Ahnung, ob es etwas mit meiner Frage zu tun haben könnte:
Exception in thread zeroconf-ServiceBrowser-_googlecast._tcp-421539:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/opt/fhem/.local/lib/python3.8/site-packages/zeroconf/_services/browser.py", line 538, in run
self._fire_service_state_changed_event(event)
File "/opt/fhem/.local/lib/python3.8/site-packages/zeroconf/_services/browser.py", line 421, in _fire_service_state_changed_event
self._service_state_changed.fire(
File "/opt/fhem/.local/lib/python3.8/site-packages/zeroconf/_services/__init__.py", line 55, in fire
h(**kwargs)
File "/opt/fhem/.local/lib/python3.8/site-packages/zeroconf/_services/browser.py", line 178, in on_change
getattr(listener, _ON_CHANGE_DISPATCH[state_change])(zeroconf, service_type, name)
File "/opt/fhem/.local/lib/python3.8/site-packages/pychromecast/discovery.py", line 120, in add_service
self._add_update_service(zconf, typ, name, self._cast_listener.add_cast)
File "/opt/fhem/.local/lib/python3.8/site-packages/pychromecast/discovery.py", line 131, in _add_update_service
service = zconf.get_service_info(typ, name)
File "/opt/fhem/.local/lib/python3.8/site-packages/zeroconf/_core.py", line 523, in get_service_info
if info.request(self, timeout, question_type):
File "/opt/fhem/.local/lib/python3.8/site-packages/zeroconf/_services/info.py", line 436, in request
return bool(run_coro_with_timeout(self.async_request(zc, timeout, question_type), zc.loop, timeout))
File "/opt/fhem/.local/lib/python3.8/site-packages/zeroconf/_utils/asyncio.py", line 95, in run_coro_with_timeout
return asyncio.run_coroutine_threadsafe(aw, loop).result(
File "/usr/lib/python3.8/concurrent/futures/_base.py", line 446, in result
raise TimeoutError()
concurrent.futures._base.TimeoutError
Moin,
ähnliches habe ich auch beobachtet.
Ein kurzes stromlos machen und somit Neustart der Geräte hat bei mir geholfen.
Bis denn
SouzA
Edit:
Hab das jetzt mal beobachtet... War mir bisher nicht aufgefallen.
Die Geräte (manche, nicht alle) sind nach einer geraumen Zeit nicht mehr über die App konfigurierbar. Nach Neustart dieser Geräte sind sie in der App normal verfügbar. Irgendwann nicht mehr.
Bei mir betrifft es Geräte, die in einer Gruppe sind. Dabei komischerweise aber nich alle Geräte aus einer Gruppe.
Kann also die Anmerkung von Tsadan bestätigen.
Edit 2:
Mal nen Tag beobachtet... Jetzt sind nahezu alle Geräte GH-Geräte ausgefallen. Soll bedeuten, dass diese nicht mehr über die App konfiguriert werden können.
Bedienung per Sprache usw. funktioniert aber normal.
Habe den Verdacht, dass es auch was mit dem automatischen Reconnect der DSL-Leitung zu tun haben könnte.
Habe den python-Server jetzt gestoppt und werde mal weiter beobachten.
1. Ob die Geräte jetzt von allein wieder konfigurierbar werden
2. Wenn nein, werde ich das morgen mit nem Restart der Geräte initiieren und einen weiteren Tag beobachten ohne python-Server.
Edit 3:
Vollzug kann gemeldet werden.
Nach abschalten des python-Server sind kurze Zeit später alle Geräte wieder konfigurierbar.
Also irgendwie blockiert der Server die App?!
Hi,
nochmal eine andere Frage zu fhempy.
fhempy erstellt ja seinen Log.
Problem: Ich kann von diesem Log-Device die Room-Zuordnung nicht dauerhaft setzen. Wenn ich an einem Tag den Room setze, dann ist es am nächsten Tag wieder in Unsorted.
Kann das noch jemand nachvollziehen?
Thx und bis denn
SouzA
Moin,
ich noch mal...
Hat noch jemand das Problem, dass ein Großteil der Googlecast-Geräte irgendwann offline ist?
2021-10-28 11:14:33,502 - ERROR - pychromecast.socket_client: [Chromecast(192.168.178.70):8009] Error reading from socket.
2021-10-28 11:14:36,322 - ERROR - Spotify: Failed to update status
Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 445, in _make_request
six.raise_from(e, None)
File "<string>", line 3, in raise_from
File "/opt/fhem/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 440, in _make_request
httplib_response = conn.getresponse()
File "/opt/fhem/.local/lib/python3.7/site-packages/sentry_sdk/integrations/stdlib.py", line 107, in getresponse
rv = real_getresponse(self, *args, **kwargs)
File "/usr/lib/python3.7/http/client.py", line 1352, in getresponse
response.begin()
File "/usr/lib/python3.7/http/client.py", line 310, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.7/http/client.py", line 271, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.7/socket.py", line 589, in readinto
return self._sock.recv_into(b)
File "/usr/lib/python3.7/ssl.py", line 1052, in recv_into
return self.read(nbytes, buffer)
File "/usr/lib/python3.7/ssl.py", line 911, in read
return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/opt/fhem/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/opt/fhem/.local/lib/python3.7/site-packages/urllib3/util/retry.py", line 532, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/opt/fhem/.local/lib/python3.7/site-packages/urllib3/packages/six.py", line 770, in reraise
raise value
File "/opt/fhem/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/opt/fhem/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 447, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "/opt/fhem/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 337, in _raise_timeout
self, url, "Read timed out. (read timeout=%s)" % timeout_value
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.spotify.com', port=443): Read timed out. (read timeout=5)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/spotify/spotify.py", line 342, in update_playback
functools.partial(self.spotipy.current_playback)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 33, in run_blocking
return await asyncio.get_event_loop().run_in_executor(pool, function)
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/opt/fhem/.local/lib/python3.7/site-packages/spotipy/client.py", line 1697, in current_playback
return self._get("me/player", market=market, additional_types=additional_types)
File "/opt/fhem/.local/lib/python3.7/site-packages/spotipy/client.py", line 291, in _get
return self._internal_call("GET", url, payload, kwargs)
File "/opt/fhem/.local/lib/python3.7/site-packages/spotipy/client.py", line 242, in _internal_call
timeout=self.requests_timeout, **args
File "/opt/fhem/.local/lib/python3.7/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/opt/fhem/.local/lib/python3.7/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/opt/fhem/.local/lib/python3.7/site-packages/requests/adapters.py", line 529, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.spotify.com', port=443): Read timed out. (read timeout=5)
2021-10-28 11:15:36,395 - WARNING - urllib3.connectionpool: Retrying (Retry(total=2, connect=None, read=False, redirect=None, status=3)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xb4fc2590>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /v1/me/player
2021-10-28 11:15:36,997 - WARNING - urllib3.connectionpool: Retrying (Retry(total=1, connect=None, read=False, redirect=None, status=3)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xb29e7bb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /v1/me/player
2021-10-28 11:15:38,200 - WARNING - urllib3.connectionpool: Retrying (Retry(total=0, connect=None, read=False, redirect=None, status=3)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xb158bb30>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /v1/me/player
2021-10-28 11:15:38,202 - ERROR - Spotify: Failed to update status
Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/urllib3/connection.py", line 175, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/opt/fhem/.local/lib/python3.7/site-packages/urllib3/util/connection.py", line 73, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/opt/fhem/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 382, in _make_request
self._validate_conn(conn)
File "/opt/fhem/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
conn.connect()
File "/opt/fhem/.local/lib/python3.7/site-packages/urllib3/connection.py", line 358, in connect
conn = self._new_conn()
File "/opt/fhem/.local/lib/python3.7/site-packages/urllib3/connection.py", line 187, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0xb4ffef70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/opt/fhem/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 796, in urlopen
**response_kw
File "/opt/fhem/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 796, in urlopen
**response_kw
File "/opt/fhem/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 796, in urlopen
**response_kw
File "/opt/fhem/.local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/opt/fhem/.local/lib/python3.7/site-packages/urllib3/util/retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/me/player (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xb4ffef70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/spotify/spotify.py", line 342, in update_playback
functools.partial(self.spotipy.current_playback)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 33, in run_blocking
return await asyncio.get_event_loop().run_in_executor(pool, function)
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/opt/fhem/.local/lib/python3.7/site-packages/spotipy/client.py", line 1697, in current_playback
return self._get("me/player", market=market, additional_types=additional_types)
File "/opt/fhem/.local/lib/python3.7/site-packages/spotipy/client.py", line 291, in _get
return self._internal_call("GET", url, payload, kwargs)
File "/opt/fhem/.local/lib/python3.7/site-packages/spotipy/client.py", line 242, in _internal_call
timeout=self.requests_timeout, **args
File "/opt/fhem/.local/lib/python3.7/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/opt/fhem/.local/lib/python3.7/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/opt/fhem/.local/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/me/player (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xb4ffef70>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
2021-10-28 11:15:41,038 - ERROR - pychromecast.socket_client: [Chromecast(192.168.178.70):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.178.70', 8009)), retrying in 5.0s
Siehe dazu Bild im Anhang...
Läuft auf Raspi 4 mit Buster.
Bis denn
SouzA
Hallo,
Ja, habe auch seit einem der letzten Updates (irgendwo bei 0.1.157) das Problem. Bei mir kommt noch hinzu, dass mein FHEM irgendwann blockiert oder total langsam ist. Habe jetzt mal alles googlecasts gelöscht und schaue, ob es dann nicht mehr blockiert. Nach einem Neustart von fhempy geht auf jeden Fall alles wieder normal.
Gruss Jan
Ähnlich bei mir... eben gerade konnt ich noch nicht mal nen Updatecheck machen. Lief mit nem TimeOut aus.
Nachdem ich "set Pythonbinding stop" gemacht habe, funktionierte es.
Bis denn
SouzA
Edit:
Ich sehe gerade im Log, das eigentlich der gesamte Netzverkehr lahmgelegt wurde.
Kann mir jemand den Befehl nennen, wie man das fhempy vom Raspi wieder deinstalliert? ::)
Edit 2:
Wenn man den Server stopt, wird das Log alle 10 Sekunden schön befüllt...
2021.10.28 12:41:24 1: BindingsIo (local_pybinding): ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.10.28 12:41:34 1: BindingsIo (local_pybinding): ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.10.28 12:41:44 1: BindingsIo (local_pybinding): ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
Hi,
Problem ist bekannt und ich bin noch auf Fehlersuche.
Könnt ihr bitte mal
sudo -u fhem bash
pip3 install fhempy==0.1.160
mach und dann fhempy neu starten? Lasst mich wissen ob es mit 0.1.160 läuft. Danke!
Ich habe gerade 0.1.166 released, bitte um test dieser Version ob der Fehler weiterhin auftritt.
Zitat von: dominik am 28 Oktober 2021, 23:04:26
Ich habe gerade 0.1.166 released, bitte um test dieser Version ob der Fehler weiterhin auftritt.
Moin,
danke für deine Arbeit!
Bisher keine Beanstandungen meinerseits.
Keine Offline und in der App lassen sich auch alle konfigurieren.
Läuft jetzt seit knapp 3 Stunden.
Wenn was ist, melde ich mich.
Thx und bis denn
SouzA
Guten Morgen,
ich habe auch vor ca. 2 Stunden das Update gemacht und lasse seitdem mal ein Castdevice streamen. Bis jetzt alles in Ordnung und das log sieht auch ganz gut aus :-)
Gruss Jan
ich bekomme seit einigen Tagen wieder folgende Fehlermeldung im Log. Mein Pythonbinding startet alle paar Sekunden neu
OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 15733): address already in use
Klingt danach, als ob an dem Port schon etwas laufen sollte. Hab schon mögliche andere fhempy-versionen deinstalliert, div. neustarts und auch versucht mit Kill die PIDs zu beenden... ich komme nicht weiter. der fehler geht einfach nicht weg
erledigt. Hab die Definitionen in FHEM jetzt auch gelöscht.. dann sudo reboot.. und alles neu eingerichtet. jetzt läuft es wieder
Hast du vielleicht bei der Installation nicht nur in FHEM installiert, sondern auch systemd eingerichtet? Weil dann startet systemd den Dienst statt FHEM. Wenn es dann in FHEM ebenfalls eingerichtet wird, kommt der Fehler.
Dachte ich auch erst und beim deinstallieren in Raspbian hatte er auch noch eine alte Version gefunden. Aber komischerweise lief es dann erst nach dem Kompletten reboot (verstehe ich ja noch) und es ist auch erst seit ca einer Woche zu dem Fehler gekommen und ich habe vorher nichts geändert.... Dann hätte es ja davor auch schon nicht laufen dürfen
Zitat von: dominik am 28 Oktober 2021, 23:04:26
Ich habe gerade 0.1.166 released, bitte um test dieser Version ob der Fehler weiterhin auftritt.
Ich kann nun auch endlich bestätigen, dass das Problem mit in der Google Home App nicht konfigurierbaren Google Home Minis mit der Version 0.1.166 behoben ist.
Gruß
Tsadan
Hallo zusammen,
mit Release 0.1.168 funktioniert "speak" bei mir nicht mehr. Kann das jemand bestätigen?
VG Andreas
Zitat von: a_quadrat am 04 November 2021, 11:04:05
Hallo zusammen,
mit Release 0.1.168 funktioniert "speak" bei mir nicht mehr. Kann das jemand bestätigen?
VG Andreas
Kann bestätigen, dass es nicht funktioniert. Allerdings nicht ab welchem Release. Habe es nicht in Nutzung.
Weiterhin erscheint der log von fhempy jeden Tag erneut in "Unsorted".
Hat es jemand hingekriegt diesem Ding einen Room auf Dauer zuzuweisen?
Thx und bis denn
SouzA
ZitatHallo zusammen,
mit Release 0.1.168 funktioniert "speak" bei mir nicht mehr. Kann das jemand bestätigen?
VG Andreas
Kann ich auch bestätigen
Danke für die Info. Habe es behoben...Release 0.1.172
ZitatDanke für die Info. Habe es behoben...Release 0.1.172
speak geht wieder, vielen Dank
V G
Hallo,
ich habe gerade fhempy und googlecast für mich entdeckt und gemäß Anleitung (bis zum Schritt "Usage in fhem") auf dem Raspi4 (mit RaspiOS buster) neben fhem installiert. Der fempyserver_15733 und local_phybinding werden auch angelegt und nach kurzer Zeit als betriebsbereit angezeigt.
Leider bekomme ich bei dem cast-Device nur ein "server ist offline" angezeigt.
Ein Blick ins fhempy-Log bring wiederholt diese Einträge:
2021-11-07 12:37:47,228 - INFO - __main__: Attempting install of fhempy>=0.1.12
2021-11-07 12:38:14,225 - ERROR - __main__: Unable to install package fhempy>=0.1.12: The directory '/mnt/SSD/fhem/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/opt/fhem/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Could not install packages due to an EnvironmentError: [Errno 13] Keine Berechtigung: '/opt/fhem/.local'
Check the permissions.
2021-11-07 12:38:14,226 - ERROR - __main__: Failed to install fhempy, exit now...
2021-11-07 12:39:14,525 - WARNING - __main__: Failed to load fhempy: No module named 'fhempy'
Im fhem-Log steht
021.11.07 13:13:12.064 3: fhempyserver_15733: starting
2021.11.07 13:13:12.111 3: fhempyserver_15733: using logfile: ./log/fhempy-2021-11-07.log
2021.11.07 13:14:39.133 3: fhempyserver_15733: read: end of file reached while sysread
2021.11.07 13:14:39.135 3: fhempyserver_15733: stopped
Die Devices:
Internals:
DEF 0
FD 24
FUUID 6187a7cd-f33f-378b-5681-188f14d7c4ae2531
FVERSION 10_fhempyServer.pm:0.182830/2019-01-16
LAST_START 2021-11-07 13:22:02
LAST_STOP 2021-11-07 13:22:02
NAME fhempyserver_15733
NR 1675
NTFY_ORDER 50-fhempyserver_15733
PID 4672
STARTS 44
STATE ???
TYPE fhempyServer
currentlogfile ./log/fhempy-2021-11-07.log
logfile ./log/fhempy-%Y-%m-%d.log
CoProcess:
cmdFn fhempyServer_getCmd
name fhempy
state running FHEM/bindings/python/bin/fhempy
READINGS:
2021-11-07 13:22:02 fhempy running FHEM/bindings/python/bin/fhempy
Attributes:
DbLogExclude .*
devStateIcon { my $status_img = "10px-kreis-gruen";; my $status_txt = "running";; if (substr(ReadingsVal($name, "fhempy", "running"),0,7) ne "running") { $status_img = "10px-kreis-rot";; $status_txt = "stopped";; } "<div><a>".FW_makeImage($status_img, $status_txt)."</a><a href=\"/fhem?cmd.dummy=set $name restart&XHR=1\" title=\"Restart\">".FW_makeImage("audio_repeat")."</a></div>" }
group fhempy
icon python
logfile ./log/fhempy-%Y-%m-%d.log
nrarchive 10
room fhempy
und
Internals:
BindingType fhempy
CFGFN
DEF fhempy
DeviceName ws:127.0.0.1:15733
FUUID 6187b567-f33f-378b-6ed0-f25d72eb84d45770
IP 127.0.0.1
NAME local_pybinding
NR 1761
NTFY_ORDER 50-local_pybinding
PORT 15733
STATE fhempy server offline
TYPE BindingsIo
localBinding 1
nextOpenDelay 10
READINGS:
2021-11-07 13:12:23 state fhempy server offline
args:
local_pybinding
BindingsIo
fhempy
argsh:
Attributes:
DbLogExclude .*
devStateIcon { my $status_img = "10px-kreis-gruen";; my $status_txt = "connected";; if (ReadingsVal($name, "state", "disconnected") eq "disconnected") { $status_img = "10px-kreis-rot";; $status_txt = "disconnected";; } my $ver = ReadingsVal($name, "version", "-");; "<div><a>".FW_makeImage($status_img, $status_txt)."</a><a> ".$ver." </a><a href=\"/fhem?cmd.dummy=set $name update&XHR=1\" title=\"Start update\">".FW_makeImage("refresh")."</a></div>" }
group fhempy
icon file_json-ld2
room fhempy
sowie das Cast-DeviceInternals:
DEF googlecast Badezimmer
FHEMPYTYPE googlecast
FUUID 6187b265-f33f-378b-e5b1-5ef7a05cdc06708f
FVERSION 10_fhempy.pm:0.182830/2019-01-16
IODev pybinding
NAME cast.Badezimmer
NR 1680
PYTHONTYPE googlecast
STATE fhempy server offline
TYPE fhempy
READINGS:
2021-11-07 13:24:14 state fhempy server offline
args:
cast.Badezimmer
fhempy
googlecast
Badezimmer
argsh:
Attributes:
DbLogExclude .*
room fhempy
Gruß, Christoph
Hi
ZitatThe directory '/opt/fhem/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Could not install packages due to an EnvironmentError: [Errno 13] Keine Berechtigung: '/opt/fhem/.local'
Hast du vielleicht irgendwo mal sudo verwendet? sudo brauchst du bei pip normal nie zu verwenden.
Mach mal
chown -R fhem:dialout /opt/fhem/.local
Zitat von: dominik am 07 November 2021, 15:02:54
chown -R fhem:dialout /opt/fhem/.local
chown: Zugriff auf '/opt/fhem/.local' nicht möglich: Datei oder Verzeichnis nicht gefunden
Ich habe jetzt einmal folgendes probiert:
pi@raspi-fhem:/opt/fhem $ touch .local
pi@raspi-fhem:/opt/fhem $ sudo chown -R fhem:dialout /opt/fhem/.local
und das ergebnis im Log:
2021-11-07 16:28:31,766 - INFO - __main__: Attempting install of fhempy>=0.1.12
2021-11-07 16:28:58,536 - ERROR - __main__: Unable to install package fhempy>=0.1.12: The directory '/mnt/SSD/fhem/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/opt/fhem/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Could not install packages due to an EnvironmentError: [Errno 17] Die Datei existiert bereits: '/opt/fhem/.local'
2021-11-07 16:28:58,537 - ERROR - __main__: Failed to install fhempy, exit now...
[/]
Lösch mal
/opt/fhem/.local
/opt/fhem/.cache/pip
Und die Devices fhempyServer und BindingsIo.
Danach machst nochmals ein define vom BindingsIo wie im Readme.
Leider nicht besser
2021-11-07 19:02:22,763 - INFO - __main__: Attempting install of fhempy>=0.1.12
2021-11-07 19:02:50,354 - ERROR - __main__: Unable to install package fhempy>=0.1.12: The directory '/mnt/SSD/fhem/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/opt/fhem/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Could not install packages due to an EnvironmentError: [Errno 13] Keine Berechtigung: '/opt/fhem/.local'
Check the permissions.
2021-11-07 19:02:50,354 - ERROR - __main__: Failed to install fhempy, exit now...
2021-11-07 19:03:50,644 - WARNING - __main__: Failed to load fhempy: No module named 'fhempy'
Btw. ich habe fhem auf einer dritten Patrition, und diese Installation per Symlink nach /opt/fhem verbunden - macht sonst keine Probleme bei fhem. Könnte es hier ein Problem sein?
-- edit:
Ja, scheinbar war da noch etwas - das original Verzeichnis hatte Owner pi.pi - habe ich auch noch einmal angepasst, alles gelöscht und noch einmal angelegt, jetzt sieht das Log so aus:
2021-11-07 19:07:14,252 - ERROR - __main__: Failed to install fhempy, exit now...
2021-11-07 19:08:14,446 - WARNING - __main__: Failed to load fhempy: No module named 'fhempy'
2021-11-07 19:08:14,447 - INFO - __main__: Attempting install of fhempy>=0.1.12
2021-11-07 19:08:48,570 - INFO - __main__: Successfully installed fhempy>=0.1.12
2021-11-07 19:08:48,571 - ERROR - __main__: Failed to import fhempy, exit now...
2021-11-07 19:10:44,090 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-11-07 19:10:44,106 - INFO - fhempy.lib.pkg_installer: Attempting install of async-upnp-client==0.20.0
2021-11-07 19:10:50,576 - INFO - fhempy.lib.pkg_installer: Successfully installed async-upnp-client==0.20.0 update!
2021-11-07 19:10:50,579 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-11-07 19:10:50,654 - INFO - websockets.server: server listening on 0.0.0.0:15733
Im fhem-Log:
2021.11.07 19:10:42.190 3: BindingsIo v1.0.0
2021.11.07 19:10:42.193 3: fhempyServer v1.0.0
2021.11.07 19:10:42.206 3: fhempyserver_15733: starting
2021.11.07 19:10:42.224 3: fhempyserver_15733: using logfile: ./log/fhempy-2021-11-07.log
2021.11.07 19:10:42.302 3: defmod -temporary fhempy_log FileLog ./log/fhempy-%Y-%m-%d.log fakelog : Define -temporary first
2021.11.07 19:10:42.843 3: fhempyserver_15733: read: end of file reached while sysread
2021.11.07 19:10:42.844 3: fhempyserver_15733: stopped
2021.11.07 19:10:42.860 3: fhempyserver_15733: starting
2021.11.07 19:10:42.882 3: fhempyserver_15733: using logfile: ./log/fhempy-2021-11-07.log
2021.11.07 19:10:45.566 3: Opening local_pybinding device ws:127.0.0.1:15733
2021.11.07 19:10:45.568 1: local_pybinding: Can't connect to ws:127.0.0.1:15733: Operation now in progress
2021.11.07 19:10:45.574 1: local_pybinding: Can't connect to ws:127.0.0.1:15733: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.11.07 19:10:45.574 1: BindingsIo (local_pybinding): ERROR local_pybinding - error while connecting: 127.0.0.1: Verbindungsaufbau abgelehnt (111)
2021.11.07 19:13:28.218 3: fhempy v1.0.0 (googlecast)
2021.11.07 19:13:45.963 3: fhempy v1.0.0 (googlecast)
Sehr gut, nach ein paar Sekunden, bis zu einer Minute, sollte das BindungsIo Device auf opened stehen. Dann kannst Googlecast anlegen.
Zitat von: dominik am 07 November 2021, 19:18:14
Sehr gut, nach ein paar Sekunden, bis zu einer Minute, sollte das BindungsIo Device auf opened stehen. Dann kannst Googlecast anlegen.
Das wäre zu schön - aber leider passiert nichts ... - erst nach einem Neustart des Raspi bekam ich das "opened"...
Danke
Wenn ich das jetzt richtig verstanden habe, so könnte ich doch jeden Stream an ein Googlecast-fähiges Gerät schicken, oder bin ich an spotify gebunden? Bei uns soll für ein Device z.B. i.d.R. der Livestream von NDR2-Radio laufen ...
Hallo Dominik,
ich habe Probleme mit dem Service fhempy - er lässt sich nicht starten.
● fhempy.service - FHEM PythonBinding
Loaded: loaded (/etc/systemd/system/fhempy.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2021-11-08 09:57:43 CET; 1s ago
Process: 1614 ExecStart=/home/pi/.local/bin/fhempy (code=exited, status=217/USER)
Main PID: 1614 (code=exited, status=217/USER)
Nov 08 09:57:43 homeserver systemd[1]: fhempy.service: Scheduled restart job, restart counter is at 5.
Nov 08 09:57:43 homeserver systemd[1]: Stopped FHEM PythonBinding.
Nov 08 09:57:43 homeserver systemd[1]: fhempy.service: Start request repeated too quickly.
Nov 08 09:57:43 homeserver systemd[1]: fhempy.service: Failed with result 'exit-code'.
Nov 08 09:57:43 homeserver systemd[1]: Failed to start FHEM PythonBinding.
Ich habe auch zwei LOG-Files, einmal fhempy-Date.log und PythonBinding-Date.log. Der fhempy.log ist leer.
Meine Definition in FHEM war auch anders, und zwar "define pythonbinding BindingsIo Python".
Hat sich hier was geändert? Habe ich was verpasst?
VG Andreas
Edit: ich sehe gerade, dass es für User pi ist, ich habe keinen User Pi. Wo finde ich die Datei, die geladen werden muss?
Moin,
leider ist der fhempy-Server nur kurz gelaufen, dann hat es ihn leider beendet mit folgenden Logs:
2021-11-07 20:00:04,400 - INFO - websockets.server: connection open
2021-11-07 20:00:04,402 - INFO - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-11-07 20:01:36,417 - INFO - fhempy.lib.pkg_installer: Attempting install of pychromecast==9.3.1
2021-11-07 20:01:44,561 - INFO - fhempy.lib.pkg_installer: Successfully installed pychromecast==9.3.1 update!
2021-11-07 20:01:44,569 - INFO - fhempy.lib.pkg_installer: Attempting install of youtube_dl>=2021.06.06
2021-11-07 20:01:56,473 - INFO - fhempy.lib.pkg_installer: Successfully installed youtube_dl>=2021.06.06 update!
2021-11-07 20:01:56,480 - INFO - fhempy.lib.pkg_installer: Attempting install of spotipy==2.18.0
2021-11-07 20:02:03,921 - INFO - fhempy.lib.pkg_installer: Successfully installed spotipy==2.18.0 update!
2021-11-07 20:14:37,550 - INFO - fhempy.lib.pkg_installer: Attempting install of micloud
2021-11-07 20:14:46,701 - INFO - fhempy.lib.pkg_installer: Successfully installed micloud update!
2021-11-07 20:20:09,282 - INFO - fhempy.lib.pkg_installer: Attempting install of python-miio==0.5.8
2021-11-07 20:20:25,269 - INFO - fhempy.lib.pkg_installer: Successfully installed python-miio==0.5.8 update!
2021-11-07 20:20:28,763 - ERROR - roberta: Annotation is not class: typing.List
2021-11-07 20:20:28,773 - ERROR - roberta: Annotation is not class: typing.List
2021-11-07 20:27:40,307 - ERROR - asyncio: Task exception was never retrieved
future: <Task finished coro=<run_blocking() done, defined at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py:28> exception=RuntimeError("can't start new thread") created at /usr/lib/python3.7/asyncio/tasks.py:325>
source_traceback: Object created at (most recent call last):
File "FHEM/bindings/python/bin/fhempy", line 113, in <module>
fpb.run()
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 539, in run
asyncio.get_event_loop().run_forever()
File "/usr/lib/python3.7/asyncio/base_events.py", line 539, in run_forever
self._run_once()
File "/usr/lib/python3.7/asyncio/base_events.py", line 1767, in _run_once
handle._run()
File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 150, in Define
utils.run_blocking_task(functools.partial(self.startDiscovery))
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 37, in run_blocking_task
return asyncio.create_task(run_blocking(function))
File "/usr/lib/python3.7/asyncio/tasks.py", line 325, in create_task
return loop.create_task(coro)
Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 33, in run_blocking
return await asyncio.get_event_loop().run_in_executor(pool, function)
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 580, in startDiscovery
friendly_names=[self.hash["CASTNAME"]], zeroconf_instance=zc
File "/opt/fhem/.local/lib/python3.7/site-packages/pychromecast/discovery.py", line 617, in discover_listed_chromecasts
browser.start_discovery()
File "/opt/fhem/.local/lib/python3.7/site-packages/pychromecast/discovery.py", line 499, in start_discovery
self.zeroconf_listener,
File "/opt/fhem/.local/lib/python3.7/site-packages/zeroconf/_services/browser.py", line 516, in __init__
self.start()
File "/opt/fhem/.local/lib/python3.7/site-packages/sentry_sdk/integrations/threading.py", line 54, in sentry_start
return old_start(self, *a, **kw) # type: ignore
File "/usr/lib/python3.7/threading.py", line 847, in start
_start_new_thread(self._bootstrap, ())
RuntimeError: can't start new thread
2021-11-07 20:27:54,518 - ERROR - asyncio: Task exception was never retrieved
future: <Task finished coro=<run_blocking() done, defined at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py:28> exception=RuntimeError("can't start new thread") created at /usr/lib/python3.7/asyncio/tasks.py:325>
source_traceback: Object created at (most recent call last):
File "FHEM/bindings/python/bin/fhempy", line 113, in <module>
fpb.run()
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 539, in run
asyncio.get_event_loop().run_forever()
File "/usr/lib/python3.7/asyncio/base_events.py", line 539, in run_forever
self._run_once()
File "/usr/lib/python3.7/asyncio/base_events.py", line 1767, in _run_once
handle._run()
File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 150, in Define
utils.run_blocking_task(functools.partial(self.startDiscovery))
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 37, in run_blocking_task
return asyncio.create_task(run_blocking(function))
File "/usr/lib/python3.7/asyncio/tasks.py", line 325, in create_task
return loop.create_task(coro)
Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 33, in run_blocking
return await asyncio.get_event_loop().run_in_executor(pool, function)
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/googlecast/googlecast.py", line 580, in startDiscovery
friendly_names=[self.hash["CASTNAME"]], zeroconf_instance=zc
File "/opt/fhem/.local/lib/python3.7/site-packages/pychromecast/discovery.py", line 617, in discover_listed_chromecasts
browser.start_discovery()
File "/opt/fhem/.local/lib/python3.7/site-packages/pychromecast/discovery.py", line 501, in start_discovery
self.host_browser.start()
File "/opt/fhem/.local/lib/python3.7/site-packages/sentry_sdk/integrations/threading.py", line 54, in sentry_start
return old_start(self, *a, **kw) # type: ignore
File "/usr/lib/python3.7/threading.py", line 847, in start
_start_new_thread(self._bootstrap, ())
RuntimeError: can't start new thread
Für die fragliche Zeit steht im fhemlog nicht wirklich interessantes:
2021.11.07 20:14:37.276 3: fhempy v1.0.0 (xiaomi_tokens)
2021.11.07 20:20:09.001 3: fhempy v1.0.0 (miio)
2021.11.07 20:20:28.945 3: roberta: Batteriewarnung battery: 100
Hast du irgendein Spezialsystem oder RPi mit Raspbian? Tritt der Fehler nach einem Neustart auch reproduzierbar auf?
Hallo Dominik,
gibt es eine Möglichkeit fhempy unter Ubuntu 20.04 einzurichten?
VG Andreas
Hi,
du musst die Datei mit dem User anpassen:
/etc/systemd/system/fhempy.service
Danach
sudo systemctl reload-daemon
Auf Ubuntu sollte es auch laufen. Einfach wie in der Anleitung Peers installieren.
Danke, aber der Service startet nicht
● fhempy.service - FHEM PythonBinding
Loaded: loaded (/etc/systemd/system/fhempy.service; enabl> Active: failed (Result: exit-code) since Mon 2021-11-08 2> Process: 5045 ExecStart=/home/ahartmann/.local/bin/fhempy > Main PID: 5045 (code=exited, status=203/EXEC)
Nov 08 22:52:14 homeserver systemd[1]: fhempy.service: Schedul>Nov 08 22:52:14 homeserver systemd[1]: Stopped FHEM PythonBind>Nov 08 22:52:14 homeserver systemd[1]: fhempy.service: Start r>Nov 08 22:52:14 homeserver systemd[1]: fhempy.service: Failed >Nov 08 22:52:14 homeserver systemd[1]: Failed to start FHEM Py>lines 1-11/11 (END)
der Pfad /home/ahartmann/.local/bin/ ist leer.
VG Andreas
Zitat von: dominik am 08 November 2021, 21:08:40
Hast du irgendein Spezialsystem oder RPi mit Raspbian? Tritt der Fehler nach einem Neustart auch reproduzierbar auf?
Moin,
nein, ist ein RaspiOS-lite, letztes reguläres Image, auf einer SSD, von der auch gebootet wird.. Einzig die dritte Partition, auf der fhem letztlich duch den Symlink residiert, ist abweichend.
---
Nachtrag: ich habe jetzt alles so umgemodelt, daß fhem jetzt regulär im physischen Ordner opt residiert. Nach dem Neustart bekam das Cast-Device direkt automatisch das GCast-Icon verpasst. Ob es jetzt stabil läuft, muß ich noch abwarten, ich bin jetzt erstmal ei e Weile unterwegs ...
Hi,
der Service läuft jetzt, aber fhem verbindet sich noch nicht. Kann es sein, dass ich noch eine alte Version laufen habe? Im Log steht "address already in use"
2021-11-09 10:36:05,807 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-11-09 10:36:05,819 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
Traceback (most recent call last):
File "FHEM/bindings/python/bin/fhempy", line 121, in <module>
fpb.run()
File "/usr/local/lib/python3.8/dist-packages/fhempy/lib/fhem_pythonbinding.py", line 538, in run
asyncio.get_event_loop().run_until_complete(async_main())
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/usr/local/lib/python3.8/dist-packages/fhempy/lib/fhem_pythonbinding.py", line 530, in async_main
await websockets.serve(
File "/usr/local/lib/python3.8/dist-packages/websockets/legacy/server.py", line 1042, in __await_impl__
server = await self._create_server()
File "/usr/lib/python3.8/asyncio/base_events.py", line 1463, in create_server
raise OSError(err.errno, 'error while attempting '
OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 15733): address already in use
VG Andreas
Edit: Es läuft wieder alles, die FHEM Module mussten noch aktualisiert werden.
Hi,
ich habe noch eine Verständnisfrage. Wofür benötige ich den "fhempyserver_15733"? Der ist nämlich "rot" aber spotify und chromecast funktionieren.
VG Andreas
Zitat von: a_quadrat am 08 November 2021, 22:55:27
Danke, aber der Service startet nicht
● fhempy.service - FHEM PythonBinding
Loaded: loaded (/etc/systemd/system/fhempy.service; enabl> Active: failed (Result: exit-code) since Mon 2021-11-08 2> Process: 5045 ExecStart=/home/ahartmann/.local/bin/fhempy > Main PID: 5045 (code=exited, status=203/EXEC)
Nov 08 22:52:14 homeserver systemd[1]: fhempy.service: Schedul>Nov 08 22:52:14 homeserver systemd[1]: Stopped FHEM PythonBind>Nov 08 22:52:14 homeserver systemd[1]: fhempy.service: Start r>Nov 08 22:52:14 homeserver systemd[1]: fhempy.service: Failed >Nov 08 22:52:14 homeserver systemd[1]: Failed to start FHEM Py>lines 1-11/11 (END)
der Pfad /home/ahartmann/.local/bin/ ist leer.
VG Andreas
Wenn das leer ist, dann hast du fhempy scheinbar nicht installiert. Nur um sicher zu gehen, wir reden von einem Peer und keiner Installation wo FHEM drauf läuft? Wenn dem so ist, dann mach nochmals die Installation wie hier beschrieben:
https://github.com/dominikkarall/fhempy#installation-short
Zitat von: a_quadrat am 10 November 2021, 11:34:48
Hi,
ich habe noch eine Verständnisfrage. Wofür benötige ich den "fhempyserver_15733"? Der ist nämlich "rot" aber spotify und chromecast funktionieren.
VG Andreas
Ich hätte noch alle Posts vorher lesen sollen vor meiner vorigen Antwort :)
Du hast fhempy 2x installierst. Nur dieses Kapitel ist für die Installation notwendig:
https://github.com/dominikkarall/fhempy#installation
NICHT dieses hier:
https://github.com/dominikkarall/fhempy#fhempy-peers-eg-extend-bluetooth-range
Das ist NUR für Peers wo kein FHEM läuft.
Daher mach bei dir mal als User pi:
sudo systemctl stop fhempy
sudo systemctl disable fhempy
sudo rm -f /etc/systemd/system/fhempy.service
sudo systemctl daemon-reload
pip3 uninstall fhempy
Danach wird fhempy durch fhempyserver_15733 gestartet.
Hi,
danke für deine Antwort. Ich habe es korrigiert und jetzt wir der fhempyserver_15733 auch "grün".
Aber ich habe noch ein anderes Problem. Ich habe das PythonBinding Modul seit fast einem Jahr ohne Probleme am Laufen und nutze ausschließlich chromecast und spotify. Seit meinem letzten fhem update - ungefähr vor einer Woche, friert der Fhem Server regelmäßig ein und ist nicht mehr erreichbar. Im Anhang sind einmal die Log Auszüge vom letzten Einfrieren.
fhem lod:
2021.11.11 23:39:22 2: SN678X16TD event channel timeout, two keep alive messages missing
2021.11.11 23:39:26 2: TI9558X1DE event channel timeout, two keep alive messages missing
2021.11.11 23:40:42 2: HMCCURPCPROC: [d_rpcBidCos_RF : 1467] Sending data to FHEM failed 100 times. select found no reader
2021.11.11 23:40:54 1: BindingsIo (local_pybinding): ERROR: Timeout while waiting for function to finish (id: 23696355)
2021.11.11 23:40:54 1: id => 23696355
2021.11.11 23:40:54 1: defargs => ARRAY(0x55f90f7b1e98)
2021.11.11 23:40:54 1: function => Set
2021.11.11 23:40:54 1: argsh => HASH(0x55f910096918)
2021.11.11 23:40:54 1: FHEMPYTYPE => googlecast
2021.11.11 23:40:54 1: PYTHONTYPE => googlecast
2021.11.11 23:40:54 1: msgtype => function
2021.11.11 23:40:54 1: args => ARRAY(0x55f9108cd530)
2021.11.11 23:40:54 1: NAME => castdevice_Kueche
2021.11.11 23:40:54 1: defargsh => HASH(0x55f90f77c468)
2021.11.11 23:40:54 2: di_schlafen_alles_aus: set castdevice_Kueche volume 40: continue
2021.11.11 23:42:08 1: HMCCU: [d_ccu : 1055] Graceful shutdown in 8 seconds
2021.11.11 23:42:08 1: HMCCURPCPROC: [d_rpcBidCos_Wired : 1055] Stopping RPC server CB2000178045178085
2021.11.11 23:42:08 1: HMCCURPCPROC: [d_rpcBidCos_Wired : 1055] Deregistering RPC server http://192.168.178.45:7410/fh2000 with ID CB2000178045178085 at http://192.168.178.85:2000
2021.11.11 23:42:08 1: HMCCURPCPROC: [d_rpcBidCos_Wired : 1055] Callback for RPC server CB2000178045178085 deregistered
2021.11.11 23:42:08 2: HMCCURPCPROC: [d_rpcBidCos_Wired : 1055] Sending signal INT to RPC server process CB2000178045178085 with PID=1463
2021.11.11 23:42:08 2: HMCCURPCPROC: [d_rpcBidCos_Wired : 1055] Cleaning up immediately
2021.11.11 23:42:08 1: HMCCURPCPROC: [d_rpcBidCos_Wired : 1055] Housekeeping called. Cleaning up RPC environment
2021.11.11 23:42:08 2: HMCCURPCPROC: [d_rpcBidCos_Wired : 1463] CB2000178045178085 received signal INT
2021.11.11 23:42:08 1: HMCCURPCPROC: [d_rpcBidCos_Wired : 1463] RPC server CB2000178045178085 stopped handling connections. PID=1463
2021.11.11 23:42:09 2: HMCCURPCPROC: [d_rpcBidCos_Wired : 1463] Number of I/O errors = 1
2021.11.11 23:42:10 2: HMCCURPCPROC: [d_rpcBidCos_Wired : 1055] RPC server process CB2000178045178085 deleted
2021.11.11 23:42:10 2: HMCCURPCPROC: [d_rpcBidCos_Wired : 1055] Stop I/O handling
2021.11.11 23:42:10 2: HMCCURPCPROC: [d_rpcBidCos_Wired : 1055] RPC server stopped. Cancel delayed shutdown.
2021.11.11 23:42:11 1: HMCCURPCPROC: [d_rpcBidCos_RF : 1055] Stopping RPC server CB2001178045178085
2021.11.11 23:42:11 1: HMCCURPCPROC: [d_rpcBidCos_RF : 1055] Deregistering RPC server http://192.168.178.45:7411/fh2001 with ID CB2001178045178085 at http://192.168.178.85:2001
2021.11.11 23:42:11 1: HMCCURPCPROC: [d_rpcBidCos_RF : 1055] Callback for RPC server CB2001178045178085 deregistered
2021.11.11 23:42:11 2: HMCCURPCPROC: [d_rpcBidCos_RF : 1055] Sending signal INT to RPC server process CB2001178045178085 with PID=1467
2021.11.11 23:42:11 2: HMCCURPCPROC: [d_rpcBidCos_RF : 1055] Cleaning up immediately
2021.11.11 23:42:11 1: HMCCURPCPROC: [d_rpcBidCos_RF : 1055] Housekeeping called. Cleaning up RPC environment
2021.11.11 23:42:11 2: HMCCURPCPROC: [d_rpcBidCos_RF : 1467] CB2001178045178085 received signal INT
2021.11.11 23:42:11 2: HMCCURPCPROC: [d_rpcBidCos_RF : 1467] CB2001178045178085 received signal INT
2021.11.11 23:42:11 1: HMCCURPCPROC: [d_rpcBidCos_RF : 1467] RPC server CB2001178045178085 stopped handling connections. PID=1467
2021.11.11 23:42:12 2: HMCCURPCPROC: [d_rpcBidCos_RF : 1467] Number of I/O errors = 181
2021.11.11 23:42:13 2: HMCCURPCPROC: [d_rpcBidCos_RF : 1055] RPC server process CB2001178045178085 deleted
2021.11.11 23:42:13 2: HMCCURPCPROC: [d_rpcBidCos_RF : 1055] Stop I/O handling
2021.11.11 23:42:13 2: HMCCURPCPROC: [d_rpcBidCos_RF : 1055] RPC server stopped. Cancel delayed shutdown.
2021.11.11 23:42:14 1: HMCCURPCPROC: [d_rpcHmIP_RF : 1055] Stopping RPC server CB2010178045178085
2021.11.11 23:42:14 1: HMCCURPCPROC: [d_rpcHmIP_RF : 1055] Deregistering RPC server http://192.168.178.45:7420/fh2010 with ID CB2010178045178085 at http://192.168.178.85:2010
2021.11.11 23:42:14 1: HMCCURPCPROC: [d_rpcHmIP_RF : 1055] Callback for RPC server CB2010178045178085 deregistered
2021.11.11 23:42:15 2: HMCCURPCPROC: [d_rpcHmIP_RF : 1055] Sending signal INT to RPC server process CB2010178045178085 with PID=1469
2021.11.11 23:42:15 2: HMCCURPCPROC: [d_rpcHmIP_RF : 1055] Cleaning up immediately
2021.11.11 23:42:15 1: HMCCURPCPROC: [d_rpcHmIP_RF : 1055] Housekeeping called. Cleaning up RPC environment
2021.11.11 23:42:15 2: HMCCURPCPROC: [d_rpcHmIP_RF : 1469] CB2010178045178085 received signal INT
2021.11.11 23:42:15 2: HMCCURPCPROC: [d_rpcHmIP_RF : 1469] CB2010178045178085 received signal INT
2021.11.11 23:42:15 1: HMCCURPCPROC: [d_rpcHmIP_RF : 1469] RPC server CB2010178045178085 stopped handling connections. PID=1469
2021.11.11 23:42:15 2: HMCCURPCPROC: [d_rpcHmIP_RF : 1469] Number of I/O errors = 0
2021.11.11 23:42:17 2: HMCCURPCPROC: [d_rpcHmIP_RF : 1055] RPC server process CB2010178045178085 deleted
2021.11.11 23:42:17 1: HMCCU: [d_ccu : 1055] All RPC servers inactive
2021.11.11 23:42:17 2: HMCCURPCPROC: [d_rpcHmIP_RF : 1055] Stop I/O handling
2021.11.11 23:42:17 2: HMCCURPCPROC: [d_rpcHmIP_RF : 1055] RPC server stopped. Cancel delayed shutdown.
2021.11.11 23:42:18 2: DbLog myDbLog - Last database write cycle due to shutdown ...
2021.11.11 23:42:18 2: DbLog myDbLog - no data for last database write cycle
2021.11.11 23:42:18 1: Server shutdown delayed due to d_rpcBidCos_RF,d_rpcBidCos_Wired,d_ccu,gassistant,d_rpcHmIP_RF,myDbLog for max 10 sec
2021.11.11 23:42:22 1: PERL WARNING: Unrecognized escape \d passed through at (eval 347704) line 1.
2021.11.11 23:42:22 1: ws:127.0.0.1:15733 disconnected, waiting to reappear (local_pybinding)
2021.11.11 23:42:22 1: PERL WARNING: Use of uninitialized value $dev1 in concatenation (.) or string at ./FHEM/99_myUtils.pm line 877.
2021.11.11 23:42:22 1: PERL WARNING: Unrecognized escape \d passed through at (eval 347712) line 1.
2021.11.11 23:42:22 2: mqtt2: No PINGRESP for last PINGREQ (at 2021-11-11 23:40:49), disconnecting
2021.11.11 23:42:22 1: 192.168.178.103:1883 disconnected, waiting to reappear (mqtt2)
2021.11.11 23:42:22 2: deCONZ: http request failed: connect to http://192.168.178.98:8080 timed out
2021.11.11 23:42:23 1: 192.168.178.45:1883 disconnected, waiting to reappear (MQTT)
2021.11.11 23:42:24 1: BindingsIo (local_pybinding): ERROR local_pybinding - error while connecting: 127.0.0.1: Connection refused (111)
2021.11.11 23:42:25 1: 192.168.178.45:1883 reappeared (MQTT)
2021.11.11 23:42:25 1: 192.168.178.103:1883 reappeared (mqtt2)
2021.11.11 23:42:36 0: Server shutdown
fhempy log:
2021-11-11 23:29:26,487 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 0.104 seconds
2021-11-11 23:29:26,659 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 0.137 seconds
2021-11-11 23:29:59,080 - WARNING - asyncio: Executing <Task finished name='Task-86650' coro=<_ServiceBrowserBase._async_start_query_sender() done, defined at /opt/fhem/.local/lib/python3.8/site-packages/zeroconf/_services/browser.py:448> result=None created at /opt/fhem/.local/lib/python3.8/site-packages/zeroconf/_services/browser.py:322> took 0.100 seconds
2021-11-11 23:29:59,184 - WARNING - asyncio: Executing <Handle run_coroutine_threadsafe.<locals>.callback() at /usr/lib/python3.8/asyncio/tasks.py:920 created at /usr/lib/python3.8/asyncio/tasks.py:930> took 0.104 seconds
2021-11-11 23:30:14,082 - WARNING - asyncio: Executing <Handle _ServiceBrowserBase._async_start() created at /opt/fhem/.local/lib/python3.8/site-packages/zeroconf/_services/browser.py:517> took 0.120 seconds
2021-11-11 23:30:26,942 - WARNING - asyncio: Executing <TimerHandle when=16322.41960599111 _ServiceBrowserBase._async_send_ready_queries_schedule_next() created at /opt/fhem/.local/lib/python3.8/site-packages/zeroconf/_services/browser.py:485> took 0.115 seconds
2021-11-11 23:30:36,170 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 0.160 seconds
2021-11-11 23:30:59,229 - WARNING - asyncio: Executing <Handle _ServiceBrowserBase._async_start() created at /opt/fhem/.local/lib/python3.8/site-packages/zeroconf/_services/browser.py:517> took 0.105 seconds
2021-11-11 23:30:59,441 - WARNING - asyncio: Executing <Handle run_coroutine_threadsafe.<locals>.callback() at /usr/lib/python3.8/asyncio/tasks.py:920 created at /usr/lib/python3.8/asyncio/tasks.py:930> took 0.128 seconds
2021-11-11 23:30:59,580 - WARNING - asyncio: Executing <Task finished name='Task-86682' coro=<_ServiceBrowserBase._async_start_query_sender() done, defined at /opt/fhem/.local/lib/python3.8/site-packages/zeroconf/_services/browser.py:448> result=None created at /opt/fhem/.local/lib/python3.8/site-packages/zeroconf/_services/browser.py:322> took 0.138 seconds
2021-11-11 23:31:09,077 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 1.874 seconds
2021-11-11 23:31:09,247 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 0.169 seconds
2021-11-11 23:31:09,613 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 0.298 seconds
2021-11-11 23:31:09,766 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 0.100 seconds
2021-11-11 23:31:10,120 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 0.353 seconds
2021-11-11 23:31:10,399 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 0.211 seconds
2021-11-11 23:31:10,592 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 0.148 seconds
2021-11-11 23:31:14,552 - WARNING - asyncio: Executing <Handle _ServiceBrowserBase._async_start() created at /opt/fhem/.local/lib/python3.8/site-packages/zeroconf/_services/browser.py:517> took 0.193 seconds
2021-11-11 23:31:19,071 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 0.120 seconds
2021-11-11 23:31:26,262 - WARNING - asyncio: Executing <TimerHandle when=16381.729079020015 _ServiceBrowserBase._async_send_ready_queries_schedule_next() created at /opt/fhem/.local/lib/python3.8/site-packages/zeroconf/_services/browser.py:485> took 0.127 seconds
2021-11-11 23:31:49,573 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 0.210 seconds
2021-11-11 23:31:59,637 - WARNING - asyncio: Executing <Handle _ServiceBrowserBase._async_start() created at /opt/fhem/.local/lib/python3.8/site-packages/zeroconf/_services/browser.py:517> took 0.111 seconds
2021-11-11 23:32:03,264 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 0.127 seconds
2021-11-11 23:32:03,444 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 0.117 seconds
2021-11-11 23:32:04,478 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 0.140 seconds
2021-11-11 23:32:43,131 - WARNING - asyncio: Executing <TimerHandle when=16458.604833483874 _ServiceBrowserBase._async_send_ready_queries_schedule_next() created at /opt/fhem/.local/lib/python3.8/site-packages/zeroconf/_services/browser.py:485> took 0.109 seconds
2021-11-11 23:32:47,917 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 4.767 seconds
2021-11-11 23:32:48,076 - WARNING - asyncio: Executing <Handle _ServiceBrowserBase._async_start() created at /opt/fhem/.local/lib/python3.8/site-packages/zeroconf/_services/browser.py:517> took 0.157 seconds
2021-11-11 23:32:48,226 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 0.148 seconds
2021-11-11 23:32:48,612 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 0.126 seconds
2021-11-11 23:32:48,875 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 0.208 seconds
2021-11-11 23:32:49,190 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 0.217 seconds
2021-11-11 23:32:49,817 - WARNING - asyncio: Executing <Handle run_coroutine_threadsafe.<locals>.callback() at /usr/lib/python3.8/asyncio/tasks.py:920 created at /usr/lib/python3.8/asyncio/tasks.py:930> took 0.144 seconds
2021-11-11 23:32:50,088 - WARNING - asyncio: Executing <Handle run_coroutine_threadsafe.<locals>.callback() at /usr/lib/python3.8/asyncio/tasks.py:920 created at /usr/lib/python3.8/asyncio/tasks.py:930> took 0.114 seconds
2021-11-11 23:32:50,474 - WARNING - asyncio: Executing <Handle run_coroutine_threadsafe.<locals>.callback() at /usr/lib/python3.8/asyncio/tasks.py:920 created at /usr/lib/python3.8/asyncio/tasks.py:930> took 0.123 seconds
2021-11-11 23:32:52,692 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 0.251 seconds
2021-11-11 23:33:04,333 - WARNING - asyncio: Executing <TimerHandle when=16478.93461729158 _ServiceBrowserBase._async_send_ready_queries_schedule_next() created at /opt/fhem/.local/lib/python3.8/site-packages/zeroconf/_services/browser.py:485> took 0.905 seconds
2021-11-11 23:33:23,238 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 0.123 seconds
2021-11-11 23:34:06,188 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 10.401 seconds
2021-11-11 23:42:25,227 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-11-11 23:42:25,239 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
Kannst du erkennen, woran es liegen kann, dass das System lahm gelegt ist.
VG Andreas
Ich beobachte bei mir etwas ähnliches wie Andreas. Seit einem Update letzte Woche Samstag hing mein Fhem mehr als er lief. Bin mir nicht sicher, ob es am Python binding liegt, weil ich auch mit HMCCU rumgespielt habe. Ich habe kurz nach dem Fhem Update am letzten Samstag ein "set local_pybinding update" durchgeführt welches dann von 0.1.131 auf 0.1.172 aktualisiert hat. Fhem hing dann große Teile des Samstags und ich habe dann abends manuell über die Kommandozeile die Prozesse abgeschossen, die auf fhempy hindeuteten und dann fing sich Fhem auch wieder. Es war so, dass die Fhemoberfläche ungefähr 5 Minuten relativ flüssig lief und dann hing, wenn ich den kompletten Fhem durchgestartet habe. Ich habe dann kurzerhand mit "pip uninstall fhempy" und "pip3 install -I fhempy==0.1.131" die alte Version wieder hergestellt. Danach lief es wieder etwas besser, wobei ich mir nicht sicher war, dass es wirklich die Lösung war. Heute habe ich dann wieder ein Fhem Update durchgeführt. Wie ich festgestellt habe, hat sich dabei, ohne dass ich das manuell durchgeführt habe, auch das Python Binding wieder aktualisiert. Es war wieder der gleiche Effekt, dass nach dem Fhem Neustart (shutdown restart nach dem Update) erst alles vernünftig lief und es dann plötzlich wieder hing. Im Moment das Downgrade auf 0.1.131 wieder geholfen... (Die Version habe ich gewählt, weil sie vorher problemlos lief und ich bis jetzt noch nicht dazu gekommen war eine neuere, welche nicht die neueste ist, zu testen.) Logs kann ich aber leider keine liefern, weil nichts protokolliert worden ist.
Könnt ihr Mal ein paar Versionen dazwischen probieren um zu sehen wo der Bug entstanden ist?
Wäre super wenn du
0.1.150 (Mitte zwischen 172 und 131) testen könntest
- tritt es dort auch auf, dann 0.1.140 (Mitte zwischen 131 und 150)
- tritt es dort nicht auf, dann 0.1.160 (Mitte zwischen.172 und 150)
Usw.
So sollte sich der Fehler dann gut lokalisieren lassen, danke!
OK, das kann ich Mal testen. Wie kann ich die Version am besten downgraden?
VG Andreas
sudo -u fhem bash
pip3 install fhempy==0.1.150
Danach fhempyserver neu starten.
Also bei mir hat der Downgrade nur sauber geklappt, wenn ich die alten Versionen vorher deinstalliert hatte. Aber vielleicht war ich nicht geduldig genug.
Ich habe gestern angefangen zu testen. Erst machte es den Eindruck, als ob es bis 0.1.166 sauber klappte, wobei die 165 bei mir nicht richtig lief und keinen Chromecasts erkannt hatte. Nachdem heute morgen aber mein Radio nicht anging, weil Fhem hing, kann ich sagen, dass es mindestens mit 166 bei mir den Fehler gibt. Im Moment bin ich auf 160 und werde das mal etwas laufen lassen. Fhem hat mit der 160 hat bis jetzt auch mehrere Schaltzyklen "überlebt". Leider scheint es aber tatsächlich eine Zusammenhang zu geben.
Hi,
ich habe einen ganz anderen Ansatz verfolgt und vor ca. 2 Wochen eine vm für einen fhempy peer eingerichtet und nur die googlecast als iodevice eingerichtet... alle anderen bindings (ring skoda tuya spotify) laufen noch local. fhem ist stabil und ich habe auch keine Probleme mehr mit googlecast in dieser Konstellation... ich dachte immer dass es aus meinem system kommt, da das Problem meist auftrat, wenn größere Szenarien wie z. B ein Wecker getriggert werden. dabei werden u.a. 3-4 googlecast angesteuert, die standheizung vom skoda aktiviert, von ring die Lautstärke der Türklingel verändert und von tuya werden 3 Befehle abgesetzt... Seit die googlecast nicht mehr local angebunden sind sondern uber einen peer lauft alles stabil.
Fhem lauft in einem docker dem genügend system resourcen (16core 128mb ram) zur Verfügung stehen, daran sollte es demnach nicht liegen... der vm fur den peer habe ich 2 cpu und 2gb ram gespendet... Hatte das Thema schon mal in github angesprochen und meinte, es sei erledigt, da es mit irgendeinem Update spürbar besser war, bis zum nächsten großen Wecker Szenario... Nachdem mein Ausweg über die vm erfolgreich war, hatte ich meinen docker im Verdacht...
Gruss Jan
Hi,
ok, ich denke irgendwo im googlecast ist noch eine Blocking Function drin. Wobei das sollte eigentlich erkannt werden, weil sobald eine Funktion länger als 100ms blockiert, wird ein Warning angezeigt...und daher dürfte das hier das Problem sein:
2021-11-11 23:29:26,487 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr/lib/python3.8/asyncio/selector_events.py:259> took 0.104 seconds
Ich muss nur noch ausfindig machen wer das aufruft, ich denke das kommt von zeroconf.
@Jan, kannst du bitte prüfen ob du solche Meldungen auch auf deinem googlecast Peer hast?
Hallo Dominik,
ich kann im Log von meiner fhem Instanz keine solche Meldung finden. Wird auf dem peer auch ein log erstellt? unter /home/pi/.local/... kann ich nichts finden .
Gruss Jan
Die Meldung habe ich auch gefunden. Dazu noch
2021-11-13 10:16:05,238 - WARNING - urllib3.connectionpool: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f6a77a0cb50>: Failed to establish a new connection: [Errno 24] Too many open files')': /api/6031048/store/
Beide Meldungen tauchen auch mit der 160 auf. Es hing zwar noch nichts aber ich bin jetzt mal auf die 155 gegangen, die mit urllib3 1.26.5 statt 1.26.7 lief. Mal schauen...
achso, nein, das wird in syslog geschrieben:
journalctl -u fhempy.service
ok, hab ich gerade mal überprüft, da ist nichts derartiges drin. ab und zu mal ein error unclosed connection oder unreachable aber keine warnung...
Irgendwie kriege ich fhempy nicht richtig deinstalliert. Ich habe z.B. immer noch ein "fhempy_peer_192_168_178_98" obwohl ich von diesem pi schon alles runter geschmissen habe und habe den pi sogar runtergefahren, aber das peer taucht nach dem Löschen immer wieder auf. Woran liegt das?
Wie kann ich alles löschen, damit ich nochmal sauber anfangen kann?
VG Andreas
Dann läuft auf diesem Peer noch fhempy. Also einfach dort fhempy stoppen. Die Peers werden nämlich automatisch im Netz erkannt und angelegt.
Zitat von: JF Mennedy am 13 November 2021, 11:08:33
ok, hab ich gerade mal überprüft, da ist nichts derartiges drin. ab und zu mal ein error unclosed connection oder unreachable aber keine warnung...
Hmm...."schade", nutzt du dort die 172er?
ja die 172
Nachdem die 155 den ganzen Vormittag vernünftig funktionierte habe ich auf die 156 aktualisiert. Fhem hat sich normal gestartet und konnte auch noch mein Radio starten. Habe dann einfach auf verdacht eines der verbunden Chromecasts abgeschaltet und wieder eingeschaltet und kurze Zeit später hing Fhem wieder. Die Meldung von oben habe ich im Log nicht gefunden, habe aber auch nicht sehr lange laufen lassen. Die letzten Meldungen im Log waren wie folgt:
2021-11-13 13:04:44,670 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-11-13 13:04:44,675 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-11-13 13:04:44,689 - INFO - websockets.server: server listening on 0.0.0.0:15733
2021-11-13 13:07:30,819 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-11-13 13:07:30,823 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-11-13 13:07:30,847 - INFO - websockets.server: server listening on 0.0.0.0:15733
2021-11-13 13:07:35,356 - INFO - websockets.server: connection open
2021-11-13 13:07:35,357 - INFO - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-11-13 13:09:52,283 - ERROR - fhempy.lib.fhem: Timeout - NO RESPONSE for command: readingsBulkUpdateIfChanged($defs{'Googlecast.Schlafzimmer'},'state','online');;
2021-11-13 13:09:52,448 - ERROR - fhempy.lib.fhem: Timeout - NO RESPONSE for command: readingsBulkUpdateIfChanged($defs{'Googlecast.Kueche'},'transport_id','');;
Exception ignored in: <function ClientResponse.__del__ at 0x7f52134d15e0>
Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 803, in __del__
self._connection.release()
File "/opt/fhem/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 170, in release
self._connector._release(
File "/opt/fhem/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 650, in _release
protocol.close()
File "/opt/fhem/.local/lib/python3.9/site-packages/aiohttp/client_proto.py", line 63, in close
transport.close()
File "/usr/lib/python3.9/asyncio/selector_events.py", line 700, in close
self._loop.call_soon(self._call_connection_lost, None)
File "/usr/lib/python3.9/asyncio/base_events.py", line 748, in call_soon
self._check_thread()
File "/usr/lib/python3.9/asyncio/base_events.py", line 785, in _check_thread
raise RuntimeError(
RuntimeError: Non-thread-safe operation invoked on an event loop other than the current one
2021-11-13 13:10:52,242 - ERROR - asyncio: Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f52121cfa60>
source_traceback: Object created at (most recent call last):
File "/opt/fhem/FHEM/bindings/python/bin/fhempy", line 113, in <module>
fpb.run()
File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/fhem_pythonbinding.py", line 537, in run
asyncio.get_event_loop().run_forever()
File "/usr/lib/python3.9/asyncio/base_events.py", line 596, in run_forever
self._run_once()
File "/usr/lib/python3.9/asyncio/base_events.py", line 1882, in _run_once
handle._run()
File "/usr/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/googlecast/googlecast.py", line 346, in playDefaultMedia
session = aiohttp.ClientSession()
2021-11-13 13:10:52,249 - ERROR - asyncio: Unclosed connection
client_connection: Connection<ConnectionKey(host='egal.egal.com', port=8000, is_ssl=False, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=None)>
source_traceback: Object created at (most recent call last):
File "/opt/fhem/FHEM/bindings/python/bin/fhempy", line 113, in <module>
fpb.run()
File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/fhem_pythonbinding.py", line 537, in run
asyncio.get_event_loop().run_forever()
File "/usr/lib/python3.9/asyncio/base_events.py", line 596, in run_forever
self._run_once()
File "/usr/lib/python3.9/asyncio/base_events.py", line 1882, in _run_once
handle._run()
File "/usr/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/googlecast/googlecast.py", line 347, in playDefaultMedia
res = await session.get(uri)
File "/opt/fhem/.local/lib/python3.9/site-packages/aiohttp/client.py", line 520, in _request
conn = await self._connector.connect(
File "/opt/fhem/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 560, in connect
return Connection(self, key, proto, self._loop)
2021-11-13 13:14:03,313 - ERROR - pychromecast.socket_client: [Kueche(192.168.42.61):8009] Failed to connect to service ServiceInfo(type='mdns', data='Nest-Audio-a9e2b5cd0495ab45d84b260939c7f8ad._googlecast._tcp.local.'), retrying in 5.0s
Exception ignored in: <function ClientResponse.__del__ at 0x7f52134d15e0>
Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 803, in __del__
self._connection.release()
File "/opt/fhem/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 170, in release
self._connector._release(
File "/opt/fhem/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 650, in _release
protocol.close()
File "/opt/fhem/.local/lib/python3.9/site-packages/aiohttp/client_proto.py", line 63, in close
transport.close()
File "/usr/lib/python3.9/asyncio/selector_events.py", line 700, in close
self._loop.call_soon(self._call_connection_lost, None)
File "/usr/lib/python3.9/asyncio/base_events.py", line 748, in call_soon
self._check_thread()
File "/usr/lib/python3.9/asyncio/base_events.py", line 785, in _check_thread
raise RuntimeError(
RuntimeError: Non-thread-safe operation invoked on an event loop other than the current one
2021-11-13 13:14:14,024 - ERROR - asyncio: Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f52123690d0>
source_traceback: Object created at (most recent call last):
File "/opt/fhem/FHEM/bindings/python/bin/fhempy", line 113, in <module>
fpb.run()
File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/fhem_pythonbinding.py", line 537, in run
asyncio.get_event_loop().run_forever()
File "/usr/lib/python3.9/asyncio/base_events.py", line 596, in run_forever
self._run_once()
File "/usr/lib/python3.9/asyncio/base_events.py", line 1882, in _run_once
handle._run()
File "/usr/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/googlecast/googlecast.py", line 346, in playDefaultMedia
session = aiohttp.ClientSession()
2021-11-13 13:14:14,031 - ERROR - asyncio: Unclosed connection
client_connection: Connection<ConnectionKey(host='egal.egal.com', port=8000, is_ssl=False, ssl=None, proxy=None, proxy_auth=None, proxy_headers_hash=None)>
source_traceback: Object created at (most recent call last):
File "/opt/fhem/FHEM/bindings/python/bin/fhempy", line 113, in <module>
fpb.run()
File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/fhem_pythonbinding.py", line 537, in run
asyncio.get_event_loop().run_forever()
File "/usr/lib/python3.9/asyncio/base_events.py", line 596, in run_forever
self._run_once()
File "/usr/lib/python3.9/asyncio/base_events.py", line 1882, in _run_once
handle._run()
File "/usr/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/googlecast/googlecast.py", line 347, in playDefaultMedia
res = await session.get(uri)
File "/opt/fhem/.local/lib/python3.9/site-packages/aiohttp/client.py", line 520, in _request
conn = await self._connector.connect(
File "/opt/fhem/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 560, in connect
return Connection(self, key, proto, self._loop)
Also soweit es mich betrifft, scheint es im Moment der Wechsel zwischen 155 und 156 zu sein, der mein System hängen lässt.
Hi,
zwischen 155 und 156 hat sich bei googlecast leider nix geändert. Hast du die 156er noch weiter laufen lassen? Kamen noch weitere Probleme?
Ich habe mal mit 0.1.174 pychromecast und zeroconf aktualisiert, gerne also auch diese Version mal testen.
Nein, die 156 habe ich nicht weiter laufen lassen, weil Fhem damit für mich unnutzbar wird. Habe am frühen Abend auf die 174 aktualisiert. Hat leider nicht geholfen. Gerade hat sich Fhem wieder weggehangen. Es ging los mit (mehrfach im Log)
2021-11-16 18:37:16,777 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr
/lib/python3.9/asyncio/selector_events.py:259> took 0.257 seconds
Meldungen. Dann gab es in erster Linie wieder Meldung über zu viele offene Dateien.
021-11-16 19:31:41,647 - ERROR - asyncio: Task exception was never retrieved
future: <Task finished name='Task-468' coro=<run_blocking() done, defined at /opt/fhem/.local/lib/python3.9/site-package
s/fhempy/lib/utils.py:28> exception=RuntimeError("can't start new thread") created at /usr/lib/python3.9/asyncio/tasks.p
y:361>
source_traceback: Object created at (most recent call last):
File "/opt/fhem/FHEM/bindings/python/bin/fhempy", line 113, in <module>
fpb.run()
File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/fhem_pythonbinding.py", line 539, in run
asyncio.get_event_loop().run_forever()
File "/usr/lib/python3.9/asyncio/base_events.py", line 596, in run_forever
self._run_once()
File "/usr/lib/python3.9/asyncio/base_events.py", line 1882, in _run_once
handle._run()
File "/usr/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/googlecast/googlecast.py", line 150, in Define
utils.run_blocking_task(functools.partial(self.startDiscovery))
File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/utils.py", line 37, in run_blocking_task
return asyncio.create_task(run_blocking(function))
File "/usr/lib/python3.9/asyncio/tasks.py", line 361, in create_task
task = loop.create_task(coro)
Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/utils.py", line 33, in run_blocking
return await asyncio.get_event_loop().run_in_executor(pool, function)
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/googlecast/googlecast.py", line 579, in startDiscovery
) = pychromecast.discovery.discover_listed_chromecasts(
File "/opt/fhem/.local/lib/python3.9/site-packages/pychromecast/discovery.py", line 617, in discover_listed_chromecast
s
File "/opt/fhem/.local/lib/python3.9/site-packages/pychromecast/discovery.py", line 496, in start_discovery
File "/opt/fhem/.local/lib/python3.9/site-packages/zeroconf/_services/browser.py", line 516, in __init__
self.start()
File "/opt/fhem/.local/lib/python3.9/site-packages/sentry_sdk/integrations/threading.py", line 54, in sentry_start
File "/usr/lib/python3.9/threading.py", line 874, in start
RuntimeError: can't start new thread
2021-11-16 19:31:41,719 - WARNING - urllib3.connectionpool: Retrying (Retry(total=2, connect=None, read=None, redirect=
None, status=None)) after connection broken by 'SSLError(OSError(24, 'Too many open files'))': /api/6031048/store/
2021-11-16 19:31:41,720 - WARNING - urllib3.connectionpool: Retrying (Retry(total=1, connect=None, read=None, redirect=
None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90
8e575850>: Failed to establish a new connection: [Errno 24] Too many open files')': /api/6031048/store/
2021-11-16 19:31:41,720 - WARNING - urllib3.connectionpool: Retrying (Retry(total=0, connect=None, read=None, redirect=
None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92
91e10e50>: Failed to establish a new connection: [Errno 24] Too many open files')': /api/6031048/store/
2021-11-16 19:31:56,671 - ERROR - asyncio: Task exception was never retrieved
future: <Task finished name='Task-613' coro=<run_blocking() done, defined at /opt/fhem/.local/lib/python3.9/site-package
s/fhempy/lib/utils.py:28> exception=RuntimeError("can't start new thread") created at /usr/lib/python3.9/asyncio/tasks.p
y:361>
source_traceback: Object created at (most recent call last):
File "/opt/fhem/FHEM/bindings/python/bin/fhempy", line 113, in <module>
fpb.run()
File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/fhem_pythonbinding.py", line 539, in run
asyncio.get_event_loop().run_forever()
File "/usr/lib/python3.9/asyncio/base_events.py", line 596, in run_forever
self._run_once()
File "/usr/lib/python3.9/asyncio/base_events.py", line 1882, in _run_once
handle._run()
File "/usr/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/googlecast/googlecast.py", line 150, in Define
utils.run_blocking_task(functools.partial(self.startDiscovery))
File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/utils.py", line 37, in run_blocking_task
return asyncio.create_task(run_blocking(function))
File "/usr/lib/python3.9/asyncio/tasks.py", line 361, in create_task
task = loop.create_task(coro)
Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/utils.py", line 33, in run_blocking
return await asyncio.get_event_loop().run_in_executor(pool, function)
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/googlecast/googlecast.py", line 579, in startDiscovery
) = pychromecast.discovery.discover_listed_chromecasts(
File "/opt/fhem/.local/lib/python3.9/site-packages/pychromecast/discovery.py", line 617, in discover_listed_chromecast
s
File "/opt/fhem/.local/lib/python3.9/site-packages/pychromecast/discovery.py", line 501, in start_discovery
File "/opt/fhem/.local/lib/python3.9/site-packages/sentry_sdk/integrations/threading.py", line 54, in sentry_start
File "/usr/lib/python3.9/threading.py", line 874, in start
RuntimeError: can't start new thread
2021-11-16 19:31:56,686 - WARNING - urllib3.connectionpool: Retrying (Retry(total=2, connect=None, read=None, redirect=
None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90
864e59a0>: Failed to establish a new connection: [Errno 24] Too many open files')': /api/6031048/store/
2021-11-16 19:31:56,688 - WARNING - urllib3.connectionpool: Retrying (Retry(total=1, connect=None, read=None, redirect=
None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94
78069b50>: Failed to establish a new connection: [Errno 24] Too many open files')': /api/6031048/store/
2021-11-16 19:31:56,691 - WARNING - urllib3.connectionpool: Retrying (Retry(total=0, connect=None, read=None, redirect=
None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94
780696d0>: Failed to establish a new connection: [Errno 24] Too many open files')': /api/6031048/store/
2021-11-16 19:32:37,628 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr
/lib/python3.9/asyncio/selector_events.py:259> took 0.252 seconds
2021-11-16 19:39:26,934 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr
/lib/python3.9/asyncio/selector_events.py:259> took 0.330 seconds
2021-11-16 19:54:34,989 - ERROR - pychromecast.socket_client: [Wohnung(192.168.42.36):42594] Error reading from socke
t.
2021-11-16 19:54:34,995 - WARNING - urllib3.connectionpool: Retrying (Retry(total=2, connect=None, read=None, redirect=
None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92
63c1dd30>: Failed to establish a new connection: [Errno 24] Too many open files')': /api/6031048/store/
2021-11-16 19:54:34,996 - WARNING - urllib3.connectionpool: Retrying (Retry(total=1, connect=None, read=None, redirect=
None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92
63c1d250>: Failed to establish a new connection: [Errno 24] Too many open files')': /api/6031048/store/
2021-11-16 19:54:34,997 - WARNING - urllib3.connectionpool: Retrying (Retry(total=0, connect=None, read=None, redirect=
None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92
63c1d8b0>: Failed to establish a new connection: [Errno 24] Too many open files')': /api/6031048/store/
2021-11-16 19:54:37,164 - ERROR - pychromecast.socket_client: [Wohnung(192.168.42.36):42594] Failed to connect to ser
vice ServiceInfo(type='mdns', data='Google-Cast-Group-d86e7c12ce5941d6832f6d047f33bc27-1._googlecast._tcp.local.'), retr
ying in 5.0s
2021-11-16 19:54:37,168 - WARNING - urllib3.connectionpool: Retrying (Retry(total=2, connect=None, read=None, redirect=
None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91
10b5edc0>: Failed to establish a new connection: [Errno 24] Too many open files')': /api/6031048/store/
2021-11-16 19:54:37,168 - WARNING - urllib3.connectionpool: Retrying (Retry(total=1, connect=None, read=None, redirect=
None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91
10b5e5b0>: Failed to establish a new connection: [Errno 24] Too many open files')': /api/6031048/store/
2021-11-16 19:54:37,168 - WARNING - urllib3.connectionpool: Retrying (Retry(total=0, connect=None, read=None, redirect=
None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91
10b5e700>: Failed to establish a new connection: [Errno 24] Too many open files')': /api/6031048/store/
2021-11-16 19:54:38,490 - WARNING - asyncio: Executing <Handle _SelectorDatagramTransport._read_ready() created at /usr
/lib/python3.9/asyncio/selector_events.py:259> took 0.606 seconds
Vermutlich sind es gar nicht mal Änderungen, die du im Code vorgenommen hast. Vielleicht sind es Änderungen in Paketen, von denen Abhängigkeiten vorhanden sind. Wie bereits vorher festgestellt hatte sich eine Änderung bei urllib3 von 155 auf 156 ergeben, was nicht heißen soll, dass dies das Problem verursacht, wobei das ja wenn ich das richtig verstanden habe, für das Connection Handling verantwortlich sein könnte. Würde irgendwie zu den Meldungen passen. Vielleicht sind es einfach vergessen Verbindungen, die nicht sauber geschlossen werden? Bei mir gehen die Chromecasts regelmäßig aus und an, weil ich sie vom Strom trenne, wenn ich die Wohnung verlasse. Da werden Verbindungen mit Sicherheit nicht sauber getrennt, weil die hart vom Strom getrennt werden. Wenn da noch Reste bleiben...
Meldungen dieser Art
2021-11-16 06:35:50,346 - ERROR - asyncio: Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f913260be80>
source_traceback: Object created at (most recent call last):
File "/opt/fhem/FHEM/bindings/python/bin/fhempy", line 113, in <module>
fpb.run()
File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/fhem_pythonbinding.py", line 506, in run
asyncio.get_event_loop().run_forever()
File "/usr/lib/python3.9/asyncio/base_events.py", line 596, in run_forever
self._run_once()
File "/usr/lib/python3.9/asyncio/base_events.py", line 1882, in _run_once
handle._run()
File "/usr/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/googlecast/googlecast.py", line 346, in playDefaultMedia
session = aiohttp.ClientSession()
finde ich häufig im Log. Das tritt meist auf, nachdem die Chromecasts ins Netz zurückkehren und dann etwas drauf abgespielt wird. Die stellen bis jetzt kein größeres Problem dar, aber offensichtlich scheinen da noch offene Verbindungen zu sein. Wenn da zum Beispiel ein neueres Urllib3 nicht mehr mit klar kommt, könnte das ja vielleicht zu Problemen führen. Aber es gibt vielleicht noch andere Abhängigkeiten, die da aktualisiert werden bei dem Versionssprung. Daher alles nur Spekulatius...
Ah, ok, das ist eine gute Info, dass deine Chromecasts immer offline gehen. So kann ich den Fehler vielleicht nachstellen.
Hast du jetzt 155 am Laufen, ohne Fehler?
Ja, bin zurück auf die 155. Fhem hat sich bis jetzt nicht aufgehangen. Fehler halt nur den letztgenannten, der aber an dieser Stelle außer der Meldung in Log keine Auswirkungen hat.
Hi,
ich hatte die Version 156, 2 Tage, ohne Probleme laufen und habe jetzt auf 174 aktualisiert. Ich berichte...
VG Andreas
Hallo,
seit ich fhempy installiert habe, läuft mir mein fhem-Log mit Meldungen voll:
2021.11.20 18:33:55.542 1: readingsUpdate(,is_on,0) missed to call readingsBeginUpdate first.
2021.11.20 18:33:55.542 1: stacktrace:
2021.11.20 18:33:55.542 1: main::readingsBulkUpdate called by fhem.pl (4927)
2021.11.20 18:33:55.542 1: main::readingsBulkUpdateIfChanged called by (eval 1797514) (1)
2021.11.20 18:33:55.542 1: (eval) called by ./FHEM/10_BindingsIo.pm (462)
2021.11.20 18:33:55.542 1: main::BindingsIo_processMessage called by ./FHEM/10_BindingsIo.pm (573)
2021.11.20 18:33:55.542 1: main::BindingsIo_readWebsocketMessage called by ./FHEM/10_BindingsIo.pm (221)
2021.11.20 18:33:55.543 1: main::BindingsIo_Read called by ./FHEM/98_apptime.pm (178)
2021.11.20 18:33:55.543 1: main::apptime_getTiming called by ./FHEM/98_apptime.pm (138)
2021.11.20 18:33:55.543 1: main::CallFn called by fhem.pl (773)
2021.11.20 18:33:55.549 1: readingsUpdate(,is_water_box_attached,0) missed to call readingsBeginUpdate first.
2021.11.20 18:33:55.550 1: stacktrace:
2021.11.20 18:33:55.550 1: main::readingsBulkUpdate called by fhem.pl (4927)
2021.11.20 18:33:55.550 1: main::readingsBulkUpdateIfChanged called by (eval 1797515) (1)
2021.11.20 18:33:55.550 1: (eval) called by ./FHEM/10_BindingsIo.pm (462)
2021.11.20 18:33:55.550 1: main::BindingsIo_processMessage called by ./FHEM/10_BindingsIo.pm (573)
2021.11.20 18:33:55.550 1: main::BindingsIo_readWebsocketMessage called by ./FHEM/10_BindingsIo.pm (221)
2021.11.20 18:33:55.550 1: main::BindingsIo_Read called by ./FHEM/98_apptime.pm (178)
2021.11.20 18:33:55.550 1: main::apptime_getTiming called by ./FHEM/98_apptime.pm (138)
2021.11.20 18:33:55.551 1: main::CallFn called by fhem.pl (773)
2021.11.20 18:33:55.570 1: readingsUpdate(,got_error,0) missed to call readingsBeginUpdate first.
2021.11.20 18:33:55.570 1: stacktrace:
2021.11.20 18:33:55.570 1: main::readingsBulkUpdate called by fhem.pl (4927)
2021.11.20 18:33:55.570 1: main::readingsBulkUpdateIfChanged called by (eval 1797518) (1)
2021.11.20 18:33:55.570 1: (eval) called by ./FHEM/10_BindingsIo.pm (462)
2021.11.20 18:33:55.570 1: main::BindingsIo_processMessage called by ./FHEM/10_BindingsIo.pm (573)
2021.11.20 18:33:55.570 1: main::BindingsIo_readWebsocketMessage called by ./FHEM/10_BindingsIo.pm (221)
2021.11.20 18:33:55.571 1: main::BindingsIo_Read called by ./FHEM/98_apptime.pm (178)
2021.11.20 18:33:55.571 1: main::apptime_getTiming called by ./FHEM/98_apptime.pm (138)
2021.11.20 18:33:55.571 1: main::CallFn called by fhem.pl (773)
2021.11.20 18:33:55.584 1: ERROR: empty name in readingsBeginUpdate
2021.11.20 18:33:55.584 1: stacktrace:
2021.11.20 18:33:55.584 1: main::readingsBeginUpdate called by (eval 1797520) (1)
2021.11.20 18:33:55.584 1: (eval) called by ./FHEM/10_BindingsIo.pm (462)
2021.11.20 18:33:55.584 1: main::BindingsIo_processMessage called by ./FHEM/10_BindingsIo.pm (573)
2021.11.20 18:33:55.584 1: main::BindingsIo_readWebsocketMessage called by ./FHEM/10_BindingsIo.pm (221)
2021.11.20 18:33:55.585 1: main::BindingsIo_Read called by ./FHEM/98_apptime.pm (178)
2021.11.20 18:33:55.585 1: main::apptime_getTiming called by ./FHEM/98_apptime.pm (138)
2021.11.20 18:33:55.585 1: main::CallFn called by fhem.pl (773)
2021.11.20 18:33:55.585 1: readingsUpdate(,presence,online) missed to call readingsBeginUpdate first.
2021.11.20 18:33:55.585 1: stacktrace:
2021.11.20 18:33:55.585 1: main::readingsBulkUpdate called by fhem.pl (4927)
2021.11.20 18:33:55.585 1: main::readingsBulkUpdateIfChanged called by (eval 1797520) (1)
2021.11.20 18:33:55.586 1: (eval) called by ./FHEM/10_BindingsIo.pm (462)
2021.11.20 18:33:55.586 1: main::BindingsIo_processMessage called by ./FHEM/10_BindingsIo.pm (573)
2021.11.20 18:33:55.586 1: main::BindingsIo_readWebsocketMessage called by ./FHEM/10_BindingsIo.pm (221)
2021.11.20 18:33:55.586 1: main::BindingsIo_Read called by ./FHEM/98_apptime.pm (178)
2021.11.20 18:33:55.586 1: main::apptime_getTiming called by ./FHEM/98_apptime.pm (138)
2021.11.20 18:33:55.586 1: main::CallFn called by fhem.pl (773)
Inzwischen habe ich deswegen nur noch den fhempy-Dienst ansich sowie das Modul Xiaomi-Token installiert - leider ändert dies nichts am Auftreten dieser Meldungen. Was kann ich tun, um ein Fluten des Logs zu unterbinden?
Gruß, Christoph
Schau mal ins fhempy Log bzw. starte fhempy mal neu und prüfe ob es dann funktioniert. Hast du googlecast zuvor verwendet? Wenn ja, poste bitte das gesamte fhempy Log damit man sehen kann was schief gelaufen ist. Danke.
Könnt ihr bitte mal 0.1.175 testen? Ich habe dort pychromecast, spotipy aktualisiert und den Discovery Mechanismus wieder auf eine alte Variante umgestellt.
Hallo Dominik,
Ich habe mein FHEM Server hinter einem VPN Tunnel. Lokal im Homenetz habe ich einen Raspi. Gibt es eine Möglichkeit für mich das Chromecast Modul zu nutzen.
Eventuell fhempy als peer auf den Pi installieren?
Grüße
Marko
Genau, fhempy als Peer am RPi einrichten. Du musst dann nur Port 15733 am Peer von FHEM aus verfügbar machen.
Zitat von: dominik am 21 November 2021, 16:24:49
Genau, fhempy als Peer am RPi einrichten. Du musst dann nur Port 15733 am Peer von FHEM aus verfügbar machen.
Ok danke Dir. Und wie findet der Peer oder besser das chromcast Modul das Chromcastgerät? Anfrage an Google oder scannt er intern im Netz?
Moin,
wenn wir hier gerade bei Peers sind...
Mir ist vor kurzem mein Peer-Raspi abgeschmiert (hat sich aus irgendwelchen Gründen aufgehängt...).
Wenn der fhempyserver in fhem keinen Kontakt mehr zum Peer hat, spielt der völlig verrückt (Fehlemeldungen im Fhem-Log im Sekundentakt) und blockiert die gesamte Bedienung in fhem.
2021.11.21 10:26:00 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 5369889)
2021.11.21 10:26:00 1: defargsh => HASH(0x79f20b0)
2021.11.21 10:26:00 1: id => 5369889
2021.11.21 10:26:00 1: PYTHONTYPE => ble_presence
2021.11.21 10:26:00 1: FHEMPYTYPE => ble_presence
2021.11.21 10:26:00 1: argsh => HASH(0x8cd5f58)
2021.11.21 10:26:00 1: defargs => ARRAY(0x7a256c0)
2021.11.21 10:26:00 1: args => ARRAY(0x8e5abd8)
2021.11.21 10:26:00 1: function => Set
2021.11.21 10:26:00 1: NAME => Gtag_YYYY_remote_IP48
2021.11.21 10:26:00 1: msgtype => function
2021.11.21 10:26:02 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 69277243)
2021.11.21 10:26:02 1: function => Set
2021.11.21 10:26:02 1: args => ARRAY(0x8e5abd8)
2021.11.21 10:26:02 1: defargs => ARRAY(0x79f5bf8)
2021.11.21 10:26:02 1: NAME => Gtag_Auto_remote_IP48
2021.11.21 10:26:02 1: msgtype => function
2021.11.21 10:26:02 1: PYTHONTYPE => ble_presence
2021.11.21 10:26:02 1: defargsh => HASH(0x7a21450)
2021.11.21 10:26:02 1: id => 69277243
2021.11.21 10:26:02 1: argsh => HASH(0x8e55220)
2021.11.21 10:26:02 1: FHEMPYTYPE => ble_presence
2021.11.21 10:26:05 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 37251882)
2021.11.21 10:26:05 1: defargs => ARRAY(0x79e56c8)
2021.11.21 10:26:05 1: args => ARRAY(0x8e5abd8)
2021.11.21 10:26:05 1: function => Set
2021.11.21 10:26:05 1: msgtype => function
2021.11.21 10:26:05 1: NAME => Gtag_XYXY_remote_IP48
2021.11.21 10:26:05 1: id => 37251882
2021.11.21 10:26:05 1: defargsh => HASH(0x79dec20)
2021.11.21 10:26:05 1: PYTHONTYPE => ble_presence
2021.11.21 10:26:05 1: FHEMPYTYPE => ble_presence
2021.11.21 10:26:05 1: argsh => HASH(0x86982e8)
2021.11.21 10:26:07 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 91876904)
2021.11.21 10:26:07 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:07 1: argsh => HASH(0x8eca8c8)
2021.11.21 10:26:07 1: PYTHONTYPE => googlecast
2021.11.21 10:26:07 1: id => 91876904
2021.11.21 10:26:07 1: defargsh => HASH(0x77d4ae0)
2021.11.21 10:26:07 1: msgtype => function
2021.11.21 10:26:07 1: NAME => GC_Anlage
2021.11.21 10:26:07 1: args => ARRAY(0x87997d0)
2021.11.21 10:26:07 1: defargs => ARRAY(0x774ef10)
2021.11.21 10:26:07 1: function => Set
2021.11.21 10:26:10 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 78261926)
2021.11.21 10:26:10 1: msgtype => function
2021.11.21 10:26:10 1: NAME => GC_Chromecast
2021.11.21 10:26:10 1: function => Set
2021.11.21 10:26:10 1: args => ARRAY(0x8eb5480)
2021.11.21 10:26:10 1: defargs => ARRAY(0x7941a10)
2021.11.21 10:26:10 1: argsh => HASH(0x8e55220)
2021.11.21 10:26:10 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:10 1: PYTHONTYPE => googlecast
2021.11.21 10:26:10 1: id => 78261926
2021.11.21 10:26:10 1: defargsh => HASH(0x772e1c8)
2021.11.21 10:26:12 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 26557273)
2021.11.21 10:26:12 1: PYTHONTYPE => googlecast
2021.11.21 10:26:12 1: id => 26557273
2021.11.21 10:26:12 1: defargsh => HASH(0x774ef28)
2021.11.21 10:26:12 1: argsh => HASH(0x8e6fb58)
2021.11.21 10:26:12 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:12 1: function => Set
2021.11.21 10:26:12 1: args => ARRAY(0x7f6eda8)
2021.11.21 10:26:12 1: defargs => ARRAY(0x787b390)
2021.11.21 10:26:12 1: NAME => GC_Kueche
2021.11.21 10:26:12 1: msgtype => function
2021.11.21 10:26:15 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 11101453)
2021.11.21 10:26:15 1: defargsh => HASH(0x774f240)
2021.11.21 10:26:15 1: id => 11101453
2021.11.21 10:26:15 1: PYTHONTYPE => googlecast
2021.11.21 10:26:15 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:15 1: argsh => HASH(0x8f2be20)
2021.11.21 10:26:15 1: defargs => ARRAY(0x77d5230)
2021.11.21 10:26:15 1: args => ARRAY(0x8ce84a8)
2021.11.21 10:26:15 1: function => Set
2021.11.21 10:26:15 1: NAME => GG_Alarm
2021.11.21 10:26:15 1: msgtype => function
2021.11.21 10:26:18 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 43898508)
2021.11.21 10:26:18 1: defargs => ARRAY(0x774f2a0)
2021.11.21 10:26:18 1: args => ARRAY(0x85e9188)
2021.11.21 10:26:18 1: function => Set
2021.11.21 10:26:18 1: msgtype => function
2021.11.21 10:26:18 1: NAME => GG_Haus
2021.11.21 10:26:18 1: id => 43898508
2021.11.21 10:26:18 1: defargsh => HASH(0x77d5200)
2021.11.21 10:26:18 1: PYTHONTYPE => googlecast
2021.11.21 10:26:18 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:18 1: argsh => HASH(0x8599db8)
2021.11.21 10:26:20 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 55002091)
2021.11.21 10:26:20 1: argsh => HASH(0x86b3ef0)
2021.11.21 10:26:20 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:20 1: PYTHONTYPE => googlecast
2021.11.21 10:26:20 1: id => 55002091
2021.11.21 10:26:20 1: defargsh => HASH(0x77d4ee8)
2021.11.21 10:26:20 1: msgtype => function
2021.11.21 10:26:20 1: NAME => GG_Wohnkueche
2021.11.21 10:26:20 1: function => Set
2021.11.21 10:26:20 1: args => ARRAY(0x85a2670)
2021.11.21 10:26:20 1: defargs => ARRAY(0x77d5260)
2021.11.21 10:26:23 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 36016574)
2021.11.21 10:26:23 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:23 1: argsh => HASH(0x8724208)
2021.11.21 10:26:23 1: PYTHONTYPE => googlecast
2021.11.21 10:26:23 1: defargsh => HASH(0x5c6fc38)
2021.11.21 10:26:23 1: id => 36016574
2021.11.21 10:26:23 1: NAME => GH_Bad
2021.11.21 10:26:23 1: msgtype => function
2021.11.21 10:26:23 1: args => ARRAY(0x87997d0)
2021.11.21 10:26:23 1: defargs => ARRAY(0x649eb60)
2021.11.21 10:26:23 1: function => Set
2021.11.21 10:26:25 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 19860556)
2021.11.21 10:26:25 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:25 1: argsh => HASH(0x9034740)
2021.11.21 10:26:25 1: PYTHONTYPE => googlecast
2021.11.21 10:26:25 1: defargsh => HASH(0x7941818)
2021.11.21 10:26:25 1: id => 19860556
2021.11.21 10:26:25 1: NAME => GH_Kueche
2021.11.21 10:26:25 1: msgtype => function
2021.11.21 10:26:25 1: args => ARRAY(0x8ce84a8)
2021.11.21 10:26:25 1: defargs => ARRAY(0x774eec8)
2021.11.21 10:26:25 1: function => Set
2021.11.21 10:26:28 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 16040563)
2021.11.21 10:26:28 1: argsh => HASH(0x8eb51b0)
2021.11.21 10:26:28 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:28 1: defargsh => HASH(0x79409e8)
2021.11.21 10:26:28 1: id => 16040563
2021.11.21 10:26:28 1: PYTHONTYPE => googlecast
2021.11.21 10:26:28 1: NAME => GH_WC
2021.11.21 10:26:28 1: msgtype => function
2021.11.21 10:26:28 1: function => Set
2021.11.21 10:26:28 1: defargs => ARRAY(0x7940e20)
2021.11.21 10:26:28 1: args => ARRAY(0x7f6eda8)
2021.11.21 10:26:30 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 19960461)
2021.11.21 10:26:30 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:30 1: argsh => HASH(0x8da5180)
2021.11.21 10:26:30 1: PYTHONTYPE => googlecast
2021.11.21 10:26:30 1: defargsh => HASH(0x7941a70)
2021.11.21 10:26:30 1: id => 19960461
2021.11.21 10:26:30 1: msgtype => function
2021.11.21 10:26:30 1: NAME => GH_WoZi
2021.11.21 10:26:30 1: args => ARRAY(0x8e5c358)
2021.11.21 10:26:30 1: defargs => ARRAY(0x77d4c48)
2021.11.21 10:26:30 1: function => Set
2021.11.21 10:26:42 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 90831551)
2021.11.21 10:26:42 1: FHEMPYTYPE => ble_presence
2021.11.21 10:26:42 1: argsh => HASH(0x85c5338)
2021.11.21 10:26:42 1: id => 90831551
2021.11.21 10:26:42 1: defargsh => HASH(0x79f20b0)
2021.11.21 10:26:42 1: PYTHONTYPE => ble_presence
2021.11.21 10:26:42 1: NAME => Gtag_YYYY_remote_IP48
2021.11.21 10:26:42 1: msgtype => function
2021.11.21 10:26:42 1: defargs => ARRAY(0x7a256c0)
2021.11.21 10:26:42 1: args => ARRAY(0x87297d0)
2021.11.21 10:26:42 1: function => Set
2021.11.21 10:26:45 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 88791027)
2021.11.21 10:26:45 1: argsh => HASH(0x85e8de0)
2021.11.21 10:26:45 1: FHEMPYTYPE => ble_presence
2021.11.21 10:26:45 1: PYTHONTYPE => ble_presence
2021.11.21 10:26:45 1: defargsh => HASH(0x7a21450)
2021.11.21 10:26:45 1: id => 88791027
2021.11.21 10:26:45 1: NAME => Gtag_Auto_remote_IP48
2021.11.21 10:26:45 1: msgtype => function
2021.11.21 10:26:45 1: function => Set
2021.11.21 10:26:45 1: args => ARRAY(0x87297d0)
2021.11.21 10:26:45 1: defargs => ARRAY(0x79f5bf8)
2021.11.21 10:26:47 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 38932857)
2021.11.21 10:26:47 1: function => Set
2021.11.21 10:26:47 1: defargs => ARRAY(0x79e56c8)
2021.11.21 10:26:47 1: args => ARRAY(0x87297d0)
2021.11.21 10:26:47 1: NAME => Gtag_XYXY_remote_IP48
2021.11.21 10:26:47 1: msgtype => function
2021.11.21 10:26:47 1: defargsh => HASH(0x79dec20)
2021.11.21 10:26:47 1: id => 38932857
2021.11.21 10:26:47 1: PYTHONTYPE => ble_presence
2021.11.21 10:26:47 1: argsh => HASH(0x8e74d38)
2021.11.21 10:26:47 1: FHEMPYTYPE => ble_presence
2021.11.21 10:26:50 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 12775656)
2021.11.21 10:26:50 1: function => Set
2021.11.21 10:26:50 1: args => ARRAY(0x8f15160)
2021.11.21 10:26:50 1: defargs => ARRAY(0x774ef10)
2021.11.21 10:26:50 1: NAME => GC_Anlage
2021.11.21 10:26:50 1: msgtype => function
2021.11.21 10:26:50 1: PYTHONTYPE => googlecast
2021.11.21 10:26:50 1: id => 12775656
2021.11.21 10:26:50 1: defargsh => HASH(0x77d4ae0)
2021.11.21 10:26:50 1: argsh => HASH(0x87aba60)
2021.11.21 10:26:50 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:52 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 6784520)
2021.11.21 10:26:52 1: defargsh => HASH(0x772e1c8)
2021.11.21 10:26:52 1: id => 6784520
2021.11.21 10:26:52 1: PYTHONTYPE => googlecast
2021.11.21 10:26:52 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:52 1: argsh => HASH(0x85e8de0)
2021.11.21 10:26:52 1: defargs => ARRAY(0x7941a10)
2021.11.21 10:26:52 1: args => ARRAY(0x8eb1528)
2021.11.21 10:26:52 1: function => Set
2021.11.21 10:26:52 1: msgtype => function
2021.11.21 10:26:52 1: NAME => GC_Chromecast
2021.11.21 10:26:55 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 90755641)
2021.11.21 10:26:55 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:55 1: argsh => HASH(0x51926f8)
2021.11.21 10:26:55 1: id => 90755641
2021.11.21 10:26:55 1: defargsh => HASH(0x774ef28)
2021.11.21 10:26:55 1: PYTHONTYPE => googlecast
2021.11.21 10:26:55 1: msgtype => function
2021.11.21 10:26:55 1: NAME => GC_Kueche
2021.11.21 10:26:55 1: defargs => ARRAY(0x787b390)
2021.11.21 10:26:55 1: args => ARRAY(0x900f628)
2021.11.21 10:26:55 1: function => Set
2021.11.21 10:26:58 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 28200563)
2021.11.21 10:26:58 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:58 1: argsh => HASH(0x8046ec8)
2021.11.21 10:26:58 1: PYTHONTYPE => googlecast
2021.11.21 10:26:58 1: id => 28200563
2021.11.21 10:26:58 1: defargsh => HASH(0x774f240)
2021.11.21 10:26:58 1: NAME => GG_Alarm
2021.11.21 10:26:58 1: msgtype => function
2021.11.21 10:26:58 1: args => ARRAY(0x8d85ee8)
2021.11.21 10:26:58 1: defargs => ARRAY(0x77d5230)
2021.11.21 10:26:58 1: function => Set
2021.11.21 10:27:00 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 62256005)
2021.11.21 10:27:00 1: argsh => HASH(0x86b1278)
2021.11.21 10:27:00 1: FHEMPYTYPE => googlecast
2021.11.21 10:27:00 1: PYTHONTYPE => googlecast
2021.11.21 10:27:00 1: id => 62256005
2021.11.21 10:27:00 1: defargsh => HASH(0x77d5200)
2021.11.21 10:27:00 1: msgtype => function
2021.11.21 10:27:00 1: NAME => GG_Haus
2021.11.21 10:27:00 1: function => Set
2021.11.21 10:27:00 1: args => ARRAY(0x8fe77d0)
2021.11.21 10:27:00 1: defargs => ARRAY(0x774f2a0)
2021.11.21 10:27:03 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 50594681)
2021.11.21 10:27:03 1: defargs => ARRAY(0x77d5260)
2021.11.21 10:27:03 1: args => ARRAY(0x8eba158)
2021.11.21 10:27:03 1: function => Set
2021.11.21 10:27:03 1: NAME => GG_Wohnkueche
2021.11.21 10:27:03 1: msgtype => function
2021.11.21 10:27:03 1: id => 50594681
2021.11.21 10:27:03 1: defargsh => HASH(0x77d4ee8)
2021.11.21 10:27:03 1: PYTHONTYPE => googlecast
2021.11.21 10:27:03 1: FHEMPYTYPE => googlecast
2021.11.21 10:27:03 1: argsh => HASH(0x8ec7130)
2021.11.21 10:27:05 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 15414205)
2021.11.21 10:27:05 1: argsh => HASH(0x8edd578)
2021.11.21 10:27:05 1: FHEMPYTYPE => googlecast
2021.11.21 10:27:05 1: PYTHONTYPE => googlecast
2021.11.21 10:27:05 1: defargsh => HASH(0x5c6fc38)
2021.11.21 10:27:05 1: id => 15414205
2021.11.21 10:27:05 1: NAME => GH_Bad
2021.11.21 10:27:05 1: msgtype => function
2021.11.21 10:27:05 1: function => Set
2021.11.21 10:27:05 1: args => ARRAY(0x8f15160)
2021.11.21 10:27:05 1: defargs => ARRAY(0x649eb60)
2021.11.21 10:27:08 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 38808403)
2021.11.21 10:27:08 1: FHEMPYTYPE => googlecast
2021.11.21 10:27:08 1: argsh => HASH(0x87902d8)
2021.11.21 10:27:08 1: id => 38808403
2021.11.21 10:27:08 1: defargsh => HASH(0x7941818)
2021.11.21 10:27:08 1: PYTHONTYPE => googlecast
2021.11.21 10:27:08 1: NAME => GH_Kueche
2021.11.21 10:27:08 1: msgtype => function
2021.11.21 10:27:08 1: defargs => ARRAY(0x774eec8)
2021.11.21 10:27:08 1: args => ARRAY(0x8d85ee8)
2021.11.21 10:27:08 1: function => Set
2021.11.21 10:27:10 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 46709932)
2021.11.21 10:27:10 1: id => 46709932
2021.11.21 10:27:10 1: defargsh => HASH(0x79409e8)
2021.11.21 10:27:10 1: PYTHONTYPE => googlecast
2021.11.21 10:27:10 1: argsh => HASH(0x89b8628)
2021.11.21 10:27:10 1: FHEMPYTYPE => googlecast
2021.11.21 10:27:10 1: function => Set
2021.11.21 10:27:10 1: defargs => ARRAY(0x7940e20)
2021.11.21 10:27:10 1: args => ARRAY(0x900f628)
2021.11.21 10:27:10 1: NAME => GH_WC
2021.11.21 10:27:10 1: msgtype => function
2021.11.21 10:27:13 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 90534572)
2021.11.21 10:27:13 1: argsh => HASH(0x8ef81a8)
2021.11.21 10:27:13 1: FHEMPYTYPE => googlecast
2021.11.21 10:27:13 1: id => 90534572
2021.11.21 10:27:13 1: defargsh => HASH(0x7941a70)
2021.11.21 10:27:13 1: PYTHONTYPE => googlecast
2021.11.21 10:27:13 1: NAME => GH_WoZi
2021.11.21 10:27:13 1: msgtype => function
2021.11.21 10:27:13 1: function => Set
2021.11.21 10:27:13 1: defargs => ARRAY(0x77d4c48)
2021.11.21 10:27:13 1: args => ARRAY(0x8ce9968)
2021.11.21 10:28:09 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 93794273)
2021.11.21 10:28:09 1: FHEMPYTYPE => ble_presence
2021.11.21 10:28:09 1: argsh => HASH(0x8f2f138)
2021.11.21 10:28:09 1: PYTHONTYPE => ble_presence
2021.11.21 10:28:09 1: defargsh => HASH(0x79f20b0)
2021.11.21 10:28:09 1: id => 93794273
2021.11.21 10:28:09 1: msgtype => function
2021.11.21 10:28:09 1: NAME => Gtag_YYYY_remote_IP48
2021.11.21 10:28:09 1: args => ARRAY(0x8b8fe98)
2021.11.21 10:28:09 1: defargs => ARRAY(0x7a256c0)
2021.11.21 10:28:09 1: function => Set
2021.11.21 10:28:12 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 33901357)
2021.11.21 10:28:12 1: PYTHONTYPE => ble_presence
2021.11.21 10:28:12 1: defargsh => HASH(0x7a21450)
2021.11.21 10:28:12 1: id => 33901357
2021.11.21 10:28:12 1: FHEMPYTYPE => ble_presence
2021.11.21 10:28:12 1: argsh => HASH(0x9013110)
2021.11.21 10:28:12 1: args => ARRAY(0x8b8fe98)
2021.11.21 10:28:12 1: defargs => ARRAY(0x79f5bf8)
2021.11.21 10:28:12 1: function => Set
2021.11.21 10:28:12 1: msgtype => function
2021.11.21 10:28:12 1: NAME => Gtag_Auto_remote_IP48
2021.11.21 10:28:14 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 34479711)
2021.11.21 10:28:14 1: msgtype => function
2021.11.21 10:28:14 1: NAME => Gtag_XYXY_remote_IP48
2021.11.21 10:28:14 1: function => Set
2021.11.21 10:28:14 1: args => ARRAY(0x8b8fe98)
2021.11.21 10:28:14 1: defargs => ARRAY(0x79e56c8)
2021.11.21 10:28:14 1: argsh => HASH(0x9004d68)
2021.11.21 10:28:14 1: FHEMPYTYPE => ble_presence
2021.11.21 10:28:14 1: PYTHONTYPE => ble_presence
2021.11.21 10:28:14 1: id => 34479711
2021.11.21 10:28:14 1: defargsh => HASH(0x79dec20)
2021.11.21 10:28:17 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 52094377)
2021.11.21 10:28:17 1: function => Set
2021.11.21 10:28:17 1: defargs => ARRAY(0x774ef10)
2021.11.21 10:28:17 1: args => ARRAY(0x902bd50)
2021.11.21 10:28:17 1: NAME => GC_Anlage
2021.11.21 10:28:17 1: msgtype => function
2021.11.21 10:28:17 1: defargsh => HASH(0x77d4ae0)
2021.11.21 10:28:17 1: id => 52094377
2021.11.21 10:28:17 1: PYTHONTYPE => googlecast
2021.11.21 10:28:17 1: argsh => HASH(0x8e8f9c0)
2021.11.21 10:28:17 1: FHEMPYTYPE => googlecast
2021.11.21 10:28:19 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 65879388)
2021.11.21 10:28:19 1: args => ARRAY(0x87a0128)
2021.11.21 10:28:19 1: defargs => ARRAY(0x7941a10)
2021.11.21 10:28:19 1: function => Set
2021.11.21 10:28:19 1: msgtype => function
2021.11.21 10:28:19 1: NAME => GC_Chromecast
2021.11.21 10:28:19 1: PYTHONTYPE => googlecast
2021.11.21 10:28:19 1: defargsh => HASH(0x772e1c8)
2021.11.21 10:28:19 1: id => 65879388
2021.11.21 10:28:19 1: FHEMPYTYPE => googlecast
2021.11.21 10:28:19 1: argsh => HASH(0x9013110)
2021.11.21 10:28:22 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 36656934)
2021.11.21 10:28:22 1: PYTHONTYPE => googlecast
2021.11.21 10:28:22 1: defargsh => HASH(0x774ef28)
2021.11.21 10:28:22 1: id => 36656934
2021.11.21 10:28:22 1: FHEMPYTYPE => googlecast
2021.11.21 10:28:22 1: argsh => HASH(0x87ab208)
2021.11.21 10:28:22 1: args => ARRAY(0x8eba158)
2021.11.21 10:28:22 1: defargs => ARRAY(0x787b390)
2021.11.21 10:28:22 1: function => Set
2021.11.21 10:28:22 1: msgtype => function
2021.11.21 10:28:22 1: NAME => GC_Kueche
2021.11.21 10:28:24 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 45536866)
2021.11.21 10:28:24 1: NAME => GG_Alarm
2021.11.21 10:28:24 1: msgtype => function
2021.11.21 10:28:24 1: function => Set
2021.11.21 10:28:24 1: args => ARRAY(0x8e91a28)
2021.11.21 10:28:24 1: defargs => ARRAY(0x77d5230)
2021.11.21 10:28:24 1: argsh => HASH(0x8786350)
2021.11.21 10:28:24 1: FHEMPYTYPE => googlecast
2021.11.21 10:28:24 1: PYTHONTYPE => googlecast
2021.11.21 10:28:24 1: id => 45536866
2021.11.21 10:28:24 1: defargsh => HASH(0x774f240)
2021.11.21 10:28:27 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 24787096)
2021.11.21 10:28:27 1: FHEMPYTYPE => googlecast
2021.11.21 10:28:27 1: argsh => HASH(0x8efd5d0)
2021.11.21 10:28:27 1: defargsh => HASH(0x77d5200)
2021.11.21 10:28:27 1: id => 24787096
2021.11.21 10:28:27 1: PYTHONTYPE => googlecast
2021.11.21 10:28:27 1: msgtype => function
2021.11.21 10:28:27 1: NAME => GG_Haus
2021.11.21 10:28:27 1: defargs => ARRAY(0x774f2a0)
2021.11.21 10:28:27 1: args => ARRAY(0x8fe77d0)
2021.11.21 10:28:27 1: function => Set
2021.11.21 10:28:29 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 48588896)
2021.11.21 10:28:29 1: PYTHONTYPE => googlecast
2021.11.21 10:28:29 1: id => 48588896
2021.11.21 10:28:29 1: defargsh => HASH(0x77d4ee8)
2021.11.21 10:28:29 1: argsh => HASH(0x89a2308)
2021.11.21 10:28:29 1: FHEMPYTYPE => googlecast
2021.11.21 10:28:29 1: function => Set
2021.11.21 10:28:29 1: args => ARRAY(0x8e915d8)
2021.11.21 10:28:29 1: defargs => ARRAY(0x77d5260)
2021.11.21 10:28:29 1: msgtype => function
2021.11.21 10:28:29 1: NAME => GG_Wohnkueche
2021.11.21 10:28:32 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 16940447)
2021.11.21 10:28:32 1: msgtype => function
2021.11.21 10:28:32 1: NAME => GH_Bad
2021.11.21 10:28:32 1: function => Set
2021.11.21 10:28:32 1: defargs => ARRAY(0x649eb60)
2021.11.21 10:28:32 1: args => ARRAY(0x902bd50)
2021.11.21 10:28:32 1: argsh => HASH(0x8f50fe8)
2021.11.21 10:28:32 1: FHEMPYTYPE => googlecast
2021.11.21 10:28:32 1: id => 16940447
2021.11.21 10:28:32 1: defargsh => HASH(0x5c6fc38)
2021.11.21 10:28:32 1: PYTHONTYPE => googlecast
2021.11.21 10:28:34 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 4318906)
2021.11.21 10:28:34 1: FHEMPYTYPE => googlecast
2021.11.21 10:28:34 1: argsh => HASH(0x8d957d0)
2021.11.21 10:28:34 1: PYTHONTYPE => googlecast
2021.11.21 10:28:34 1: defargsh => HASH(0x7941818)
2021.11.21 10:28:34 1: id => 4318906
2021.11.21 10:28:34 1: NAME => GH_Kueche
2021.11.21 10:28:34 1: msgtype => function
2021.11.21 10:28:34 1: args => ARRAY(0x8e91a28)
2021.11.21 10:28:34 1: defargs => ARRAY(0x774eec8)
2021.11.21 10:28:34 1: function => Set
2021.11.21 10:28:37 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 79653100)
2021.11.21 10:28:37 1: defargs => ARRAY(0x7940e20)
2021.11.21 10:28:37 1: args => ARRAY(0x8eba158)
2021.11.21 10:28:37 1: function => Set
2021.11.21 10:28:37 1: NAME => GH_WC
2021.11.21 10:28:37 1: msgtype => function
2021.11.21 10:28:37 1: id => 79653100
2021.11.21 10:28:37 1: defargsh => HASH(0x79409e8)
2021.11.21 10:28:37 1: PYTHONTYPE => googlecast
2021.11.21 10:28:37 1: FHEMPYTYPE => googlecast
2021.11.21 10:28:37 1: argsh => HASH(0x102bb50)
2021.11.21 10:28:39 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 80735518)
2021.11.21 10:28:39 1: PYTHONTYPE => googlecast
2021.11.21 10:28:39 1: id => 80735518
2021.11.21 10:28:39 1: defargsh => HASH(0x7941a70)
2021.11.21 10:28:39 1: argsh => HASH(0x8f40e10)
2021.11.21 10:28:39 1: FHEMPYTYPE => googlecast
2021.11.21 10:28:39 1: function => Set
2021.11.21 10:28:39 1: args => ARRAY(0x8ef5120)
2021.11.21 10:28:39 1: defargs => ARRAY(0x77d4c48)
2021.11.21 10:28:39 1: msgtype => function
2021.11.21 10:28:39 1: NAME => GH_WoZi
2021.11.21 10:29:10 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 55483643)
2021.11.21 10:29:10 1: msgtype => function
2021.11.21 10:29:10 1: NAME => Gtag_YYYY_remote_IP48
2021.11.21 10:29:10 1: args => ARRAY(0x8ea9ef8)
2021.11.21 10:29:10 1: defargs => ARRAY(0x7a256c0)
2021.11.21 10:29:10 1: function => Set
2021.11.21 10:29:10 1: FHEMPYTYPE => ble_presence
2021.11.21 10:29:10 1: argsh => HASH(0x18b00a0)
2021.11.21 10:29:10 1: PYTHONTYPE => ble_presence
2021.11.21 10:29:10 1: id => 55483643
2021.11.21 10:29:10 1: defargsh => HASH(0x79f20b0)
2021.11.21 10:29:12 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 55768444)
2021.11.21 10:29:12 1: function => Set
2021.11.21 10:29:12 1: defargs => ARRAY(0x79f5bf8)
2021.11.21 10:29:12 1: args => ARRAY(0x8ea9ef8)
2021.11.21 10:29:12 1: msgtype => function
2021.11.21 10:29:12 1: NAME => Gtag_Auto_remote_IP48
2021.11.21 10:29:12 1: defargsh => HASH(0x7a21450)
2021.11.21 10:29:12 1: id => 55768444
2021.11.21 10:29:12 1: PYTHONTYPE => ble_presence
2021.11.21 10:29:12 1: argsh => HASH(0x9006ca0)
2021.11.21 10:29:12 1: FHEMPYTYPE => ble_presence
2021.11.21 10:29:15 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 21141363)
2021.11.21 10:29:15 1: NAME => Gtag_XYXY_remote_IP48
2021.11.21 10:29:15 1: msgtype => function
2021.11.21 10:29:15 1: function => Set
2021.11.21 10:29:15 1: args => ARRAY(0x8ea9ef8)
2021.11.21 10:29:15 1: defargs => ARRAY(0x79e56c8)
2021.11.21 10:29:15 1: argsh => HASH(0x85c0c88)
2021.11.21 10:29:15 1: FHEMPYTYPE => ble_presence
2021.11.21 10:29:15 1: PYTHONTYPE => ble_presence
2021.11.21 10:29:15 1: defargsh => HASH(0x79dec20)
2021.11.21 10:29:15 1: id => 21141363
2021.11.21 10:29:17 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 73251601)
2021.11.21 10:29:17 1: NAME => GC_Anlage
2021.11.21 10:29:17 1: msgtype => function
2021.11.21 10:29:17 1: function => Set
2021.11.21 10:29:17 1: defargs => ARRAY(0x774ef10)
2021.11.21 10:29:17 1: args => ARRAY(0x85a28c8)
2021.11.21 10:29:17 1: argsh => HASH(0x8ea5bf8)
2021.11.21 10:29:17 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:17 1: id => 73251601
2021.11.21 10:29:17 1: defargsh => HASH(0x77d4ae0)
2021.11.21 10:29:17 1: PYTHONTYPE => googlecast
2021.11.21 10:29:20 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 33987362)
2021.11.21 10:29:20 1: defargs => ARRAY(0x7941a10)
2021.11.21 10:29:20 1: args => ARRAY(0x8d8dd38)
2021.11.21 10:29:20 1: function => Set
2021.11.21 10:29:20 1: msgtype => function
2021.11.21 10:29:20 1: NAME => GC_Chromecast
2021.11.21 10:29:20 1: id => 33987362
2021.11.21 10:29:20 1: defargsh => HASH(0x772e1c8)
2021.11.21 10:29:20 1: PYTHONTYPE => googlecast
2021.11.21 10:29:20 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:20 1: argsh => HASH(0x9006ca0)
2021.11.21 10:29:22 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 61084905)
2021.11.21 10:29:22 1: function => Set
2021.11.21 10:29:22 1: defargs => ARRAY(0x787b390)
2021.11.21 10:29:22 1: args => ARRAY(0x8e915d8)
2021.11.21 10:29:22 1: NAME => GC_Kueche
2021.11.21 10:29:22 1: msgtype => function
2021.11.21 10:29:22 1: id => 61084905
2021.11.21 10:29:22 1: defargsh => HASH(0x774ef28)
2021.11.21 10:29:22 1: PYTHONTYPE => googlecast
2021.11.21 10:29:22 1: argsh => HASH(0x878c970)
2021.11.21 10:29:22 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:25 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 92127176)
2021.11.21 10:29:25 1: msgtype => function
2021.11.21 10:29:25 1: NAME => GG_Alarm
2021.11.21 10:29:25 1: function => Set
2021.11.21 10:29:25 1: defargs => ARRAY(0x77d5230)
2021.11.21 10:29:25 1: args => ARRAY(0x876abe0)
2021.11.21 10:29:25 1: argsh => HASH(0x899ca90)
2021.11.21 10:29:25 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:25 1: defargsh => HASH(0x774f240)
2021.11.21 10:29:25 1: id => 92127176
2021.11.21 10:29:25 1: PYTHONTYPE => googlecast
2021.11.21 10:29:27 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 80537887)
2021.11.21 10:29:27 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:27 1: argsh => HASH(0x8b7af60)
2021.11.21 10:29:27 1: PYTHONTYPE => googlecast
2021.11.21 10:29:27 1: id => 80537887
2021.11.21 10:29:27 1: defargsh => HASH(0x77d5200)
2021.11.21 10:29:27 1: msgtype => function
2021.11.21 10:29:27 1: NAME => GG_Haus
2021.11.21 10:29:27 1: args => ARRAY(0x8fe77d0)
2021.11.21 10:29:27 1: defargs => ARRAY(0x774f2a0)
2021.11.21 10:29:27 1: function => Set
2021.11.21 10:29:30 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 11033843)
2021.11.21 10:29:30 1: id => 11033843
2021.11.21 10:29:30 1: defargsh => HASH(0x77d4ee8)
2021.11.21 10:29:30 1: PYTHONTYPE => googlecast
2021.11.21 10:29:30 1: argsh => HASH(0x8eb72e0)
2021.11.21 10:29:30 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:30 1: function => Set
2021.11.21 10:29:30 1: defargs => ARRAY(0x77d5260)
2021.11.21 10:29:30 1: args => ARRAY(0x8037e80)
2021.11.21 10:29:30 1: NAME => GG_Wohnkueche
2021.11.21 10:29:30 1: msgtype => function
2021.11.21 10:29:32 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 17982766)
2021.11.21 10:29:32 1: argsh => HASH(0x90161c8)
2021.11.21 10:29:32 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:32 1: id => 17982766
2021.11.21 10:29:32 1: defargsh => HASH(0x5c6fc38)
2021.11.21 10:29:32 1: PYTHONTYPE => googlecast
2021.11.21 10:29:32 1: msgtype => function
2021.11.21 10:29:32 1: NAME => GH_Bad
2021.11.21 10:29:32 1: function => Set
2021.11.21 10:29:32 1: defargs => ARRAY(0x649eb60)
2021.11.21 10:29:32 1: args => ARRAY(0x85a28c8)
2021.11.21 10:29:35 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 19366636)
2021.11.21 10:29:35 1: defargsh => HASH(0x7941818)
2021.11.21 10:29:35 1: id => 19366636
2021.11.21 10:29:35 1: PYTHONTYPE => googlecast
2021.11.21 10:29:35 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:35 1: argsh => HASH(0x8da0a60)
2021.11.21 10:29:35 1: defargs => ARRAY(0x774eec8)
2021.11.21 10:29:35 1: args => ARRAY(0x876abe0)
2021.11.21 10:29:35 1: function => Set
2021.11.21 10:29:35 1: msgtype => function
2021.11.21 10:29:35 1: NAME => GH_Kueche
2021.11.21 10:29:37 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 79587433)
2021.11.21 10:29:37 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:37 1: argsh => HASH(0x8ed14e0)
2021.11.21 10:29:37 1: defargsh => HASH(0x79409e8)
2021.11.21 10:29:37 1: id => 79587433
2021.11.21 10:29:37 1: PYTHONTYPE => googlecast
2021.11.21 10:29:37 1: msgtype => function
2021.11.21 10:29:37 1: NAME => GH_WC
2021.11.21 10:29:37 1: defargs => ARRAY(0x7940e20)
2021.11.21 10:29:37 1: args => ARRAY(0x8e915d8)
2021.11.21 10:29:37 1: function => Set
2021.11.21 10:29:40 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 38503208)
2021.11.21 10:29:40 1: argsh => HASH(0x8789158)
2021.11.21 10:29:40 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:40 1: defargsh => HASH(0x7941a70)
2021.11.21 10:29:40 1: id => 38503208
2021.11.21 10:29:40 1: PYTHONTYPE => googlecast
2021.11.21 10:29:40 1: NAME => GH_WoZi
2021.11.21 10:29:40 1: msgtype => function
2021.11.21 10:29:40 1: function => Set
2021.11.21 10:29:40 1: defargs => ARRAY(0x77d4c48)
2021.11.21 10:29:40 1: args => ARRAY(0x8e98a30)
2021.11.21 10:29:44 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 58173778)
2021.11.21 10:29:44 1: function => Set
2021.11.21 10:29:44 1: args => ARRAY(0x8046f40)
2021.11.21 10:29:44 1: defargs => ARRAY(0x7a256c0)
2021.11.21 10:29:44 1: NAME => Gtag_YYYY_remote_IP48
2021.11.21 10:29:44 1: msgtype => function
2021.11.21 10:29:44 1: PYTHONTYPE => ble_presence
2021.11.21 10:29:44 1: defargsh => HASH(0x79f20b0)
2021.11.21 10:29:44 1: id => 58173778
2021.11.21 10:29:44 1: argsh => HASH(0x8d38de0)
2021.11.21 10:29:44 1: FHEMPYTYPE => ble_presence
2021.11.21 10:29:47 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 25088512)
2021.11.21 10:29:47 1: PYTHONTYPE => ble_presence
2021.11.21 10:29:47 1: defargsh => HASH(0x7a21450)
2021.11.21 10:29:47 1: id => 25088512
2021.11.21 10:29:47 1: FHEMPYTYPE => ble_presence
2021.11.21 10:29:47 1: argsh => HASH(0x88201d8)
2021.11.21 10:29:47 1: args => ARRAY(0x8046f40)
2021.11.21 10:29:47 1: defargs => ARRAY(0x79f5bf8)
2021.11.21 10:29:47 1: function => Set
2021.11.21 10:29:47 1: NAME => Gtag_Auto_remote_IP48
2021.11.21 10:29:47 1: msgtype => function
2021.11.21 10:29:49 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 27993738)
2021.11.21 10:29:49 1: defargsh => HASH(0x79dec20)
2021.11.21 10:29:49 1: id => 27993738
2021.11.21 10:29:49 1: PYTHONTYPE => ble_presence
2021.11.21 10:29:49 1: FHEMPYTYPE => ble_presence
2021.11.21 10:29:49 1: argsh => HASH(0x89a0a30)
2021.11.21 10:29:49 1: defargs => ARRAY(0x79e56c8)
2021.11.21 10:29:49 1: args => ARRAY(0x8046f40)
2021.11.21 10:29:49 1: function => Set
2021.11.21 10:29:49 1: NAME => Gtag_XYXY_remote_IP48
2021.11.21 10:29:49 1: msgtype => function
2021.11.21 10:29:52 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 46183045)
2021.11.21 10:29:52 1: function => Set
2021.11.21 10:29:52 1: defargs => ARRAY(0x774ef10)
2021.11.21 10:29:52 1: args => ARRAY(0x85bd5e8)
2021.11.21 10:29:52 1: msgtype => function
2021.11.21 10:29:52 1: NAME => GC_Anlage
2021.11.21 10:29:52 1: defargsh => HASH(0x77d4ae0)
2021.11.21 10:29:52 1: id => 46183045
2021.11.21 10:29:52 1: PYTHONTYPE => googlecast
2021.11.21 10:29:52 1: argsh => HASH(0x8d4c3d8)
2021.11.21 10:29:52 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:54 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 69778755)
2021.11.21 10:29:54 1: id => 69778755
2021.11.21 10:29:54 1: defargsh => HASH(0x772e1c8)
2021.11.21 10:29:54 1: PYTHONTYPE => googlecast
2021.11.21 10:29:54 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:54 1: argsh => HASH(0x88201d8)
2021.11.21 10:29:54 1: defargs => ARRAY(0x7941a10)
2021.11.21 10:29:54 1: args => ARRAY(0x90125d0)
2021.11.21 10:29:54 1: function => Set
2021.11.21 10:29:54 1: NAME => GC_Chromecast
2021.11.21 10:29:54 1: msgtype => function
2021.11.21 10:29:57 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 40077758)
2021.11.21 10:29:57 1: msgtype => function
2021.11.21 10:29:57 1: NAME => GC_Kueche
2021.11.21 10:29:57 1: args => ARRAY(0x8037e80)
2021.11.21 10:29:57 1: defargs => ARRAY(0x787b390)
2021.11.21 10:29:57 1: function => Set
2021.11.21 10:29:57 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:57 1: argsh => HASH(0x87ab5b0)
2021.11.21 10:29:57 1: PYTHONTYPE => googlecast
2021.11.21 10:29:57 1: id => 40077758
2021.11.21 10:29:57 1: defargsh => HASH(0x774ef28)
2021.11.21 10:29:57 1: ws:127.0.0.1:15733 disconnected, waiting to reappear (pyBinding)
2021.11.21 10:30:00 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 38343361)
2021.11.21 10:30:00 1: defargs => ARRAY(0x77d5230)
2021.11.21 10:30:00 1: args => ARRAY(0x18b3f50)
2021.11.21 10:30:00 1: function => Set
2021.11.21 10:30:00 1: NAME => GG_Alarm
2021.11.21 10:30:00 1: msgtype => function
2021.11.21 10:30:00 1: id => 38343361
2021.11.21 10:30:00 1: defargsh => HASH(0x774f240)
2021.11.21 10:30:00 1: PYTHONTYPE => googlecast
2021.11.21 10:30:00 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:00 1: argsh => HASH(0x9029cb0)
2021.11.21 10:30:02 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 15773197)
2021.11.21 10:30:02 1: defargsh => HASH(0x77d5200)
2021.11.21 10:30:02 1: id => 15773197
2021.11.21 10:30:02 1: PYTHONTYPE => googlecast
2021.11.21 10:30:02 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:02 1: argsh => HASH(0x8f1cbc8)
2021.11.21 10:30:02 1: defargs => ARRAY(0x774f2a0)
2021.11.21 10:30:02 1: args => ARRAY(0x89a5290)
2021.11.21 10:30:02 1: function => Set
2021.11.21 10:30:02 1: NAME => GG_Haus
2021.11.21 10:30:02 1: msgtype => function
2021.11.21 10:30:05 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 47209616)
2021.11.21 10:30:05 1: function => Set
2021.11.21 10:30:05 1: args => ARRAY(0x8ed2470)
2021.11.21 10:30:05 1: defargs => ARRAY(0x77d5260)
2021.11.21 10:30:05 1: NAME => GG_Wohnkueche
2021.11.21 10:30:05 1: msgtype => function
2021.11.21 10:30:05 1: PYTHONTYPE => googlecast
2021.11.21 10:30:05 1: defargsh => HASH(0x77d4ee8)
2021.11.21 10:30:05 1: id => 47209616
2021.11.21 10:30:05 1: argsh => HASH(0x8e9da40)
2021.11.21 10:30:05 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:07 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 94798426)
2021.11.21 10:30:07 1: msgtype => function
2021.11.21 10:30:07 1: NAME => GH_Bad
2021.11.21 10:30:07 1: defargs => ARRAY(0x649eb60)
2021.11.21 10:30:07 1: args => ARRAY(0x7da38e8)
2021.11.21 10:30:07 1: function => Set
2021.11.21 10:30:07 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:07 1: argsh => HASH(0x80ba558)
2021.11.21 10:30:07 1: id => 94798426
2021.11.21 10:30:07 1: defargsh => HASH(0x5c6fc38)
2021.11.21 10:30:07 1: PYTHONTYPE => googlecast
2021.11.21 10:30:10 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 49675440)
2021.11.21 10:30:10 1: msgtype => function
2021.11.21 10:30:10 1: NAME => GH_Kueche
2021.11.21 10:30:10 1: defargs => ARRAY(0x774eec8)
2021.11.21 10:30:10 1: args => ARRAY(0x8ef38f0)
2021.11.21 10:30:10 1: function => Set
2021.11.21 10:30:10 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:10 1: argsh => HASH(0x90023e0)
2021.11.21 10:30:10 1: defargsh => HASH(0x7941818)
2021.11.21 10:30:10 1: id => 49675440
2021.11.21 10:30:10 1: PYTHONTYPE => googlecast
2021.11.21 10:30:12 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 58193848)
2021.11.21 10:30:12 1: PYTHONTYPE => googlecast
2021.11.21 10:30:12 1: defargsh => HASH(0x79409e8)
2021.11.21 10:30:12 1: id => 58193848
2021.11.21 10:30:12 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:12 1: argsh => HASH(0x8e5bd58)
2021.11.21 10:30:12 1: args => ARRAY(0x8cde1c8)
2021.11.21 10:30:12 1: defargs => ARRAY(0x7940e20)
2021.11.21 10:30:12 1: function => Set
2021.11.21 10:30:12 1: msgtype => function
2021.11.21 10:30:12 1: NAME => GH_WC
2021.11.21 10:30:15 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 42069704)
2021.11.21 10:30:15 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:15 1: argsh => HASH(0x8cc9fc8)
2021.11.21 10:30:15 1: PYTHONTYPE => googlecast
2021.11.21 10:30:15 1: id => 42069704
2021.11.21 10:30:15 1: defargsh => HASH(0x7941a70)
2021.11.21 10:30:15 1: msgtype => function
2021.11.21 10:30:15 1: NAME => GH_WoZi
2021.11.21 10:30:15 1: args => ARRAY(0x8d90f38)
2021.11.21 10:30:15 1: defargs => ARRAY(0x77d4c48)
2021.11.21 10:30:15 1: function => Set
2021.11.21 10:30:15 2: wozi_TV [NonBlocking-VIERA_GetAbortFn()]: BlockingCall for wozi_TV was aborted, timeout reached
2021.11.21 10:30:15 2: PRESENCE (Handy_Mac_XYXY) - device could not be checked (retrying in 10 seconds): Process died prematurely
2021.11.21 10:30:15 2: PRESENCE (Handy_Mac_YYYY) - device could not be checked (retrying in 10 seconds): Process died prematurely
2021.11.21 10:30:15 3: BlockingCall for WOL_PC_ObiWan was aborted
2021.11.21 10:30:15 2: PRESENCE (Handy_YYYY) - device could not be checked (retrying in 10 seconds): Process died prematurely
2021.11.21 10:30:16 2: PRESENCE (Handy_XYXY) - device could not be checked (retrying in 10 seconds): Process died prematurely
2021.11.21 10:30:17 3: EnOcean set schlazi_Rolladen open
2021.11.21 10:30:18 2: SSCam.Dachboden - Quit session due to shutdown ...
2021.11.21 10:30:18 2: SSCam.Flur - Quit session due to shutdown ...
2021.11.21 10:30:18 2: SSCam.Garage - Quit session due to shutdown ...
2021.11.21 10:30:18 2: SSCam.Terrasse_1 - Quit session due to shutdown ...
2021.11.21 10:30:18 2: SSCam.Terrasse_2 - Quit session due to shutdown ...
2021.11.21 10:30:18 1: Server shutdown delayed due to SSCam.Flur,SSCam.Terrasse_2,SSCam.Garage,gassistant,SSCam.Dachboden,SSCam.Terrasse_1,SDS for max 10 sec
2021.11.21 10:30:19 3: fhempyserver_15733: read: end of file reached while sysread
2021.11.21 10:30:19 3: fhempyserver_15733: stopped
2021.11.21 10:30:19 3: fhempyserver_15733: starting
2021.11.21 10:30:19 3: fhempyserver_15733: using logfile: ./log/fhempy-2021-11-21.log
2021.11.21 10:30:22 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 91035912)
2021.11.21 10:30:22 1: msgtype => function
2021.11.21 10:30:22 1: NAME => Gtag_YYYY_remote_IP48
2021.11.21 10:30:22 1: args => ARRAY(0x8e98388)
2021.11.21 10:30:22 1: defargs => ARRAY(0x7a256c0)
2021.11.21 10:30:22 1: function => Set
2021.11.21 10:30:22 1: FHEMPYTYPE => ble_presence
2021.11.21 10:30:22 1: argsh => HASH(0x8037e80)
2021.11.21 10:30:22 1: PYTHONTYPE => ble_presence
2021.11.21 10:30:22 1: defargsh => HASH(0x79f20b0)
2021.11.21 10:30:22 1: id => 91035912
2021.11.21 10:30:25 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 86584987)
2021.11.21 10:30:25 1: NAME => Gtag_Auto_remote_IP48
2021.11.21 10:30:25 1: msgtype => function
2021.11.21 10:30:25 1: function => Set
2021.11.21 10:30:25 1: args => ARRAY(0x8e98388)
2021.11.21 10:30:25 1: defargs => ARRAY(0x79f5bf8)
2021.11.21 10:30:25 1: argsh => HASH(0x881fba0)
2021.11.21 10:30:25 1: FHEMPYTYPE => ble_presence
2021.11.21 10:30:25 1: PYTHONTYPE => ble_presence
2021.11.21 10:30:25 1: defargsh => HASH(0x7a21450)
2021.11.21 10:30:25 1: id => 86584987
2021.11.21 10:30:27 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 68670165)
2021.11.21 10:30:27 1: id => 68670165
2021.11.21 10:30:27 1: defargsh => HASH(0x79dec20)
2021.11.21 10:30:27 1: PYTHONTYPE => ble_presence
2021.11.21 10:30:27 1: FHEMPYTYPE => ble_presence
2021.11.21 10:30:27 1: argsh => HASH(0x1152748)
2021.11.21 10:30:27 1: defargs => ARRAY(0x79e56c8)
2021.11.21 10:30:27 1: args => ARRAY(0x8e98388)
2021.11.21 10:30:27 1: function => Set
2021.11.21 10:30:27 1: NAME => Gtag_XYXY_remote_IP48
2021.11.21 10:30:27 1: msgtype => function
2021.11.21 10:30:30 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 72379102)
2021.11.21 10:30:30 1: argsh => HASH(0x81688c0)
2021.11.21 10:30:30 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:30 1: PYTHONTYPE => googlecast
2021.11.21 10:30:30 1: defargsh => HASH(0x77d4ae0)
2021.11.21 10:30:30 1: id => 72379102
2021.11.21 10:30:30 1: msgtype => function
2021.11.21 10:30:30 1: NAME => GC_Anlage
2021.11.21 10:30:30 1: function => Set
2021.11.21 10:30:30 1: args => ARRAY(0x8e6e700)
2021.11.21 10:30:30 1: defargs => ARRAY(0x774ef10)
2021.11.21 10:30:32 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 78426711)
2021.11.21 10:30:32 1: args => ARRAY(0x8cc1ff0)
2021.11.21 10:30:32 1: defargs => ARRAY(0x7941a10)
2021.11.21 10:30:32 1: function => Set
2021.11.21 10:30:32 1: NAME => GC_Chromecast
2021.11.21 10:30:32 1: msgtype => function
2021.11.21 10:30:32 1: PYTHONTYPE => googlecast
2021.11.21 10:30:32 1: defargsh => HASH(0x772e1c8)
2021.11.21 10:30:32 1: id => 78426711
2021.11.21 10:30:32 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:32 1: argsh => HASH(0x886c800)
2021.11.21 10:30:35 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 68976553)
2021.11.21 10:30:35 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:35 1: argsh => HASH(0x9001768)
2021.11.21 10:30:35 1: defargsh => HASH(0x774ef28)
2021.11.21 10:30:35 1: id => 68976553
2021.11.21 10:30:35 1: PYTHONTYPE => googlecast
2021.11.21 10:30:35 1: msgtype => function
2021.11.21 10:30:35 1: NAME => GC_Kueche
2021.11.21 10:30:35 1: defargs => ARRAY(0x787b390)
2021.11.21 10:30:35 1: args => ARRAY(0x18b3f50)
2021.11.21 10:30:35 1: function => Set
2021.11.21 10:30:38 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 10447652)
2021.11.21 10:30:38 1: msgtype => function
2021.11.21 10:30:38 1: NAME => GG_Alarm
2021.11.21 10:30:38 1: args => ARRAY(0x8ce8550)
2021.11.21 10:30:38 1: defargs => ARRAY(0x77d5230)
2021.11.21 10:30:38 1: function => Set
2021.11.21 10:30:38 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:38 1: argsh => HASH(0x8e45598)
2021.11.21 10:30:38 1: PYTHONTYPE => googlecast
2021.11.21 10:30:38 1: id => 10447652
2021.11.21 10:30:38 1: defargsh => HASH(0x774f240)
2021.11.21 10:30:40 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 16283305)
2021.11.21 10:30:40 1: PYTHONTYPE => googlecast
2021.11.21 10:30:40 1: id => 16283305
2021.11.21 10:30:40 1: defargsh => HASH(0x77d5200)
2021.11.21 10:30:40 1: argsh => HASH(0x867da88)
2021.11.21 10:30:40 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:40 1: function => Set
2021.11.21 10:30:40 1: args => ARRAY(0x8d8fc88)
2021.11.21 10:30:40 1: defargs => ARRAY(0x774f2a0)
2021.11.21 10:30:40 1: NAME => GG_Haus
2021.11.21 10:30:40 1: msgtype => function
2021.11.21 10:30:43 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 84367435)
2021.11.21 10:30:43 1: function => Set
2021.11.21 10:30:43 1: args => ARRAY(0x900c2c0)
2021.11.21 10:30:43 1: defargs => ARRAY(0x77d5260)
2021.11.21 10:30:43 1: NAME => GG_Wohnkueche
2021.11.21 10:30:43 1: msgtype => function
2021.11.21 10:30:43 1: PYTHONTYPE => googlecast
2021.11.21 10:30:43 1: defargsh => HASH(0x77d4ee8)
2021.11.21 10:30:43 1: id => 84367435
2021.11.21 10:30:43 1: argsh => HASH(0x8ec84f8)
2021.11.21 10:30:43 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:45 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 17558245)
2021.11.21 10:30:45 1: argsh => HASH(0x881df58)
2021.11.21 10:30:45 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:45 1: PYTHONTYPE => googlecast
2021.11.21 10:30:45 1: defargsh => HASH(0x5c6fc38)
2021.11.21 10:30:45 1: id => 17558245
2021.11.21 10:30:45 1: NAME => GH_Bad
2021.11.21 10:30:45 1: msgtype => function
2021.11.21 10:30:45 1: function => Set
2021.11.21 10:30:45 1: args => ARRAY(0x8e6e700)
2021.11.21 10:30:45 1: defargs => ARRAY(0x649eb60)
2021.11.21 10:30:48 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 5096654)
2021.11.21 10:30:48 1: defargs => ARRAY(0x774eec8)
2021.11.21 10:30:48 1: args => ARRAY(0x8cc1ff0)
2021.11.21 10:30:48 1: function => Set
2021.11.21 10:30:48 1: msgtype => function
2021.11.21 10:30:48 1: NAME => GH_Kueche
2021.11.21 10:30:48 1: defargsh => HASH(0x7941818)
2021.11.21 10:30:48 1: id => 5096654
2021.11.21 10:30:48 1: PYTHONTYPE => googlecast
2021.11.21 10:30:48 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:48 1: argsh => HASH(0x881f2a0)
2021.11.21 10:30:50 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 3824473)
2021.11.21 10:30:50 1: msgtype => function
2021.11.21 10:30:50 1: NAME => GH_WC
2021.11.21 10:30:50 1: function => Set
2021.11.21 10:30:50 1: args => ARRAY(0x18b3f50)
2021.11.21 10:30:50 1: defargs => ARRAY(0x7940e20)
2021.11.21 10:30:50 1: argsh => HASH(0x8f3aa38)
2021.11.21 10:30:50 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:50 1: PYTHONTYPE => googlecast
2021.11.21 10:30:50 1: id => 3824473
2021.11.21 10:30:50 1: defargsh => HASH(0x79409e8)
2021.11.21 10:30:53 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 80447459)
2021.11.21 10:30:53 1: id => 80447459
2021.11.21 10:30:53 1: defargsh => HASH(0x7941a70)
2021.11.21 10:30:53 1: PYTHONTYPE => googlecast
2021.11.21 10:30:53 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:53 1: argsh => HASH(0x8cde270)
2021.11.21 10:30:53 1: defargs => ARRAY(0x77d4c48)
2021.11.21 10:30:53 1: args => ARRAY(0x8d2a7d8)
2021.11.21 10:30:53 1: function => Set
2021.11.21 10:30:53 1: NAME => GH_WoZi
2021.11.21 10:30:53 1: msgtype => function
2021.11.21 10:30:53 2: PRESENCE (Handy_Mac_XYXY) - check returned a valid result after 1 unsuccesful retry
Es werden auch Fehlermeldungen im fhempy-log generiert.
Allerdings erst nach einem Neustart:
2021-11-21 04:52:16,839 - ERROR - pychromecast.socket_client: [AZi(192.168.178.57):32163] Error reading from socket.
2021-11-21 10:30:20,825 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-11-21 10:30:20,834 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-11-21 10:30:20,868 - INFO - websockets.server: server listening on 0.0.0.0:15733
2021-11-21 10:31:03,508 - INFO - websockets.server: connection open
2021-11-21 10:31:03,509 - INFO - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-11-21 10:32:14,352 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-11-21 10:32:14,362 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-11-21 10:32:14,424 - INFO - websockets.server: server listening on 0.0.0.0:15733
2021-11-21 10:32:25,509 - INFO - websockets.server: connection open
2021-11-21 10:32:25,511 - INFO - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-11-21 10:34:10,534 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-11-21 10:34:10,542 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-11-21 10:34:10,576 - INFO - websockets.server: server listening on 0.0.0.0:15733
2021-11-21 10:34:20,021 - INFO - websockets.server: connection open
2021-11-21 10:34:20,023 - INFO - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-11-21 10:34:34,672 - ERROR - Gtag_Anja: Failed to update characteristics
2021-11-21 10:34:36,624 - WARNING - asyncio: Executing <Task pending name='Task-110' coro=<scanner.loop_scan() running at /opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/ble_presence/ble_presence.py:150> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0xb0172d90>()] created at /usr/lib/python3.9/asyncio/base_events.py:424> created at /usr/lib/python3.9/asyncio/tasks.py:361> took 0.335 seconds
2021-11-21 10:36:37,720 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-11-21 10:36:37,729 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-11-21 10:36:37,763 - INFO - websockets.server: server listening on 0.0.0.0:15733
2021-11-21 10:36:46,984 - INFO - websockets.server: connection open
2021-11-21 10:36:46,986 - INFO - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-11-21 10:36:52,210 - INFO - fhempy.lib.pkg_installer: Attempting install of fhempy
2021-11-21 10:37:00,624 - WARNING - asyncio: Executing <Task pending name='Task-102' coro=<scanner.loop_scan() running at /opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/ble_presence/ble_presence.py:150> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0xb065d100>()] created at /usr/lib/python3.9/asyncio/base_events.py:424> created at /usr/lib/python3.9/asyncio/tasks.py:361> took 0.294 seconds
Erst ein löschen des Peer-Device hat das fhem dann wieder bedienbar gemacht. Btw. der peer hat in fhem aber einen grünen Punkt gehabt....
Und dann ist mir dabei aufgefallen, dass die Geräte wohl zwingend den IODev gestezt haben müssen... denn was die Cast-Geräte mit dem Peer zu tun haben, erschließt sich mir überhaupt nicht. Der Peer war nur für Presence da.
Bis denn
SouzA
Sorry, dass ich zwei Posts nacheinander gemacht habe... Wenn ich einen machen wollte, hat das Forum immer einen Fehler verursacht und nur den halben Post dargestellt.
Zitat von: dominik am 20 November 2021, 22:28:22
Schau mal ins fhempy Log bzw. starte fhempy mal neu und prüfe ob es dann funktioniert. Hast du googlecast zuvor verwendet? Wenn ja, poste bitte das gesamte fhempy Log damit man sehen kann was schief gelaufen ist. Danke.
Moin,
nachdem ich den Raspi - und somit auch fhem - neu gestartet habe, waren die Fehler erst einmal weg. Testweise habe ich den JBL wieder mit Google-Cast eingerichtet, und nach einiger Zeit (der JBL war wieder aus) kamen auch wieder Fehler im fhem-Log. Ich hänge das
Hier einmal das fhempylog von gestern
2021-11-21 00:14:41,882 - WARNING - asyncio: Executing <TimerHandle when=359254.72556701 AsyncEngine._async_cache_cleanup() created at /opt/fhem/.local/lib/python3.7/site-packages/zeroconf/_core.py:179> took 3.000 seconds
2021-11-21 10:45:53,032 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-11-21 10:45:53,054 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-11-21 10:45:53,138 - WARNING - asyncio: Executing <Task pending coro=<async_main() running at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py:531> wait_for=<_GatheringFuture pending cb=[<TaskWakeupMethWrapper object at 0xb5036130>()] created at /usr/lib/python3.7/asyncio/tasks.py:615> cb=[_run_until_complete_cb() at /usr/lib/python3.7/asyncio/base_events.py:158] created at /usr/lib/python3.7/asyncio/base_events.py:563> took 0.106 seconds
2021-11-21 10:45:53,140 - INFO - websockets.server: server listening on 0.0.0.0:15733
2021-11-21 10:46:22,345 - INFO - websockets.server: connection open
2021-11-21 10:46:22,347 - INFO - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-11-21 10:57:00,083 - INFO - fhempy.lib.pkg_installer: Attempting install of fhempy
2021-11-21 10:57:12,957 - INFO - fhempy.lib.pkg_installer: Successfully installed fhempy update!
2021-11-21 10:57:14,223 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-11-21 10:57:14,242 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-11-21 10:57:14,322 - INFO - websockets.server: server listening on 0.0.0.0:15733
2021-11-21 10:57:24,050 - INFO - websockets.server: connection open
2021-11-21 10:57:24,052 - INFO - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-11-21 10:58:12,881 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-11-21 10:58:12,902 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-11-21 10:58:12,976 - INFO - websockets.server: server listening on 0.0.0.0:15733
2021-11-21 10:58:42,516 - INFO - websockets.server: connection open
2021-11-21 10:58:42,518 - INFO - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-11-21 20:19:25,260 - INFO - fhempy.lib.pkg_installer: Attempting install of pychromecast==10.1.0
2021-11-21 20:19:31,797 - INFO - fhempy.lib.pkg_installer: Successfully installed pychromecast==10.1.0 update!
2021-11-21 20:19:31,811 - INFO - fhempy.lib.pkg_installer: Attempting install of spotipy==2.19.0
2021-11-21 20:19:37,123 - INFO - fhempy.lib.pkg_installer: Successfully installed spotipy==2.19.0 update!
2021-11-21 20:50:24,048 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-21 20:50:29,539 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
Aktuell ist der JBL online - aber die Nachrichten im fhem-Log kommen weiter.
Gruß, Christoph
Im
Hi,
ich nochmal... ::)
Warum habe ich jetzt nen peer von 127.0.1.1? Siehe Bild im Anhang.
Habe nur meinen Fhem-Raspi (192.168.178.47) und einen Remote fhempy (192.168.178.48).... (und der is eigentlich nur für ble)
Bis denn
SouzA
Zitat von: CoolTux am 22 November 2021, 07:16:34
Ok danke Dir. Und wie findet der Peer oder besser das chromcast Modul das Chromcastgerät? Anfrage an Google oder scannt er intern im Netz?
Genau, es lauscht via zeroconf ob sich ein Chromecast meldet und prüft ob das der gleiche Name wie der im Define ist.
Zitat von: SouzA am 22 November 2021, 07:28:51
Moin,
wenn wir hier gerade bei Peers sind...
Mir ist vor kurzem mein Peer-Raspi abgeschmiert (hat sich aus irgendwelchen Gründen aufgehängt...).
Wenn der fhempyserver in fhem keinen Kontakt mehr zum Peer hat, spielt der völlig verrückt (Fehlemeldungen im Fhem-Log im Sekundentakt) und blockiert die gesamte Bedienung in fhem.
2021.11.21 10:26:00 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 5369889)
2021.11.21 10:26:00 1: defargsh => HASH(0x79f20b0)
2021.11.21 10:26:00 1: id => 5369889
2021.11.21 10:26:00 1: PYTHONTYPE => ble_presence
2021.11.21 10:26:00 1: FHEMPYTYPE => ble_presence
2021.11.21 10:26:00 1: argsh => HASH(0x8cd5f58)
2021.11.21 10:26:00 1: defargs => ARRAY(0x7a256c0)
2021.11.21 10:26:00 1: args => ARRAY(0x8e5abd8)
2021.11.21 10:26:00 1: function => Set
2021.11.21 10:26:00 1: NAME => Gtag_YYYY_remote_IP48
2021.11.21 10:26:00 1: msgtype => function
2021.11.21 10:26:02 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 69277243)
2021.11.21 10:26:02 1: function => Set
2021.11.21 10:26:02 1: args => ARRAY(0x8e5abd8)
2021.11.21 10:26:02 1: defargs => ARRAY(0x79f5bf8)
2021.11.21 10:26:02 1: NAME => Gtag_Auto_remote_IP48
2021.11.21 10:26:02 1: msgtype => function
2021.11.21 10:26:02 1: PYTHONTYPE => ble_presence
2021.11.21 10:26:02 1: defargsh => HASH(0x7a21450)
2021.11.21 10:26:02 1: id => 69277243
2021.11.21 10:26:02 1: argsh => HASH(0x8e55220)
2021.11.21 10:26:02 1: FHEMPYTYPE => ble_presence
2021.11.21 10:26:05 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 37251882)
2021.11.21 10:26:05 1: defargs => ARRAY(0x79e56c8)
2021.11.21 10:26:05 1: args => ARRAY(0x8e5abd8)
2021.11.21 10:26:05 1: function => Set
2021.11.21 10:26:05 1: msgtype => function
2021.11.21 10:26:05 1: NAME => Gtag_XYXY_remote_IP48
2021.11.21 10:26:05 1: id => 37251882
2021.11.21 10:26:05 1: defargsh => HASH(0x79dec20)
2021.11.21 10:26:05 1: PYTHONTYPE => ble_presence
2021.11.21 10:26:05 1: FHEMPYTYPE => ble_presence
2021.11.21 10:26:05 1: argsh => HASH(0x86982e8)
2021.11.21 10:26:07 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 91876904)
2021.11.21 10:26:07 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:07 1: argsh => HASH(0x8eca8c8)
2021.11.21 10:26:07 1: PYTHONTYPE => googlecast
2021.11.21 10:26:07 1: id => 91876904
2021.11.21 10:26:07 1: defargsh => HASH(0x77d4ae0)
2021.11.21 10:26:07 1: msgtype => function
2021.11.21 10:26:07 1: NAME => GC_Anlage
2021.11.21 10:26:07 1: args => ARRAY(0x87997d0)
2021.11.21 10:26:07 1: defargs => ARRAY(0x774ef10)
2021.11.21 10:26:07 1: function => Set
2021.11.21 10:26:10 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 78261926)
2021.11.21 10:26:10 1: msgtype => function
2021.11.21 10:26:10 1: NAME => GC_Chromecast
2021.11.21 10:26:10 1: function => Set
2021.11.21 10:26:10 1: args => ARRAY(0x8eb5480)
2021.11.21 10:26:10 1: defargs => ARRAY(0x7941a10)
2021.11.21 10:26:10 1: argsh => HASH(0x8e55220)
2021.11.21 10:26:10 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:10 1: PYTHONTYPE => googlecast
2021.11.21 10:26:10 1: id => 78261926
2021.11.21 10:26:10 1: defargsh => HASH(0x772e1c8)
2021.11.21 10:26:12 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 26557273)
2021.11.21 10:26:12 1: PYTHONTYPE => googlecast
2021.11.21 10:26:12 1: id => 26557273
2021.11.21 10:26:12 1: defargsh => HASH(0x774ef28)
2021.11.21 10:26:12 1: argsh => HASH(0x8e6fb58)
2021.11.21 10:26:12 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:12 1: function => Set
2021.11.21 10:26:12 1: args => ARRAY(0x7f6eda8)
2021.11.21 10:26:12 1: defargs => ARRAY(0x787b390)
2021.11.21 10:26:12 1: NAME => GC_Kueche
2021.11.21 10:26:12 1: msgtype => function
2021.11.21 10:26:15 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 11101453)
2021.11.21 10:26:15 1: defargsh => HASH(0x774f240)
2021.11.21 10:26:15 1: id => 11101453
2021.11.21 10:26:15 1: PYTHONTYPE => googlecast
2021.11.21 10:26:15 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:15 1: argsh => HASH(0x8f2be20)
2021.11.21 10:26:15 1: defargs => ARRAY(0x77d5230)
2021.11.21 10:26:15 1: args => ARRAY(0x8ce84a8)
2021.11.21 10:26:15 1: function => Set
2021.11.21 10:26:15 1: NAME => GG_Alarm
2021.11.21 10:26:15 1: msgtype => function
2021.11.21 10:26:18 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 43898508)
2021.11.21 10:26:18 1: defargs => ARRAY(0x774f2a0)
2021.11.21 10:26:18 1: args => ARRAY(0x85e9188)
2021.11.21 10:26:18 1: function => Set
2021.11.21 10:26:18 1: msgtype => function
2021.11.21 10:26:18 1: NAME => GG_Haus
2021.11.21 10:26:18 1: id => 43898508
2021.11.21 10:26:18 1: defargsh => HASH(0x77d5200)
2021.11.21 10:26:18 1: PYTHONTYPE => googlecast
2021.11.21 10:26:18 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:18 1: argsh => HASH(0x8599db8)
2021.11.21 10:26:20 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 55002091)
2021.11.21 10:26:20 1: argsh => HASH(0x86b3ef0)
2021.11.21 10:26:20 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:20 1: PYTHONTYPE => googlecast
2021.11.21 10:26:20 1: id => 55002091
2021.11.21 10:26:20 1: defargsh => HASH(0x77d4ee8)
2021.11.21 10:26:20 1: msgtype => function
2021.11.21 10:26:20 1: NAME => GG_Wohnkueche
2021.11.21 10:26:20 1: function => Set
2021.11.21 10:26:20 1: args => ARRAY(0x85a2670)
2021.11.21 10:26:20 1: defargs => ARRAY(0x77d5260)
2021.11.21 10:26:23 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 36016574)
2021.11.21 10:26:23 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:23 1: argsh => HASH(0x8724208)
2021.11.21 10:26:23 1: PYTHONTYPE => googlecast
2021.11.21 10:26:23 1: defargsh => HASH(0x5c6fc38)
2021.11.21 10:26:23 1: id => 36016574
2021.11.21 10:26:23 1: NAME => GH_Bad
2021.11.21 10:26:23 1: msgtype => function
2021.11.21 10:26:23 1: args => ARRAY(0x87997d0)
2021.11.21 10:26:23 1: defargs => ARRAY(0x649eb60)
2021.11.21 10:26:23 1: function => Set
2021.11.21 10:26:25 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 19860556)
2021.11.21 10:26:25 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:25 1: argsh => HASH(0x9034740)
2021.11.21 10:26:25 1: PYTHONTYPE => googlecast
2021.11.21 10:26:25 1: defargsh => HASH(0x7941818)
2021.11.21 10:26:25 1: id => 19860556
2021.11.21 10:26:25 1: NAME => GH_Kueche
2021.11.21 10:26:25 1: msgtype => function
2021.11.21 10:26:25 1: args => ARRAY(0x8ce84a8)
2021.11.21 10:26:25 1: defargs => ARRAY(0x774eec8)
2021.11.21 10:26:25 1: function => Set
2021.11.21 10:26:28 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 16040563)
2021.11.21 10:26:28 1: argsh => HASH(0x8eb51b0)
2021.11.21 10:26:28 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:28 1: defargsh => HASH(0x79409e8)
2021.11.21 10:26:28 1: id => 16040563
2021.11.21 10:26:28 1: PYTHONTYPE => googlecast
2021.11.21 10:26:28 1: NAME => GH_WC
2021.11.21 10:26:28 1: msgtype => function
2021.11.21 10:26:28 1: function => Set
2021.11.21 10:26:28 1: defargs => ARRAY(0x7940e20)
2021.11.21 10:26:28 1: args => ARRAY(0x7f6eda8)
2021.11.21 10:26:30 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 19960461)
2021.11.21 10:26:30 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:30 1: argsh => HASH(0x8da5180)
2021.11.21 10:26:30 1: PYTHONTYPE => googlecast
2021.11.21 10:26:30 1: defargsh => HASH(0x7941a70)
2021.11.21 10:26:30 1: id => 19960461
2021.11.21 10:26:30 1: msgtype => function
2021.11.21 10:26:30 1: NAME => GH_WoZi
2021.11.21 10:26:30 1: args => ARRAY(0x8e5c358)
2021.11.21 10:26:30 1: defargs => ARRAY(0x77d4c48)
2021.11.21 10:26:30 1: function => Set
2021.11.21 10:26:42 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 90831551)
2021.11.21 10:26:42 1: FHEMPYTYPE => ble_presence
2021.11.21 10:26:42 1: argsh => HASH(0x85c5338)
2021.11.21 10:26:42 1: id => 90831551
2021.11.21 10:26:42 1: defargsh => HASH(0x79f20b0)
2021.11.21 10:26:42 1: PYTHONTYPE => ble_presence
2021.11.21 10:26:42 1: NAME => Gtag_YYYY_remote_IP48
2021.11.21 10:26:42 1: msgtype => function
2021.11.21 10:26:42 1: defargs => ARRAY(0x7a256c0)
2021.11.21 10:26:42 1: args => ARRAY(0x87297d0)
2021.11.21 10:26:42 1: function => Set
2021.11.21 10:26:45 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 88791027)
2021.11.21 10:26:45 1: argsh => HASH(0x85e8de0)
2021.11.21 10:26:45 1: FHEMPYTYPE => ble_presence
2021.11.21 10:26:45 1: PYTHONTYPE => ble_presence
2021.11.21 10:26:45 1: defargsh => HASH(0x7a21450)
2021.11.21 10:26:45 1: id => 88791027
2021.11.21 10:26:45 1: NAME => Gtag_Auto_remote_IP48
2021.11.21 10:26:45 1: msgtype => function
2021.11.21 10:26:45 1: function => Set
2021.11.21 10:26:45 1: args => ARRAY(0x87297d0)
2021.11.21 10:26:45 1: defargs => ARRAY(0x79f5bf8)
2021.11.21 10:26:47 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 38932857)
2021.11.21 10:26:47 1: function => Set
2021.11.21 10:26:47 1: defargs => ARRAY(0x79e56c8)
2021.11.21 10:26:47 1: args => ARRAY(0x87297d0)
2021.11.21 10:26:47 1: NAME => Gtag_XYXY_remote_IP48
2021.11.21 10:26:47 1: msgtype => function
2021.11.21 10:26:47 1: defargsh => HASH(0x79dec20)
2021.11.21 10:26:47 1: id => 38932857
2021.11.21 10:26:47 1: PYTHONTYPE => ble_presence
2021.11.21 10:26:47 1: argsh => HASH(0x8e74d38)
2021.11.21 10:26:47 1: FHEMPYTYPE => ble_presence
2021.11.21 10:26:50 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 12775656)
2021.11.21 10:26:50 1: function => Set
2021.11.21 10:26:50 1: args => ARRAY(0x8f15160)
2021.11.21 10:26:50 1: defargs => ARRAY(0x774ef10)
2021.11.21 10:26:50 1: NAME => GC_Anlage
2021.11.21 10:26:50 1: msgtype => function
2021.11.21 10:26:50 1: PYTHONTYPE => googlecast
2021.11.21 10:26:50 1: id => 12775656
2021.11.21 10:26:50 1: defargsh => HASH(0x77d4ae0)
2021.11.21 10:26:50 1: argsh => HASH(0x87aba60)
2021.11.21 10:26:50 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:52 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 6784520)
2021.11.21 10:26:52 1: defargsh => HASH(0x772e1c8)
2021.11.21 10:26:52 1: id => 6784520
2021.11.21 10:26:52 1: PYTHONTYPE => googlecast
2021.11.21 10:26:52 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:52 1: argsh => HASH(0x85e8de0)
2021.11.21 10:26:52 1: defargs => ARRAY(0x7941a10)
2021.11.21 10:26:52 1: args => ARRAY(0x8eb1528)
2021.11.21 10:26:52 1: function => Set
2021.11.21 10:26:52 1: msgtype => function
2021.11.21 10:26:52 1: NAME => GC_Chromecast
2021.11.21 10:26:55 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 90755641)
2021.11.21 10:26:55 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:55 1: argsh => HASH(0x51926f8)
2021.11.21 10:26:55 1: id => 90755641
2021.11.21 10:26:55 1: defargsh => HASH(0x774ef28)
2021.11.21 10:26:55 1: PYTHONTYPE => googlecast
2021.11.21 10:26:55 1: msgtype => function
2021.11.21 10:26:55 1: NAME => GC_Kueche
2021.11.21 10:26:55 1: defargs => ARRAY(0x787b390)
2021.11.21 10:26:55 1: args => ARRAY(0x900f628)
2021.11.21 10:26:55 1: function => Set
2021.11.21 10:26:58 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 28200563)
2021.11.21 10:26:58 1: FHEMPYTYPE => googlecast
2021.11.21 10:26:58 1: argsh => HASH(0x8046ec8)
2021.11.21 10:26:58 1: PYTHONTYPE => googlecast
2021.11.21 10:26:58 1: id => 28200563
2021.11.21 10:26:58 1: defargsh => HASH(0x774f240)
2021.11.21 10:26:58 1: NAME => GG_Alarm
2021.11.21 10:26:58 1: msgtype => function
2021.11.21 10:26:58 1: args => ARRAY(0x8d85ee8)
2021.11.21 10:26:58 1: defargs => ARRAY(0x77d5230)
2021.11.21 10:26:58 1: function => Set
2021.11.21 10:27:00 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 62256005)
2021.11.21 10:27:00 1: argsh => HASH(0x86b1278)
2021.11.21 10:27:00 1: FHEMPYTYPE => googlecast
2021.11.21 10:27:00 1: PYTHONTYPE => googlecast
2021.11.21 10:27:00 1: id => 62256005
2021.11.21 10:27:00 1: defargsh => HASH(0x77d5200)
2021.11.21 10:27:00 1: msgtype => function
2021.11.21 10:27:00 1: NAME => GG_Haus
2021.11.21 10:27:00 1: function => Set
2021.11.21 10:27:00 1: args => ARRAY(0x8fe77d0)
2021.11.21 10:27:00 1: defargs => ARRAY(0x774f2a0)
2021.11.21 10:27:03 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 50594681)
2021.11.21 10:27:03 1: defargs => ARRAY(0x77d5260)
2021.11.21 10:27:03 1: args => ARRAY(0x8eba158)
2021.11.21 10:27:03 1: function => Set
2021.11.21 10:27:03 1: NAME => GG_Wohnkueche
2021.11.21 10:27:03 1: msgtype => function
2021.11.21 10:27:03 1: id => 50594681
2021.11.21 10:27:03 1: defargsh => HASH(0x77d4ee8)
2021.11.21 10:27:03 1: PYTHONTYPE => googlecast
2021.11.21 10:27:03 1: FHEMPYTYPE => googlecast
2021.11.21 10:27:03 1: argsh => HASH(0x8ec7130)
2021.11.21 10:27:05 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 15414205)
2021.11.21 10:27:05 1: argsh => HASH(0x8edd578)
2021.11.21 10:27:05 1: FHEMPYTYPE => googlecast
2021.11.21 10:27:05 1: PYTHONTYPE => googlecast
2021.11.21 10:27:05 1: defargsh => HASH(0x5c6fc38)
2021.11.21 10:27:05 1: id => 15414205
2021.11.21 10:27:05 1: NAME => GH_Bad
2021.11.21 10:27:05 1: msgtype => function
2021.11.21 10:27:05 1: function => Set
2021.11.21 10:27:05 1: args => ARRAY(0x8f15160)
2021.11.21 10:27:05 1: defargs => ARRAY(0x649eb60)
2021.11.21 10:27:08 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 38808403)
2021.11.21 10:27:08 1: FHEMPYTYPE => googlecast
2021.11.21 10:27:08 1: argsh => HASH(0x87902d8)
2021.11.21 10:27:08 1: id => 38808403
2021.11.21 10:27:08 1: defargsh => HASH(0x7941818)
2021.11.21 10:27:08 1: PYTHONTYPE => googlecast
2021.11.21 10:27:08 1: NAME => GH_Kueche
2021.11.21 10:27:08 1: msgtype => function
2021.11.21 10:27:08 1: defargs => ARRAY(0x774eec8)
2021.11.21 10:27:08 1: args => ARRAY(0x8d85ee8)
2021.11.21 10:27:08 1: function => Set
2021.11.21 10:27:10 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 46709932)
2021.11.21 10:27:10 1: id => 46709932
2021.11.21 10:27:10 1: defargsh => HASH(0x79409e8)
2021.11.21 10:27:10 1: PYTHONTYPE => googlecast
2021.11.21 10:27:10 1: argsh => HASH(0x89b8628)
2021.11.21 10:27:10 1: FHEMPYTYPE => googlecast
2021.11.21 10:27:10 1: function => Set
2021.11.21 10:27:10 1: defargs => ARRAY(0x7940e20)
2021.11.21 10:27:10 1: args => ARRAY(0x900f628)
2021.11.21 10:27:10 1: NAME => GH_WC
2021.11.21 10:27:10 1: msgtype => function
2021.11.21 10:27:13 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 90534572)
2021.11.21 10:27:13 1: argsh => HASH(0x8ef81a8)
2021.11.21 10:27:13 1: FHEMPYTYPE => googlecast
2021.11.21 10:27:13 1: id => 90534572
2021.11.21 10:27:13 1: defargsh => HASH(0x7941a70)
2021.11.21 10:27:13 1: PYTHONTYPE => googlecast
2021.11.21 10:27:13 1: NAME => GH_WoZi
2021.11.21 10:27:13 1: msgtype => function
2021.11.21 10:27:13 1: function => Set
2021.11.21 10:27:13 1: defargs => ARRAY(0x77d4c48)
2021.11.21 10:27:13 1: args => ARRAY(0x8ce9968)
2021.11.21 10:28:09 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 93794273)
2021.11.21 10:28:09 1: FHEMPYTYPE => ble_presence
2021.11.21 10:28:09 1: argsh => HASH(0x8f2f138)
2021.11.21 10:28:09 1: PYTHONTYPE => ble_presence
2021.11.21 10:28:09 1: defargsh => HASH(0x79f20b0)
2021.11.21 10:28:09 1: id => 93794273
2021.11.21 10:28:09 1: msgtype => function
2021.11.21 10:28:09 1: NAME => Gtag_YYYY_remote_IP48
2021.11.21 10:28:09 1: args => ARRAY(0x8b8fe98)
2021.11.21 10:28:09 1: defargs => ARRAY(0x7a256c0)
2021.11.21 10:28:09 1: function => Set
2021.11.21 10:28:12 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 33901357)
2021.11.21 10:28:12 1: PYTHONTYPE => ble_presence
2021.11.21 10:28:12 1: defargsh => HASH(0x7a21450)
2021.11.21 10:28:12 1: id => 33901357
2021.11.21 10:28:12 1: FHEMPYTYPE => ble_presence
2021.11.21 10:28:12 1: argsh => HASH(0x9013110)
2021.11.21 10:28:12 1: args => ARRAY(0x8b8fe98)
2021.11.21 10:28:12 1: defargs => ARRAY(0x79f5bf8)
2021.11.21 10:28:12 1: function => Set
2021.11.21 10:28:12 1: msgtype => function
2021.11.21 10:28:12 1: NAME => Gtag_Auto_remote_IP48
2021.11.21 10:28:14 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 34479711)
2021.11.21 10:28:14 1: msgtype => function
2021.11.21 10:28:14 1: NAME => Gtag_XYXY_remote_IP48
2021.11.21 10:28:14 1: function => Set
2021.11.21 10:28:14 1: args => ARRAY(0x8b8fe98)
2021.11.21 10:28:14 1: defargs => ARRAY(0x79e56c8)
2021.11.21 10:28:14 1: argsh => HASH(0x9004d68)
2021.11.21 10:28:14 1: FHEMPYTYPE => ble_presence
2021.11.21 10:28:14 1: PYTHONTYPE => ble_presence
2021.11.21 10:28:14 1: id => 34479711
2021.11.21 10:28:14 1: defargsh => HASH(0x79dec20)
2021.11.21 10:28:17 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 52094377)
2021.11.21 10:28:17 1: function => Set
2021.11.21 10:28:17 1: defargs => ARRAY(0x774ef10)
2021.11.21 10:28:17 1: args => ARRAY(0x902bd50)
2021.11.21 10:28:17 1: NAME => GC_Anlage
2021.11.21 10:28:17 1: msgtype => function
2021.11.21 10:28:17 1: defargsh => HASH(0x77d4ae0)
2021.11.21 10:28:17 1: id => 52094377
2021.11.21 10:28:17 1: PYTHONTYPE => googlecast
2021.11.21 10:28:17 1: argsh => HASH(0x8e8f9c0)
2021.11.21 10:28:17 1: FHEMPYTYPE => googlecast
2021.11.21 10:28:19 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 65879388)
2021.11.21 10:28:19 1: args => ARRAY(0x87a0128)
2021.11.21 10:28:19 1: defargs => ARRAY(0x7941a10)
2021.11.21 10:28:19 1: function => Set
2021.11.21 10:28:19 1: msgtype => function
2021.11.21 10:28:19 1: NAME => GC_Chromecast
2021.11.21 10:28:19 1: PYTHONTYPE => googlecast
2021.11.21 10:28:19 1: defargsh => HASH(0x772e1c8)
2021.11.21 10:28:19 1: id => 65879388
2021.11.21 10:28:19 1: FHEMPYTYPE => googlecast
2021.11.21 10:28:19 1: argsh => HASH(0x9013110)
2021.11.21 10:28:22 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 36656934)
2021.11.21 10:28:22 1: PYTHONTYPE => googlecast
2021.11.21 10:28:22 1: defargsh => HASH(0x774ef28)
2021.11.21 10:28:22 1: id => 36656934
2021.11.21 10:28:22 1: FHEMPYTYPE => googlecast
2021.11.21 10:28:22 1: argsh => HASH(0x87ab208)
2021.11.21 10:28:22 1: args => ARRAY(0x8eba158)
2021.11.21 10:28:22 1: defargs => ARRAY(0x787b390)
2021.11.21 10:28:22 1: function => Set
2021.11.21 10:28:22 1: msgtype => function
2021.11.21 10:28:22 1: NAME => GC_Kueche
2021.11.21 10:28:24 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 45536866)
2021.11.21 10:28:24 1: NAME => GG_Alarm
2021.11.21 10:28:24 1: msgtype => function
2021.11.21 10:28:24 1: function => Set
2021.11.21 10:28:24 1: args => ARRAY(0x8e91a28)
2021.11.21 10:28:24 1: defargs => ARRAY(0x77d5230)
2021.11.21 10:28:24 1: argsh => HASH(0x8786350)
2021.11.21 10:28:24 1: FHEMPYTYPE => googlecast
2021.11.21 10:28:24 1: PYTHONTYPE => googlecast
2021.11.21 10:28:24 1: id => 45536866
2021.11.21 10:28:24 1: defargsh => HASH(0x774f240)
2021.11.21 10:28:27 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 24787096)
2021.11.21 10:28:27 1: FHEMPYTYPE => googlecast
2021.11.21 10:28:27 1: argsh => HASH(0x8efd5d0)
2021.11.21 10:28:27 1: defargsh => HASH(0x77d5200)
2021.11.21 10:28:27 1: id => 24787096
2021.11.21 10:28:27 1: PYTHONTYPE => googlecast
2021.11.21 10:28:27 1: msgtype => function
2021.11.21 10:28:27 1: NAME => GG_Haus
2021.11.21 10:28:27 1: defargs => ARRAY(0x774f2a0)
2021.11.21 10:28:27 1: args => ARRAY(0x8fe77d0)
2021.11.21 10:28:27 1: function => Set
2021.11.21 10:28:29 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 48588896)
2021.11.21 10:28:29 1: PYTHONTYPE => googlecast
2021.11.21 10:28:29 1: id => 48588896
2021.11.21 10:28:29 1: defargsh => HASH(0x77d4ee8)
2021.11.21 10:28:29 1: argsh => HASH(0x89a2308)
2021.11.21 10:28:29 1: FHEMPYTYPE => googlecast
2021.11.21 10:28:29 1: function => Set
2021.11.21 10:28:29 1: args => ARRAY(0x8e915d8)
2021.11.21 10:28:29 1: defargs => ARRAY(0x77d5260)
2021.11.21 10:28:29 1: msgtype => function
2021.11.21 10:28:29 1: NAME => GG_Wohnkueche
2021.11.21 10:28:32 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 16940447)
2021.11.21 10:28:32 1: msgtype => function
2021.11.21 10:28:32 1: NAME => GH_Bad
2021.11.21 10:28:32 1: function => Set
2021.11.21 10:28:32 1: defargs => ARRAY(0x649eb60)
2021.11.21 10:28:32 1: args => ARRAY(0x902bd50)
2021.11.21 10:28:32 1: argsh => HASH(0x8f50fe8)
2021.11.21 10:28:32 1: FHEMPYTYPE => googlecast
2021.11.21 10:28:32 1: id => 16940447
2021.11.21 10:28:32 1: defargsh => HASH(0x5c6fc38)
2021.11.21 10:28:32 1: PYTHONTYPE => googlecast
2021.11.21 10:28:34 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 4318906)
2021.11.21 10:28:34 1: FHEMPYTYPE => googlecast
2021.11.21 10:28:34 1: argsh => HASH(0x8d957d0)
2021.11.21 10:28:34 1: PYTHONTYPE => googlecast
2021.11.21 10:28:34 1: defargsh => HASH(0x7941818)
2021.11.21 10:28:34 1: id => 4318906
2021.11.21 10:28:34 1: NAME => GH_Kueche
2021.11.21 10:28:34 1: msgtype => function
2021.11.21 10:28:34 1: args => ARRAY(0x8e91a28)
2021.11.21 10:28:34 1: defargs => ARRAY(0x774eec8)
2021.11.21 10:28:34 1: function => Set
2021.11.21 10:28:37 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 79653100)
2021.11.21 10:28:37 1: defargs => ARRAY(0x7940e20)
2021.11.21 10:28:37 1: args => ARRAY(0x8eba158)
2021.11.21 10:28:37 1: function => Set
2021.11.21 10:28:37 1: NAME => GH_WC
2021.11.21 10:28:37 1: msgtype => function
2021.11.21 10:28:37 1: id => 79653100
2021.11.21 10:28:37 1: defargsh => HASH(0x79409e8)
2021.11.21 10:28:37 1: PYTHONTYPE => googlecast
2021.11.21 10:28:37 1: FHEMPYTYPE => googlecast
2021.11.21 10:28:37 1: argsh => HASH(0x102bb50)
2021.11.21 10:28:39 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 80735518)
2021.11.21 10:28:39 1: PYTHONTYPE => googlecast
2021.11.21 10:28:39 1: id => 80735518
2021.11.21 10:28:39 1: defargsh => HASH(0x7941a70)
2021.11.21 10:28:39 1: argsh => HASH(0x8f40e10)
2021.11.21 10:28:39 1: FHEMPYTYPE => googlecast
2021.11.21 10:28:39 1: function => Set
2021.11.21 10:28:39 1: args => ARRAY(0x8ef5120)
2021.11.21 10:28:39 1: defargs => ARRAY(0x77d4c48)
2021.11.21 10:28:39 1: msgtype => function
2021.11.21 10:28:39 1: NAME => GH_WoZi
2021.11.21 10:29:10 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 55483643)
2021.11.21 10:29:10 1: msgtype => function
2021.11.21 10:29:10 1: NAME => Gtag_YYYY_remote_IP48
2021.11.21 10:29:10 1: args => ARRAY(0x8ea9ef8)
2021.11.21 10:29:10 1: defargs => ARRAY(0x7a256c0)
2021.11.21 10:29:10 1: function => Set
2021.11.21 10:29:10 1: FHEMPYTYPE => ble_presence
2021.11.21 10:29:10 1: argsh => HASH(0x18b00a0)
2021.11.21 10:29:10 1: PYTHONTYPE => ble_presence
2021.11.21 10:29:10 1: id => 55483643
2021.11.21 10:29:10 1: defargsh => HASH(0x79f20b0)
2021.11.21 10:29:12 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 55768444)
2021.11.21 10:29:12 1: function => Set
2021.11.21 10:29:12 1: defargs => ARRAY(0x79f5bf8)
2021.11.21 10:29:12 1: args => ARRAY(0x8ea9ef8)
2021.11.21 10:29:12 1: msgtype => function
2021.11.21 10:29:12 1: NAME => Gtag_Auto_remote_IP48
2021.11.21 10:29:12 1: defargsh => HASH(0x7a21450)
2021.11.21 10:29:12 1: id => 55768444
2021.11.21 10:29:12 1: PYTHONTYPE => ble_presence
2021.11.21 10:29:12 1: argsh => HASH(0x9006ca0)
2021.11.21 10:29:12 1: FHEMPYTYPE => ble_presence
2021.11.21 10:29:15 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 21141363)
2021.11.21 10:29:15 1: NAME => Gtag_XYXY_remote_IP48
2021.11.21 10:29:15 1: msgtype => function
2021.11.21 10:29:15 1: function => Set
2021.11.21 10:29:15 1: args => ARRAY(0x8ea9ef8)
2021.11.21 10:29:15 1: defargs => ARRAY(0x79e56c8)
2021.11.21 10:29:15 1: argsh => HASH(0x85c0c88)
2021.11.21 10:29:15 1: FHEMPYTYPE => ble_presence
2021.11.21 10:29:15 1: PYTHONTYPE => ble_presence
2021.11.21 10:29:15 1: defargsh => HASH(0x79dec20)
2021.11.21 10:29:15 1: id => 21141363
2021.11.21 10:29:17 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 73251601)
2021.11.21 10:29:17 1: NAME => GC_Anlage
2021.11.21 10:29:17 1: msgtype => function
2021.11.21 10:29:17 1: function => Set
2021.11.21 10:29:17 1: defargs => ARRAY(0x774ef10)
2021.11.21 10:29:17 1: args => ARRAY(0x85a28c8)
2021.11.21 10:29:17 1: argsh => HASH(0x8ea5bf8)
2021.11.21 10:29:17 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:17 1: id => 73251601
2021.11.21 10:29:17 1: defargsh => HASH(0x77d4ae0)
2021.11.21 10:29:17 1: PYTHONTYPE => googlecast
2021.11.21 10:29:20 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 33987362)
2021.11.21 10:29:20 1: defargs => ARRAY(0x7941a10)
2021.11.21 10:29:20 1: args => ARRAY(0x8d8dd38)
2021.11.21 10:29:20 1: function => Set
2021.11.21 10:29:20 1: msgtype => function
2021.11.21 10:29:20 1: NAME => GC_Chromecast
2021.11.21 10:29:20 1: id => 33987362
2021.11.21 10:29:20 1: defargsh => HASH(0x772e1c8)
2021.11.21 10:29:20 1: PYTHONTYPE => googlecast
2021.11.21 10:29:20 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:20 1: argsh => HASH(0x9006ca0)
2021.11.21 10:29:22 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 61084905)
2021.11.21 10:29:22 1: function => Set
2021.11.21 10:29:22 1: defargs => ARRAY(0x787b390)
2021.11.21 10:29:22 1: args => ARRAY(0x8e915d8)
2021.11.21 10:29:22 1: NAME => GC_Kueche
2021.11.21 10:29:22 1: msgtype => function
2021.11.21 10:29:22 1: id => 61084905
2021.11.21 10:29:22 1: defargsh => HASH(0x774ef28)
2021.11.21 10:29:22 1: PYTHONTYPE => googlecast
2021.11.21 10:29:22 1: argsh => HASH(0x878c970)
2021.11.21 10:29:22 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:25 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 92127176)
2021.11.21 10:29:25 1: msgtype => function
2021.11.21 10:29:25 1: NAME => GG_Alarm
2021.11.21 10:29:25 1: function => Set
2021.11.21 10:29:25 1: defargs => ARRAY(0x77d5230)
2021.11.21 10:29:25 1: args => ARRAY(0x876abe0)
2021.11.21 10:29:25 1: argsh => HASH(0x899ca90)
2021.11.21 10:29:25 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:25 1: defargsh => HASH(0x774f240)
2021.11.21 10:29:25 1: id => 92127176
2021.11.21 10:29:25 1: PYTHONTYPE => googlecast
2021.11.21 10:29:27 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 80537887)
2021.11.21 10:29:27 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:27 1: argsh => HASH(0x8b7af60)
2021.11.21 10:29:27 1: PYTHONTYPE => googlecast
2021.11.21 10:29:27 1: id => 80537887
2021.11.21 10:29:27 1: defargsh => HASH(0x77d5200)
2021.11.21 10:29:27 1: msgtype => function
2021.11.21 10:29:27 1: NAME => GG_Haus
2021.11.21 10:29:27 1: args => ARRAY(0x8fe77d0)
2021.11.21 10:29:27 1: defargs => ARRAY(0x774f2a0)
2021.11.21 10:29:27 1: function => Set
2021.11.21 10:29:30 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 11033843)
2021.11.21 10:29:30 1: id => 11033843
2021.11.21 10:29:30 1: defargsh => HASH(0x77d4ee8)
2021.11.21 10:29:30 1: PYTHONTYPE => googlecast
2021.11.21 10:29:30 1: argsh => HASH(0x8eb72e0)
2021.11.21 10:29:30 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:30 1: function => Set
2021.11.21 10:29:30 1: defargs => ARRAY(0x77d5260)
2021.11.21 10:29:30 1: args => ARRAY(0x8037e80)
2021.11.21 10:29:30 1: NAME => GG_Wohnkueche
2021.11.21 10:29:30 1: msgtype => function
2021.11.21 10:29:32 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 17982766)
2021.11.21 10:29:32 1: argsh => HASH(0x90161c8)
2021.11.21 10:29:32 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:32 1: id => 17982766
2021.11.21 10:29:32 1: defargsh => HASH(0x5c6fc38)
2021.11.21 10:29:32 1: PYTHONTYPE => googlecast
2021.11.21 10:29:32 1: msgtype => function
2021.11.21 10:29:32 1: NAME => GH_Bad
2021.11.21 10:29:32 1: function => Set
2021.11.21 10:29:32 1: defargs => ARRAY(0x649eb60)
2021.11.21 10:29:32 1: args => ARRAY(0x85a28c8)
2021.11.21 10:29:35 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 19366636)
2021.11.21 10:29:35 1: defargsh => HASH(0x7941818)
2021.11.21 10:29:35 1: id => 19366636
2021.11.21 10:29:35 1: PYTHONTYPE => googlecast
2021.11.21 10:29:35 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:35 1: argsh => HASH(0x8da0a60)
2021.11.21 10:29:35 1: defargs => ARRAY(0x774eec8)
2021.11.21 10:29:35 1: args => ARRAY(0x876abe0)
2021.11.21 10:29:35 1: function => Set
2021.11.21 10:29:35 1: msgtype => function
2021.11.21 10:29:35 1: NAME => GH_Kueche
2021.11.21 10:29:37 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 79587433)
2021.11.21 10:29:37 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:37 1: argsh => HASH(0x8ed14e0)
2021.11.21 10:29:37 1: defargsh => HASH(0x79409e8)
2021.11.21 10:29:37 1: id => 79587433
2021.11.21 10:29:37 1: PYTHONTYPE => googlecast
2021.11.21 10:29:37 1: msgtype => function
2021.11.21 10:29:37 1: NAME => GH_WC
2021.11.21 10:29:37 1: defargs => ARRAY(0x7940e20)
2021.11.21 10:29:37 1: args => ARRAY(0x8e915d8)
2021.11.21 10:29:37 1: function => Set
2021.11.21 10:29:40 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 38503208)
2021.11.21 10:29:40 1: argsh => HASH(0x8789158)
2021.11.21 10:29:40 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:40 1: defargsh => HASH(0x7941a70)
2021.11.21 10:29:40 1: id => 38503208
2021.11.21 10:29:40 1: PYTHONTYPE => googlecast
2021.11.21 10:29:40 1: NAME => GH_WoZi
2021.11.21 10:29:40 1: msgtype => function
2021.11.21 10:29:40 1: function => Set
2021.11.21 10:29:40 1: defargs => ARRAY(0x77d4c48)
2021.11.21 10:29:40 1: args => ARRAY(0x8e98a30)
2021.11.21 10:29:44 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 58173778)
2021.11.21 10:29:44 1: function => Set
2021.11.21 10:29:44 1: args => ARRAY(0x8046f40)
2021.11.21 10:29:44 1: defargs => ARRAY(0x7a256c0)
2021.11.21 10:29:44 1: NAME => Gtag_YYYY_remote_IP48
2021.11.21 10:29:44 1: msgtype => function
2021.11.21 10:29:44 1: PYTHONTYPE => ble_presence
2021.11.21 10:29:44 1: defargsh => HASH(0x79f20b0)
2021.11.21 10:29:44 1: id => 58173778
2021.11.21 10:29:44 1: argsh => HASH(0x8d38de0)
2021.11.21 10:29:44 1: FHEMPYTYPE => ble_presence
2021.11.21 10:29:47 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 25088512)
2021.11.21 10:29:47 1: PYTHONTYPE => ble_presence
2021.11.21 10:29:47 1: defargsh => HASH(0x7a21450)
2021.11.21 10:29:47 1: id => 25088512
2021.11.21 10:29:47 1: FHEMPYTYPE => ble_presence
2021.11.21 10:29:47 1: argsh => HASH(0x88201d8)
2021.11.21 10:29:47 1: args => ARRAY(0x8046f40)
2021.11.21 10:29:47 1: defargs => ARRAY(0x79f5bf8)
2021.11.21 10:29:47 1: function => Set
2021.11.21 10:29:47 1: NAME => Gtag_Auto_remote_IP48
2021.11.21 10:29:47 1: msgtype => function
2021.11.21 10:29:49 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 27993738)
2021.11.21 10:29:49 1: defargsh => HASH(0x79dec20)
2021.11.21 10:29:49 1: id => 27993738
2021.11.21 10:29:49 1: PYTHONTYPE => ble_presence
2021.11.21 10:29:49 1: FHEMPYTYPE => ble_presence
2021.11.21 10:29:49 1: argsh => HASH(0x89a0a30)
2021.11.21 10:29:49 1: defargs => ARRAY(0x79e56c8)
2021.11.21 10:29:49 1: args => ARRAY(0x8046f40)
2021.11.21 10:29:49 1: function => Set
2021.11.21 10:29:49 1: NAME => Gtag_XYXY_remote_IP48
2021.11.21 10:29:49 1: msgtype => function
2021.11.21 10:29:52 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 46183045)
2021.11.21 10:29:52 1: function => Set
2021.11.21 10:29:52 1: defargs => ARRAY(0x774ef10)
2021.11.21 10:29:52 1: args => ARRAY(0x85bd5e8)
2021.11.21 10:29:52 1: msgtype => function
2021.11.21 10:29:52 1: NAME => GC_Anlage
2021.11.21 10:29:52 1: defargsh => HASH(0x77d4ae0)
2021.11.21 10:29:52 1: id => 46183045
2021.11.21 10:29:52 1: PYTHONTYPE => googlecast
2021.11.21 10:29:52 1: argsh => HASH(0x8d4c3d8)
2021.11.21 10:29:52 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:54 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 69778755)
2021.11.21 10:29:54 1: id => 69778755
2021.11.21 10:29:54 1: defargsh => HASH(0x772e1c8)
2021.11.21 10:29:54 1: PYTHONTYPE => googlecast
2021.11.21 10:29:54 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:54 1: argsh => HASH(0x88201d8)
2021.11.21 10:29:54 1: defargs => ARRAY(0x7941a10)
2021.11.21 10:29:54 1: args => ARRAY(0x90125d0)
2021.11.21 10:29:54 1: function => Set
2021.11.21 10:29:54 1: NAME => GC_Chromecast
2021.11.21 10:29:54 1: msgtype => function
2021.11.21 10:29:57 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 40077758)
2021.11.21 10:29:57 1: msgtype => function
2021.11.21 10:29:57 1: NAME => GC_Kueche
2021.11.21 10:29:57 1: args => ARRAY(0x8037e80)
2021.11.21 10:29:57 1: defargs => ARRAY(0x787b390)
2021.11.21 10:29:57 1: function => Set
2021.11.21 10:29:57 1: FHEMPYTYPE => googlecast
2021.11.21 10:29:57 1: argsh => HASH(0x87ab5b0)
2021.11.21 10:29:57 1: PYTHONTYPE => googlecast
2021.11.21 10:29:57 1: id => 40077758
2021.11.21 10:29:57 1: defargsh => HASH(0x774ef28)
2021.11.21 10:29:57 1: ws:127.0.0.1:15733 disconnected, waiting to reappear (pyBinding)
2021.11.21 10:30:00 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 38343361)
2021.11.21 10:30:00 1: defargs => ARRAY(0x77d5230)
2021.11.21 10:30:00 1: args => ARRAY(0x18b3f50)
2021.11.21 10:30:00 1: function => Set
2021.11.21 10:30:00 1: NAME => GG_Alarm
2021.11.21 10:30:00 1: msgtype => function
2021.11.21 10:30:00 1: id => 38343361
2021.11.21 10:30:00 1: defargsh => HASH(0x774f240)
2021.11.21 10:30:00 1: PYTHONTYPE => googlecast
2021.11.21 10:30:00 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:00 1: argsh => HASH(0x9029cb0)
2021.11.21 10:30:02 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 15773197)
2021.11.21 10:30:02 1: defargsh => HASH(0x77d5200)
2021.11.21 10:30:02 1: id => 15773197
2021.11.21 10:30:02 1: PYTHONTYPE => googlecast
2021.11.21 10:30:02 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:02 1: argsh => HASH(0x8f1cbc8)
2021.11.21 10:30:02 1: defargs => ARRAY(0x774f2a0)
2021.11.21 10:30:02 1: args => ARRAY(0x89a5290)
2021.11.21 10:30:02 1: function => Set
2021.11.21 10:30:02 1: NAME => GG_Haus
2021.11.21 10:30:02 1: msgtype => function
2021.11.21 10:30:05 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 47209616)
2021.11.21 10:30:05 1: function => Set
2021.11.21 10:30:05 1: args => ARRAY(0x8ed2470)
2021.11.21 10:30:05 1: defargs => ARRAY(0x77d5260)
2021.11.21 10:30:05 1: NAME => GG_Wohnkueche
2021.11.21 10:30:05 1: msgtype => function
2021.11.21 10:30:05 1: PYTHONTYPE => googlecast
2021.11.21 10:30:05 1: defargsh => HASH(0x77d4ee8)
2021.11.21 10:30:05 1: id => 47209616
2021.11.21 10:30:05 1: argsh => HASH(0x8e9da40)
2021.11.21 10:30:05 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:07 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 94798426)
2021.11.21 10:30:07 1: msgtype => function
2021.11.21 10:30:07 1: NAME => GH_Bad
2021.11.21 10:30:07 1: defargs => ARRAY(0x649eb60)
2021.11.21 10:30:07 1: args => ARRAY(0x7da38e8)
2021.11.21 10:30:07 1: function => Set
2021.11.21 10:30:07 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:07 1: argsh => HASH(0x80ba558)
2021.11.21 10:30:07 1: id => 94798426
2021.11.21 10:30:07 1: defargsh => HASH(0x5c6fc38)
2021.11.21 10:30:07 1: PYTHONTYPE => googlecast
2021.11.21 10:30:10 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 49675440)
2021.11.21 10:30:10 1: msgtype => function
2021.11.21 10:30:10 1: NAME => GH_Kueche
2021.11.21 10:30:10 1: defargs => ARRAY(0x774eec8)
2021.11.21 10:30:10 1: args => ARRAY(0x8ef38f0)
2021.11.21 10:30:10 1: function => Set
2021.11.21 10:30:10 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:10 1: argsh => HASH(0x90023e0)
2021.11.21 10:30:10 1: defargsh => HASH(0x7941818)
2021.11.21 10:30:10 1: id => 49675440
2021.11.21 10:30:10 1: PYTHONTYPE => googlecast
2021.11.21 10:30:12 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 58193848)
2021.11.21 10:30:12 1: PYTHONTYPE => googlecast
2021.11.21 10:30:12 1: defargsh => HASH(0x79409e8)
2021.11.21 10:30:12 1: id => 58193848
2021.11.21 10:30:12 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:12 1: argsh => HASH(0x8e5bd58)
2021.11.21 10:30:12 1: args => ARRAY(0x8cde1c8)
2021.11.21 10:30:12 1: defargs => ARRAY(0x7940e20)
2021.11.21 10:30:12 1: function => Set
2021.11.21 10:30:12 1: msgtype => function
2021.11.21 10:30:12 1: NAME => GH_WC
2021.11.21 10:30:15 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 42069704)
2021.11.21 10:30:15 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:15 1: argsh => HASH(0x8cc9fc8)
2021.11.21 10:30:15 1: PYTHONTYPE => googlecast
2021.11.21 10:30:15 1: id => 42069704
2021.11.21 10:30:15 1: defargsh => HASH(0x7941a70)
2021.11.21 10:30:15 1: msgtype => function
2021.11.21 10:30:15 1: NAME => GH_WoZi
2021.11.21 10:30:15 1: args => ARRAY(0x8d90f38)
2021.11.21 10:30:15 1: defargs => ARRAY(0x77d4c48)
2021.11.21 10:30:15 1: function => Set
2021.11.21 10:30:15 2: wozi_TV [NonBlocking-VIERA_GetAbortFn()]: BlockingCall for wozi_TV was aborted, timeout reached
2021.11.21 10:30:15 2: PRESENCE (Handy_Mac_XYXY) - device could not be checked (retrying in 10 seconds): Process died prematurely
2021.11.21 10:30:15 2: PRESENCE (Handy_Mac_YYYY) - device could not be checked (retrying in 10 seconds): Process died prematurely
2021.11.21 10:30:15 3: BlockingCall for WOL_PC_ObiWan was aborted
2021.11.21 10:30:15 2: PRESENCE (Handy_YYYY) - device could not be checked (retrying in 10 seconds): Process died prematurely
2021.11.21 10:30:16 2: PRESENCE (Handy_XYXY) - device could not be checked (retrying in 10 seconds): Process died prematurely
2021.11.21 10:30:17 3: EnOcean set schlazi_Rolladen open
2021.11.21 10:30:18 2: SSCam.Dachboden - Quit session due to shutdown ...
2021.11.21 10:30:18 2: SSCam.Flur - Quit session due to shutdown ...
2021.11.21 10:30:18 2: SSCam.Garage - Quit session due to shutdown ...
2021.11.21 10:30:18 2: SSCam.Terrasse_1 - Quit session due to shutdown ...
2021.11.21 10:30:18 2: SSCam.Terrasse_2 - Quit session due to shutdown ...
2021.11.21 10:30:18 1: Server shutdown delayed due to SSCam.Flur,SSCam.Terrasse_2,SSCam.Garage,gassistant,SSCam.Dachboden,SSCam.Terrasse_1,SDS for max 10 sec
2021.11.21 10:30:19 3: fhempyserver_15733: read: end of file reached while sysread
2021.11.21 10:30:19 3: fhempyserver_15733: stopped
2021.11.21 10:30:19 3: fhempyserver_15733: starting
2021.11.21 10:30:19 3: fhempyserver_15733: using logfile: ./log/fhempy-2021-11-21.log
2021.11.21 10:30:22 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 91035912)
2021.11.21 10:30:22 1: msgtype => function
2021.11.21 10:30:22 1: NAME => Gtag_YYYY_remote_IP48
2021.11.21 10:30:22 1: args => ARRAY(0x8e98388)
2021.11.21 10:30:22 1: defargs => ARRAY(0x7a256c0)
2021.11.21 10:30:22 1: function => Set
2021.11.21 10:30:22 1: FHEMPYTYPE => ble_presence
2021.11.21 10:30:22 1: argsh => HASH(0x8037e80)
2021.11.21 10:30:22 1: PYTHONTYPE => ble_presence
2021.11.21 10:30:22 1: defargsh => HASH(0x79f20b0)
2021.11.21 10:30:22 1: id => 91035912
2021.11.21 10:30:25 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 86584987)
2021.11.21 10:30:25 1: NAME => Gtag_Auto_remote_IP48
2021.11.21 10:30:25 1: msgtype => function
2021.11.21 10:30:25 1: function => Set
2021.11.21 10:30:25 1: args => ARRAY(0x8e98388)
2021.11.21 10:30:25 1: defargs => ARRAY(0x79f5bf8)
2021.11.21 10:30:25 1: argsh => HASH(0x881fba0)
2021.11.21 10:30:25 1: FHEMPYTYPE => ble_presence
2021.11.21 10:30:25 1: PYTHONTYPE => ble_presence
2021.11.21 10:30:25 1: defargsh => HASH(0x7a21450)
2021.11.21 10:30:25 1: id => 86584987
2021.11.21 10:30:27 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 68670165)
2021.11.21 10:30:27 1: id => 68670165
2021.11.21 10:30:27 1: defargsh => HASH(0x79dec20)
2021.11.21 10:30:27 1: PYTHONTYPE => ble_presence
2021.11.21 10:30:27 1: FHEMPYTYPE => ble_presence
2021.11.21 10:30:27 1: argsh => HASH(0x1152748)
2021.11.21 10:30:27 1: defargs => ARRAY(0x79e56c8)
2021.11.21 10:30:27 1: args => ARRAY(0x8e98388)
2021.11.21 10:30:27 1: function => Set
2021.11.21 10:30:27 1: NAME => Gtag_XYXY_remote_IP48
2021.11.21 10:30:27 1: msgtype => function
2021.11.21 10:30:30 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 72379102)
2021.11.21 10:30:30 1: argsh => HASH(0x81688c0)
2021.11.21 10:30:30 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:30 1: PYTHONTYPE => googlecast
2021.11.21 10:30:30 1: defargsh => HASH(0x77d4ae0)
2021.11.21 10:30:30 1: id => 72379102
2021.11.21 10:30:30 1: msgtype => function
2021.11.21 10:30:30 1: NAME => GC_Anlage
2021.11.21 10:30:30 1: function => Set
2021.11.21 10:30:30 1: args => ARRAY(0x8e6e700)
2021.11.21 10:30:30 1: defargs => ARRAY(0x774ef10)
2021.11.21 10:30:32 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 78426711)
2021.11.21 10:30:32 1: args => ARRAY(0x8cc1ff0)
2021.11.21 10:30:32 1: defargs => ARRAY(0x7941a10)
2021.11.21 10:30:32 1: function => Set
2021.11.21 10:30:32 1: NAME => GC_Chromecast
2021.11.21 10:30:32 1: msgtype => function
2021.11.21 10:30:32 1: PYTHONTYPE => googlecast
2021.11.21 10:30:32 1: defargsh => HASH(0x772e1c8)
2021.11.21 10:30:32 1: id => 78426711
2021.11.21 10:30:32 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:32 1: argsh => HASH(0x886c800)
2021.11.21 10:30:35 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 68976553)
2021.11.21 10:30:35 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:35 1: argsh => HASH(0x9001768)
2021.11.21 10:30:35 1: defargsh => HASH(0x774ef28)
2021.11.21 10:30:35 1: id => 68976553
2021.11.21 10:30:35 1: PYTHONTYPE => googlecast
2021.11.21 10:30:35 1: msgtype => function
2021.11.21 10:30:35 1: NAME => GC_Kueche
2021.11.21 10:30:35 1: defargs => ARRAY(0x787b390)
2021.11.21 10:30:35 1: args => ARRAY(0x18b3f50)
2021.11.21 10:30:35 1: function => Set
2021.11.21 10:30:38 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 10447652)
2021.11.21 10:30:38 1: msgtype => function
2021.11.21 10:30:38 1: NAME => GG_Alarm
2021.11.21 10:30:38 1: args => ARRAY(0x8ce8550)
2021.11.21 10:30:38 1: defargs => ARRAY(0x77d5230)
2021.11.21 10:30:38 1: function => Set
2021.11.21 10:30:38 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:38 1: argsh => HASH(0x8e45598)
2021.11.21 10:30:38 1: PYTHONTYPE => googlecast
2021.11.21 10:30:38 1: id => 10447652
2021.11.21 10:30:38 1: defargsh => HASH(0x774f240)
2021.11.21 10:30:40 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 16283305)
2021.11.21 10:30:40 1: PYTHONTYPE => googlecast
2021.11.21 10:30:40 1: id => 16283305
2021.11.21 10:30:40 1: defargsh => HASH(0x77d5200)
2021.11.21 10:30:40 1: argsh => HASH(0x867da88)
2021.11.21 10:30:40 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:40 1: function => Set
2021.11.21 10:30:40 1: args => ARRAY(0x8d8fc88)
2021.11.21 10:30:40 1: defargs => ARRAY(0x774f2a0)
2021.11.21 10:30:40 1: NAME => GG_Haus
2021.11.21 10:30:40 1: msgtype => function
2021.11.21 10:30:43 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 84367435)
2021.11.21 10:30:43 1: function => Set
2021.11.21 10:30:43 1: args => ARRAY(0x900c2c0)
2021.11.21 10:30:43 1: defargs => ARRAY(0x77d5260)
2021.11.21 10:30:43 1: NAME => GG_Wohnkueche
2021.11.21 10:30:43 1: msgtype => function
2021.11.21 10:30:43 1: PYTHONTYPE => googlecast
2021.11.21 10:30:43 1: defargsh => HASH(0x77d4ee8)
2021.11.21 10:30:43 1: id => 84367435
2021.11.21 10:30:43 1: argsh => HASH(0x8ec84f8)
2021.11.21 10:30:43 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:45 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 17558245)
2021.11.21 10:30:45 1: argsh => HASH(0x881df58)
2021.11.21 10:30:45 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:45 1: PYTHONTYPE => googlecast
2021.11.21 10:30:45 1: defargsh => HASH(0x5c6fc38)
2021.11.21 10:30:45 1: id => 17558245
2021.11.21 10:30:45 1: NAME => GH_Bad
2021.11.21 10:30:45 1: msgtype => function
2021.11.21 10:30:45 1: function => Set
2021.11.21 10:30:45 1: args => ARRAY(0x8e6e700)
2021.11.21 10:30:45 1: defargs => ARRAY(0x649eb60)
2021.11.21 10:30:48 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 5096654)
2021.11.21 10:30:48 1: defargs => ARRAY(0x774eec8)
2021.11.21 10:30:48 1: args => ARRAY(0x8cc1ff0)
2021.11.21 10:30:48 1: function => Set
2021.11.21 10:30:48 1: msgtype => function
2021.11.21 10:30:48 1: NAME => GH_Kueche
2021.11.21 10:30:48 1: defargsh => HASH(0x7941818)
2021.11.21 10:30:48 1: id => 5096654
2021.11.21 10:30:48 1: PYTHONTYPE => googlecast
2021.11.21 10:30:48 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:48 1: argsh => HASH(0x881f2a0)
2021.11.21 10:30:50 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 3824473)
2021.11.21 10:30:50 1: msgtype => function
2021.11.21 10:30:50 1: NAME => GH_WC
2021.11.21 10:30:50 1: function => Set
2021.11.21 10:30:50 1: args => ARRAY(0x18b3f50)
2021.11.21 10:30:50 1: defargs => ARRAY(0x7940e20)
2021.11.21 10:30:50 1: argsh => HASH(0x8f3aa38)
2021.11.21 10:30:50 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:50 1: PYTHONTYPE => googlecast
2021.11.21 10:30:50 1: id => 3824473
2021.11.21 10:30:50 1: defargsh => HASH(0x79409e8)
2021.11.21 10:30:53 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 80447459)
2021.11.21 10:30:53 1: id => 80447459
2021.11.21 10:30:53 1: defargsh => HASH(0x7941a70)
2021.11.21 10:30:53 1: PYTHONTYPE => googlecast
2021.11.21 10:30:53 1: FHEMPYTYPE => googlecast
2021.11.21 10:30:53 1: argsh => HASH(0x8cde270)
2021.11.21 10:30:53 1: defargs => ARRAY(0x77d4c48)
2021.11.21 10:30:53 1: args => ARRAY(0x8d2a7d8)
2021.11.21 10:30:53 1: function => Set
2021.11.21 10:30:53 1: NAME => GH_WoZi
2021.11.21 10:30:53 1: msgtype => function
2021.11.21 10:30:53 2: PRESENCE (Handy_Mac_XYXY) - check returned a valid result after 1 unsuccesful retry
Kannst du diesen Fehler reproduzieren? Sieht für mich fast danach aus als würde fhempy auf diesen Peer zwar die Verbindung halten, aber die Commands nicht mehr verarbeiten. Steht was im fhempy Log am Peer (journalctl -u fhempy)?
Zitat von: caldir65 am 22 November 2021, 08:50:16
Moin,
nachdem ich den Raspi - und somit auch fhem - neu gestartet habe, waren die Fehler erst einmal weg. Testweise habe ich den JBL wieder mit Google-Cast eingerichtet, und nach einiger Zeit (der JBL war wieder aus) kamen auch wieder Fehler im fhem-Log. Ich hänge das
Hier einmal das fhempylog von gestern
2021-11-21 00:14:41,882 - WARNING - asyncio: Executing <TimerHandle when=359254.72556701 AsyncEngine._async_cache_cleanup() created at /opt/fhem/.local/lib/python3.7/site-packages/zeroconf/_core.py:179> took 3.000 seconds
2021-11-21 10:45:53,032 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-11-21 10:45:53,054 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-11-21 10:45:53,138 - WARNING - asyncio: Executing <Task pending coro=<async_main() running at /opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py:531> wait_for=<_GatheringFuture pending cb=[<TaskWakeupMethWrapper object at 0xb5036130>()] created at /usr/lib/python3.7/asyncio/tasks.py:615> cb=[_run_until_complete_cb() at /usr/lib/python3.7/asyncio/base_events.py:158] created at /usr/lib/python3.7/asyncio/base_events.py:563> took 0.106 seconds
2021-11-21 10:45:53,140 - INFO - websockets.server: server listening on 0.0.0.0:15733
2021-11-21 10:46:22,345 - INFO - websockets.server: connection open
2021-11-21 10:46:22,347 - INFO - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-11-21 10:57:00,083 - INFO - fhempy.lib.pkg_installer: Attempting install of fhempy
2021-11-21 10:57:12,957 - INFO - fhempy.lib.pkg_installer: Successfully installed fhempy update!
2021-11-21 10:57:14,223 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-11-21 10:57:14,242 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-11-21 10:57:14,322 - INFO - websockets.server: server listening on 0.0.0.0:15733
2021-11-21 10:57:24,050 - INFO - websockets.server: connection open
2021-11-21 10:57:24,052 - INFO - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-11-21 10:58:12,881 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-11-21 10:58:12,902 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-11-21 10:58:12,976 - INFO - websockets.server: server listening on 0.0.0.0:15733
2021-11-21 10:58:42,516 - INFO - websockets.server: connection open
2021-11-21 10:58:42,518 - INFO - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-11-21 20:19:25,260 - INFO - fhempy.lib.pkg_installer: Attempting install of pychromecast==10.1.0
2021-11-21 20:19:31,797 - INFO - fhempy.lib.pkg_installer: Successfully installed pychromecast==10.1.0 update!
2021-11-21 20:19:31,811 - INFO - fhempy.lib.pkg_installer: Attempting install of spotipy==2.19.0
2021-11-21 20:19:37,123 - INFO - fhempy.lib.pkg_installer: Successfully installed spotipy==2.19.0 update!
2021-11-21 20:50:24,048 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-21 20:50:29,539 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
Aktuell ist der JBL online - aber die Nachrichten im fhem-Log kommen weiter.
Gruß, Christoph
Im
Hast du 0.1.175 im Einsatz? Tritt der Fehler jedes mal auf wenn der JBL offline geht?
Zitat von: SouzA am 22 November 2021, 11:55:59
Hi,
ich nochmal... ::)
Warum habe ich jetzt nen peer von 127.0.1.1? Siehe Bild im Anhang.
Habe nur meinen Fhem-Raspi (192.168.178.47) und einen Remote fhempy (192.168.178.48).... (und der is eigentlich nur für ble)
Bis denn
SouzA
Da hast du wahrscheinlich am FHEM Server fhempy per Hand oder systemctl gestartet. fhempy sendet immer per Zeroconf ein Signal in das Netzwerk und wenn FHEM diese erkennt, richtet es das Device mit dem Peer ein. Du kannst das Device einfach löschen, aber solltest prüfen ob du eh nicht fhempy per systemctl eingerichtet hast und es daher bei jedem Neustart gestartet wird.
Zitat von: dominik am 22 November 2021, 19:48:50
Da hast du wahrscheinlich am FHEM Server fhempy per Hand oder systemctl gestartet. fhempy sendet immer per Zeroconf ein Signal in das Netzwerk und wenn FHEM diese erkennt, richtet es das Device mit dem Peer ein. Du kannst das Device einfach löschen, aber solltest prüfen ob du eh nicht fhempy per systemctl eingerichtet hast und es daher bei jedem Neustart gestartet wird.
Hmm,
eigentlich nach Anleitung bei GitHub installiert... Das Device 127.0.1.1. kommt auch erst, wenn der Peer angelegt wird. Ansonsten kommt das bei Neustarts auch nicht.
Hab ich grad heute morgen noch mal probiert.
Zitat von: dominik am 22 November 2021, 19:41:54
Kannst du diesen Fehler reproduzieren? Sieht für mich fast danach aus als würde fhempy auf diesen Peer zwar die Verbindung halten, aber die Commands nicht mehr verarbeiten. Steht was im fhempy Log am Peer (journalctl -u fhempy)?
Hi,
einfach den Peer ausschalten (Stecker ziehen):
2021.11.23 07:38:03 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 56561122)
2021.11.23 07:38:03 1: id => 56561122
2021.11.23 07:38:03 1: FHEMPYTYPE => ble_presence
2021.11.23 07:38:03 1: argsh => HASH(0xa0dc540)
2021.11.23 07:38:03 1: args => ARRAY(0x9791560)
2021.11.23 07:38:03 1: msgtype => function
2021.11.23 07:38:03 1: function => Set
2021.11.23 07:38:03 1: NAME => Gtag_XYXY_remote_IP48
2021.11.23 07:38:03 1: defargsh => HASH(0x8e02250)
2021.11.23 07:38:03 1: PYTHONTYPE => ble_presence
2021.11.23 07:38:03 1: defargs => ARRAY(0x8dfc2d0)
2021.11.23 07:38:36 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 67129738)
2021.11.23 07:38:36 1: defargsh => HASH(0x8e02250)
2021.11.23 07:38:36 1: defargs => ARRAY(0x8dfc2d0)
2021.11.23 07:38:36 1: PYTHONTYPE => ble_presence
2021.11.23 07:38:36 1: FHEMPYTYPE => ble_presence
2021.11.23 07:38:36 1: id => 67129738
2021.11.23 07:38:36 1: args => ARRAY(0xa0791a8)
2021.11.23 07:38:36 1: function => Set
2021.11.23 07:38:36 1: NAME => Gtag_XYXY_remote_IP48
2021.11.23 07:38:36 1: msgtype => function
2021.11.23 07:38:36 1: argsh => HASH(0x9d04e80)
2021.11.23 07:38:46 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 29800963)
2021.11.23 07:38:46 1: defargsh => HASH(0x8e02250)
2021.11.23 07:38:46 1: defargs => ARRAY(0x8dfc2d0)
2021.11.23 07:38:46 1: PYTHONTYPE => ble_presence
2021.11.23 07:38:46 1: FHEMPYTYPE => ble_presence
2021.11.23 07:38:46 1: id => 29800963
2021.11.23 07:38:46 1: NAME => Gtag_XYXY_remote_IP48
2021.11.23 07:38:46 1: args => ARRAY(0x9b8e298)
2021.11.23 07:38:46 1: function => Set
2021.11.23 07:38:46 1: msgtype => function
2021.11.23 07:38:46 1: argsh => HASH(0x97387f8)
2021.11.23 07:38:51 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 92320772)
2021.11.23 07:38:51 1: defargs => ARRAY(0x8dfc2d0)
2021.11.23 07:38:51 1: PYTHONTYPE => ble_presence
2021.11.23 07:38:51 1: defargsh => HASH(0x8e02250)
2021.11.23 07:38:51 1: args => ARRAY(0x711cda8)
2021.11.23 07:38:51 1: function => Set
2021.11.23 07:38:51 1: msgtype => function
2021.11.23 07:38:51 1: NAME => Gtag_XYXY_remote_IP48
2021.11.23 07:38:51 1: argsh => HASH(0xa0f49a8)
2021.11.23 07:38:51 1: FHEMPYTYPE => ble_presence
2021.11.23 07:38:51 1: id => 92320772
2021.11.23 07:38:53 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 56025156)
2021.11.23 07:38:53 1: argsh => HASH(0xa0e78b0)
2021.11.23 07:38:53 1: args => ARRAY(0x99eae60)
2021.11.23 07:38:53 1: function => FW_detailFn
2021.11.23 07:38:53 1: NAME => Gtag_XYXY_remote_IP48
2021.11.23 07:38:53 1: msgtype => function
2021.11.23 07:38:53 1: id => 56025156
2021.11.23 07:38:53 1: FHEMPYTYPE => ble_presence
2021.11.23 07:38:53 1: PYTHONTYPE => ble_presence
2021.11.23 07:38:53 1: defargs => ARRAY(0x8dfc2d0)
2021.11.23 07:38:53 1: defargsh => HASH(0x8e02250)
2021.11.23 07:38:56 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 98756463)
2021.11.23 07:38:56 1: argsh => HASH(0xa1319f0)
2021.11.23 07:38:56 1: args => ARRAY(0x9b59670)
2021.11.23 07:38:56 1: msgtype => function
2021.11.23 07:38:56 1: function => Set
2021.11.23 07:38:56 1: NAME => Gtag_XYXY_remote_IP48
2021.11.23 07:38:56 1: id => 98756463
2021.11.23 07:38:56 1: FHEMPYTYPE => ble_presence
2021.11.23 07:38:56 1: PYTHONTYPE => ble_presence
2021.11.23 07:38:56 1: defargs => ARRAY(0x8dfc2d0)
2021.11.23 07:38:56 1: defargsh => HASH(0x8e02250)
2021.11.23 07:38:58 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 61378601)
2021.11.23 07:38:58 1: id => 61378601
2021.11.23 07:38:58 1: FHEMPYTYPE => ble_presence
2021.11.23 07:38:58 1: argsh => HASH(0x9b89438)
2021.11.23 07:38:58 1: msgtype => function
2021.11.23 07:38:58 1: args => ARRAY(0x99fa5b8)
2021.11.23 07:38:58 1: function => Get
2021.11.23 07:38:58 1: NAME => Gtag_XYXY_remote_IP48
2021.11.23 07:38:58 1: defargsh => HASH(0x8e02250)
2021.11.23 07:38:58 1: PYTHONTYPE => ble_presence
2021.11.23 07:38:58 1: defargs => ARRAY(0x8dfc2d0)
2021.11.23 07:39:06 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 75751878)
2021.11.23 07:39:06 1: NAME => Gtag_XYXY_remote_IP48
2021.11.23 07:39:06 1: args => ARRAY(0x2594150)
2021.11.23 07:39:06 1: function => Set
2021.11.23 07:39:06 1: msgtype => function
2021.11.23 07:39:06 1: argsh => HASH(0x99e2988)
2021.11.23 07:39:06 1: FHEMPYTYPE => ble_presence
2021.11.23 07:39:06 1: id => 75751878
2021.11.23 07:39:06 1: defargs => ARRAY(0x8dfc2d0)
2021.11.23 07:39:06 1: PYTHONTYPE => ble_presence
2021.11.23 07:39:06 1: defargsh => HASH(0x8e02250)
2021.11.23 07:39:41 3: EnOcean set flur_Dimmer off
2021.11.23 07:39:42 3: EnOcean set flur_Dimmer off
2021.11.23 07:39:43 3: EnOcean set flur_Dimmer off
2021.11.23 07:39:47 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 21283669)
2021.11.23 07:39:47 1: PYTHONTYPE => ble_presence
2021.11.23 07:39:47 1: defargs => ARRAY(0x8dfc2d0)
2021.11.23 07:39:47 1: defargsh => HASH(0x8e02250)
2021.11.23 07:39:47 1: argsh => HASH(0xa1794e0)
2021.11.23 07:39:47 1: args => ARRAY(0xa13c7c8)
2021.11.23 07:39:47 1: NAME => Gtag_XYXY_remote_IP48
2021.11.23 07:39:47 1: function => Set
2021.11.23 07:39:47 1: msgtype => function
2021.11.23 07:39:47 1: id => 21283669
2021.11.23 07:39:47 1: FHEMPYTYPE => ble_presence
2021.11.23 07:39:50 3: EnOcean set flur_Dimmer on
2021.11.23 07:41:01 3: EnOcean set flur_Dimmer off
2021.11.23 07:41:02 3: EnOcean set flur_Dimmer off
2021.11.23 07:41:43 1: BindingsIo (pyBinding): ERROR: Timeout while waiting for function to finish (id: 87246392)
2021.11.23 07:41:43 1: PYTHONTYPE => ble_presence
2021.11.23 07:41:43 1: defargs => ARRAY(0x8dcd4f8)
2021.11.23 07:41:43 1: defargsh => HASH(0x8d67dc8)
2021.11.23 07:41:43 1: argsh => HASH(0xa099478)
2021.11.23 07:41:43 1: args => ARRAY(0x99cf7e8)
2021.11.23 07:41:43 1: msgtype => function
2021.11.23 07:41:43 1: function => Set
2021.11.23 07:41:43 1: NAME => Gtag_YYYY
2021.11.23 07:41:43 1: id => 87246392
2021.11.23 07:41:43 1: FHEMPYTYPE => ble_presence
2021.11.23 07:41:45 1: BindingsIo (pyBinding): ERROR: Timeout while waiting for function to finish (id: 98272866)
2021.11.23 07:41:45 1: FHEMPYTYPE => ble_presence
2021.11.23 07:41:45 1: id => 98272866
2021.11.23 07:41:45 1: NAME => Gtag_Auto
2021.11.23 07:41:45 1: args => ARRAY(0x97b1528)
2021.11.23 07:41:45 1: function => Set
2021.11.23 07:41:45 1: msgtype => function
2021.11.23 07:41:45 1: argsh => HASH(0xa0ff160)
2021.11.23 07:41:45 1: defargsh => HASH(0x8db41d0)
2021.11.23 07:41:45 1: defargs => ARRAY(0x8dc0b00)
2021.11.23 07:41:45 1: PYTHONTYPE => ble_presence
2021.11.23 07:41:48 1: BindingsIo (pyBinding): ERROR: Timeout while waiting for function to finish (id: 37950488)
2021.11.23 07:41:48 1: PYTHONTYPE => ble_presence
2021.11.23 07:41:48 1: defargs => ARRAY(0x8dfe828)
2021.11.23 07:41:48 1: defargsh => HASH(0x8dda0c0)
2021.11.23 07:41:48 1: argsh => HASH(0x2594648)
2021.11.23 07:41:48 1: args => ARRAY(0x99cf7e8)
2021.11.23 07:41:48 1: msgtype => function
2021.11.23 07:41:48 1: function => Set
2021.11.23 07:41:48 1: NAME => Gtag_XYXY
2021.11.23 07:41:48 1: id => 37950488
2021.11.23 07:41:48 1: FHEMPYTYPE => ble_presence
2021.11.23 07:41:50 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR: Timeout while waiting for function to finish (id: 6137862)
2021.11.23 07:41:50 1: argsh => HASH(0x9d03d50)
2021.11.23 07:41:50 1: args => ARRAY(0x97b1528)
2021.11.23 07:41:50 1: NAME => Gtag_XYXY_remote_IP48
2021.11.23 07:41:50 1: function => Set
2021.11.23 07:41:50 1: msgtype => function
2021.11.23 07:41:50 1: id => 6137862
2021.11.23 07:41:50 1: FHEMPYTYPE => ble_presence
2021.11.23 07:41:50 1: PYTHONTYPE => ble_presence
2021.11.23 07:41:50 1: defargs => ARRAY(0x8dfc2d0)
2021.11.23 07:41:50 1: defargsh => HASH(0x8e02250)
2021.11.23 07:41:53 1: BindingsIo (pyBinding): ERROR: Timeout while waiting for function to finish (id: 65153333)
2021.11.23 07:41:53 1: FHEMPYTYPE => ble_reset
2021.11.23 07:41:53 1: id => 65153333
2021.11.23 07:41:53 1: args => ARRAY(0x99cf7e8)
2021.11.23 07:41:53 1: function => Set
2021.11.23 07:41:53 1: msgtype => function
2021.11.23 07:41:53 1: NAME => ble_reset
2021.11.23 07:41:53 1: argsh => HASH(0x9a43ef0)
2021.11.23 07:41:53 1: defargsh => HASH(0x8dd4d18)
2021.11.23 07:41:53 1: defargs => ARRAY(0x8df4608)
2021.11.23 07:41:53 1: PYTHONTYPE => ble_reset
2021.11.23 07:41:55 1: BindingsIo (pyBinding): ERROR: Timeout while waiting for function to finish (id: 87852678)
2021.11.23 07:41:55 1: defargsh => HASH(0x8c5f330)
2021.11.23 07:41:55 1: PYTHONTYPE => googlecast
2021.11.23 07:41:55 1: defargs => ARRAY(0x8c5f318)
2021.11.23 07:41:55 1: id => 87852678
2021.11.23 07:41:55 1: FHEMPYTYPE => googlecast
2021.11.23 07:41:55 1: argsh => HASH(0x99cf7e8)
2021.11.23 07:41:55 1: args => ARRAY(0x9a43ef0)
2021.11.23 07:41:55 1: NAME => GC_Anlage
2021.11.23 07:41:55 1: function => Set
2021.11.23 07:41:55 1: msgtype => function
2021.11.23 07:41:58 1: BindingsIo (pyBinding): ERROR: Timeout while waiting for function to finish (id: 85547645)
2021.11.23 07:41:58 1: defargs => ARRAY(0x8d26d30)
2021.11.23 07:41:58 1: PYTHONTYPE => googlecast
2021.11.23 07:41:58 1: defargsh => HASH(0x8af4620)
2021.11.23 07:41:58 1: NAME => GC_Chromecast
2021.11.23 07:41:58 1: args => ARRAY(0x9a31110)
2021.11.23 07:41:58 1: function => Set
2021.11.23 07:41:58 1: msgtype => function
2021.11.23 07:41:58 1: argsh => HASH(0x9c1c6d0)
2021.11.23 07:41:58 1: FHEMPYTYPE => googlecast
2021.11.23 07:41:58 1: id => 85547645
2021.11.23 07:42:00 1: BindingsIo (pyBinding): ERROR: Timeout while waiting for function to finish (id: 36940492)
2021.11.23 07:42:00 1: argsh => HASH(0xa14ffc8)
2021.11.23 07:42:00 1: args => ARRAY(0xa00d548)
2021.11.23 07:42:00 1: msgtype => function
2021.11.23 07:42:00 1: function => Set
2021.11.23 07:42:00 1: NAME => GC_Kueche
2021.11.23 07:42:00 1: id => 36940492
2021.11.23 07:42:00 1: FHEMPYTYPE => googlecast
2021.11.23 07:42:00 1: PYTHONTYPE => googlecast
2021.11.23 07:42:00 1: defargs => ARRAY(0x8c60298)
2021.11.23 07:42:00 1: defargsh => HASH(0x8d137a0)
2021.11.23 07:42:03 1: BindingsIo (pyBinding): ERROR: Timeout while waiting for function to finish (id: 40063825)
2021.11.23 07:42:03 1: id => 40063825
2021.11.23 07:42:03 1: FHEMPYTYPE => googlecast
2021.11.23 07:42:03 1: argsh => HASH(0x9ce4fd8)
2021.11.23 07:42:03 1: NAME => GG_AZi
2021.11.23 07:42:03 1: args => ARRAY(0x9a47770)
2021.11.23 07:42:03 1: function => Set
2021.11.23 07:42:03 1: msgtype => function
2021.11.23 07:42:03 1: defargsh => HASH(0x8de2958)
2021.11.23 07:42:03 1: PYTHONTYPE => googlecast
2021.11.23 07:42:03 1: defargs => ARRAY(0x8d25fd8)
2021.11.23 07:42:05 1: BindingsIo (pyBinding): ERROR: Timeout while waiting for function to finish (id: 63340238)
2021.11.23 07:42:05 1: args => ARRAY(0xa0d0670)
2021.11.23 07:42:05 1: NAME => GG_Alarm
2021.11.23 07:42:05 1: function => Set
2021.11.23 07:42:05 1: msgtype => function
2021.11.23 07:42:05 1: argsh => HASH(0xa181f90)
2021.11.23 07:42:05 1: FHEMPYTYPE => googlecast
2021.11.23 07:42:05 1: id => 63340238
2021.11.23 07:42:05 1: defargs => ARRAY(0x8c5f7b0)
2021.11.23 07:42:05 1: PYTHONTYPE => googlecast
2021.11.23 07:42:05 1: defargsh => HASH(0x8bb3ee0)
2021.11.23 07:42:08 1: BindingsIo (pyBinding): ERROR: Timeout while waiting for function to finish (id: 74885987)
2021.11.23 07:42:08 1: FHEMPYTYPE => googlecast
2021.11.23 07:42:08 1: id => 74885987
2021.11.23 07:42:08 1: function => Set
2021.11.23 07:42:08 1: args => ARRAY(0xa0c2858)
2021.11.23 07:42:08 1: NAME => GG_Haus
2021.11.23 07:42:08 1: msgtype => function
2021.11.23 07:42:08 1: argsh => HASH(0xa1241a0)
2021.11.23 07:42:08 1: defargsh => HASH(0x8d26b78)
2021.11.23 07:42:08 1: defargs => ARRAY(0x8bb3e98)
2021.11.23 07:42:08 1: PYTHONTYPE => googlecast
2021.11.23 07:42:10 1: BindingsIo (pyBinding): ERROR: Timeout while waiting for function to finish (id: 84509791)
2021.11.23 07:42:10 1: argsh => HASH(0x25954c0)
2021.11.23 07:42:10 1: args => ARRAY(0x99ff1d0)
2021.11.23 07:42:10 1: function => Set
2021.11.23 07:42:10 1: msgtype => function
2021.11.23 07:42:10 1: NAME => GG_Wohnkueche
2021.11.23 07:42:10 1: id => 84509791
2021.11.23 07:42:10 1: FHEMPYTYPE => googlecast
2021.11.23 07:42:10 1: PYTHONTYPE => googlecast
2021.11.23 07:42:10 1: defargs => ARRAY(0x8bb3bf8)
2021.11.23 07:42:10 1: defargsh => HASH(0x8c5f780)
2021.11.23 07:42:13 1: BindingsIo (pyBinding): ERROR: Timeout while waiting for function to finish (id: 88274090)
2021.11.23 07:42:13 1: defargs => ARRAY(0x8e09ef0)
2021.11.23 07:42:13 1: PYTHONTYPE => googlecast
2021.11.23 07:42:13 1: defargsh => HASH(0x8de0ec0)
2021.11.23 07:42:13 1: function => Set
2021.11.23 07:42:13 1: args => ARRAY(0xa17be18)
2021.11.23 07:42:13 1: msgtype => function
2021.11.23 07:42:13 1: NAME => GH_AZi
2021.11.23 07:42:13 1: argsh => HASH(0xa148170)
2021.11.23 07:42:13 1: FHEMPYTYPE => googlecast
2021.11.23 07:42:13 1: id => 88274090
2021.11.23 07:42:15 1: BindingsIo (pyBinding): ERROR: Timeout while waiting for function to finish (id: 74203725)
2021.11.23 07:42:15 1: defargs => ARRAY(0x8deb8d0)
2021.11.23 07:42:15 1: PYTHONTYPE => googlecast
2021.11.23 07:42:15 1: defargsh => HASH(0x8dca960)
2021.11.23 07:42:15 1: args => ARRAY(0xa141ba8)
2021.11.23 07:42:15 1: NAME => GH_AZi_Hub
2021.11.23 07:42:15 1: function => Set
2021.11.23 07:42:15 1: msgtype => function
2021.11.23 07:42:15 1: argsh => HASH(0xa00b710)
2021.11.23 07:42:15 1: FHEMPYTYPE => googlecast
2021.11.23 07:42:15 1: id => 74203725
2021.11.23 07:42:18 1: BindingsIo (pyBinding): ERROR: Timeout while waiting for function to finish (id: 39507039)
2021.11.23 07:42:18 1: defargsh => HASH(0x82bf660)
2021.11.23 07:42:18 1: defargs => ARRAY(0x82bf6d8)
2021.11.23 07:42:18 1: PYTHONTYPE => googlecast
2021.11.23 07:42:18 1: FHEMPYTYPE => googlecast
2021.11.23 07:42:18 1: id => 39507039
2021.11.23 07:42:18 1: args => ARRAY(0x9a43ef0)
2021.11.23 07:42:18 1: msgtype => function
2021.11.23 07:42:18 1: function => Set
2021.11.23 07:42:18 1: NAME => GH_Bad
2021.11.23 07:42:18 1: argsh => HASH(0xa12bfe0)
2021.11.23 07:42:20 1: BindingsIo (pyBinding): ERROR: Timeout while waiting for function to finish (id: 97962392)
2021.11.23 07:42:20 1: defargsh => HASH(0x8d26aa0)
2021.11.23 07:42:20 1: PYTHONTYPE => googlecast
2021.11.23 07:42:20 1: defargs => ARRAY(0x8d13770)
2021.11.23 07:42:20 1: id => 97962392
2021.11.23 07:42:20 1: FHEMPYTYPE => googlecast
2021.11.23 07:42:20 1: argsh => HASH(0xa0e5fa0)
2021.11.23 07:42:20 1: args => ARRAY(0x9a31110)
2021.11.23 07:42:20 1: function => Set
2021.11.23 07:42:20 1: msgtype => function
2021.11.23 07:42:20 1: NAME => GH_Kueche
2021.11.23 07:42:23 1: BindingsIo (pyBinding): ERROR: Timeout while waiting for function to finish (id: 52849462)
2021.11.23 07:42:23 1: defargs => ARRAY(0x8d260c8)
2021.11.23 07:42:23 1: PYTHONTYPE => googlecast
2021.11.23 07:42:23 1: defargsh => HASH(0x8d25c70)
2021.11.23 07:42:23 1: args => ARRAY(0xa00d548)
2021.11.23 07:42:23 1: function => Set
2021.11.23 07:42:23 1: msgtype => function
2021.11.23 07:42:23 1: NAME => GH_WC
2021.11.23 07:42:23 1: argsh => HASH(0x9a2c340)
2021.11.23 07:42:23 1: FHEMPYTYPE => googlecast
2021.11.23 07:42:23 1: id => 52849462
2021.11.23 07:42:25 1: BindingsIo (pyBinding): ERROR: Timeout while waiting for function to finish (id: 71118220)
2021.11.23 07:42:25 1: FHEMPYTYPE => googlecast
2021.11.23 07:42:25 1: id => 71118220
2021.11.23 07:42:25 1: function => Set
2021.11.23 07:42:25 1: args => ARRAY(0x9a47770)
2021.11.23 07:42:25 1: NAME => GH_WoZi
2021.11.23 07:42:25 1: msgtype => function
2021.11.23 07:42:25 1: argsh => HASH(0x99db178)
2021.11.23 07:42:25 1: defargsh => HASH(0x8d26cc8)
2021.11.23 07:42:25 1: defargs => ARRAY(0x8c5f4f8)
2021.11.23 07:42:25 1: PYTHONTYPE => googlecast
Zunächst wird nur über den ble gemeckert, dann kommen die anderen Sachen dazu... Und dann is fhem nicht mehr bedienbar.
Und der Status des Peer ändert sich nicht... der steht immernoch auf openend.
Der ble ändert seinen Status auch nicht...
Edit:
das passiert nicht, wenn man per shutdown den Peer runterfährt!
Dann gibts nur diese Meldungen:
2021.11.23 09:35:07 1: ws:192.168.178.48:15733 disconnected, waiting to reappear (fhempy_peer_192_168_178_48)
2021.11.23 09:35:07 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: 192.168.178.48: Verbindungsaufbau abgelehnt (111)
2021.11.23 09:35:17 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: 192.168.178.48: Verbindungsaufbau abgelehnt (111)
2021.11.23 09:35:27 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: 192.168.178.48: Verbindungsaufbau abgelehnt (111)
2021.11.23 09:35:38 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: 192.168.178.48: Verbindungsaufbau abgelehnt (111)
2021.11.23 09:35:48 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: 192.168.178.48: Verbindungsaufbau abgelehnt (111)
2021.11.23 09:35:59 1: ws:192.168.178.48:15733 reappeared (fhempy_peer_192_168_178_48)
2021.11.23 09:36:40 1: ws:192.168.178.48:15733 disconnected, waiting to reappear (fhempy_peer_192_168_178_48)
2021.11.23 09:36:40 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: 192.168.178.48: Verbindungsaufbau abgelehnt (111)
2021.11.23 09:36:53 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
2021.11.23 09:37:06 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
2021.11.23 09:37:19 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
2021.11.23 09:37:32 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
2021.11.23 09:37:46 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
2021.11.23 09:37:59 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
2021.11.23 09:38:12 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
2021.11.23 09:38:25 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
2021.11.23 09:38:38 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
2021.11.23 09:38:51 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
2021.11.23 09:39:04 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
2021.11.23 09:39:17 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
2021.11.23 09:39:30 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
2021.11.23 09:39:43 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: 192.168.178.48: Keine Route zum Zielrechner (113)
2021.11.23 09:39:58 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
2021.11.23 09:40:11 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
2021.11.23 09:40:24 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
2021.11.23 09:40:37 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
2021.11.23 09:40:50 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
2021.11.23 09:41:04 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
2021.11.23 09:41:17 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
2021.11.23 09:41:30 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
2021.11.23 09:41:43 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
2021.11.23 09:41:56 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
2021.11.23 09:42:09 1: BindingsIo (fhempy_peer_192_168_178_48): ERROR fhempy_peer_192_168_178_48 - error while connecting: connect to http://192.168.178.48:15733 timed out
.
.
.
Aber fhem ist weiter bedienbar.
Zitat von: dominik am 21 November 2021, 09:42:19
Könnt ihr bitte mal 0.1.175 testen? Ich habe dort pychromecast, spotipy aktualisiert und den Discovery Mechanismus wieder auf eine alte Variante umgestellt.
Also bei mir scheint die Version keine Auswirkungen auf das restliche System zu haben. Funktioniert also bei mir.
Moin,
ist jetzt auf jeden Fall die aktuelle Version
Internals:
BindingType fhempy
DEF fhempy
DeviceName ws:127.0.0.1:15733
FD 25
FUUID 618816a2-f33f-378b-4e0d-66b133cc93b6b2b4
FVERSION 10_BindingsIo.pm:0.182830/2019-01-16
IP 127.0.0.1
NAME local_pybinding
NR 1645
NTFY_ORDER 50-local_pybinding
PARTIAL
PORT 15733
STATE opened
TYPE BindingsIo
WEBSOCKET 1
localBinding 1
nextOpenDelay 10
READINGS:
2021-11-23 16:12:28 state opened
2021-11-23 16:12:28 version 0.1.175
args:
local_pybinding
BindingsIo
fhempy
argsh:
Attributes:
DbLogExclude .*
devStateIcon { my $status_img = "10px-kreis-gruen";; my $status_txt = "connected";; if (ReadingsVal($name, "state", "disconnected") eq "disconnected") { $status_img = "10px-kreis-rot";; $status_txt = "disconnected";; } my $ver = ReadingsVal($name, "version", "-");; "<div><a>".FW_makeImage($status_img, $status_txt)."</a><a> ".$ver." </a><a href=\"/fhem?cmd.dummy=set $name update&XHR=1\" title=\"Start update\">".FW_makeImage("refresh")."</a></div>" }
group fhempy
icon file_json-ld2
room fhempy
verbose 0
Anscheinend kommen jetzt keine Meldungen mehr im fhem.log. das fhempy-Log sieht so aus:
pi@raspi-fhem:/opt/fhem/log $ cat fhempy-2021-11-23.log
2021-11-23 00:08:16,517 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 00:08:17,662 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 00:13:50,433 - WARNING - asyncio: Executing <TimerHandle when=532001.87829433 AsyncEngine._async_cache_cleanup() created at /opt/fhem/.local/lib/python3.7/site-packages/zeroconf/_core.py:179> took 4.410 seconds
2021-11-23 00:27:59,213 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 00:28:04,897 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 00:43:55,101 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 00:44:01,900 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 01:13:54,417 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 01:13:54,488 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 01:52:00,049 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 01:52:03,929 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 02:15:55,202 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 02:16:05,459 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 02:22:51,230 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 02:24:42,124 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 02:31:36,482 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 02:53:15,250 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 02:59:51,550 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 03:08:27,055 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 03:17:56,410 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 03:18:07,590 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 03:19:43,442 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 03:20:14,437 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 03:27:38,843 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 03:29:49,056 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 03:37:21,315 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 03:54:42,467 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 03:54:50,413 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 04:02:39,000 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 04:02:40,099 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 04:05:26,379 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 04:09:38,780 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 04:09:38,967 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 04:12:45,724 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 04:22:18,272 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 04:23:53,852 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 04:32:31,419 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 04:36:39,281 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 04:39:33,766 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 04:39:34,093 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 04:40:18,945 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 04:40:31,509 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 04:46:58,296 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 04:46:58,612 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
2021-11-23 16:12:11,297 - INFO - fhempy.lib.pkg_installer: Attempting install of fhempy
2021-11-23 16:12:17,774 - INFO - fhempy.lib.pkg_installer: Successfully installed fhempy update!
2021-11-23 16:12:19,264 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy...
2021-11-23 16:12:19,284 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2021-11-23 16:12:19,360 - INFO - websockets.server: server listening on 0.0.0.0:15733
2021-11-23 16:12:28,027 - INFO - websockets.server: connection open
2021-11-23 16:12:28,031 - INFO - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 127.0.0.1
2021-11-23 16:13:38,987 - ERROR - pychromecast.socket_client: [Badezimmer(192.168.1.99):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.99', 8009)), retrying in 5.0s
Gruß, Christoph
Hallo,
gibt es die Möglichkeit ein für FHEM lokales Foto über fhempy auf einem Nest Hub anzuzeigen?
Über "displayWebSite" ging es leider nicht. Ich hatte dazu eine Mini-HTML-Seite geschrieben.
<html>
<header>
<title>Foto</title>
</header>
<body>
<img src="snapshot.jpg" alt="Foto">
</body>
</html>
Über die Adresse http://fhem-server.fritz.box:8083/fhem/www/images/webcam/snapOut.html wird das Foto ausgegeben...
(ich hoffe, dass ich nicht falsch gesucht habe, falls es schon was dazu gibt :-X)
Grüße
Carsten
Hi,
erstmal Danke für deine Arbeit das modul scheint genau das zu machen was ich mir vorgestellt habe. Leider konnte ich aber keinen meiner chromecast / nest devices / smartspeaker per googlecast verbinden. Es scheint so als wenn alles andere sauber läuft.
local_pybinding:
Readings
state opened 2021-12-06 13:43:19
version 0.1.187 2021-12-06 13:43:19
fhempyserver_15733 (dieser wurde irgendwie selbstständig angelegt)
Readings
fhempy running FHEM/bindings/python/bin/fhempy 2021-12-06 13:43:07
Meine googlecast devices habe ich folgend angelegt:
define WZ.GA.GoogleTVWohnzimmer fhempy googlecast Google TV Wohnzimmer
habe testweise bereits 3 verschiedenen devices angelegt Google TV, Nest Mini gen2, Nest audio; und eine Lautsprechergruppe direkt.
Es ist leider immer das gleiche Bild. Ein Device lässt sich anscheinend sauber anlegen (das dauert ja immer minimal bis dann room etc eingetragen ist aber es funktioniert soweit). Die Cast devices bleiben auf:
Readings
connection disconnected 2021-12-06 02:01:33
spotify_login Connect Spotify account (new window/tab) 2021-12-06 13:43:21
spotify_user login required 2021-12-06 13:43:21
state offline 2021-12-06 13:43:00
Das eigene spotify modul lässt sich anlegen und steht auch wie gewünscht auf
state connected 2021-12-06 13:43:29
user ... 2021-12-06 13:43:29
volume 100 2021-12-06 16:14:24
Wenn ich auf einem google cast device auf Set waiting gehe entsteht folgende fehlermeldung:
2021-12-06 13:43:51,827 - ERROR - fhempy.lib.fhem_pythonbinding: Failed to execute function Set: Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 413, in _onMessage
fct_timeout,
File "/usr/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
return fut.result()
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py", line 158, in Set
return await utils.handle_set(self._conf_set, self, hash, args, argsh)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 273, in handle_set
fct_call = getattr(obj, fct_name)
AttributeError: 'googlecast' object has no attribute 'set_waiting'
welche danach auch im fhempy_log erscheint. Für mich sieht das nicht dramatisch aus, aber vielleicht deutet es auf einen Fehler?
Was könnte ich noch testen um dem Fehler näher zu kommen?
Vielen Dank für jede Hilfe, und bitte weiter so.
VG
Zitat von: Carsten K. am 06 Dezember 2021, 13:03:43
Hallo,
gibt es die Möglichkeit ein für FHEM lokales Foto über fhempy auf einem Nest Hub anzuzeigen?
Über "displayWebSite" ging es leider nicht. Ich hatte dazu eine Mini-HTML-Seite geschrieben.
<html>
<header>
<title>Foto</title>
</header>
<body>
<img src="snapshot.jpg" alt="Foto">
</body>
</html>
Über die Adresse http://fhem-server.fritz.box:8083/fhem/www/images/webcam/snapOut.html wird das Foto ausgegeben...
(ich hoffe, dass ich nicht falsch gesucht habe, falls es schon was dazu gibt :-X)
Grüße
Carsten
Probier zuerst ob es mit dashcast geht: https://stestagg.github.io/dashcast/
Wenn es dort mal läuft, sollte es auch mit displayWebsite gehen.
Zitat von: fb-luke am 06 Dezember 2021, 17:40:56
Hi,
erstmal Danke für deine Arbeit das modul scheint genau das zu machen was ich mir vorgestellt habe. Leider konnte ich aber keinen meiner chromecast / nest devices / smartspeaker per googlecast verbinden. Es scheint so als wenn alles andere sauber läuft.
local_pybinding:
Readings
state opened 2021-12-06 13:43:19
version 0.1.187 2021-12-06 13:43:19
fhempyserver_15733 (dieser wurde irgendwie selbstständig angelegt)
Readings
fhempy running FHEM/bindings/python/bin/fhempy 2021-12-06 13:43:07
Meine googlecast devices habe ich folgend angelegt:
define WZ.GA.GoogleTVWohnzimmer fhempy googlecast Google TV Wohnzimmer
habe testweise bereits 3 verschiedenen devices angelegt Google TV, Nest Mini gen2, Nest audio; und eine Lautsprechergruppe direkt.
Es ist leider immer das gleiche Bild. Ein Device lässt sich anscheinend sauber anlegen (das dauert ja immer minimal bis dann room etc eingetragen ist aber es funktioniert soweit). Die Cast devices bleiben auf:
Readings
connection disconnected 2021-12-06 02:01:33
spotify_login Connect Spotify account (new window/tab) 2021-12-06 13:43:21
spotify_user login required 2021-12-06 13:43:21
state offline 2021-12-06 13:43:00
Das eigene spotify modul lässt sich anlegen und steht auch wie gewünscht auf
state connected 2021-12-06 13:43:29
user ... 2021-12-06 13:43:29
volume 100 2021-12-06 16:14:24
Wenn ich auf einem google cast device auf Set waiting gehe entsteht folgende fehlermeldung:
2021-12-06 13:43:51,827 - ERROR - fhempy.lib.fhem_pythonbinding: Failed to execute function Set: Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 413, in _onMessage
fct_timeout,
File "/usr/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
return fut.result()
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/generic.py", line 158, in Set
return await utils.handle_set(self._conf_set, self, hash, args, argsh)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 273, in handle_set
fct_call = getattr(obj, fct_name)
AttributeError: 'googlecast' object has no attribute 'set_waiting'
welche danach auch im fhempy_log erscheint. Für mich sieht das nicht dramatisch aus, aber vielleicht deutet es auf einen Fehler?
Was könnte ich noch testen um dem Fehler näher zu kommen?
Vielen Dank für jede Hilfe, und bitte weiter so.
VG
Dein Device wird nicht gefunden. Probier bitte zuerst mal nur 1 Device anzulegen. Das Device muss auch im selben Netzwerk sein damit es gefunden wird.
Der set_waiting Fehler besagt nur, dass es dieses Command nicht gibt. Das "passt so" - ist nur noch nicht schön vom Fehlerhandling implementiert.
Zitat von: dominik am 06 Dezember 2021, 21:26:01
Probier zuerst ob es mit dashcast geht: https://stestagg.github.io/dashcast/
Wenn es dort mal läuft, sollte es auch mit displayWebsite gehen.
Danke für denTipp...
Ich nehme mal an, dass die URL öffentlich errecihbar sein muss.
Dann kann es bei mir nicht funktionieren ;)
Aber es war einen Versuch wert ;D
Zitat von: dominik am 06 Dezember 2021, 21:28:08
Dein Device wird nicht gefunden. Probier bitte zuerst mal nur 1 Device anzulegen. Das Device muss auch im selben Netzwerk sein damit es gefunden wird.
Der set_waiting Fehler besagt nur, dass es dieses Command nicht gibt. Das "passt so" - ist nur noch nicht schön vom Fehlerhandling implementiert.
Ah super danke das ich shconmal eine gute Info.
Ich dneke das das Problem bei mir am Netzwerk Aufbau liegt. Die WIFI Devices hängen an einem google mesh während die kabelgebundenen am Fritz Router hängen = double NAT.
Das Google Mesh Netzwerk lässt sich noicht im Bridgemodus betreiben (zumindest nicht wenn ein mesh AP installiert ist). Ich vermute mal das es keinen sinnvollen Weg geben wird das irgendwie zusammen zu bringen, auch da ich dneke das der google Router am WAN Port keine Broadcasts durchreichen kann. Ich habe ein ähnliches Problem mit dem FakeRoku modul und ich vermute hier die gleiche Ursache.
Hätte irgendwer eine Idee oder erfahrungen mit dem googlemesh in dieser Verbindung?
Vielen Dank für die Unterstützung
Hallo,
Kann man mit googlecast auch eine Sprachausgabe aus FHEM an einen GoogleNest_Mini schicken?
zB mit set <NEST> speak "Wunderschönen guten Tag, ...."
Falls ja, wie verbinde überhaupt ich die GoogleNest_Minis mit googlecast?
Ein define TexttoNest fhempy googlecast "Nest Mini Wohnzimmer" reicht ja nicht (disconnected)
Grüße
Oelkanne
PS: Zum Schalten meiner Geräte nutze ich Google Assistant FHEM Connect; das läuft bereits wunderbar.
Hab's rausgefunden!
Es waren die Anführungszeichen
ein
define TexttoNest fhempy googlecast "Nest Mini Wohnzimmer"
funktionert nicht. Das Internal CASTNAME zeigt dann nur
"Nest
ein
define TexttoNest fhempy googlecast 'Nest Mini Wohnzimmer'
liefert ein Internal CASTNAME
Nest Mini Wohnzimmer
damit geht's :-)
es geht auch
define TexttoNest fhempy googlecast "Nest Mini Wohnzimmer"
Mein fehler: Hatte aus versehen " verwendet, das ging natürlich nicht. OK sind " und '
Sorry
Hallo,
hatte fhempy schon seit einigen tagen auf meinem Raspberry4 Buster schon einige Tage am Laufen.
Jetzt bekomme ich folgende Fehlermeldung im tuy cloud connector:
Failed to load module tuya_cloud: Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 301, in _onMessage
functools.partial(importlib.import_module, pymodule)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 33, in run_blocking
return await asyncio.get_event_loop().run_in_executor(pool, function)
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/tuya_cloud/tuya_cloud.py", line 5, in <module>
from fhempy.lib.tuya_cloud.tuya_cloud_device import tuya_cloud_device
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_device.py", line 5, in <module>
from tuya_iot.device import TuyaDevice
File "/opt/fhem/.local/lib/python3.7/site-packages/tuya_iot/__init__.py", line 2, in <module>
from .device import TuyaDevice, TuyaDeviceListener, TuyaDeviceManager
File "/opt/fhem/.local/lib/python3.7/site-packages/tuya_iot/device.py", line 7, in <module>
from typing import Any, Literal, Optional
ImportError: cannot import name 'Literal' from 'typing' (/usr/lib/python3.7/typing.py)
Hallo zusammen.
Ich habe es geschafft das ich zB Radiosender mit meinen Google Lautsprechern abspielen kann. Wie Spiele ich einen YouTube link ab ? Habe schon einiges versucht :
set cast play url=YoutubeURL
set cast play YoutubeURL
Habt ihr dazu irgendwelche Tipps ?
Vielen Dank
Hast du denn Youtube als Abo?
Meines Wissens nach kannst du da nix auf Lautsprechern abspielen, wenn man kein Abo hat.
Bis denn
SouzA
Hallo,
ja ich habe YouTube Premium. Muss ich das dort irgendwo einbinden ?
Das ist eine hervorragende Frage.
Da man im googlecast-Device in fhem ja auch sein Spotify-Acc verknüpfen kann (was ich noch nicht probiert habe) könnte es sein, dass so etwas auch notwendig wäre.
Da ich diese Funktion über fhem aber nicht nutze, kann ich da leider nicht weiter helfen.
Bis denn
SouzA
EDIT:
Btw... bei mir funktioniert es auch ohne Premium...
set GH_AZi play url=https://www.youtube.com/watch?v=NCDl_n2nIrI
set GH_AZi play url=https://www.youtube.com/watch?v=kPMRkQK2szI
set GH_AZi play url=https://www.youtube.com/watch?v=BQpZv2r8fb4&list=RDBQpZv2r8fb4&index=1
set GH_AZi play url=https://www.youtube.com/watch?v=BQpZv2r8fb4&list=RDBQpZv2r8fb4&start_radio=1
Manchmal dauert das Buffering etwas länger (~30 sek.), dass man den Eindruck bekommt es funktioniert nicht.
Zitat von: scank am 28 Dezember 2021, 20:21:04
Hallo,
hatte fhempy schon seit einigen tagen auf meinem Raspberry4 Buster schon einige Tage am Laufen.
Jetzt bekomme ich folgende Fehlermeldung im tuy cloud connector:
Failed to load module tuya_cloud: Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 301, in _onMessage
functools.partial(importlib.import_module, pymodule)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 33, in run_blocking
return await asyncio.get_event_loop().run_in_executor(pool, function)
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/tuya_cloud/tuya_cloud.py", line 5, in <module>
from fhempy.lib.tuya_cloud.tuya_cloud_device import tuya_cloud_device
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_device.py", line 5, in <module>
from tuya_iot.device import TuyaDevice
File "/opt/fhem/.local/lib/python3.7/site-packages/tuya_iot/__init__.py", line 2, in <module>
from .device import TuyaDevice, TuyaDeviceListener, TuyaDeviceManager
File "/opt/fhem/.local/lib/python3.7/site-packages/tuya_iot/device.py", line 7, in <module>
from typing import Any, Literal, Optional
ImportError: cannot import name 'Literal' from 'typing' (/usr/lib/python3.7/typing.py)
Moin, schon versucht noch mal eine Installation zu machen?
Bis denn
SouzA
Zitat von: scank am 28 Dezember 2021, 20:21:04
Hallo,
hatte fhempy schon seit einigen tagen auf meinem Raspberry4 Buster schon einige Tage am Laufen.
Jetzt bekomme ich folgende Fehlermeldung im tuy cloud connector:
Failed to load module tuya_cloud: Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 301, in _onMessage
functools.partial(importlib.import_module, pymodule)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 33, in run_blocking
return await asyncio.get_event_loop().run_in_executor(pool, function)
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/tuya_cloud/tuya_cloud.py", line 5, in <module>
from fhempy.lib.tuya_cloud.tuya_cloud_device import tuya_cloud_device
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_device.py", line 5, in <module>
from tuya_iot.device import TuyaDevice
File "/opt/fhem/.local/lib/python3.7/site-packages/tuya_iot/__init__.py", line 2, in <module>
from .device import TuyaDevice, TuyaDeviceListener, TuyaDeviceManager
File "/opt/fhem/.local/lib/python3.7/site-packages/tuya_iot/device.py", line 7, in <module>
from typing import Any, Literal, Optional
ImportError: cannot import name 'Literal' from 'typing' (/usr/lib/python3.7/typing.py)
Den Fehler hatte ich gestern auch als ich den Update Befehl gemacht habe.
Ich musste dann von Debian 10 buster auf Debian 11 bullseye Upgraden und dann nochmal das fhempy neu installieren.
Dauerte etwas aber ging dann wieder
Zitat von: SouzA am 17 Januar 2022, 07:31:34
Das ist eine hervorragende Frage.
Da man im googlecast-Device in fhem ja auch sein Spotify-Acc verknüpfen kann (was ich noch nicht probiert habe) könnte es sein, dass so etwas auch notwendig wäre.
Da ich diese Funktion über fhem aber nicht nutze, kann ich da leider nicht weiter helfen.
Bis denn
SouzA
EDIT:
Btw... bei mir funktioniert es auch ohne Premium...
set GH_AZi play url=https://www.youtube.com/watch?v=NCDl_n2nIrI
set GH_AZi play url=https://www.youtube.com/watch?v=kPMRkQK2szI
set GH_AZi play url=https://www.youtube.com/watch?v=BQpZv2r8fb4&list=RDBQpZv2r8fb4&index=1
set GH_AZi play url=https://www.youtube.com/watch?v=BQpZv2r8fb4&list=RDBQpZv2r8fb4&start_radio=1
Manchmal dauert das Buffering etwas länger (~30 sek.), dass man den Eindruck bekommt es funktioniert nicht.
Danke ich versuche das später nochmal.
Hallo zusammen,
ich habe das mit den Youtube Links so versucht, wie es bei dir im Beitrag steht. Ohne erfolg. Wenn ich ein YouTube Link eingebe passiert nichts. Wenn ich ein Link von YouTube Music eingebe machen die Google Lautsprecher den Verbindungston und unten in den Readings ändert sich einiges. Jedoch passiert auch danach nichts mehr.
Im Fhempy log erscheint eine Fehlermeldung sobald ich ein YouTube Music Link eingebe:
ERROR - asyncio: Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x760cf688>, 62758.004129951)]']
connector: <aiohttp.connector.TCPConnector object at 0x7528db50>
source_traceback: Object created at (most recent call last):
File "/opt/fhem/FHEM/bindings/python/bin/fhempy", line 113, in <module>
fpb.run()
File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/fhem_pythonbinding.py", line 539, in run
asyncio.get_event_loop().run_forever()
File "/usr/lib/python3.9/asyncio/base_events.py", line 596, in run_forever
self._run_once()
File "/usr/lib/python3.9/asyncio/base_events.py", line 1882, in _run_once
handle._run()
File "/usr/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/opt/fhem/.local/lib/python3.9/site-packages/fhempy/lib/googlecast/googlecast.py", line 347, in playDefaultMedia
session = aiohttp.ClientSession()
File "/opt/fhem/.local/lib/python3.9/site-packages/aiohttp/client.py", line 228, in __init__
connector = TCPConnector(loop=loop)
File "/opt/fhem/.local/lib/python3.9/site-packages/aiohttp/connector.py", line 756, in __init__
super().__init__(
Im Eventlog steht beim aufrufen des Links :
2022-01-17 16:00:38 fhempy CastGruppe play url=https://music.youtube.com/playlist?list=PLVYmod3nbNcHLgOpxam1v7-yKksfWPwy0
2022-01-17 16:00:39 fhempy CastGruppe display_name: Default Media Receiver
2022-01-17 16:00:39 fhempy CastGruppe session_id: 3a1a5797-fdf8-4110-a0c1-6ef10d589c76
2022-01-17 16:00:39 fhempy CastGruppe transport_id: 3a1a5797-fdf8-4110-a0c1-6ef10d589c76
2022-01-17 16:00:39 fhempy CastGruppe status_text: Default Media Receiver
2022-01-17 16:00:39 fhempy CastGruppe app_id: CC1AD845
2022-01-17 16:00:40 fhempy CastGruppe mediaPlayerState: IDLE
2022-01-17 16:00:40 fhempy CastGruppe mediaContentId: https://music.youtube.com/playlist?list=PLVYmod3nbNcHLgOpxam1v7-yKksfWPwy0
2022-01-17 16:00:40 fhempy CastGruppe mediaContentType: text/html; charset=utf-8
2022-01-17 16:00:40 fhempy CastGruppe mediaStreamType: BUFFERED
Kannst du damit was anfangen ?
:)
Hi,
also das die Links zum normalen YouTube bei dir nicht funktionieren, verstehe ich nicht.
Allerdings habe ich jetzt festgestellt, dass das abspielen der Links NICHT bei Cast-Gruppen funktioniert! Das scheint bei dir ja der Fall zu sein.
Probiere mal einen einzelnen...
Wenn das funktioniert, dann scheint da noch nen Bug mit den Gruppen zu sein und die Meldung müsste an Dominik:
https://github.com/dominikkarall/fhempy/issues (https://github.com/dominikkarall/fhempy/issues)
Bei dem Music.Youtube-Links kommt bei mir der gleiche Fehler. Da scheint dann wirklich noch eine Anmeldung wie bei Spotify notwendig zu werden.
Da vielleicht bitten Youtube-Music mit auf zu nehmen. Selber Link wie oben.
Bis denn
SouzA
https://github.com/dominikkarall/fhempy/issues/17#issuecomment-906567227 (https://github.com/dominikkarall/fhempy/issues/17#issuecomment-906567227)
set devicename play url="https://you............"
Zitat von: SouzA am 17 Januar 2022, 16:29:14
Hi,
also das die Links zum normalen YouTube bei dir nicht funktionieren, verstehe ich nicht.
Allerdings habe ich jetzt festgestellt, dass das abspielen der Links NICHT bei Cast-Gruppen funktioniert! Das scheint bei dir ja der Fall zu sein.
Probiere mal einen einzelnen...
Wenn das funktioniert, dann scheint da noch nen Bug mit den Gruppen zu sein und die Meldung müsste an Dominik:
https://github.com/dominikkarall/fhempy/issues (https://github.com/dominikkarall/fhempy/issues)
Bei dem Music.Youtube-Links kommt bei mir der gleiche Fehler. Da scheint dann wirklich noch eine Anmeldung wie bei Spotify notwendig zu werden.
Da vielleicht bitten Youtube-Music mit auf zu nehmen. Selber Link wie oben.
Bis denn
SouzA
Das wars. Habe ein Nest Audio einzeln eingefügt und es läuft... Schade eigentlich.
*Die gruppenfunktion wäre großartig.
*Zusätzlich die möglichkeit ne YouTube Playlist abzuspielen wäre nice.
*Und last but not least ne Shuffle Funktion.
Ich danke dir für deine Hilfe :)
Ja da war was mit den Anführungszeichen... Wenn Du einen youtube link unter den Favoriten abspeicherst, brauchst Du die nicht... Gruppenfunktion und GoogleCast ist leider durch eine erfolgreiche Patent Verletzungsklage seitens Sonos gegen Google eingeschränkt worden.. Ich weiß zwar nicht genau in wie weit, betätigt jedoch ist die Steuerung der Lautstärke einer Gruppe...
Hallo Dominik,
auch von mir dank & lob. Nach einigen Googlen Anfragen hab ich FhemPy nun auch zum laufen gebracht ... endlich, einfach wars nicht. :(
Ich hätte allerdings 2 Anmerkungen,
1) kann man die Sprachgeschwindigkeit irgendwie ändern, ich weiss nicht ob das bei allen Usern so ist, aber bei mir redet Google wenn ich Ausgaben über Fhem mache wirklich extrem langsam
2) Spotify ist ja integriert, kommt Deezer vllt. auch?
Zitat von: scank am 28 Dezember 2021, 20:21:04
Hallo,
hatte fhempy schon seit einigen tagen auf meinem Raspberry4 Buster schon einige Tage am Laufen.
Jetzt bekomme ich folgende Fehlermeldung im tuy cloud connector:
Failed to load module tuya_cloud: Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 301, in _onMessage
functools.partial(importlib.import_module, pymodule)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/utils.py", line 33, in run_blocking
return await asyncio.get_event_loop().run_in_executor(pool, function)
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/tuya_cloud/tuya_cloud.py", line 5, in <module>
from fhempy.lib.tuya_cloud.tuya_cloud_device import tuya_cloud_device
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/tuya_cloud/tuya_cloud_device.py", line 5, in <module>
from tuya_iot.device import TuyaDevice
File "/opt/fhem/.local/lib/python3.7/site-packages/tuya_iot/__init__.py", line 2, in <module>
from .device import TuyaDevice, TuyaDeviceListener, TuyaDeviceManager
File "/opt/fhem/.local/lib/python3.7/site-packages/tuya_iot/device.py", line 7, in <module>
from typing import Any, Literal, Optional
ImportError: cannot import name 'Literal' from 'typing' (/usr/lib/python3.7/typing.py)
Das hat mit Buster, bzw. Python 3.7, zu tun. Die im Raspbian-Repo hinterlegte Version von "
typing" ist zu alt. 'Literal' kommt hier mit py3.8. Ausweg: "
typing_extensions" verwenden.
Installieren mit
sudo pip install typing_extensions
Dann die Datei
/opt/fhem/.local/lib/python3.7/site-packages/tuya_iot/device.py im Editor der Wahl öffnen, Zeile 7 ändern und Zeile 8 ergänzen:
7 from typing import Any, Optional
8 from typing_extensions import Literal
Hallo,
ich hoffe ich bin jetzt hier im richtigen Thread, ansonsten verjagt mich bitte.
Ich habe jetzt festgestellt, dass ich meine Proxmox-Maschine nicht mehr sauber neustarten kann, proxmox rennt in einen Timeout, auch das Neustarten innerhalb der vm mittels "shutdown -r now" bzw. "reboot" dauert ewig. Ich habe micht jetzt ein wenig auf die Suche begeben und vermute fhempy als Ursache. Zumindest lässt:
journalctl -rb -1
darauf schließen, hier mal der relevante Teil...(Von unten nach oben ist die richtige Reihenfolge!)
May 26 20:41:09 fhem systemd[1]: Stopped FHEM Home Automation.
May 26 20:41:09 fhem systemd[1]: fhem.service: Failed with result 'timeout'.
May 26 20:41:09 fhem systemd[1]: fhem.service: Killing process 40873 (python3) with signal SIGKILL.
May 26 20:41:09 fhem systemd[1]: fhem.service: Killing process 40861 (python3) with signal SIGKILL.
May 26 20:41:09 fhem systemd[1]: fhem.service: Killing process 40857 (python3) with signal SIGKILL.
May 26 20:41:09 fhem systemd[1]: fhem.service: Killing process 40827 (python3) with signal SIGKILL.
May 26 20:41:09 fhem systemd[1]: fhem.service: Killing process 4776 (python3) with signal SIGKILL.
May 26 20:41:09 fhem systemd[1]: fhem.service: Killing process 4775 (python3) with signal SIGKILL.
May 26 20:41:09 fhem systemd[1]: fhem.service: Killing process 4772 (python3) with signal SIGKILL.
May 26 20:41:09 fhem systemd[1]: fhem.service: Killing process 4766 (python3) with signal SIGKILL.
May 26 20:41:09 fhem systemd[1]: fhem.service: Killing process 4637 (python3) with signal SIGKILL.
May 26 20:41:09 fhem systemd[1]: fhem.service: State 'stop-final-sigterm' timed out. Killing.
irgendwie scheinen die python-Prozesse beharrlich das "bitte stop" zu ignorieren und warten auf "kill -f", das würde ich gern irgendwie abstellen, habt ihr Ansätze wo das Problem liegen könnte?
In der Datei "/etc/systemd/system.conf" ist der Parameter "DefaultTimeoutStopSec=120s" eingestellt, das ist so gewollt, am Ende spielt es keine Rolle ob ich 120s oder 300s Eintrage, die python-Prozesse warten beharrlich auf das Timeout.
Es könnte sicher auch nicht schaden noch ein list vom pyBinding-Device zu posten:
Internals:
BindingType Python
DEF Python
DeviceName ws:127.0.0.1:15733
FD 58
FUUID 5fca276b-f33f-1dd6-f9e1-19062dfa87ed420c
IP 127.0.0.1
NAME pyBinding
NR 170
NTFY_ORDER 50-pyBinding
PARTIAL
PORT 15733
STATE opened
TYPE BindingsIo
WEBSOCKET 1
localBinding 1
nextOpenDelay 10
Helper:
DBLOG:
hostname:
logdb:
TIME 1653590509.50736
VALUE fhem
os:
logdb:
TIME 1653590509.47941
VALUE posix
python:
logdb:
TIME 1653590509.49973
VALUE 3.8.10
release:
logdb:
TIME 1653590509.50152
VALUE 5.4.0-113-generic
state:
logdb:
TIME 1653590509.56277
VALUE CONNECTED
system:
logdb:
TIME 1653590509.47641
VALUE Linux
version:
logdb:
TIME 1653590509.47469
VALUE 0.1.358
READINGS:
2022-05-26 20:41:49 hostname fhem
2021-05-30 20:04:44 info ready
2022-05-26 20:41:49 os posix
2022-05-26 20:41:49 python 3.8.10
2022-05-26 20:41:49 release 5.4.0-113-generic
2022-05-26 20:41:49 state opened
2022-05-26 20:41:49 system Linux
2022-05-26 20:41:49 version 0.1.358
args:
pyBinding
BindingsIo
Python
argsh:
Attributes:
devStateIcon { my $status_img = "10px-kreis-gruen";; my $status_txt = "connected";; if (ReadingsVal($name, "state", "disconnected") eq "disconnected") { $status_img = "10px-kreis-rot";; $status_txt = "disconnected";; } my $ver = ReadingsVal($name, "version", "-");; "<div><a>".FW_makeImage($status_img, $status_txt)."</a><a> ".$ver." </a><a href=\"/fhem?cmd.dummy=set $name update&XHR=1\" title=\"Start update\">".FW_makeImage("refresh")."</a></div>" }
group fhempy
icon file_json-ld2
room fhempy
verbose 0
Viele Grüße
Andreas
Hallo,
ich verweise nochmal auf obiges Problem... Hat jemand eine Idee dazu?
Grüße
Andreas
Zitat von: bartman121 am 06 Juni 2022, 18:54:30
Hallo,
ich verweise nochmal auf obiges Problem... Hat jemand eine Idee dazu?
Grüße
Andreas
Hallo,
zu deinem Problem direkt nicht.
Aber du kriegst den Modulersteller, so denke ich, besser über Github.
Da nen Issue aufmachen und mal gucken.
Habe den Eindruck, dass Dominik nicht so oft hier im Forum ist. Bei dem, was der alles Programmiert auch verständlich... :D
https://github.com/dominikkarall/fhempy/issues (https://github.com/dominikkarall/fhempy/issues)
Bis denn
SouzA
Hallo zusammen,
da ich die Tage nach mehreren Monaten nochmal mein FHEM aktualisiert habe (never touch a running system!)
Habe ich nun Probleme mit fhempy.
Alle Altlasten habe ich gelöscht, nach readme aus GitHub neu eingerichtet, jedoch startet es nicht mehr.
Irgendwo fehlen vermutlich rechte...
ERROR: Failed building wheel for dbus-python
ERROR: async-upnp-client 0.20.0 has requirement async-timeout<4.0,>=3.0, but you'll have async-timeout 4.0.2 which is incompatible.
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/root/.local'
Check the permissions.
2022-08-06 12:14:52,547 - ERROR - __main__: Failed to install fhempy, exit now...
FHEM läuft auf Ubuntu 20.04.4 auf einem i3
Hi,
mach bitte mal
sudo -u fhem bash
pip3 install fhempy
Poste dann den Output.
sudo -u fhem bash
fordert nur zur Passworteingabe auf, nachdem ich das PW für den verwendeten user (nicht root) eingegeben habe, erfolgt keine weitere Ausgabe.
pip3 install fhempy
Startet die Installation von fhempy, scheint auch erfolgreich zu sein:
Installing collected packages: fhempy
Successfully installed fhempy-0.1.392
Ich hatte es so verstanden das man im System selbst fhempy nicht mehr installiert sondern dies über FHEM geschieht.
Auch nach der Installation sowie reboot bleibt im log:
2022.08.07 11:06:47 1: BindingsIo (fhempy_local): ERROR fhempy_local - error while connecting: 127.0.0.1: Connection refused (111)
Ich habe das Gefühl, dass du irgendwo mal mit root gearbeitet hast, wo man es nicht sollte.
Nachdem fhempy jetzt erfolgreich für den User fhem installiert wurde, starte mal dein FHEM neu und poste mir dann bitte /opt/fhem/log/fhempy....log.
Nach neustart von FHEM:
2022-08-07 11:25:22,156 - ERROR - __main__: Failed to load fhempy
Traceback (most recent call last):
File "FHEM/bindings/python/bin/fhempy", line 100, in <module>
import fhempy.lib.fhem_pythonbinding as fpb
ModuleNotFoundError: No module named 'fhempy'
2022-08-07 11:25:22,157 - INFO - __main__: Attempting install of fhempy>=0.1.12
2022-08-07 11:25:41,458 - ERROR - __main__: Unable to install package fhempy>=0.1.12: WARNING: The directory '/root/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
ERROR: async-upnp-client 0.20.0 has requirement async-timeout<4.0,>=3.0, but you'll have async-timeout 4.0.2 which is incompatible.
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/root/.local'
Check the permissions.
2022-08-07 11:25:41,458 - ERROR - __main__: Failed to install fhempy, exit now...
Mit welchem User läuft fhem?
fhem
Nachdem ich als user fhem über die Konsole async-upnp-client==0.31.2 installiert habe, läuft fhempy nun zwar aber es fehlen nun sämtliche Module.
z.B.:
2022-08-07 11:48:07,268 - ERROR - fhempy.lib.pkg_installer: Unable to install package pychromecast==12.1.4: WARNING: The directory '/root/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Natürlich kann ich diese jetzt alle von Hand installieren, aber das ist ja auch nicht sinn der Sache.
2022-08-07 11:50:41,420 - INFO - fhempy.lib.fhem_pythonbinding: Start update...
2022-08-07 11:50:41,421 - INFO - fhempy.lib.pkg_installer: Attempting install of fhempy
2022-08-07 11:50:43,166 - ERROR - fhempy.lib.pkg_installer: Unable to install package fhempy: WARNING: The directory '/root/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
/usr/local/lib/python3.8/dist-packages/cryptography/hazmat/backends/openssl/x509.py:14: CryptographyDeprecationWarning: This version of cryptography contains a temporary pyOpenSSL fallback path. Upgrade pyOpenSSL now.
warnings.warn(
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/root/.local'
Check the permissions.
2022-08-07 11:50:43,549 - INFO - fhempy.lib.fhem_pythonbinding: Start update...
2022-08-07 11:50:43,550 - INFO - fhempy.lib.pkg_installer: Attempting install of fhempy
2022-08-07 11:50:43,571 - INFO - fhempy.lib.fhem_pythonbinding: Restart initiated...
2022-08-07 11:50:43,578 - INFO - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2022-08-07 11:50:43,580 - INFO - websockets.server: server closing
2022-08-07 11:50:44,624 - INFO - fhempy.lib.fhem_pythonbinding: Shutdown initiated...
2022-08-07 11:50:44,628 - ERROR - zeroconf: Failed to remove listener: ValueError('list.remove(x): x not in list')
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/zeroconf/_handlers.py", line 530, in async_remove_listener
self.listeners.remove(listener)
ValueError: list.remove(x): x not in list
2022-08-07 11:50:44,629 - ERROR - zeroconf: Failed to remove listener: ValueError('list.remove(x): x not in list')
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/zeroconf/_handlers.py", line 530, in async_remove_listener
self.listeners.remove(listener)
ValueError: list.remove(x): x not in list
2022-08-07 11:50:44,629 - ERROR - zeroconf: Failed to remove listener: ValueError('list.remove(x): x not in list')
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/zeroconf/_handlers.py", line 530, in async_remove_listener
self.listeners.remove(listener)
ValueError: list.remove(x): x not in list
2022-08-07 11:50:44,630 - INFO - fhempy.lib.fhem_pythonbinding: All modules successfully undefined!
2022-08-07 11:50:45,269 - ERROR - fhempy.lib.pkg_installer: Unable to install package fhempy: WARNING: The directory '/root/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
/usr/local/lib/python3.8/dist-packages/cryptography/hazmat/backends/openssl/x509.py:14: CryptographyDeprecationWarning: This version of cryptography contains a temporary pyOpenSSL fallback path. Upgrade pyOpenSSL now.
warnings.warn(
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/root/.local'
Check the permissions.
2022-08-07 11:50:49,246 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.392...
2022-08-07 11:50:49,247 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2022-08-07 11:50:49,259 - INFO - websockets.server: server listening on 0.0.0.0:15733
fhempy server wird online gezeigt jedoch sind alle googlecast offline
Edit 2:
Ich habe nun alles manuell installier, jetzt läuft alles ordnungsgemäß.
ZitatWARNING: The directory '/root/.cache/pip'
Das war das Problem, irgendwas ist mit root installiert worden, weshalb der fhem User das nicht mehr bearbeiten konnte.
Ich war auf dem Server noch nie als root angemeldet.
Immer nur mein User und dann mittels sudo
Zitat von: Henno am 07 August 2022, 19:15:04
Ich war auf dem Server noch nie als root angemeldet.
Immer nur mein User und dann mittels sudo
Ja, da ist vielleicht mit "sudo pip3" installiert worden. Aber Hauptsache es läuft wieder. :)
ich habe ein Update von FHEM gemach und nun dreht fhempy durch...
Ich bekomme alle paar Sekunden solche Fehlermeldungen:
2022-08-19 17:27:43,951 - ERROR - fhempy.lib.fhem_pythonbinding: Failed to handle message: b'{"NAME":"Kueche","defargsh":{},"PYTHONTYPE":"googlecast","function":"event","argsh":{},"defargs":["Kueche","fhempy","googlecast","K\xc3\xbcche"],"id":60826579,"msgtype":"event","FHEMPYTYPE":"googlecast","args":["state: Python server offline"]}'
Traceback (most recent call last):
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 161, in onMessage
await self._onMessage(payload)
File "/opt/fhem/.local/lib/python3.7/site-packages/fhempy/lib/fhem_pythonbinding.py", line 169, in _onMessage
logger.debug(">>> WS: " + msg)
TypeError: can only concatenate str (not "bytes") to str
Das geht quer über ALLES was ich in FHEM habe. Kann mir einer sagen was da los ist?!
Danke!
fhempy aktualisieren, dann klappts wieder. Wenn über Web nicht möglich, dann
sudo -u fhem bash
pip3 install --upgrade fhempy
Zitat von: dominik am 24 August 2022, 12:22:25
fhempy aktualisieren, dann klappts wieder. Wenn über Web nicht möglich, dann
sudo -u fhem bash
pip3 install --upgrade fhempy
Danke das aktualisieren via console hat geholfen! Irgendwie klappte das im Web nicht, war noch auf 191...
Danke!!
Hallo, ich bekomme nach einem Serverumzug die Googlecast nicht wieder in Betrieb genommen.
offenbar sitzt der Fehler schon im local_pybinding-Device.
Sowohl dieses als auch das GAssistant-Device zeigen nur den roten Punkt im State an. GAssistant wird kurz Grün wenn es neu gestartet wird, springt aber nach einigen Sekunden wieder auf rot zurück.
Auch die TuYa-Devices machen Probleme (hängt ja auch mit dem local_pybinding zusammen). Es wird an den TUYA-Devices "Python server offline" angezeigt.
Ich blicke durch die ganzen Verbindungen der einzelnen Devices nicht durch, weshalb ich keinen Ansatz finde.
Ich bekomme auch nach x Versuchen, updatens und neustarts das fhempy nicht richtig zum laufen.
Ich habe eigentlich alles nach Anleitung für buster gemacht.
sudo apt ..
sudo cpan Protocol::WebSocket
alles als user pi
fhem update und neustart. (auch der Raspi schon x mal)
define fhempy_local BindingsIo fhempy
Ergebnis: state Installing fhempy (15min)..
ich habe aber einen grünen punkt.
Also verschiedene Module schon mal ausprobiert.
ALLE enden mit dem reading:STATE fhempy server offline
also googlecast, kia_hyundai aber auch so einfache, wie google weather. Immer
reading:STATE fhempy server offline
Komischerweise finde ich ein
/opt/fhem/.local/lib/python3.7/site-packages/fhempy-0.1.527.dist-info
und komsicherweise. Ich hatte eigentlich python3 3.11 auf dem Raspi installiert. Aber das ganze sudo apt install python3 hat wohl wieder 3.7.3 installiert ? Ein nochmalige ugrade bringt aber: python3 ist schon die neueste Version (3.7.3-1).
Was fehlt bzw. was mache ich falsch?
Danke für die Hilfe
Hallo zusammen,
eine Frage zu GoogleCast.
Wie bekomme ich eine Verbindung zu meinem Google?
FHEMpy läuft und ein Cast Gerät habe ich angelegt, es geht nichts.
Hi,
hast du das Gerät richtig benannt?
ZitatUsage
define cast fhempy googlecast <NAME>
NAME: Name of the cast device (e.g. "Living Room"). You need to use quotes if the name contains spaces.
As soon as the device is online you can connect your Spotify account. See the attributes section below.
https://github.com/fhempy/fhempy/blob/master/FHEM/bindings/python/fhempy/lib/googlecast/README.md (https://github.com/fhempy/fhempy/blob/master/FHEM/bindings/python/fhempy/lib/googlecast/README.md)
Bis denn
SouzA
Zitat von: Gear am 11 Januar 2023, 21:37:35
Hallo zusammen,
eine Frage zu GoogleCast.
Wie bekomme ich eine Verbindung zu meinem Google?
FHEMpy läuft und ein Cast Gerät habe ich angelegt, es geht nichts.
Am besten ein list vom Device zeigen. Dann kann man besser helfen.
Stelle auf FHEMpy Docker um.
Daher weiß ich nicht ob das hier weiterhelfen kann.
der Cast Server läuft in separaten Container.
Ansonsten kann ich heute Abend das List schicken.
Das ist ja nur der fhempy Service. Der interessiert nicht so sehr. Wenn Du da einen grünen Punkt und running oder so hast ist alles ok.
Die nächste Stufe ist dann die Definition des Chromecast Devices.
Ich habe einen neuen Server auf dem FHEM läuft, wie bekomme ich die Cast Gerät mit FHEM verbunden?
define castdevice fhempy googlecast "Mini - Wohnzimmer"
attr castdevice DbLogExclude .*
attr castdevice group googlecast
attr castdevice room fhempy
# CASTNAME Mini - Wohnzimmer
# CFGFN
# DEF googlecast "Mini - Wohnzimmer"
# FHEMPYTYPE googlecast
# FUUID 63c1f40e-f33f-9249-7dde-05054e6c63b6d436
# IODev FHEMpy.Google.Cast
# NAME castdevice
# NR 187
# PYTHONTYPE googlecast
# STATE offline
# TYPE fhempy
# eventCount 5
# READINGS:
# 2023-01-14 01:15:10 connection disconnected
# 2023-01-14 01:17:37 spotify_login <html><a href="https://accounts.spotify.com/authorize?client_id=e92855a009e74eb69ba6609d3bfd7d96&response_type=code&redirect_uri=https%3A%2F%2Feurope-west1-fhem-ga-connector.cloudfunctions.net%2Fcodelanding%2Fstart&code_challenge_method=S256&code_challenge=nSAIxLOcKeLX-c2ndJNUFznShC509KtAw0wl5zEifqI&scope=user-read-recently-played+user-top-read+user-read-playback-position+user-read-playback-state+user-modify-playback-state+user-read-currently-playing+streaming+playlist-read-private+playlist-read-collaborative+user-follow-read+user-library-read+user-read-email+user-read-private" target="_blank">Connect Spotify account (new window/tab)</a><br></html>
# 2023-01-14 01:17:37 spotify_user login required
# 2023-01-14 01:15:10 state offline
# args:
# castdevice
# fhempy
# googlecast
# Mini - Wohnzimmer
# argsh:
#
setstate castdevice offline
setstate castdevice 2023-01-14 01:15:10 connection disconnected
setstate castdevice 2023-01-14 01:17:37 spotify_login <html><a href="https://accounts.spotify.com/authorize?client_id=e92855a009e74eb69ba6609d3bfd7d96&response_type=code&redirect_uri=https%3A%2F%2Feurope-west1-fhem-ga-connector.cloudfunctions.net%2Fcodelanding%2Fstart&code_challenge_method=S256&code_challenge=nSAIxLOcKeLX-c2ndJNUFznShC509KtAw0wl5zEifqI&scope=user-read-recently-played+user-top-read+user-read-playback-position+user-read-playback-state+user-modify-playback-state+user-read-currently-playing+streaming+playlist-read-private+playlist-read-collaborative+user-follow-read+user-library-read+user-read-email+user-read-private" target="_blank">Connect Spotify account (new window/tab)</a><br></html>
setstate castdevice 2023-01-14 01:17:37 spotify_user login required
setstate castdevice 2023-01-14 01:15:10 state offline
Zeige bitte ein list von FHEMpy.Google.Cast. Das sollte das BindingsIo Device sein welcher auf den fhempy Server zeigt. Dieser so sagst Du ja läuft auf einem anderen Server als FHEM. Korrekt?
Also es läuft alles auf demselben Host, nur in Docker.
Ich nutze Google Wetter und Geizhals über die für sich eigenen Container.
define FHEMpy.Google.Cast BindingsIo fhempy-googlecast:15733 fhempy
attr FHEMpy.Google.Cast DbLogExclude .*
attr FHEMpy.Google.Cast devStateIcon { 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 = "";;;; if ($ver_available ne $ver) { $status_img = "10px-kreis-gelb";;;; $status_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")."</a>";;;; "<div><a>".FW_makeImage($status_img, $status_txt)."</a><a> ".$ver." </a>".$update_icon."</div>" }
attr FHEMpy.Google.Cast group fhempy
attr FHEMpy.Google.Cast icon file_json-ld2
attr FHEMpy.Google.Cast room fhempy
# BindingType fhempy
# DEF fhempy-googlecast:15733 fhempy
# DeviceName ws:fhempy-googlecast:15733
# FD 12
# FUUID 63c1f1e0-f33f-9249-c97e-8c71e3ce6a4b4334
# FVERSION 10_BindingsIo.pm:0.182830/2019-01-16
# IP 172.18.0.11
# NAME FHEMpy.Google.Cast
# NR 57
# NTFY_ORDER 50-FHEMpy.Google.Cast
# PARTIAL
# PORT 15733
# STATE opened
# TYPE BindingsIo
# WEBSOCKET 1
# binary 1
# connecttime 1673675969.74358
# devioLoglevel 0
# eventCount 16
# localBinding 0
# nextOpenDelay 10
# prev_error fhempy-googlecast: Connection refused (111)
# READINGS:
# 2023-01-14 06:59:29 hostname fhempy-googlecast
# 2023-01-14 06:59:29 os posix
# 2023-01-14 06:59:29 python 3.9.16
# 2023-01-14 06:59:29 release 6.0.0-0.deb11.6-amd64
# 2023-01-14 06:59:29 state opened
# 2023-01-14 06:59:29 system Linux
# 2023-01-14 06:59:29 version 0.1.538
# 2023-01-14 06:59:29 version_available 0.1.538
# 2023-01-14 06:59:29 version_release_notes <html><a href="https://github.com/fhempy/fhempy/releases" target="_blank">Release Notes</a></html>
# args:
# FHEMpy.Google.Cast
# BindingsIo
# fhempy-googlecast:15733
# fhempy
#
setstate FHEMpy.Google.Cast opened
setstate FHEMpy.Google.Cast 2023-01-14 06:59:29 hostname fhempy-googlecast
setstate FHEMpy.Google.Cast 2023-01-14 06:59:29 os posix
setstate FHEMpy.Google.Cast 2023-01-14 06:59:29 python 3.9.16
setstate FHEMpy.Google.Cast 2023-01-14 06:59:29 release 6.0.0-0.deb11.6-amd64
setstate FHEMpy.Google.Cast 2023-01-14 06:59:29 state opened
setstate FHEMpy.Google.Cast 2023-01-14 06:59:29 system Linux
setstate FHEMpy.Google.Cast 2023-01-14 06:59:29 version 0.1.538
setstate FHEMpy.Google.Cast 2023-01-14 06:59:29 version_available 0.1.538
setstate FHEMpy.Google.Cast 2023-01-14 06:59:29 version_release_notes <html><a href="https://github.com/fhempy/fhempy/releases" target="_blank">Release Notes</a></html>
Also fhempy-googlecast sollte der Hostname von Deinem Docker Server sein. Sollte also als IP die selbe haben wie der Server auf dem Docker läuft. Ist das so bei Dir?
Ob ich jetzt den Hostname oder die IP des Containers nehme ist egal.
Aus meinem Stack bei Portainer:
services:
fhempy-googlecast:
image: ghcr.io/fhem/fhempy-docker_googlecast:releases-1.4-beta
container_name: FHEMpy-GoogleCast
hostname: fhempy-googlecast
restart: always
networks:
internal:
ipv4_address: 172.18.0.11
Dann muss sich das mal einer anschauen der mehr Ahnung von Docker hat. Bin da erstmal raus.
@CoolTux
Ich danke dir dennoch =)
Nachdem ich eigentlich alles deleted hatte , habe ich nochmals vermeintlich alles neu installiert.
PI = buster
pip 3 = pip 21.2.4 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)
python (manuell installiert) =Python 3.9.10
Fhempy_local ist grün jedoch mit dem Hinweis: Installing fhempy (15min).
fhempyserver_15733 ist grün mit dem Hinweis:fhempy running FHEM/bindings/python/bin/fhempy
python v3.9.10
aber im fhempy.log erhalte ich:
2023-01-20 19:56:59,661 - ERROR - __main__: Failed to load fhempy
Traceback (most recent call last):
File "/opt/fhem/FHEM/bindings/python/bin/fhempy", line 139, in <module>
import fhempy.lib.fhem_pythonbinding as fpb
ModuleNotFoundError: No module named 'fhempy'
2023-01-20 19:56:59,664 - INFO - __main__: Attempting install of fhempy>=0.1.462
2023-01-20 19:57:04,372 - ERROR - __main__: Unable to install package fhempy>=0.1.462: ERROR: Exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 173, in _main
status = self.run(options, args)
ModuleNotFoundError: No module named 'fhempy' ==> was fehlt mir denn jetzt noch ?
fhem ist aktuell und ein update fhempy mit mehrfachem Neustart habe ich auch gemacht.
Moin zusammen,
Hätte da mal eine Frage zu der Sprach Ausgabe über ein Google Nest Mini oder generell über die Sprachausgabe über Cast Geräte .Wie kann man die Sprachgeschwindigkeit ändern.
Gruß Pumba
Hallo... nur um mich nochmal kurz zu versichern:
es ist nicht mehr möglich, über die FHEM - Oberfläche (wahlweise die FTUI) eine Spotify - Wiedergabe über "transfer" zu starten bzw zu übergeben, richtig?
Ich bekomme es nicht hin, was entweder daran liegt, dass es nicht mehr geht oder (wahrscheinlich) an meinem Unvermögen liegt :-)
Schöne Grüße
Moin zusammen,
meine Cast Geräte melden sich nicht in FHEM "an".
Der Google-Assi ist verbunden und das Test-Light lässt sich steuern.
define castdevice fhempy googlecast "Mini Wohnzimmer"
attr castdevice DbLogExclude .*
attr castdevice IODev FHEMpy.Google.Cast
attr castdevice group googlecast
attr castdevice room fhempy
# CASTNAME Mini Wohnzimmer
# DEF googlecast "Mini Wohnzimmer"
# FHEMPYTYPE googlecast
# FUUID 63fbaa14-f33f-cc91-a710-bf9091a9efdc1d7e
# FVERSION 10_fhempy.pm:0.182830/2019-01-16
# IODev FHEMpy.Google.Cast
# NAME castdevice
# NR 273
# PYTHONTYPE googlecast
# STATE offline
# TYPE fhempy
# eventCount 4
# READINGS:
# 2023-02-26 19:51:00 connection disconnected
# 2023-03-07 09:43:04 spotify_login <html><a href="https://accounts.spotify.com/authorize?client_id=e92855a009e74eb69ba6609d3bfd7d96&response_type=code&redirect_uri=https%3A%2F%2Feurope-west1-fhem-ga-connector.cloudfunctions.net%2Fcodelanding%2Fstart&code_challenge_method=S256&code_challenge=YfYufyr9jelj21ZauPXfsyPNjnaW8NcOWKKFORBB3V0&scope=user-read-recently-played+user-top-read+user-read-playback-position+user-read-playback-state+user-modify-playback-state+user-read-currently-playing+streaming+playlist-read-private+playlist-read-collaborative+user-follow-read+user-library-read+user-read-email+user-read-private" target="_blank">Connect Spotify account (new window/tab)</a><br></html>
# 2023-03-07 09:43:04 spotify_user login required
# 2023-03-07 09:43:04 state offline
# args:
# castdevice
# fhempy
# googlecast
# Mini Wohnzimmer
# argsh:
#
setstate castdevice offline
setstate castdevice 2023-02-26 19:51:00 connection disconnected
setstate castdevice 2023-03-07 09:43:04 spotify_login <html><a href="https://accounts.spotify.com/authorize?client_id=e92855a009e74eb69ba6609d3bfd7d96&response_type=code&redirect_uri=https%3A%2F%2Feurope-west1-fhem-ga-connector.cloudfunctions.net%2Fcodelanding%2Fstart&code_challenge_method=S256&code_challenge=YfYufyr9jelj21ZauPXfsyPNjnaW8NcOWKKFORBB3V0&scope=user-read-recently-played+user-top-read+user-read-playback-position+user-read-playback-state+user-modify-playback-state+user-read-currently-playing+streaming+playlist-read-private+playlist-read-collaborative+user-follow-read+user-library-read+user-read-email+user-read-private" target="_blank">Connect Spotify account (new window/tab)</a><br></html>
setstate castdevice 2023-03-07 09:43:04 spotify_user login required
setstate castdevice 2023-03-07 09:43:04 state offline
Danke und eine gute Nacht
Grüße
Gear
Guten Morgen Dominik!
Ich habe googlecast über fhempy erfolgreich eingerichtet, läuft gut. Wenn ich z.B. eine Radio URL an das Device sende wird diese sauber abgespielt. In meinem Nest-Hub Display erscheint allerdings nur der in googlecast eingestellte Player (z.B. BubbleUpnp) aber weder Sender noch aktuell abgespielter Titel. Sage ich direkt dem Hub "Spiele xxx" wird der entsprechende Sender über TuneIn Radio aufgerufen und angezeigt. Ich habe schon versucht die entsprechende URL auch für den googlecast Aufruf zu verwenden, hat aber nichts gebracht. Wie bekomme ich die entsprechenden Media Readings richtig gesetzt? Bislang habe ich dazu leider nichts finden können. Das Ganze ist natürlich kein Drama, wäre aber ganz schön.
Gruß
Reinhard
Nabend, ich würde gerne bei der Sprachausgabe mit einer Variablen arbeiten wie bekomme ich dieses hin([Status_Person] eq "present" and [07:00-22:00]) ({my $msg = (split(" ",ReadingsTimestamp('Status_Person','state','')))[1];my $text=ReadingsVal($name,'TextMama',''); fhem "set Pushnachricht message person hat das Haus gegen $msg betreten."},set cast speak "$text")
so hatte ich mir vorgestellt aber es sagt dann immer $text .
Hatte da einer eine Idee ob und wie das funktionieren könnte.
Also ich mache es mit einem DOIF
Gruß Pumba
Ich würde gerne das icon von meinem Gestreamten Radio Sender angezeigt bekommen attr Lautsprecher_Garten stateFormat {my $streamicon=ReadingsVal($name, 'mediaImageUrl','');;my $onl = ReadingsVal($name,'connection','connected') eq 'connected' ? 'gruen' : 'rot';; my $icon = ReadingsVal($name,'mediaPlayerState','PLAYING') eq 'PLAYING' ? 'rc_PLAYgreen' : ReadingsVal($name,'mediaPlayerState','BUFFERING') eq 'BUFFERING' ? 'hourglass':'rc_PAUSEyellow';; my $show = '<a>'.FW_makeImage("10px-kreis-$onl").'</a>';; "<div> $show <a>".FW_makeImage($icon).'</a><img scr=$streamicon width="150" height="150"></img>\
nur das Icon wird nicht angezeigt ,wo ist mei. Denk fehler
Hallo Dominik,
ich hoffe, ich habe den richtigen Thread erwischt.
Es geht natürlich um die Installation von Fhempy - allerdings unter Bookworm, in einem unprivilegierten LXC Container unter Proxmox.
Ich bin gerade dabei diverse Dienste von den Rasperrys zu zentralisieren.
Der Fhem-Umzug ging eigentlich ganz gut.
Mehr Stress hatte ich gerade bei der Installation von Fhempy.
Ich habe es gerade nochmal mit einer frischen Bookworm-Installation nachvollzogen, aber das Fhempy wird nach
update add https://raw.githubusercontent.com/fhempy/fhempy/master/controls_pythonbinding.txt
update
shutdown restart
define fhempy_local BindingsIo fhempy
nicht installiert.
Es wird wiederholt im Fhempy-log gemeckert, dass
Traceback (most recent call last):
File "/opt/fhem/FHEM/bindings/python/bin/fhempy", line 139, in <module>
import fhempy.lib.fhem_pythonbinding as fpb
ModuleNotFoundError: No module named 'fhempy'
2023-10-30 20:29:41,375 - INFO - __main__: Attempting install of fhempy>=0.1.462
2023-10-30 20:29:41,590 - ERROR - __main__: Unable to install package fhempy>=0.1.462: 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.11/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.
2023-10-30 20:29:41,590 - ERROR - __main__: Failed to install fhempy, exit now...
2023-10-30 20:30:51,187 - ERROR - __main__: Failed to load fhempy
Traceback (most recent call last):
File "/opt/fhem/FHEM/bindings/python/bin/fhempy", line 139, in <module>
import fhempy.lib.fhem_pythonbinding as fpb
ModuleNotFoundError: No module named 'fhempy'
2023-10-30 20:30:51,188 - INFO - __main__: Attempting install of fhempy>=0.1.462
2023-10-30 20:30:58,920 - INFO - __main__: Successfully installed fhempy>=0.1.462
2023-10-30 20:30:58,920 - ERROR - __main__: Failed to import fhempy, exit now...
2023-10-30 20:31:01,216 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.670...
2023-10-30 20:31:01,216 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-10-30 20:31:01,222 - INFO - websockets.server: server listening on 0.0.0.0:15733
2023-10-30 20:45:17,398 - INFO - fhempy.lib.fhem_pythonbinding: Starting fhempy 0.1.670...
2023-10-30 20:45:17,398 - INFO - fhempy.lib.fhem_pythonbinding: Waiting for FHEM connection
2023-10-30 20:45:17,405 - INFO - websockets.server: server listening on 0.0.0.0:15733
Im Fhempy-Server-Device wird gemeldet: Connection refuses: 127.0.0.1 (111)
Außerdem startet es ständig neu (fhem-log):
2023.10.30 20:23:41 3: fhempyserver_15733: starting
2023.10.30 20:23:41 3: fhempyserver_15733: using logfile: ./log/fhempy-2023-10-30.log
2023.10.30 20:24:41 3: fhempyserver_15733: read: end of file reached while sysread
2023.10.30 20:24:41 3: fhempyserver_15733: stopped
2023.10.30 20:25:01 3: fhempyserver_15733: starting
2023.10.30 20:25:01 3: fhempyserver_15733: using logfile: ./log/fhempy-2023-10-30.log
2023.10.30 20:26:01 3: fhempyserver_15733: read: end of file reached while sysread
2023.10.30 20:26:01 3: fhempyserver_15733: stopped
2023.10.30 20:26:01 3: fhempyserver_15733: starting
2023.10.30 20:26:01 3: fhempyserver_15733: using logfile: ./log/fhempy-2023-10-30.log
2023.10.30 20:27:01 3: fhempyserver_15733: read: end of file reached while sysread
2023.10.30 20:27:01 3: fhempyserver_15733: stopped
Dennoch bekam ich fhempy installiert:
Hier zu benannte ich die /var/lib/python3.11/EXTERNALLY-MANAGED um in EXTERNALLY-MANAGED.old.
Anschließend lief die Installation im fhempy_local-Device. Allerdings elend langsam.
Deutlich schneller gings mit dem bekannten:
sudo -u fhem bash
pip3 install fhempy
Nun scheint alles zu funktionieren.
Ich weiß nicht, ob das (unter Bookworm oder python 3.11) normal ist oder hatte ich von Grundauf etwas falsch angegangen?
Viele Grüße
Matthias
Hallo,
leider bekomme ich fhempy unter Debian bookworm nicht zum Laufen. Im Log des fhempyserver steht folgendes:
Activating virtual environment...OK
2023-12-29 15:16:43,239 - ERROR - __main__: Failed to load fhempy
Traceback (most recent call last):
File "/opt/fhem/FHEM/bindings/python/bin/start_fhempy.py", line 141, in <module>
import fhempy.lib.fhem_pythonbinding as fpb
ModuleNotFoundError: No module named 'fhempy'
2023-12-29 15:16:43,247 - INFO - __main__: Attempting install of fhempy>=0.1.462
2023-12-29 15:16:43,301 - ERROR - __main__: Unable to install package fhempy>=0.1.462: /opt/fhem/.fhempy/fhempy_venv/bin/python3: No module named pip
2023-12-29 15:16:43,301 - ERROR - __main__: Failed to install fhempy, exit now...
Mir fehlt eine Idee wie ich das beheben kann. Hat jemand einen Tipp?
Danke & Gruß,
Oliver
Hallo nochmal,
Problem gelöst,ich gebe mir die Antwort selbst:
Irgendetwas ist bei der Erstellung des virtual environment schief gelaufen. Ich habe den Ordner
/opt/fhem/.fhempy
gelöscht und fhempy noch einmal neu angelegt -> funktioniert!
Viele Grüße,
Oliver