Giter Site home page Giter Site logo

RecordRF not working about broadlink-mqtt HOT 12 CLOSED

eschava avatar eschava commented on August 18, 2024
RecordRF not working

from broadlink-mqtt.

Comments (12)

eschava avatar eschava commented on August 18, 2024

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.

seanbaker74 avatar seanbaker74 commented on August 18, 2024

Sure, happy to test it...

from broadlink-mqtt.

eschava avatar eschava commented on August 18, 2024

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.

seanbaker74 avatar seanbaker74 commented on August 18, 2024

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.

eschava avatar eschava commented on August 18, 2024

Can you please try to record a signal using broadlink_cli utility from python-broadlink project?

from broadlink-mqtt.

seanbaker74 avatar seanbaker74 commented on August 18, 2024

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.

eschava avatar eschava commented on August 18, 2024

I checked instructions from mjg59/python-broadlink#87 and found that tests were done using:
python3
pycrypto python package

from broadlink-mqtt.

seanbaker74 avatar seanbaker74 commented on August 18, 2024

python3 and pycrypto are already installed...

from broadlink-mqtt.

eschava avatar eschava commented on August 18, 2024

And do you run mqtt.py or broadlink_cli using python3?

from broadlink-mqtt.

seanbaker74 avatar seanbaker74 commented on August 18, 2024

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.

Kepnu4 avatar Kepnu4 commented on August 18, 2024

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.

eschava avatar eschava commented on August 18, 2024

guys how do you run mqtt.py with python3? I got:

Committed the fix to support python3

from broadlink-mqtt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.