Hyperlinks in notifications

Moderator: leecollings

Post Reply
tarmacalastair
Posts: 95
Joined: Wednesday 30 October 2019 14:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Great Britain
Contact:

Hyperlinks in notifications

Post by tarmacalastair »

Hello,

I would like to include a hyperlink in my notifications so that when my UPS fails I can click a link in an email alert to go to the dashboard and decide whether or not to run my shutdown script.

I have tried a simple message in the Custom Message field - "Power failed, click here for dashboard - http://domoticzIP:8080"

This works fine in my Pushbullet notifications but in an email message it just prints the message without a clickable link. If I change my email (in Thunderbird) to plain text then it becomes a hyperlink but not in the default view or on my phone. I want to set this up for a friend who does not have Pushbullet and relies on email.

Any ideas please on how to get the link to display as a clickable hyperlink?

Many thanks.
Running Domoticz and Dashticz beta on Raspberry Pi OS 32 bit - has anyone had success with 64 bit?

Desktop access from Ubuntu Linux
User avatar
waltervl
Posts: 6677
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Hyperlinks in notifications

Post by waltervl »

Depends on how smart or what settings your email reader has to change urls into cklicable links.
For spam protection they are not fond of it...

You gout perhaps add an html url notation:

Code: Select all

<a href="http://domoticzIP:8080">Domoticz Dashboard</a>
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
tarmacalastair
Posts: 95
Joined: Wednesday 30 October 2019 14:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Great Britain
Contact:

Re: Hyperlinks in notifications

Post by tarmacalastair »

Thanks for the suggestion. Unfortunately this just puts the entire text into the email. It also sends all the text to Pushbullet too, rather then just the URL.
So the email looks like this (tested on my front door):
Screenshot 2023-02-02 at 16-29-14 al@stair.me - MailBox - Migadu Webmail.png
Screenshot 2023-02-02 at 16-29-14 [email protected] - MailBox - Migadu Webmail.png (25.66 KiB) Viewed 2030 times
Running Domoticz and Dashticz beta on Raspberry Pi OS 32 bit - has anyone had success with 64 bit?

Desktop access from Ubuntu Linux
User avatar
waltervl
Posts: 6677
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Hyperlinks in notifications

Post by waltervl »

It seems that the http:// part is clickable in your email. So what is the problem with just sending http://domoticzIP:8080 as text?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
tarmacalastair
Posts: 95
Joined: Wednesday 30 October 2019 14:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Great Britain
Contact:

Re: Hyperlinks in notifications

Post by tarmacalastair »

Oh yeah, whoops that was the wrong screenshot! With Thunderbird on desktop and K9-Mail on my phone they both simply show the text, NOT a hyperlink.
I went into my webmail which I never normally use, just to get an easy screenshot and didn't notice that the link was working.

However, before you say this is an email client issue, all other hyperlinks in other emails apart from Domoticz seem to display as proper links, not just text....
Running Domoticz and Dashticz beta on Raspberry Pi OS 32 bit - has anyone had success with 64 bit?

Desktop access from Ubuntu Linux
tarmacalastair
Posts: 95
Joined: Wednesday 30 October 2019 14:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Great Britain
Contact:

Re: Hyperlinks in notifications

Post by tarmacalastair »

This is what I see in Thunderbird:
Screenshot from 2023-02-02 17-52-36.png
Screenshot from 2023-02-02 17-52-36.png (30.04 KiB) Viewed 2011 times
Running Domoticz and Dashticz beta on Raspberry Pi OS 32 bit - has anyone had success with 64 bit?

Desktop access from Ubuntu Linux
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest