I have Tasmotatized - Sonoff Bridge I want to be able to send out a alphanumeric code which will enable and disable my 433Mhz siren.
The problem I have is the with the payload (i am using string) if I use # the whole alphanumeric code will send but the # will be included and the siren doesnt respond because it just wants the alphanumeric code.
Without the # the RF Bridge node will only send numericals,
eg 7777777 but not aaaaaa,
and or at least up to the point it hits the first alpha character and then it will only send numerical numbers to the left of the alpha character,
777a44 will go as 777,
and if I only use all alpha characters then it will broadcast the last retained numbers,
777.
I have tried using "" eg "777a44" but it ignores the ""
If I put a debug on the inject node I get the correct Hex code, this then connected to the mqtt out node which has no output that I can attach the debug too so the next place I can see is in tasmota console on my sonoff rf bridge which is were the payload has been altered.
It a 433mhz device that receives HEX codes normally from a keypad after it is binded.
Is there a forum or repo for the bridge or device where you can ask about this behaviour?
Last ditch attempt, try sending your value with double or single quotes or a buffer.
E.g. Inject "777a44" or '777a44' or send a buffer (possible from inject node, choose bin/buffer, click the ellipsis button, type the string) it'll convert to bytes.
I just saw something on internet that mentioned broker which why I edited my post above at the bottom to mention it.
I now remember that in home assistant I have an automation which also sends this code to alarm and it too fails. So this would pin point it the parsing issue is happening in mosquito. I will follow that route.
Thanks for helping me narrow it down this issue has been annoying me for months.
Note that for the # use, you will need to include the RfHigh, RfLow and RfSync timings.
As per documentation
RfCode Show last sent 24-bit user code 1..8388607 = send 24-bit user code #1..#7FFFFF = send 24-bit hexadecimal user code using RfSync, RfLow and RfHigh timing
Can you not learn + assign a key in the bridge and send that instead ?
I researched and implemented if I press the button in tasmota that I learned it works.
However to initiate this button payload needs to be Rfkey1 (for learned key 1) which is still alphanumeric and back to the original problem of alphas not being recognized.
So annoying coz every post I read where people are having problems they are only working decimal key struggling with searches, probably I been on and off with this one for months now.
I looked at the tasmota console again and it was saying: 17:02:06 MQT: stat/RF_Bridge/RESULT = {"RfCode":777}
because in node red the mqtt topic was: cmnd/RF_Bridge/RFCODE
I did not need to send an RFCODE I needed to access the RFKEY1(if you need key 2 then it RFKEY2 and so on).
so I changed node red mqtt topic to: cmnd/RF_Bridge/RFKEY1
then in my testing inject node in the payload I put: 6
because 6 sends the learned code for the RFKEY you are using in your TOPIC
Tasmota console now looks like this now when I trigger in node red from home assistant and my siren responds accordingly. 7:55:59 MQT: stat/RF_Bridge/RESULT = {"RfKey1":"Learned sent"}