Skip to content
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

bitbucketconverter.py - option e and file not found issue #204

Open
Rasenkantenstein opened this issue May 1, 2021 · 1 comment
Open

Comments

@Rasenkantenstein
Copy link

Rasenkantenstein commented May 1, 2021

Latest firmware used?

  • Tasmota 9.4.0

I try sniffing the values from a WTS switch for window covers. I do this by using the bitbucketconverter.py tool like this:

python3 bitbucket.py -f console.txt -e 192.168.1.177

This works fine. Results come pouring in:

###### Processing line {"RfRaw":{"Data":"AA B1 06 06AE 00A0 038E 01FE 006E 12F2 D09292B392C292B3B3C292929292B3B39292B3B3B3929292B3929292B3929292B39292B3B3B3B39292 55"}} ######
Filtered 0xB1 data: AAB10606AE00A0038E01FE006E12F2D09292B392C292B3B3C292929292B3B39292B3B3B3929292B3929292B3929292B39292B3B3B3B3929255
http://192.168.1.177/ax?c2=191&c1=RfRaw%20AA%20B0%2037%2006%2008%2006AE%2000A0%20038E%2001FE%20006E%2012F2%20D09292B392C292B3B3C292929292B3B39292B3B3B3929292B3929292B3929292B39292B3B3B3B39292%2055
Sending command to bridge
Resulting 0xB0 data: AA B0 37 06 08 06AE 00A0 038E 01FE 006E 12F2 D09292B392C292B3B3C292929292B3B39292B3B3B3929292B3929292B3929292B39292B3B3B3B39292 55
###### Command was sent. Enter name of command if your device reacted as expected or just [Enter] if not ######
###### Please no special caracters or spaces

However, when I open the URL in a browser: http://192.168.1.177/ax?c2=191&c1=RfRaw%20AA%20B0%2037%2006%2008%2006AE%2000A0%20038E%2001FE%20006E%2012F2%20D09292B392C292B3B3C292929292B3B39292B3B3B3929292B3929292B3929292B39292B3B3B3B39292%2055 I do get an error:

File Not Found

URI: /ax
Method: GET
Arguments: 2
c2: 191
c1: RfRaw AA B0 37 06 08 06AE 00A0 038E 01FE 006E 12F2 D09292B392C292B3B3C292929292B3B39292B3B3B3929292B3929292B3929292B39292B3B3B3B39292 55

Same error occurs when trying to use Postman to send this as a POST event. Also, nothing appears in the WEB GUI Tasmota console.

When copying the B0-codes from the Terminal and paste them into the console it works fine.

How could I use the script to send B0-commands to the RF-bridge?

@MrRimmer
Copy link

MrRimmer commented Aug 30, 2021

The HTTP command that this app generates is wrong - instead of
http://<IP address>/ax?c2=191&c1=
it should be
http://<IP address>/cm?cmnd=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants