Telegram & domoticz hand in hand

Preface

I have been a Telegram-fan since the beginning. It’s snappy, pluggable, and allows for alot more customization then WhatsApp or other more ‘closed’ instant messengers. And ever since Facebook ‘owns’ Whatsapp it’s supposed to be ‘more private’ (but who knows). Next to that is has IM-clients for every platform, which is useful.

The ‘Telegram Bot’ functionality is especially fun and I have been using it since it was available for sending ‘push notifications’ to my iPhone. It can be added as a custom notifier to domoticz quite easily, but I always forget how to, so here’s my post on how I did it (for future reference).

First, setup a Telegram-bot. very nice guide here. Also pay attention on how to use it with ‘wget’ or ‘curl’. Very useful in scripting, I use that alot as well.

Code

Add all the relevant stuff here (under Setup -> Settings -> Notifications):

screen-shot-2016-10-25-at-19-33-40

After that you can use it on everything that has the ‘Notifications’ button:

screen-shot-2016-10-25-at-19-36-17

Add a notification with a ‘relevant’ threshold:

screen-shot-2016-10-25-at-19-39-30

You can use the ‘$name’ & ‘$value’ to send the name of the current device and the current value in the message itself. Oh and I like the pretty Apple emoticons too much, I know …

Result

screen-shot-2016-10-25-at-19-43-42

Oooh pretty! Thanks Jarvis!

Leave a Reply

Your email address will not be published. Required fields are marked *