[quote=“robie, post:20, topic:200378”]This is great and many thanks! Is there a way to do this (time stamp) without editing the startup lua? (for the ff reasons - i will use it on several scenes, less software changes to the vera system and confined scripting to the scenes)
[quote=“ZW-Tom, post:19, topic:200378”]I posted a new update with my original post on page 1. Let’s you send notifications from any scene by just using the following as an example:
AlexaMessage(“Someone is hiding behind the curtain.”)
If you put it in your startup Lua, you never need to run the scene again. You only use the call … example ie:
AlexaMessage(“ZW-Tom sure is a helpful old dude. Just ask him. I think he will agree.”)
When you create a scene in Vera, it does not activate until it is called, so unless the scene is run one time, the call does not work. After it is run with Lua startup, any call from another function using AlexaMessage(“Say this”) will work as long as the scene has run one time. This is an easy way of doing Lua code without all the other lua junk.
If you want the use the code confined to a particular group of scenes, paste the AlexaMessage code into your desired scene and put the AlexaMessage(“Say this”) at the bottom of the code which will call the function every time that scene is triggered. (This process adds alot of code every time you send a message. Not very desiriable.)