openshwprojects / OpenBK7231T_App

Open source firmware (Tasmota/Esphome replacement) for BK7231T, BK7231N, BL2028N, T34, XR809, W800/W801, W600/W601, BL602 and LN882H
https://openbekeniot.github.io/webapp/devicesList.html
1.46k stars 272 forks source link

IRsend command not sending anything #1153

Open davidchezmoa opened 7 months ago

davidchezmoa commented 7 months ago

Describe the bug Cannot Send IR command, I got a cmnd not valid message but I don't know what could be the correct command.

Firmware:

To Reproduce Steps to reproduce the behavior:

  1. Go to '(http://IP/cmd_tool)'
  2. Enter the command 'IRSend {"Protocol":"NEC","Bits":32,"Data":0x8166817E}'
  3. Click 'Submit'
  4. See error

Error:IR:IRSend cmnd not valid [{"Protocol":"NEC","] not like [NEC-0-1A] or [NEC 0 1A 1]. Bad argument

Additional context If I do the exact same thing on a real Tasmota device it just work.

I didn't find any documentation on how the IRSend command work on OBK so I asume it work the same way as on Tamota ESP based device.

Thank you for your help and I will be happy to provide more information if needed.

openshwprojects commented 7 months ago

Hey, I think you should try the syntax from the error message. We don't h ave JSON parse there yet, altough I may add it for you...

davidchezmoa commented 7 months ago

I did try to mess around with the format in the error message, but I did not quite understand the way I should convert my initial data from my JSON.

If you have a hint it would be nice, otherwise I guess I will wait the implementation of JSON parsing 👍

openshwprojects commented 7 months ago

Have you tried to check the docs? https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/commands.md

davidchezmoa commented 7 months ago

After some diging I found out how to use that format, thanks to point me to the documentation.

Also find out that it doen't work for my Pioneer AV receiver, it seems there was a bug in the library IRRemoteEsp8266 till version 2.6.4, I wonder if the openBK firmware is built on a recent version of that library or is totally a diffent thing ?

here a link on that issue for tasmota https://github.com/arendst/Tasmota/issues/6100