Announcement

Collapse
No announcement yet.

Updating virtual devices and time-stamping last change field

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Updating virtual devices and time-stamping last change field

    I was wondering if there's any way to add a time-stamp to virtual device so I know when they get updated. Most of my virtual devices have "Last Change = Unknown". For example, one of my scripts is to update HSP messages on a virtual device like:

    hs.SetDeviceString "V6","<img src='small_phone.gif' align=absmiddle>" & " " & intCount & " New Message(s)"

    I wonder where I'd put the time-stamp line when it gets updated. Thanks for your help,

    Simon

    #2
    We just discussed this and found out that if you simply add , True to the end of the hs.SetDeviceString it will update the last change field.

    For example"
    hs.SetDeviceString "V6","<img src='small_phone.gif' align=absmiddle>" & " " & intCount & " New Message(s)", True

    -Rupp
    ...One Nation Under GOD, Indivisible, With Liberty And Justice For All.
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      Rupp,

      Thanks for your response. It worked perfectly. However, it seems UltraView2 doesn't report the right elasped time. It seems like it's taken SYSTEM UP TIME as last change and calculate from there. However, this affects virtual devices only. Anything from A to M seems to be fine.

      Thanks again for your help,

      Simon

      Comment

      Working...
      X