Python automations with esphome

Hi, I have just implemented my first HA/esphome project: a simple temperature and humidity sensor. Now to play around, I would like to add a few automation.
I was thinking of writing a script in python (the language I’m most comfortable with) that sends me a message on telegram when the temperature gets below a certain temperature (in case I let the window open or something).
Is this possible with the esphome automations?

I was also wondering where the recorded values get stored. Is there a way to query them to play around?

Do it in home assistant.

1 Like

As @nickrout says, doing via automations in Home Assistant would be pretty simple. While you could go down the Python route (I, too, am very comfortable with doing complex automations via Python), it’s probably overkill for this particular need when automations can read those sensor values and do something with them.

1 Like

Okay I see, I guess I will start with some easy stuff in Home Assistant and then work my way up :slight_smile: