Coder Social home page Coder Social logo

Comments (6)

frankjoke avatar frankjoke commented on July 18, 2024

Hi Apollon!

I cheched and tested and send_code is working with me.
The javascript command is:
sendTo('broadlink2.0','send_code','RM:RMPROPLUS.CODE_000000730000000B0020002000400020002000200020002000200040002000200040002000200020002000400040002000200CC5'))

where 'RM:RMPROPLUS' need to be exchanged with your device name.

The code itself seems not to be valid, at least my RM does not blink on it which means it does not send anything.

I checked my IR codes which are generated when I learn the device and their length is 1185+ caracters.
Yours is only 105!

from iobroker.broadlink2.

frankjoke avatar frankjoke commented on July 18, 2024

sorry, 185 and NOT 1185 caracters is my length!

from iobroker.broadlink2.

Apollon77 avatar Apollon77 commented on July 18, 2024

On one hand I found out that I need to recode "Protno"-codes ... my try was to directly put the value in the "SendCode" state in Admin under the respective device ... I not used JS.
Will also retest

from iobroker.broadlink2.

frankjoke avatar frankjoke commented on July 18, 2024

Ok, if you don't use javascript sendTo then you should follow following path to create states with own codes:
Learn any code
Go in admin.objects to the 'pencil'
go to 'native' and enter code in 'code' line without 'CODE_'
rename state to whatever.

In this way you can change codes of any object in '.L.' area of RM: devices.
It means that you can copy this way also codes from one to another device.

from iobroker.broadlink2.

Apollon77 avatar Apollon77 commented on July 18, 2024

In the end I did it that way, but the idea was:

Use "SendCode" State to send while in learning mode in parallel :-) Yes this works. So I only need to paste the code to send in that one field and get the "L"-objects created automatically while it is received :-)

Did you tried to set "SendCode" State directly with "CODE_..." as value ... because this is what not works

from iobroker.broadlink2.

Apollon77 avatar Apollon77 commented on July 18, 2024

In the end I did it that way, but the idea was:

Use "SendCode" State to send while in learning mode in parallel :-) Yes this works. So I only need to paste the code to send in that one field and get the "L"-objects created automatically while it is received :-)

Did you tried to set "SendCode" State directly with "CODE_..." as value ... because this is what not works

from iobroker.broadlink2.

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.