Hi, I created a script for an action which is watching the status changing of a Homeseer device. It works very good. My Prontos play a .wav file when a specific device (eg E7) changes a specific status (eg ON/OFF). A want this action to run in every other action of the Pronto, I mean that the Pronto could play this .wav file after the device status of E7 has changed at every currently running action (eg TV, DVD, weather...) . Is this possible also when the Pronto is sleeping and how to do this in detail ?
In theory it is possible for every action but you will have to modify all your activities/pages to have the Homeseer monitor script in place. If using PEP2, I would suggest putting your script into a library and then activating it on the activities.
Now, while pronto is sleeping is another issue. There have been discussions on this (search for 55 seconds and I think you will find hits). It may in theory be possible to do this but I would not recommend it unless your remote is docked 100% of the time. When docked, scripts continue to run and you would have no issues.
When not docked, the CPU shuts down and only wakes up around every 55-57 seconds to keep WIFI active. If, by chance your script gets a chance to run during that time, then the WAV play would happen. If not, then it won't.
I'm still working on my Homeseer project. I use the script CF.activity().label = "ERROR" to change the activity name (eg TV) to ERROR if a Homeseer specific Homeseer device is triggered. Now I also want to change the color of the label "ERROR". I tried CF.activity().color and CF.activity().bgcolor , but this doesn't go. Is it possible to change the Color of the word ERROR and the background for this ? If currently no error exists, the Pronto will show the current activity name in the upper left corner (white color). Regards, Fischi
See appendix D of the Dev Guide for pre-defined tags. Unfortunately, the activity label is not one of them. So, you will likely not be able to change this via script. If a tag were available, you'd be able to get to it ONLY by using GUI.widget(). That being said, your only option to programmatically change colors may be able to put a label on each of your pages over the existing System Widget and set the name in each page to whatever is the contents of CF.activity().label. Once you have your own widget, you can do what you like.
Note that you can likely change colors by editing the item in PEP2/3 on the system page but this will not work from script.
I also have a thread here somewhere that discusses the differences between GUI.widget and CF.widget. Might come in handy down the road for you.
Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.