| MainLobby (3P) Discussions related to the MLHSPlugin: MainLobby-HomeSeer Two-Way Communication 3rd party Plug-In for HomeSeer |

October 25th, 2009, 01:17 PM
|
|
Seer Deluxe
|
|
Join Date: Nov 2001
Location: Chatham, NJ, USA
Posts: 338
|
|
Fast mode?
Do variables update in fast mode? I am trying to run an automation rule on a plugin variable in Main Lobby but it is not working. I posted on the Cinemar board and they said that it won't work if it is updating in "fast" mode. Is there something I can do to adjust this for this variable? Thanks
|

October 31st, 2009, 12:04 PM
|
 |
Super Seer
|
|
Join Date: Apr 2001
Location: Minneapolis, MN
Posts: 2,113
|
|
Depends which version you are using.
I published two beta plugins recently. The first uses fast mode and the second doesn't.
I would do all of my logic in HomeSeer as it is faster.
|

October 31st, 2009, 01:02 PM
|
|
Seer Deluxe
|
|
Join Date: Nov 2001
Location: Chatham, NJ, USA
Posts: 338
|
|
I think I have to do this in MainLobby. I storing a decimal number (currency) in Homeseer and I want to display it in MainLobby. Homeseer status variables don't allow decimal values so I am multiplying the number by 100. Then in MainLobby I am dividing by 100 through an automation rule. But it is not working - according to feedback on the Cinemar board because it is using a fast update so the automation rule doesn't run? Thoughts?
|

November 1st, 2009, 08:30 AM
|
 |
Super Seer
|
|
Join Date: Apr 2001
Location: Minneapolis, MN
Posts: 2,113
|
|
You certainly can do this in HS. Probably even easier as you can use VBSCRIPT. Give me what you got in ML and HS and I will tell you what to do.
|

November 1st, 2009, 09:10 AM
|
|
Seer Deluxe
|
|
Join Date: Nov 2001
Location: Chatham, NJ, USA
Posts: 338
|
|
It's not at all complicated, I have a scene that allows the kids to track their chores and allowance! For example, the homeseer script keeps track of the allowance and stores the variable as follows:
AnnaAllowance = AnnaAllowance * 100
hs.SetDeviceValue "W47", Ccur(AnnaAllowance)
I am multiplying the amount by 100 because the Homeseer device cannot store a decimal number.
Then I am displaying this value in MainLobby through the plugin. I added an automation rule to MainLobby on this variable to divide it by 100 before displaying it.
Whenever mlhsplugin_w47_value changes value
Then MLServeCmd.MLMath|Divide~{{mlhsplugin_w47_value}}~100
This doesn't work, based on what i have figured out from posting in the forum, because the variable from homeseer is being updated in fast mode and therefore the automation rule does not run on it?
|

November 3rd, 2009, 07:03 PM
|
 |
Super Seer
|
|
Join Date: Apr 2001
Location: Minneapolis, MN
Posts: 2,113
|
|
Why store it as a value? Store it as a string and then you can do whatever you want. Use HS.SetDeviceString instead!
When doing the math, retrieve it and convert it to a integer, do the math, and then store it again as a string. If you need to format it to the appropriate decimal places then use the vb format command.
|
| Thread Tools |
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
All times are GMT -4. The time now is 09:26 PM.
|