molobrakos / tellsticknet

Interface to a Tellstick Net device on the local network
MIT License
32 stars 15 forks source link

Start problems #19

Closed Gohper closed 5 years ago

Gohper commented 5 years ago

Whatever I do, i'm getting: Traceback (most recent call last): File "/usr/lib/python3.5/runpy.py", line 183, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/usr/lib/python3.5/runpy.py", line 142, in _get_module_details return _get_module_details(pkg_main_name, error) File "/usr/lib/python3.5/runpy.py", line 153, in _get_module_details code = loader.get_code(mod_name) File "<frozen importlib._bootstrap_external>", line 775, in get_code File "<frozen importlib._bootstrap_external>", line 735, in source_to_code File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed File "/home/mqtt/tellsticknet/tellsticknet/__main__.py", line 96 prepend_timestamp(packet) async for packet in controller.packets() ^ SyntaxError: invalid syntax

Am I missing something?

Regards

Gohper commented 5 years ago

Oh, saw in the code that python 3.7 is needed...

Gohper commented 5 years ago

Did not help...

Gohper commented 5 years ago

Progress..., installed a release, two days old. Now it starts, it also discovers my TS net (v1).

Now, where do i put the config file..., /etc? Filename tellsticknet.conf?

This will be nice to bypass Teldus Live..., so slow, and remote controls channels are not On or Off, mostly they are idle...

molobrakos commented 5 years ago

Basically currently it looks in your home dir and in $HOME/.config: https://github.com/molobrakos/tellsticknet/blob/master/tellsticknet/__main__.py#L110-L116

Gohper commented 5 years ago

Ahh, thank you for a quick response!!

I got it working now, connecting with the Home Assistant, so far it looks great! The problem I have with TL is, except that it is slow, remotes and wall switches (aka remote). They are normally IDLE and only momentary On or OFF.

I will see if I will have the time to learn python and contribute, I have some ideas that might be nice.

First I need to learn HA, only used it for a week! So far so good!

R