majuss / pypca

Python 3 library to control the PCA 301
MIT License
0 stars 0 forks source link

cant get the switch to power off #1

Open tomsch opened 5 years ago

tomsch commented 5 years ago

hi,

i can list all my devices, but when i try to power off the switch with the parameter, nothing happens.

any ideas? thx tom

majuss commented 5 years ago

Can you tell me which version you are using exactly? How did you installed the python package? Which 868 Gateway are you using? And please post the exact line you tried.

tomsch commented 5 years ago

hi, iam using a JeeLink MINI-USB Nano V3.0 ATMEGA328P FT232RL FTDI (is working fine with fhem)

i have installed it with home assistant (venv) and update to the latest version from here. All looking fine and i dont get any errors. Running Python 3.6

(homeassistant) root@home:/home/homeassistant/.homeassistant# pypca -p /dev/ttyUSB0 --devices                     
2019-08-07 11:53:32 INFO (MainThread) [pcacl] Found PCA 301 with ID: 009088166
2019-08-07 11:53:32 INFO (MainThread) [pcacl] Found PCA 301 with ID: 001161186
2019-08-07 11:53:32 INFO (MainThread) [pcacl] Found PCA 301 with ID: 001162144
2019-08-07 11:53:32 INFO (MainThread) [pcacl] Found PCA 301 with ID: 001155208
2019-08-07 11:53:32 INFO (MainThread) [pcacl] Found PCA 301 with ID: 002080169
2019-08-07 11:53:32 INFO (MainThread) [pcacl] Found PCA 301 with ID: 118212171
2019-08-07 11:53:32 INFO (MainThread) [pcacl] Found PCA 301 with ID: 111048111
2019-08-07 11:53:32 INFO (MainThread) [pcacl] --Finished running--
(homeassistant) root@home:/home/homeassistant/.homeassistant# pypca -p /dev/ttyUSB0 --on 118212171
2019-08-07 11:53:53 INFO (MainThread) [pcacl] --Finished running--
(homeassistant) root@home:/home/homeassistant/.homeassistant# 
majuss commented 5 years ago

Can you please install pypca in its own venv with this cloned git repo, to avoid all conflicts. Additionally you could try with every single one? Maybe the discovery is defective...

tomsch commented 5 years ago

i have tryed all switches. i will test it later in its own venv. Thanks for helping :)

majuss commented 5 years ago

Do you need further help to set the venv up or just time constraints :)?

majuss commented 5 years ago

Did you had any success tinkering with it?

tomsch commented 5 years ago

Sorry hat no time yet, testing it again on weekends.

On 20.08.2019, at 19:15, majuss notifications@github.com wrote:

Did you had any success tinkering with it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

majuss commented 5 years ago

Ok :) Please never use the root user (especially not with random programs from the interwebs :D)! It's very likely that you mess up file permissions.