hi all , i'm looking at getting my snips AI to change my tv channels for me by using a RMpro.
I can get snips to send me the correct intent and in node red i can change that message to the parts i need IE:
msg.payload.data.entity_id = channel number
msg payload = 54 <---- thats the channel number
how do i now change that payload to a single 5 and a single 4 so i can then tell the RMPRO to push button 5 and button 4 on my remote ? im picking id also have to work out how to write a function so if number is double digits split the number up but if its a single number like 7 then add a 0 in front of it like 07
cheers.
Edited : should also mention im fairly new to node red and formula's etc so pointing me in the right direction to research and learn is also appreciated. however examples are awesome