This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Push notifications Mosaic
#12
(02.12.2023, 12:37)CristianAgata Wrote:
(01.12.2023, 19:46)Gabriel88 Wrote:
(30.09.2021, 15:37)Daniele Wrote:
Code:
value = event.getvalue()
if value then
  --send on message
else
  --send off message
end

Ciao amministratore. Questo script, dovrebbe sostituire l'altro? Oppure deve essere un'integrazione? Ti chiedo scusa in anticipo, ma sono i miei primi passi nel mondo LUA. Ti allego uno screenshot dello script iniziale.

(30.09.2021, 15:37)Daniele Wrote:
Code:
value = event.getvalue()
if value then
  --send on message
else
  --send off message
end

Ciao Daniele. Questo script, dovrebbe sostituire l'altro? Oppure deve essere un'integrazione? Ti chiedo scusa in anticipo, ma sono i miei primi passi nel mondo LUA. Ti allego uno screenshot dello script iniziale.

Hi Gabriel88,
If you want that telegram send message you must implement this code into the other.
What do you want to do?
Best regards Cristian
 Hi Cristian. I would simply like to do this: 
When a device's status goes to "1", i want a telegram message like "ON"; 
When a device status goes to "0", i want a telegram message like "OFF"
  I try various ways but couldn't. Obviously, i'm just starting now with LUA Blush
  I apologize for the earlier message in Italian. I tought the forum page did the automatic translation
Reply


Messages In This Thread
Push notifications Mosaic - by Alexander - 24.09.2021, 17:20
RE: Push notifications Mosaic - by admin - 27.09.2021, 06:21
RE: Push notifications Mosaic - by Daniel - 27.09.2021, 08:14
RE: Push notifications Mosaic - by khalil - 27.09.2021, 09:11
RE: Push notifications Mosaic - by admin - 27.09.2021, 09:13
RE: Push notifications Mosaic - by Daniel - 27.09.2021, 09:14
RE: Push notifications Mosaic - by Alexander - 30.09.2021, 15:27
RE: Push notifications Mosaic - by Daniel - 30.09.2021, 15:37
RE: Push notifications Mosaic - by Alexander - 03.10.2021, 12:03
RE: Push notifications Mosaic - by Gabriel88 - 01.12.2023, 19:46
RE: Push notifications Mosaic - by Gabriel88 - 04.12.2023, 21:24
RE: Push notifications Mosaic - by Daniel - 05.12.2023, 08:23
RE: Push notifications Mosaic - by Gabriel88 - 05.12.2023, 15:09
RE: Push notifications Mosaic - by Daniel - 05.12.2023, 15:14
RE: Push notifications Mosaic - by Gabriel88 - 05.12.2023, 15:59
RE: Push notifications Mosaic - by Daniel - 05.12.2023, 16:06
RE: Push notifications Mosaic - by Gabriel88 - 05.12.2023, 16:16

Forum Jump: