Hello everyone, I wanted to share my recent project with you. I’ve successfully integrated Threema notifications into my Home Assistant setup, and I’m really excited about how it turned out!
For those who might not be familiar, Threema is a secure messaging app that I’ve been using for a while now. I wanted to explore alternative notification methods beyond the commonly used solutions, and since my spouse and I are heavy Threema users, it made perfect sense to integrate it into my smart home setup.
The Challenge
Finding resources or tutorials on integrating Threema with Home Assistant was quite a challenge. Most forums and guides I came across were either outdated or lacked detailed instructions. This scarcity made the journey a bit more adventurous, but also rewarding once I got it working.
The Solution
After some research, I discovered the Threema Gateway, which allows sending and receiving messages via software. I decided to go with the basic version for starters, as it suited my needs perfectly.
Here’s a glimpse of the configuration I used in my configuration.yaml file:
Threema Notifications
- name: Threema
platform: rest
resource: https://msgapi.threema.ch/send_simple
method: POST
message_param_name: text
target_param_name: to
data:
from: !include privates/threema_from.yaml
secret: !include privates/threema_secret.yaml
With this setup, I created an automation that sends notifications to my Threema account. For example, it informs me when it’s time to take the trash out:
- service: notify.Threema
data:
target: ‘xxxxxx’
message: “The {{ state_attr(‘sensor.abfall_tage’, ‘tonne’) }} will be emptied tomorrow.
Please place the trash bin outside.”
The Outcome
Since implementing this setup a few months ago, I’ve been receiving 2-3 notifications daily without any issues. It’s been a reliable and secure alternative to WhatsApp, especially with the added bonus of minimal advertising.
Future Plans
I’m currently exploring the encrypted API provided by Threema. This could potentially allow for more advanced functionalities, such as sending images or joining group chats. I’m excited to see where this integration can take me next!
I hope this post helps anyone looking to integrate Threema into their smart home setup. If you have any questions or need assistance, feel free to reach out. Happy automating! ![]()