#Automation for when getting text message from phone

1 messages · Page 1 of 1 (latest)

modern mural
#

I am attempting to create automation for light to flash when getting text message from phone. I am unable to get it to work. I even double check in State via developer tools. I must be missing something. I even went through different Attributes.

woeful sparrow
#

As promised, this is my trigger for the Uber Eats delivery:

trigger: template
value_template: >-
  {{

  (state_attr('sensor.xq_at52_last_notification', 'package') ==
  "com.ubercab.eats")

  and

  (state_attr('sensor.xq_at52_last_notification', 'android.title') is
  search("Faster delivery dropoffs", ignorecase=true))

  }}
#

I assume you're working through this list:

modern mural
#

Im going to base off of that and hope thay works. Thank you!

modern mural
#

I'm still losing my mind. My text message alert isn't working.

woeful sparrow
#

Paste your code? Also a screenshot of the "logbook" view of the "last notification" sensor:

modern mural
#

That's what I been going off of. THe only thing I"m noticing is weird output when checking Developers Tool. Like it's not just "Name" it has something next to both sides. This is my code

#

I intenionally gave this one with blank state.

#

The reason I show this is because if I add Dan Clark.
It doesn't do anything despite I got a text message from Dan........it fails. I check the log and it shows Dan Clark. I was frantically losing my mind and I notice when I copy the whole attributes it had this weird..........thing

#

This is what it looks like when I copy the entire attributes and that keeps looking at EVEN other area that have the same thing. I'm not even sure what else to do man.

modern mural
#

THanks for the help. I gave up. I think it's the HA's sensor that isn't translating correct.

woeful sparrow
#

I expect the search() I used for substring matching insulated me from any of that

modern mural
#

Yea. I can't translate the concept you have and into automation.

woeful sparrow
#

Sorry, I just realised I never pasted the entire thing

#

Template trigger, which avoids the need to use the condition block because it's a logical AND of two things

modern mural
#

ohhhhhhhhhhh!!! that make so much sense!