www.homeseer.com

Go Back   HomeSeer Message Board > User Interface Support > Touchscreen Plug-ins > MainLobby (3P)

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

Reply
 
Thread Tools Display Modes
  #1  
Old October 25th, 2009, 01:17 PM
simonmason simonmason is offline
Seer Deluxe
 
Join Date: Nov 2001
Location: Chatham, NJ, USA
Posts: 338
Default 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
Reply With Quote
  #2  
Old October 31st, 2009, 12:04 PM
Krumpy's Avatar
Krumpy Krumpy is offline
Super Seer
 
Join Date: Apr 2001
Location: Minneapolis, MN
Posts: 2,113
Default

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.
Reply With Quote
  #3  
Old October 31st, 2009, 01:02 PM
simonmason simonmason is offline
Seer Deluxe
 
Join Date: Nov 2001
Location: Chatham, NJ, USA
Posts: 338
Default

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?
Reply With Quote
  #4  
Old November 1st, 2009, 08:30 AM
Krumpy's Avatar
Krumpy Krumpy is offline
Super Seer
 
Join Date: Apr 2001
Location: Minneapolis, MN
Posts: 2,113
Default

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.
Reply With Quote
  #5  
Old November 1st, 2009, 09:10 AM
simonmason simonmason is offline
Seer Deluxe
 
Join Date: Nov 2001
Location: Chatham, NJ, USA
Posts: 338
Default

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?
Reply With Quote
  #6  
Old November 3rd, 2009, 07:03 PM
Krumpy's Avatar
Krumpy Krumpy is offline
Super Seer
 
Join Date: Apr 2001
Location: Minneapolis, MN
Posts: 2,113
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 09:26 PM.


Copyright 1998-2008 HomeSeer Technologies, LLC