Beginner here, so please be gentle. Want to start off by saying YES< i have read the documentation, done lots of trial and error and still failing. Finally coming here with the hope someone can tell me how to fix this.
I am trying to simply RE-CREATE a sensor that used to work before a few HASS upgrades and its related to the new way IMAP sensor works. The below code used to work before and now I am trying to get it to the new way, but not sure where i keep making errors. YAML does not complain about it, but it does not work simply put.
please assist.
Background: When the school bus comes, i get an email > trying to update a sensor based on that email from that specific sender so i can make the house yell on google home to get out of the house basically
This is my first time creating a post here, so not sure if formatting will come through, including a pastebin portion too in case above does not format properly.
Your template sensor configuration looks fine… as long as you have correctly added it to your configuration.yaml file (or other properly included file). If your notification automation triggers off the state of the sensor you may want to consider adding a third state so you can reliably capture state changes. For example, if you receive two “bus stop radius” emails in a row, the second would not create a state change.
If this configuration worked previously, the first point to check is the actual emails. Since your sensor’s state relies on matching strings in the body or subject, changes to those by the sender (or a changed sender) will cause the sensor to fail.
Thank You @Didgeridrew
I actually went to the GURUs over at discord and they helped me a bit through it. Not much changed other than an else towards the bottom and now it works great.