Comments (12)
Hi, this is an experimental feature and I have no appropriate device to check if it is working
If you do not mind you can be my tester for it :)
I can add some code and ask you to recheck, OK?
from broadlink-mqtt.
Sure, happy to test it...
from broadlink-mqtt.
Rechecked the code - it looks OK
Do you follow the instructions? You need to press and hold the button during the first message (Learning RF Frequency...) and single press when second (To complete learning...) message is print
from broadlink-mqtt.
Yes, I did the same thing I do with broadlink-mqtt-bridge, which seems to work. It doesn't find the frequency with a press and hold. broadlink-mqtt-bridge waits for 30 seconds, and sometimes it might take 10 seconds or so.
from broadlink-mqtt.
Can you please try to record a signal using broadlink_cli utility from python-broadlink project?
from broadlink-mqtt.
Same thing with broadlink_cli. It enters learning mode, but can't find the frequency.
I'm assuming after it finds the frequency it should tell me to do the short press to learn the code?
Learning RF Frequency, press and hold the button to learn...
RF Frequency not found
from broadlink-mqtt.
I checked instructions from mjg59/python-broadlink#87 and found that tests were done using:
python3
pycrypto python package
from broadlink-mqtt.
python3 and pycrypto are already installed...
from broadlink-mqtt.
And do you run mqtt.py or broadlink_cli using python3?
from broadlink-mqtt.
Good point! :)
I just ran broadlink_cli with python3 and got a bit further. 1/4 attempts crashed, 3/4 attempts found the freqency but couldn't find the RF code.
Attempt 1:
Learning RF Frequency, press and hold the button to learn...
Found RF Frequency - 1 of 2!
You can now let go of the button
Press enter to continue...
To complete learning, single press the button you want to learn
No data received...
Attempt 2:
Learning RF Frequency, press and hold the button to learn...
Traceback (most recent call last):
File "./broadlink_cli", line 195, in <module>
while (not dev.check_frequency()) and (timeout > 0):
File "/usr/local/lib/python3.6/dist-packages/broadlink/__init__.py", line 565, in check_frequency
response = self.send_packet(0x6a, packet)
File "/usr/local/lib/python3.6/dist-packages/broadlink/__init__.py", line 298, in send_packet
response = self.cs.recvfrom(2048)
socket.timeout: timed out
Attempt 3:
Learning RF Frequency, press and hold the button to learn...
Found RF Frequency - 1 of 2!
You can now let go of the button
Press enter to continue...
To complete learning, single press the button you want to learn
No data received...
Attempt 4:
Learning RF Frequency, press and hold the button to learn...
Found RF Frequency - 1 of 2!
You can now let go of the button
Press enter to continue...
To complete learning, single press the button you want to learn
No data received...
from broadlink-mqtt.
guys how do you run mqtt.py with python3? I got:
File "mqtt.py", line 67
except Exception, e:
^
SyntaxError: invalid syntax
from broadlink-mqtt.
guys how do you run mqtt.py with python3? I got:
Committed the fix to support python3
from broadlink-mqtt.
Related Issues (20)
- Cannot connect to Dooya DT360E HOT 2
- Cannot connect to MQTT server on RM4PRO HOT 2
- RM4PRO Setup / temperature
- Broadlink-mqtt Service script question
- Support for S3 Hub
- Broadlink-MQTT "invalid subscription filter" error message
- Problem with multiple devices HOT 5
- Issue HOT 10
- Startup script error... HOT 3
- broadlink rm4pro and curtain command
- broadlink sp4l
- Bind to ip of interface? HOT 4
- No topic to know which devices have been found HOT 3
- RM4C mini Bestcon Unknown HOT 2
- Docker Container and Multiple BG1 HOT 4
- RMMIN type_device nslookup HOT 4
- Add support for sp3s plug HOT 4
- Devices playing up, connected one to app I think - how to remove
- RM4 Mini support
- Issue with messages following upgrade HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from broadlink-mqtt.