OK!
I'll give this method a shot!
And I'm also noticing that my incoming text is in the Custom State for my phone number, so I'm guessing I could also use Python to get this to work as well.
Schedule **Get Twilo (delayed action)
Twilio Debug checkMessages: Message from +1504237xxxx, to: +1985222xxxx, direction: inbound, date_sent: '2021-06-16 17:13:06+00:00'
Twilio Debug Checking Trigger Mail -Reset TWILo verion 2584 (35271989), Type: patternMatch
Twilio Debug Checking field messageFrom for pattern 'Mail' using simpleMatch
Twilio Debug No simpleMatch Match for Trigger Mail -Reset TWILo verion 2584 (35271989)
Twilio Debug Checking Trigger T-2110 Twilio Home from phone 2584 (488734743), Type: messageReceived
Twilio Debug checkMessages: Done
Twilio = 142748732
TwilioState = indigo.devices[Twilio].states['messageText']
if TwilioState == "Mail":
indigo.trigger.enable(1189209404, value=True) #reenable mail trigger
What I've done now is in the trigger that fires when the variable changes, is to write a tiny python script to check the Custom State, "messageText", and then execute the action.
jltnol wrote:So the trigger that checks for the variable change AND now also checks for certain incoming text, and acts accordingly.
First, let's get the terminology straight. Are you actually using the "twilio_ping" variable to activate the ** Get Twilio trigger, or are you using the alternative method I described earlier
You've specified the trigger to run when the string "Mail" is included in the Message From field. Which is never going to happen because Message From is the originating phone number. You probably want that to be Message Text
And let me make sure I understand these actions. Your intent is to enable to disable some other trigger (named "Mail") that will be activated by some other mechanism? And that's it?
Users browsing this forum: No registered users and 0 guests