Use "Enter" in output Telegram Notification Topic is solved

Moderator: leecollings

Post Reply
User avatar
Brutus
Posts: 249
Joined: Friday 26 September 2014 9:33
Target OS: Windows
Domoticz version:
Location: Netherlands
Contact:

Use "Enter" in output Telegram Notification

Post by Brutus »

Normally you can send a Telegram message in LUA with the following command:

Code: Select all

commandArray['SendNotification']='Subject#Text: '..Sensor..'#0'
I would like to create a more clean output with an "Enter" after the text so the Sensor data comes on the next line in the message.

Code: Select all

commandArray['SendNotification']='Subject#Text: "enter" '..Sensor..'#0'
Is this possible? I can't find any thing on Wiki or the forum.

Greetings.
1x Intel NUC8i5BEK (Windows 10 x64) Domoticz on Virtualbox with DietPi.
1x Aeon Labs USB Z-Stick S2
1x P1 Smart Meter USB
28x Fibaro Modules
SMA Solar System
Daikin Airco / Heating
Denon DHT-S716H & DSW-1H
SweetPants

Re: Use "Enter" in output Telegram Notification

Post by SweetPants »

Have you tried adding "\r\n" to the string?
User avatar
Brutus
Posts: 249
Joined: Friday 26 September 2014 9:33
Target OS: Windows
Domoticz version:
Location: Netherlands
Contact:

Re: Use "Enter" in output Telegram Notification

Post by Brutus »

SweetPants wrote: Saturday 15 September 2018 19:03 Have you tried adding "\r\n" to the string?
Thnx for your reply!

Can you please put that in my example? So i don't make a mistake.
1x Intel NUC8i5BEK (Windows 10 x64) Domoticz on Virtualbox with DietPi.
1x Aeon Labs USB Z-Stick S2
1x P1 Smart Meter USB
28x Fibaro Modules
SMA Solar System
Daikin Airco / Heating
Denon DHT-S716H & DSW-1H
SweetPants

Re: Use "Enter" in output Telegram Notification

Post by SweetPants »

commandArray['SendNotification']='Subject#Text: \r\n'..Sensor..'#0'
User avatar
Brutus
Posts: 249
Joined: Friday 26 September 2014 9:33
Target OS: Windows
Domoticz version:
Location: Netherlands
Contact:

Re: Use "Enter" in output Telegram Notification

Post by Brutus »

SweetPants wrote: Saturday 15 September 2018 19:12 commandArray['SendNotification']='Subject#Text: \r\n'..Sensor..'#0'
That works like a charm, Thanx!!

Were did you find this :) ?
1x Intel NUC8i5BEK (Windows 10 x64) Domoticz on Virtualbox with DietPi.
1x Aeon Labs USB Z-Stick S2
1x P1 Smart Meter USB
28x Fibaro Modules
SMA Solar System
Daikin Airco / Heating
Denon DHT-S716H & DSW-1H
SweetPants

Re: Use "Enter" in output Telegram Notification

Post by SweetPants »

Brutus wrote: Saturday 15 September 2018 19:16
That works like a charm, Thanx!!

Were did you find this :) ?
It's just plane LUA, just googeld for it
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest