www.homeseer.com

Go Back   HomeSeer Message Board > Developer Support > Scripts & Plug-Ins:Development and Libraries > Script & Plug-In Development

Script & Plug-In Development Discuss scripting for HomeSeer and general VBScript assistance. Use this forum to post incomplete scripts, script snippets or code samples.

Reply
 
Thread Tools Display Modes
  #1  
Old August 2nd, 2007, 11:43 PM
Stevech's Avatar
Stevech Stevech is offline
Super Seer
 
Join Date: Apr 2001
Location: San Diego, CA
Posts: 1,558
Default hs.setDeviceString feature?

I note that

hs.setDeviceString alpha, beta, true

causes, in the HS status web page, the "last change" column goes unchanged when the value of beta matches the prior value stored in alpha by a prior hs.setDeviceString. That is, "last change" is not the time of the last update to hs.setDeviceString but rather the time that the the string differed.

such as:

alpha = "w1"
beta = "79F at 4PM"

If alpha is written to once an hour, and beta doesn't change, then the "last change" column does not reflect how recently alpha was updated.
Reply With Quote
  #2  
Old August 3rd, 2007, 07:29 AM
Rupp's Avatar
Rupp Rupp is offline
OverSeer
 
Join Date: Jan 2001
Location: Huntsville, Al. USA
Posts: 35,038
Default

Steve,
If Beta doesn't "change" then there was no "last change". This is not a "last update" column but a "last change" column.
__________________
-Rupp
Reply With Quote
  #3  
Old August 3rd, 2007, 10:15 AM
Bill Brower's Avatar
Bill Brower Bill Brower is offline
OverSeer
 
Join Date: Dec 2001
Location: Bend, Oregon
Posts: 3,248
Default

If you are just using that device for a display of data, just toggle it on and off like a normal X-10 device and that will update the date.
__________________


~Bill
Reply With Quote
  #4  
Old August 3rd, 2007, 11:47 PM
Stevech's Avatar
Stevech Stevech is offline
Super Seer
 
Join Date: Apr 2001
Location: San Diego, CA
Posts: 1,558
Default

Quote:
Originally Posted by Bill Brower View Post
If you are just using that device for a display of data, just toggle it on and off like a normal X-10 device and that will update the date.
Ah so. I had thought that a virtual device like "w1" could not be turned ON/OFF, despite the presence of the On/Off buttons! That works! Thanks.
Reply With Quote
  #5  
Old August 4th, 2007, 01:01 AM
jsteed jsteed is offline
Seer Deluxe
 
Join Date: Apr 2001
Location: Columbus OH
Posts: 381
Default

You can also use the command hs.SetDeviceLastChange.
jim
Reply With Quote
  #6  
Old August 4th, 2007, 11:09 AM
Bill Brower's Avatar
Bill Brower Bill Brower is offline
OverSeer
 
Join Date: Dec 2001
Location: Bend, Oregon
Posts: 3,248
Default

Quote:
Originally Posted by Stevech View Post
Ah so. I had thought that a virtual device like "w1" could not be turned ON/OFF, despite the presence of the On/Off buttons! That works! Thanks.
Glad it worked. I was doing the same thing for my displays until MainLobby came along.
__________________


~Bill
Reply With Quote
  #7  
Old August 4th, 2007, 04:55 PM
Stevech's Avatar
Stevech Stevech is offline
Super Seer
 
Join Date: Apr 2001
Location: San Diego, CA
Posts: 1,558
Default

Quote:
Originally Posted by jsteed View Post
You can also use the command hs.SetDeviceLastChange.
jim
I'll use that.
I have virtual devices for
24 hour low and high temperature and the time they occurred
current temperature/humidity
Rain accumulation
caller ID

I keep the last 24 hourly readings in the Windows registry. I guess I could do so in HS but I have yet to look for how to assure it's persistent.
and a all-time history in a disk file. I could retrieve the last 24 readings from the disk file, but I assumed (!?) that this was a lot of CPU and disk activity, given the history I have is years old and large, and it's not in a DBMS, just a flat file.
Reply With Quote
  #8  
Old October 26th, 2011, 09:43 AM
DJF3's Avatar
DJF3 DJF3 is offline
Seer Deluxe
 
Join Date: Dec 2005
Location: Europe
Posts: 175
Default

Quote:
Originally Posted by Rupp View Post
Steve,
If Beta doesn't "change" then there was no "last change". This is not a "last update" column but a "last change" column.
This should be in the documentation... Spend 2 hours last night before I saw this discussion...

DJ
__________________

...projects, scripts & tips: http://www.domoticaworld.com
Reply With Quote
  #9  
Old October 26th, 2011, 09:49 AM
Wadenut's Avatar
Wadenut Wadenut is offline
OverSeer
 
Join Date: May 2007
Location: Nova Scotia, Canada
Posts: 2,889
Default

There are many things that are not up to date in the documentation, or in the help files... leading to much frustration, as voiced on this forum repeatedly, as well as wasted time. Just another T HST hasn't crossed.
__________________
Location: 45° 5' 49.27" N 64° 24' 49.96" W

Automate everything, modify the rest... but remember... For every action, there is an equal and unexpected reaction.
Reply With Quote
  #10  
Old October 26th, 2011, 09:57 AM
Rupp's Avatar
Rupp Rupp is offline
OverSeer
 
Join Date: Jan 2001
Location: Huntsville, Al. USA
Posts: 35,038
Default

Come on now. Crossed T from a question that hasn't been asked since 2007. That's funny.

If you find anything missing from the HomeSeer help files please put in a help desk request using the Report a Bug from the Blue support link above.
__________________
-Rupp
Reply With Quote
  #11  
Old October 26th, 2011, 10:56 AM
Wadenut's Avatar
Wadenut Wadenut is offline
OverSeer
 
Join Date: May 2007
Location: Nova Scotia, Canada
Posts: 2,889
Default

I didn't notice the date. My bad. I was responding to the last post.
I had a similar experience recently looking for up-to-date information on scripting for Z-Wave Thermostats in the help. I finally found what I needed, digging through the Developers Kit. The correct info there either didn't exist in the Online help, or conflicted with it.

No offense, but Bug reports; while they might be noticed; are seldom answered.
__________________
Location: 45° 5' 49.27" N 64° 24' 49.96" W

Automate everything, modify the rest... but remember... For every action, there is an equal and unexpected reaction.
Reply With Quote
  #12  
Old October 26th, 2011, 12:16 PM
DJF3's Avatar
DJF3 DJF3 is offline
Seer Deluxe
 
Join Date: Dec 2005
Location: Europe
Posts: 175
Default

Here's a thought:

Allow (registered) HS users to provide feedback on each HS help page. Someone at HS will then review and make changes....

That could improve doc quality by 1000's of %..

Cheers
DJ
__________________

...projects, scripts & tips: http://www.domoticaworld.com
Reply With Quote
  #13  
Old October 31st, 2011, 09:56 AM
wetlip wetlip is offline
Seer Deluxe
 
Join Date: Feb 2010
Location: netherlands
Posts: 308
Default

Quote:
Originally Posted by DJF3 View Post
Here's a thought:

Allow (registered) HS users to provide feedback on each HS help page. Someone at HS will then review and make changes....

That could improve doc quality by 1000's of %..

Cheers
DJ

excellent thougt, the help pages ar a littlebit for the superseers
__________________
wetlip

hs3 pro BuienRadarGps Plugin JillesSomfy Plugin cm15a proliphix Plugin visonic plugwise with two sticks , rfxcom rts485 aeon Labs Zwave HomePro ZCU201 serial Zwave, Domation Led Interface, PhilipsHue Plugin
Reply With Quote
Reply

Bookmarks

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 04:32 AM.

Untitled Document
NEW!
New How-To's
New Products

HomeSeer Z-Troller"
MyHomeSeer-Connect Service

Copyright HomeSeer Technologies, LLC