dirkclemens / pycul Goto Github PK
View Code? Open in Web Editor NEWaccess CUL stick using Python3
License: GNU General Public License v3.0
access CUL stick using Python3
License: GNU General Public License v3.0
Dear Dirk
I am trying to migrate my home automation devices from Fhem to Home Assistant and one big issue is how to include FS20,FHT,ESA devices in HA software. Luckly I found your python script which would solve my problem and you really did an excellent job. Unfortunately after I ran the script (python3 cul2mqtt.py) and got the error (see below). It is possible to help because my skills in python programming are very low specially with asyncio.
Kind regards
Andrej
CUL serial port opened:
SerialTransport(<_UnixSelectorEventLoop running=True closed=False debug=False>, <main.culRxTx object at 0x7f73bd7cbac0>, Serial<id=0x7f73bd7cb820, open=True>(port='/dev/ttyACM0', baudrate=9600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))
cul2mqtt.py:132: RuntimeWarning: coroutine 'sleep' was never awaited
asyncio.sleep(0.3)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
cul2mqtt.py:135: RuntimeWarning: coroutine 'sleep' was never awaited
asyncio.sleep(0.3)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
CUL init done.
starting loop
Traceback (most recent call last):
File "cul2mqtt.py", line 702, in
loop.run_until_complete(culSAIO)
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
RuntimeError: cannot reuse already awaited coroutine
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.