New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get the Current configured channel #8
Comments
Hi Nicolas, Thx |
I create a custom cover component : https://github.com/nicolasberthel/hass-becker-component I'm not a python expert and it's an first version but for me it's working |
While |
BTW: I do have a side project to implement Becker Shutter into Google smarthome. Its called But its more than only Becker shutter - It should give us the flexibility to include any device/module (virtual/or not) into Google Smarthome It is currently in closed alpha but the goal is that anyone can participate to add additional modules (I called it "Interfaces" atm) You can find already the following Interfaces: |
Thanks @ole1986 ./centronic-stick.py -rely on the database if I understood, no chance to get info from the stick ? |
@nicolasberthel could you please tell us for what reason you need it? Since the usb stick can decide by itself what unit to use for which channel I needed to store somewhere. Also, stick and receiver is a non-bidirectional connect it should not be much relevant on what unit or channel to use |
From my experiences the pairing is stored in the stick I reinstalled several time my Raspberry PI starting from scratch each time :D The command where always working (even with a dummy database). The idea would we to get the channelrs that are already setup and paired |
This would mean the stick also stores the incremental number... |
Assuming you reinstalled the raspberry pi, all the data (incl. the centronic-stick.py script and its db - previously *.num file) is deleted. I would be really much interested in what you did after a fresh raspberry pi system. What I could imaging that you again paired the shutter against the script. So it may accept the increment of 0 (zero) again. Also related: https://github.com/ole1986/centronic-py/blob/master/TECHNICAL.md |
What I can garantee is that I never repaired my stick and it worked on several rpi |
That would be pretty unusual when no incremental counter is taken into account and shutters still working. According to my last experiences with the shutter, the next possible increment can be raised up to a max of 49 and lower numbers will not be accepted from receivers. Can we test something together and proof that the increment is not used in your case? Lets assume you have the latest version (v0.6) with the Can you please do the following steps?
Please let me know the result |
OK when doing -s code increment configured last run Then I ran python3 centronic-stick.py --mod "1737b:54:1" And you are right the up command after is not working. (After a second try it worked) Then I made another try Again -s gave I removed the db file and created a num file with 40 (randomly) Again after 2 try of UP command on channel 1 it worked. I tried several combiantion with several numbers, by calling -mod or creating num file on different channel and the UP Command then work either directly or after 1 or 2 extra calls I do not know if it help :) |
To my surprise I can confirm it More I have figured out:
A possible attack is becoming much easier An attacker with this USB Stick attached can overwrite the MASTER SENDER and gain full control on the shutter by only knowing the correct "unit". The unit is between 0 and 1048575 (0xFFFFF) which sounds much. UPDATED Sniff the correct unit Assuming the victim has configured the shutter to regular open/close on daily bases the attacker could already break into it "during the day" by sniffing the signal using |
Thank you for your work! using your code I was able to configure my becker shutters in home assistant. Do you know if there is a way to get from the contronic stick the current channel configuration ?
Thanks
Nicolas
The text was updated successfully, but these errors were encountered: