Gent
I am new to node red
I want to send WhatsApp message when the alarm change state
The payload that i get from the alarm device is
"{"payload":{"arm_state":"arming","detail":{"sid":2,"name":"Away Mode"}}}"
I want to check arm state and name at the same time and if it match I send a WhatsApp to my number
Thank you
i was thinking about comparing the arm state with a value of arming and name with a value of away mode in the payload. then if what i am getting is true for both then send me whatsapp.
i think it is too complicated for me. i settle for checking the name to has a value or alarming from the payload message. i am using AND node like below