Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


ALL-IN-ONE Message Scene 1.0.3

   (1 review)

About This File

--[[
-----------------------------------------------------------------------------
-- ALLINONE MESSAGE SCENE -- TELEGRAM/PUSH/POPUP/API.POST
-----------------------------------------------------------------------------

-----------------------------------------------------------------------------
0.0.9   Started with Telegram and push function 
1.0.0   Added popup and api.post functions
1.0.1   Added support for TTS to your MUSAIC player. You need to set right language
        for you TTS string.
1.0.2   TelegramMessage function does now support if you resend same message many times
        another scene.
1.0.3	Added support for Sonos remote VD

-- SCENE DESCRIPTION --------------------------------------------------------
This scene will send message to your smartphone, which function that will run
depends on what string you send and to which variable.

Example:

-- TELEGRAM -----------------------------------------------------------------
Drop your message to TelegramMessage variable and this scene will send it to you
Demands a telegram token and chatid
--
fibaro:setGlobal("TelegramMessage", "YOUR MESSAGE")
--

-- PUSHSMARTPHONE -----------------------------------------------------------
Drop your message to SmartPhoneMessage variable and this scene will send it to
your smarthphone as push
--
fibaro:setGlobal("SmartPhoneMessage", "YOUR MESSAGE")
--

-- SENDPOPUP ----------------------------------------------------------------
Will send an popup message to fibaro app in your smartphone
-- 
fibaro:setGlobal("popUpMessage", "Info:Test:From fibaro HC2:Test of string")
--
String translate : (typeInfo, windowTitle, header, contentInfo)
typeInfo = available types: ('Info', 'Success','Warning','Critical')
windowTitle = pop-up window title
header = pop-up content title
contentInfo = pop-up content text

-- API.POST -----------------------------------------------------------------
If you want to send an api.post message to your smartphone with the possibillity
to start a scene you send this example string to apiPostMessage variable.
--
fibaro:setGlobal("apiPostMessage","Activate alarm?:Nobody at home:RUN_CANCEL:283")
--
String translate: (message, title, category, data)
message = the message
title = the title
category = the value for what to do, can be RUN_CANCEL or YES_NO
data = sceneID to run

-- SONOS TTS ----------------------------------------------------------------
Drop your message to sonosTTS variable and this scene will send it to
your Sonos player as TTS
--
fibaro:setGlobal("sonosTTS", "YOUR MESSAGE")
--

--]]

What's New in Version 1.0.0   See changelog

Released

No changelog available for this version.

 Share


Other Files from jompa68


User Feedback

You may only provide a review once you have downloaded the file.


MARCUSP.I.L

   1 of 1 member found this review helpful 1 / 1 member

Hello to all, I am just starting my journey with Lua and want to thank all of the Forum's members. Your work and suggestions are of tremendous help and only increase my interest in all things Lua.

I am slowly working my way through basics and hope with time i will grasp the slight more difficult programming...

I have downloaded several Lua scenes and am adjusting them to meet my needs. Thanks again to all who contribute ( i can only imagine how many hour you put into your work), and to Fibaro for supporting this Forum.

 

Link to review
×
×
  • Create New...