Hello,
I have complete my telegram's bot setup and I am trying to open a switch using command "true" and close it using "false" respectively (telegram app). I also want to receive a feedback of these actions in my telegram chatbot. The problem is that I only receive a message on the debug that states chatId, messageId, type, content and date. I have set the following settings for when I type true in my chatbot but nothing appears. Are there any ideas to make it work?
Thanks for your time, appreciate your help !
Current Flow
[{"id":"e965d4b7.df8638","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"a5542607.d53408","type":"ui_switch","z":"e965d4b7.df8638","name":"Switch","label":"","tooltip":"","group":"c8de5ff4.0911e","order":4,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"payload.content","topicType":"msg","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"x":330,"y":120,"wires":[["272d5eb8.4d9932"]]},{"id":"c96f3c47.a5a65","type":"telegram receiver","z":"e965d4b7.df8638","name":"","bot":"2f6c1f7b.9d7c1","saveDataDir":"","filterCommands":false,"x":130,"y":120,"wires":[["b7cb05c3.8c0f38","a5542607.d53408"],[]]},{"id":"272d5eb8.4d9932","type":"switch","z":"e965d4b7.df8638","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":470,"y":120,"wires":[["35cf774b.1cf948"],["5b0e35b2.b8fe2c"]]},{"id":"b7cb05c3.8c0f38","type":"debug","z":"e965d4b7.df8638","name":"Telegram Debugger","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":310,"y":180,"wires":[]},{"id":"35cf774b.1cf948","type":"change","z":"e965d4b7.df8638","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"{\"type\":\"message\",\"content\":\"Sprinkler Activated\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":100,"wires":[["1f76f2e4.4f97dd"]]},{"id":"5b0e35b2.b8fe2c","type":"change","z":"e965d4b7.df8638","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"{\"type\":\"message\",\"content\":\"Sprinkler Deactivated\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":140,"wires":[["1f76f2e4.4f97dd"]]},{"id":"1f76f2e4.4f97dd","type":"telegram sender","z":"e965d4b7.df8638","name":"","bot":"2f6c1f7b.9d7c1","haserroroutput":false,"outputs":1,"x":910,"y":120,"wires":[[]]},{"id":"c8de5ff4.0911e","type":"ui_group","name":"NewWidget","tab":"93b99af0.cadfa8","order":2,"disp":true,"width":"6","collapse":false},{"id":"2f6c1f7b.9d7c1","type":"telegram bot","botname":"christs99_bot","usernames":"","chatids":"","baseapiurl":"","updatemode":"polling","pollinterval":"300","usesocks":false,"sockshost":"","socksport":"6667","socksusername":"anonymous","sockspassword":"","bothost":"","botpath":"","localbotport":"8443","publicbotport":"8443","privatekey":"","certificate":"","useselfsignedcertificate":false,"sslterminated":false,"verboselogging":false},{"id":"93b99af0.cadfa8","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]