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

August 2nd, 2007, 11:43 PM
|
 |
Super Seer
|
|
Join Date: Apr 2001
Location: San Diego, CA
Posts: 1,783
|
|
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.
|

August 3rd, 2007, 07:29 AM
|
 |
OverSeer
|
|
Join Date: Jan 2001
Location: Huntsville, Al. USA
Posts: 35,037
|
|
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
|

August 3rd, 2007, 10:15 AM
|
 |
OverSeer
|
|
Join Date: Dec 2001
Location: Bend, Oregon
Posts: 3,250
|
|
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
|

August 3rd, 2007, 11:47 PM
|
 |
Super Seer
|
|
Join Date: Apr 2001
Location: San Diego, CA
Posts: 1,783
|
|
Quote:
Originally Posted by Bill Brower
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.
|

August 4th, 2007, 01:01 AM
|
|
Seer Deluxe
|
|
Join Date: Apr 2001
Location: Columbus OH
Posts: 391
|
|
You can also use the command hs.SetDeviceLastChange.
jim
|

August 4th, 2007, 11:09 AM
|
 |
OverSeer
|
|
Join Date: Dec 2001
Location: Bend, Oregon
Posts: 3,250
|
|
Quote:
Originally Posted by Stevech
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
|

August 4th, 2007, 04:55 PM
|
 |
Super Seer
|
|
Join Date: Apr 2001
Location: San Diego, CA
Posts: 1,783
|
|
Quote:
Originally Posted by jsteed
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.
|

October 26th, 2011, 09:43 AM
|
 |
Seer Deluxe
|
|
Join Date: Dec 2005
Location: Europe
Posts: 167
|
|
Quote:
Originally Posted by Rupp
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
|

October 26th, 2011, 09:49 AM
|
 |
OverSeer
|
|
Join Date: May 2007
Location: Nova Scotia, Canada
Posts: 2,882
|
|
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.
|

October 26th, 2011, 09:57 AM
|
 |
OverSeer
|
|
Join Date: Jan 2001
Location: Huntsville, Al. USA
Posts: 35,037
|
|
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
|

October 26th, 2011, 10:56 AM
|
 |
OverSeer
|
|
Join Date: May 2007
Location: Nova Scotia, Canada
Posts: 2,882
|
|
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.
|

October 26th, 2011, 12:16 PM
|
 |
Seer Deluxe
|
|
Join Date: Dec 2005
Location: Europe
Posts: 167
|
|
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
|

October 31st, 2011, 09:56 AM
|
|
Seer Deluxe
|
|
Join Date: Feb 2010
Location: netherlands
Posts: 264
|
|
Quote:
Originally Posted by DJF3
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
hspro JillesSomfy cm15a proliphix visonic plugwise with two sticks , rfxcom rts485 aeon Labs Zwave HomePro ZCU201 serial Zwave, Domation Led Interface
|
| Thread Tools |
|
|
| Display Modes |
Linear 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 01:55 AM.
|