Hello, my name is Oliver, i am quite new about TTN.
I just got my Dragino LDS01 and doing my first steps.
With IFTTT webhooks i am sending some push messages to my Telegram messenger.
My problem is now, that the message at Telegram is telling me only, that the sensor sent data.
There is no difference like “door open” or “door close”.
My question is now, where i have to make changes in the code?
The important line in the payload may be: var door_open_status=bytes[0]&0x80?1:0;//1:open,0:close
I tried even at the webhooks section to send me the value “1” and “0”, which even worked.
But where can i convert “0” to text “Door closed” and “1” to “Door open” ?
I want the status of the door as text, not as binary number.
Do i have to change the payload decoder at TTN? Or add any code converter at IFTTT webhooks?
I dont know the place and what to edit.
This may be a solution. I am just a beginner yet, but planning to set up a node red server soon. I think this sounds promising.
The problem at the moment is maybe in IFTTT. I am not yet sure, what “value” means at webhooks. If “value” is limited to numbers only, then i cannot send text messages to webhooks like “door open”