Announcement
Collapse
No announcement yet.
Discussion for Family Status Manager Script
Collapse
X
-
GenevaDudeTags: None
-
Ok I have changed everything that should be. (I think) I created my devices N1 to N3 simply naming then peoples names like Kirk. Using House as location then I created virtual devices starting at N17. Naming like shown Kirk Status. location is Home. I chnged all E house codes in script to N however when I hit button N1 on on my keypad it does not log anything or do anything. The only thing I show in the log is the usualle N1 (House Kirk) N On
then N1 On dim: 0 extra 0. I have attatched the script. Have I missed something?Attached Files
Comment
-
GenevaDude
Kirk,
In Lines 56 - 59, you have:
Const Member1 = "House Kirk Status"
Const Member2 = "House Kelley Status"
Const Member3 = "House Jesse Status"
Const Member4 = "House Justin Status"
Since you named the location as Home, they should be:
Const Member1 = "Home Kirk Status"
Const Member2 = "Home Kelley Status"
Const Member3 = "Home Jesse Status"
Const Member4 = "Home Justin Status"
Or, change House to Home. I think that's all you need to do right now. The rest looks fine.
Your next step is to train the family. I'm not so successfult at that so far.
regards,
GenevaDude
Comment
-
GenevaDude
One other thing that needs to be changed is in line 73:
aCmd=hs.stringitem(aCommand,3,";") ' look for on or off
change to:
aCmd=cInt(hs.stringitem(aCommand,3,";")) ' look for on or off
This is necessary for the case statement to function properly.
I will post an update.
regards,
GenevaDude
Comment
-
Ok I must be missing something beacuse it still does not do anything. Do I have to create an event to call this script or is it just supposed to use the on or off command from my keypad?
Do I name my N1 device Kirk Status with House as my location ( I type that wrong in my last post. My location is House, not Home) or do I name the Virtual device as that. I named My actual device Kirk and my Virtual as Kirk Status.
Comment
-
GenevaDude
Kirk,
Oops! I neglected to mention that you need to create an event that triggers on the HouseCode. Set the Device to Any. On the Scripts/Speech Tab, select the script "FamStatManager.txt".
I will update the instructions and repost them tomorrow. But this should get you going.
regards, :d
GenevaDude
Comment
-
ajgriglak
I was going to try to script this on my own until I ran across your script tonight. I haven't even downloaded the script, just read through this thread...
I'm a big believer in toggling things instead of having an on AND off button...
For example: instead of using A1 off to leave and A1 on to come home, why not use A1 off for user1, and A1 on for user2. When A1 off is pushed, it toggles the state of user1 - if home, then set to away; if away, then set to home.
This would double the amount of switches available on a stick-a-switch.
What do you think?
--------------
-=A.J. Griglak
Comment
-
GenevaDude
Hello A.J.
Yes, that could be a good solution, but it would rely on good discipline and/or some kind of immediate or obvious feedback. There are several scenarios that might cause the system to come out of sync.
1. If the signal was not received. Perhaps due to an overlap of transmissions between devices, or a weak signal. Or even if the trigger was "doubled up" somehow.
2. If the user forgot to press the switch one time or maybe didn't press it quite right.
But these situations can occur any time, even with my script. I noticed during testing that a few times when I pressed the button, and saw the LED blinking, that it didn't register. And, I know I have excellent signal strength where my switch is located.
It would be relatively easy to setup a toggle effect by a conditional test whenever the button was pressed. You could use the virtual device as the test.
example:If device = "Away" then device = "Home"
regards,
GenevaDude
Comment
Comment