Hi all,
I figured out a way to get a notification from my Telegram bot whenever the doorbell is pressed. I am working on also sending a screenshot from my ESP32CAM interface, in order to directly see who is in front of the door.
Now what I would like to do, is also send a JSON URL Command link with the notification, so whenever you click the link in telegram, it will activate the switch that is connected to a servo which opens the door. This link, however, is a very long JSON URL, something like: http://192.168.1.xx:xxxx/json.htm?type=command¶m=switchlight&idx=xxx&switchcmd=On.
I would like to send a notification like: "Someone is ringing the doorbell [picture]. Open the door? YES" (and then a hyperlink behind the word "YES"). Does anyone know whether there is a possibility to send hyperlinks in domoticz, and not show the super long json url?
Thanks in advance!
Thomas
SOLVED: Hyperlink in notification to Telegram
Moderators: leecollings, remb0
-
- Posts: 2
- Joined: Sunday 29 March 2020 20:32
- Target OS: -
- Domoticz version:
- Contact:
SOLVED: Hyperlink in notification to Telegram
Last edited by pianothomas on Tuesday 30 June 2020 16:33, edited 1 time in total.
-
- Posts: 2
- Joined: Sunday 29 March 2020 20:32
- Target OS: -
- Domoticz version:
- Contact:
Re: Hyperlink in notification to Telegram
Solved by using python script with Telegram bot with parsemode HTML.
Who is online
Users browsing this forum: No registered users and 1 guest