logo elektroda
logo elektroda
X
logo elektroda

OpenBeken IR-WiFi Bridge - Check IR reception and execute IR send command with Panasonic code

stephanschmitzberger 204 1
ADVERTISEMENT
Treść została przetłumaczona german » english Zobacz oryginalną wersję tematu
  • #1 21530472
    stephanschmitzberger
    Level 3  
    I have an IR-Wi-Fi bridge with Openbeken.
    I would like to execute the command IRSend Nec-6CD2-CB-5-3 when the IR signal "Info:IR:IR IR IR_Panasonic 0x8 0x3D 0 (48 bits)" is received.
    Previously I would have written my Autoexec.bat like this:
    again:
    
    if $IR=Panasonic-8-3D-1 then IRSend Nec-6CD2-CB-5-3
    delay_s 15
    goto again

    Unfortunately this does not work! Currently the loop runs without checking the IF condition --> signal is sent every 15s.
    Any idea how I could do this?
    AI: What exactly happens when you run the script - do you get an error message, or does nothing happen?
    No error message. Loop runs without query.
    AI: Which OpenBeken firmware version are you using on your IR-WiFi Bridge?
    1.18.75
  • ADVERTISEMENT
  • #2 21534819
    stephanschmitzberger
    Level 3  
    New solution approach with the eventhandler in autoexec.bat see below
    Line 2 works (Nec) works perfectly, line 1 (Panasonic) does not trigger the event handler.
    addEventHandler2 IR_Panasonic 0x8 0x3D IRSend Nec-6CD2-CB-5-3
    addEventHandler2 IR_NEC 0xFD01 0xDC IRSend Nec-6CD2-CB-5-3


    Enclosed the log extract for Panasonic IR remote control
    Info:IR:IR IR_Panasonic 0x8 0x3D 1 (48 bits)
    Info:MQTT:Publishing val {"IrReceived":{"Protocol":"Panasonic","Bits":48,"Data":"0xBD3D0080"}} to BK7231N_7EF100005/RESULT retain=0


    to Nec remote control
    Info:IR:IR IR_NEC 0xFD01 0xDC 0 (32 bits)
    Info:MQTT:Publishing val {"IrReceived":{"Protocol":"NEC","Bits":32,"Data":"0x23DCFD01"}} to BK7231N_7EF100005/RESULT retain=0
    Info:EVENT:EventHandlers_FireEvent2: executing command IRSend Nec-6CD2-CB-5-3
    Info:IR:Delay 110ms
    Info:IR:Delay 110ms
    Info:IR:Delay 110ms
    Info:IR:Delay 110ms
    Info:IR:Delay 110ms
    Info:IR:Delay 100ms

    Is this a bug in Openbeken or why does the remote control with Nec protocol trigger the event, and remote control with Panasonic does not trigger the event, although reception is available and congruent with event handler?
ADVERTISEMENT