Recieved SMS on the phone as trigger

Hi guys!

My utility provider sens me SMS to my phone at 2100 in the evening the day before the trashcan is beeing emptied. It reminds me to drag the trashcan to the side of the road to be emptied. We have 3 different trashcans with different periods of empting. I get SMS with the specific words which trashcan is beeing emptied the next day.

Is there any way to HA to read my SMS? And use sender’s number or name as a trigger? I could then send notification to my TV and family members to remind us to drag the trashcan.
Any suggestions?

Thanks!

This doesn’t answer your question but have you looked into the HACS garbage collection. It was designed to notify you when to set out your garbage and which one. I use it for much more than just garbage collection.

You can use the last notification sensor with the HA app.
It works OK, but don’t leave unread sms in notification menu or it won’t work.

@Hellis81 @AllHailJ Thanks for your quick solutions. The bruxy70’s solution is made for this, maybe I’ll have to dig into to this option, since my companion app provides sensor for last notification, but it can’t be seen in HA (I granted permissions but the sensor is not showing in addon :crazy_face:

Thanks!

Since a few updates ago you need to add packages it should listen to also.
I think it’s at the bottom of the sensor settings in the app.

iOS or Android, or both?

I gave up with the ‘Last Notification’ sensor from my Android phone (Using HA App) to push that through to my Home Assistant…
I found that, if the device was locked, it struggled to pull through the notifications (and my phone security comes first unfortunately!)

I decided as above to use the Garbage Collection for each bin type, then a fancy card for the visuals (Thread here)

image

Not sure about iOS. But on Android you must add packages to the allow list

GSM modem!

I checked the packages and there was a problem with my sms-app… I gave up with sms and went on the garbage-collection integration. So far so good :slight_smile:

Thank you all!

1 Like

Hey there, that’s a great idea to use SMS notifications from your utility provider to remind you about trash pickup! It sounds like you’re looking for a way to automate this process and send notifications to your TV and family members. One option to consider is using Home Assistant (HA) to read your SMS and use the sender’s number or name as a trigger. You may need to use a temporary US number if your provider does not support this feature. There are a few different ways to set this up, but one popular method is to use the HA CMC component in combination with the HA automations feature. This will allow you to create automations that trigger based on specific keywords or sender information in the SMS. It’s definitely worth exploring and let us know how it goes!

2 Likes

I’ve never thought I could use the senders number of an SMS as a trigger for an action!!! Thank you for that!!!

Would you be able to expand on this a bit? I’m trying to set up something similar but am not clear on how to set up the trigger

What is HA CMC?? I can find no reference to “CMC” anywhere else in HA docs. So…what is CMC short for!?

1 Like