Hello,
i use serial binding to connect to arduino and get 433 Mhz codes.
I have a switch:
Switch Socket_10_1 "Light" { serial="/dev/ttyACM0@57600,ON(10;NewKaku;00ea43f6;10;ON;\n),OFF(10;NewKaku;00ea43f6;10;OFF;\n)" }
With this i can send commands to arduino to turn on the light.
But how can i parse commands that i get from remote controller (it i turn it on not with OH, but with remote) and according to it change switch state. I think i need to use REGEX for it?
Could anyone help with it.
I get from arduino a message on serial port when i press a button on remote
20;E1;NewKaku;ID=00ea43f6;SWITCH=10;CMD=ON;
Thanks a lot!