FHEM - Hausautomations-Systeme > Sonstige Systeme
fhempy: Tuya Cloud
dominik:
Hi,
ich habe ein Modul in fhempy gebaut, welches mit allen Tuya Devices über die Cloud sprechen kann. Der große Vorteil, man bekommt real-time Updates über die Cloud und muss kein Polling der Devices machen.
Anleitung zur Einrichtung:
1. fhempy installieren
https://github.com/dominikkarall/fhempy#installation
2. Tuya einrichten
https://github.com/dominikkarall/fhempy/blob/master/FHEM/bindings/python/fhempy/lib/tuya_cloud/README.md
patator:
Hallo,
leider komme ich bei der Grundinstallation evon fhempy auf meiner fhem Instanz nicht weiter:
--- Code: ---pi@raspberrypi:~ $ pip3 install --upgrade fhempy
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
ERROR: Could not find a version that satisfies the requirement fhempy
ERROR: No matching distribution found for fhempy
--- Ende Code ---
Nachtrag jetzt hab ich fhempy auf ner ubuntu 20.04 eingerichtet, aber sobald fhem darauf zugreift wirft er folgende Fehler aus:
--- Code: ---RuntimeError: The event loop is not running
2021-07-31 08:41:34,188 - INFO - fhempy.lib.fhem_pythonbinding: Incoming FHEM connection: 10.10.20.109
2021-07-31 08:41:34,191 - ERROR - websockets.server: Error in connection handler
Traceback (most recent call last):
File "/home/bitnami/.local/lib/python3.8/site-packages/websockets/legacy/server.py", line 293, in handler
await self.ws_handler(self, path)
File "/home/bitnami/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 63, in pybinding
await activate_internal_modules()
File "/home/bitnami/.local/lib/python3.8/site-packages/fhempy/lib/fhem_pythonbinding.py", line 46, in activate_internal_modules
await instance.activate()
File "/home/bitnami/.local/lib/python3.8/site-packages/fhempy/lib/core/discover_fhempy/discover_fhempy.py", line 82, in activate
await self.runZeroconfScan()
File "/home/bitnami/.local/lib/python3.8/site-packages/fhempy/lib/core/discover_fhempy/discover_fhempy.py", line 79, in runZeroconfScan
self.browser = ServiceBrowser(self.zeroconf, services, listener)
File "/home/bitnami/.local/lib/python3.8/site-packages/zeroconf/_services/browser.py", line 505, in __init__
raise RuntimeError("The event loop is not running")
--- Ende Code ---
dominik:
Deine Python Installation ist schon end of life. Nutzt du Raspbian? Mach mal sudo apt update und dann sudo apt install python3.
patator:
habe ich bereits gemacht, hat nicht geklappt drum hab ich das auf ubuntu installiert.
defmod fhempy_remote_IP BindingsIo fhempy-ip:15733 Python
dominik:
Dann ist dein Raspbian noch eine alte Distribution wahrscheinlich. Sollte Buster sein.
Jetzt hat's geklappt?
Navigation
[0] Themen-Index
[#] Nächste Seite
Zur normalen Ansicht wechseln