I use javascript and it looks like this:
events.sendCommand(“Fanceiling_Fanceiling”, ‘RfRaw AAB0150303014702872C920010101010110101010100110255; RfRaw 0’);
I forgot to say also that yes you need to set up mqtt binding and also set up your thing mqtt channel command topic like this:
cmnd/sonoffRFBridge/Backlog
I have setup a channel with to topic cmnd/RFBridge1//Backlog
am I barking up the right tree?
I then have a item set up as false switch
I then have a rule when false switch is on
run events.sendCommand(“RFBridge1”, RfRaw AAB0150303014702872C920010101010110101010100110255; RfRaw 0)
this brings up an error in logs
Script execution of rule with UID ‘Test’ failed: events.sendCommand( ___ “ ___ RFBridge1”, RfRaw AAB0150303014702872C920010101010110101010100110255; RfRaw 0 ___ )
Thanks for any help, I’m a bit green to all this, and docs are limited.
2021-03-15 23:15:49.330 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID ‘Test’ failed: :1:19 Expected an operand but found error
I am assuming you have the thing and item already set up.
So you just copy and paste the line of code that I sent into a brand new rule.
Change the item name in the rule to your item name and if you want put your rf code in there as well and then press the run button and see what happens.
Of course, will put something together this week, I will also try to put a YouTube video up, I’m not a programmer and there doesn’t seem to be much info about.