Closed rt400 closed 5 years ago
What output do you have in Tasmota console when you send the command by mqtt?
if i send from the console : 00:44:09 MQT: stat/sonoff/RESULT = {"IRSend":"Done"}
from mosquitto command there is no result
I guess the string of your wonderful numbers is just too long (1049 bytes). I suggest you remove all spaces and try again.
also remove the space ( 852 bytes) ..still from mosquitto command he didnt work .. mybe the syntax ? here the command : mosquitto_pub -t cmnd/sonoff/irsend -m "{0,4404,4422,534,1632,510,574,562,1604,536,1632,562,520,536,546,534,1632,534,548,536,546,536,1630,530,554,564,520,540,1626,536,1630,538,546,534,1634,510,1656,536,544,538,544,536,1632,534,1632,534,1632,534,1632,536,1630,536,548,536,1628,538,1628,510,572,538,546,534,548,534,548,540,542,540,544,564,1604,534,1630,536,1630,536,544,564,520,536,546,564,520,562,1604,560,522,536,546,536,548,540,1624,566,1600,536,1632,558,1606,538,5240,4378,4450,532,1632,538,544,510,1656,510,1656,536,546,536,546,540,1628,562,518,538,544,568,1556,604,522,566,516,568,1600,536,1628,510,572,544,1592,596,1602,564,518,566,516,566,1600,542,1626,538,1630,536,1630,536,1630,542,540,540,1624,538,1628,568,516,580,502,570,514,568,514,570,512,570,512,568,1598,540,1624,566,1602,540,542,570,512,572,510,594,488,572,1592,568,516,572,512,568,512,566,1600,602,1562,572,1596,570,1596,572}"
If you send the above command your sonoff will respond with
16:26:56 RSL: Group 0, Index 1, Command IRSEND, Data {0,4404,4422,534,1632,510,574,562,1604,536,1632,562,520,536,546,534,1632,534,548,536,546,536,1630,530,554,564,520,540,1626,536,1630,538,546,534,1634,510,1656,536,544,538,544,536,1632,534,1632,534,1632,534,1632,536,1630,536,548,536,1628,538,1628,510,572,538,546,534,548,534,548,540,542,540,544,564,1604,534,1630,536,1630,536,544,564,520,536,546,564,520,562,1604,560,522,536,546,536,548,540,1624,566,1600,536,1632,558,1606,538,5240,4378,4450,532,1632,538,544,510,1656,510,1656,
16:26:56 MQT: stat/ledunia2/RESULT = {"IRSend":"Invalid JSON"}
for obvious reason as the message should not contain {} and quotes.
Try this:
mosquitto_pub -t cmnd/ledunia2/irsend -m 0,4404,4422,534,1632,510,574,562,1604,536,1632,562,520,536,546,534,1632,534,548,536,546,536,1630,530,554,564,520,540,1626,536,1630,538,546,534,1634,510,1656,536,544,538,544,536,1632,534,1632,534,1632,534,1632,536,1630,536,548,536,1628,538,1628,510,572,538,546,534,548,534,548,540,542,540,544,564,1604,534,1630,536,1630,536,544,564,520,536,546,564,520,562,1604,560,522,536,546,536,548,540,1624,566,1600,536,1632,558,1606,538,5240,4378,4450,532,1632,538,544,510,1656,510,1656,536,546,536,546,540,1628,562,518,538,544,568,1556,604,522,566,516,568,1600,536,1628,510,572,544,1592,596,1602,564,518,566,516,566,1600,542,1626,538,1630,536,1630,536,1630,542,540,540,1624,538,1628,568,516,580,502,570,514,568,514,570,512,570,512,568,1598,540,1624,566,1602,540,542,570,512,572,510,594,488,572,1592,568,516,572,512,568,512,566,1600,602,1562,572,1596,570,1596,572
what works for me and is the correct irsend syntax.
16:27:51 RSL: Group 0, Index 1, Command IRSEND, Data 0,4404,4422,534,1632,510,574,562,1604,536,1632,562,520,536,546,534,1632,534,548,536,546,536,1630,530,554,564,520,540,1626,536,1630,538,546,534,1634,510,1656,536,544,538,544,536,1632,534,1632,534,1632,534,1632,536,1630,536,548,536,1628,538,1628,510,572,538,546,534,548,534,548,540,542,540,544,564,1604,534,1630,536,1630,536,544,564,520,536,546,564,520,562,1604,560,522,536,546,536,548,540,1624,566,1600,536,1632,558,1606,538,5240,4378,4450,532,1632,538,544,510,1656,510,1656,5
16:27:52 MQT: stat/ledunia2/RESULT = {"IRSend":"Done"}
still not.. i made a test and start to short the msg when i got a smallest (65 bytes) he respond.. so i think mybae there is limit that is missed ?
I checked your status 0 output and it looks good.
Pls try a pre-compiled binary from http://thehackbox.org/tasmota/ and report back.
well as always you right... thanks man..its work now.. i try to understand what i do wrong..
hi sorry to open it again..but still the continue issue.. i connect the ir on GPIO2 t1 3CH SONOFF.. but when i conncet the power the board wont turn on..only if i turn it without the wire connect to GPIO2. on wemos its work grate.. so my be you known if there is limit on this GPIO that cant get on IR ? but DALLAS Ds1820 work on this GPIO..
Gpio2 is useless for what you want to do. Please, see gpio restrictions at wiki at https://github.com/arendst/Sonoff-Tasmota/wiki/Expanding-Sonoffs
hi . i use IR with Wemos. so itry to send via mosquitto command but it seems that didnt work:
mosquitto_pub -t cmnd/sonoff/irsend -m "0,4404, 4422, 534, 1632, 510, 574, 562, 1604, 536, 1632, 562, 520, 536, 546, 534, 1632, 534, 548, 536, 546, 536, 1630, 530, 554, 564, 520, 540, 1626, 536, 1630, 538, 546, 534, 1634, 510, 1656, 536, 544, 538, 544, 536, 1632, 534, 1632, 534, 1632, 534, 1632, 536, 1630, 536, 548, 536, 1628, 538, 1628, 510, 572, 538, 546, 534, 548, 534, 548, 540, 542, 540, 544, 564, 1604, 534, 1630, 536, 1630, 536, 544, 564, 520, 536, 546, 564, 520, 562, 1604, 560, 522, 536, 546, 536, 548, 540, 1624, 566, 1600, 536, 1632, 558, 1606, 538, 5240, 4378, 4450, 532, 1632, 538, 544, 510, 1656, 510, 1656, 536, 546, 536, 546, 540, 1628, 562, 518, 538, 544, 568, 1556, 604, 522, 566, 516, 568, 1600, 536, 1628, 510, 572, 544, 1592, 596, 1602, 564, 518, 566, 516, 566, 1600, 542, 1626, 538, 1630, 536, 1630, 536, 1630, 542, 540, 540, 1624, 538, 1628, 568, 516, 580, 502, 570, 514, 568, 514, 570, 512, 570, 512, 568, 1598, 540, 1624, 566, 1602, 540, 542, 570, 512, 572, 510, 594, 488, 572, 1592, 568, 516, 572, 512, 568, 512, 566, 1600, 602, 1562, 572, 1596, 570, 1596, 572"
if i send the command from console :
irsend 0,4404, 4422, 534, 1632, 510, 574, 562, 1604, 536, 1632, 562, 520, 536, 546, 534, 1632, 534, 548, 536, 546, 536, 1630, 530, 554, 564, 520, 540, 1626, 536, 1630, 538, 546, 534, 1634, 510, 1656, 536, 544, 538, 544, 536, 1632, 534, 1632, 534, 1632, 534, 1632, 536, 1630, 536, 548, 536, 1628, 538, 1628, 510, 572, 538, 546, 534, 548, 534, 548, 540, 542, 540, 544, 564, 1604, 534, 1630, 536, 1630, 536, 544, 564, 520, 536, 546, 564, 520, 562, 1604, 560, 522, 536, 546, 536, 548, 540, 1624, 566, 1600, 536, 1632, 558, 1606, 538, 5240, 4378, 4450, 532, 1632, 538, 544, 510, 1656, 510, 1656, 536, 546, 536, 546, 540, 1628, 562, 518, 538, 544, 568, 1556, 604, 522, 566, 516, 568, 1600, 536, 1628, 510, 572, 544, 1592, 596, 1602, 564, 518, 566, 516, 566, 1600, 542, 1626, 538, 1630, 536, 1630, 536, 1630, 542, 540, 540, 1624, 538, 1628, 568, 516, 580, 502, 570, 514, 568, 514, 570, 512, 570, 512, 568, 1598, 540, 1624, 566, 1602, 540, 542, 570, 512, 572, 510, 594, 488, 572, 1592, 568, 516, 572, 512, 568, 512, 566, 1600, 602, 1562, 572, 1596, 570, 1596, 572
i got result : {"IRSend":"Done"}...
so what is did wrong ?
IMPORTANT NOTICE If you do not complete the template below it is likely that your issue will not be addressed. When providing information about your issue please be as extensive as possible so that it can be solved by as little as possible responses.
FAILURE TO COMPLETE THE REQUESTED INFORMATION WILL RESULT IN YOUR ISSUE BEING CLOSED
Make sure these boxes are checked [x] before submitting your issue - Thank you!
status 0
:(Please, remember to close the issue when the problem has been addressed)