Announcement

Collapse
No announcement yet.

Jon00 Cumulative Uptime Monitor for Homeseer 3 & Homeseer 4

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

    Jon00 Cumulative Uptime Monitor for Homeseer 3 & Homeseer 4

    This script enables you to monitor the cumulative on times for devices monitored by Homeseer. This includes lighting, HVAC, network devices etc depending on your setup and plug-ins installed. The timer for each device will only increment when it is on and stop when it is off. This will continue until it is reset.

    Features:

    » Allows monitoring of cumulative uptimes for devices monitored by Homeseer
    » Allows up to 3 different triggers when the cumulative uptime has been reached
    » On/off times can be set directly or using a device value with definable on and off ranges
    » Uptimes can be reset globally or individually as required
    » Virtually unlimited number of devices can be defined from a single ini file
    » Virtual devices are automatically created showing the on/off status of the monitored device and current uptime
    » The uptimes in the virtual device can be shown in numerous day/hour/minute/second formats
    » Additional virtual devices can also optionally show up to 3 trigger values which are then used to trigger events etc
    » Additional virtual devices can also optionally show an up counter to display the number of changes from off to on

    Applications:

    » Monitoring and controlling the amount of time the kids have been watching the TV or using games consoles.
    » Tracking on times for equipment, lighting, HVAC, filter changes etc
    » Tracking how long temperatures go above and/or below preset values.

    This script was written as the request of a Homeseer user who wanted to limit his kids TV and/or Playstation usage times per day.

    You can download it from my site (Click on my banner below).
    Can't see my banner? Check your forum settings!

    Any problems, please let me know.

    Click image for larger version  Name:	UMonitor.PNG Views:	0 Size:	44.9 KB ID:	1419341Click image for larger version  Name:	UMonitorHS4.PNG Views:	0 Size:	115.7 KB ID:	1419342
    Jon


    #2
    That's cool!!! Monitoring AC is a great idea!!
    Hector
    ____________________________________
    Win.2003 OS, HS3
    BLDSC,BLstat,BLRadar,BLRamdom,BLOccupied
    BLups,BLrain8,HSTouch,Ultrajones Weatherbug,
    MyTrigger,ACRF2,W800,Zwave
    AP800,Honeywell Stat

    Comment


      #3
      This is great Jon, no doubt you have already seen me jump to get it and install it on my system , so many things I can monitor, no where near enough time to set everything up to monitor lol.

      I tried to install it with a Jon00RCCNM device (which is monitoring my ISP's gateway IP address), and have set it in the event log so if the device has its value set or changed it triggers the script with the "Main" sub, and "1V" parms but I get the following error:

      Aug-11 11:07:21 AM Jon00_Uptime Error: Unrecognised or no device number specified in optional parameters - script terminated

      My INI file's Device1 section is as follows, note I have also tried setting the Device to either the device address "Jon00-NM-N045" or the Device referenceID (298) and have tried DeviceOnRange to 1 but it still errored:

      PHP Code:
      [Device1]
      Title=Internet
      TextBeforeValue
      =Internet Uptime
      TextAfterValue
      =
      TimeStringFormat=1
      ShowCounter
      =1
      TriggerValueUnit
      =3
      DeviceValueUnit
      =3
      TriggerValue1
      =
      TriggerValue2=
      TriggerValue3=
      Device=
      DeviceOnRange=
       = 

      Thanks Jon!
      HS3 PRO, Win10, WeatherXML, HSTouch, Pushover, UltraGCIR, Heaps of Jon00 Plugins, Just sold and about to move so very slim system.

      Facebook | Twitter | Flickr | Google+ | Website | YouTube

      Comment


        #4
        Hi Travis,

        Code:
        Rather than 1:DV, you need to use 1;DV
        Then put the following in the Ini:

        Device=Jon00-NM-N045
        DeviceRange=1
        Jon

        Comment


          #5
          Thanks Jon, worked a treat,

          Just an FYI, on page 4 of your documentation it references 3V (i think) Murphy's law said I jumped to that page and didn't read the one before it properly lol,

          Thanks again for another great addition to homeseer!
          HS3 PRO, Win10, WeatherXML, HSTouch, Pushover, UltraGCIR, Heaps of Jon00 Plugins, Just sold and about to move so very slim system.

          Facebook | Twitter | Flickr | Google+ | Website | YouTube

          Comment


            #6
            Thanks,

            Yes, that is a typo...I'll correct that later tonight.
            Jon

            Comment


              #7
              Hello Jon,

              Is there a way to copy the Value from a device to a Virtual device
              I like to copy the Value from the counter value from the uptime counter to another device.



              Thanks Ed

              Comment


                #8
                Ed,

                The counter value is stored as a device value so that can be used. I really need more detail about the other device.
                Jon

                Comment


                  #9

                  Comment


                    #10
                    Ed,

                    Create a new device and then find the reference ID from the Advanced tab.

                    Then run this script.

                    Change the 1234 to your Reference ID number
                    Also change (if necessary) the "Jon00-UM-001D" to the correct uptime counter.

                    PHP Code:
                    Sub Main (ByVal Parm As Object)

                    Dim Newdvref As Integer 1234
                    Dim Counter 
                    As Integer hs.DeviceValue(hs.DeviceExistsAddress("Jon00-UM-001D"False))
                    hs.SetDeviceValueByRef(NewdvrefCounterTrue)
                    hs.SetDeviceString(NewdvrefCounter.ToStringTrue)

                    End Sub 
                    Jon

                    Comment


                      #11
                      Hello Jon,

                      Thanks very much this is working perfect.


                      Ed

                      Comment


                        #12
                        John, I have a doubt in adding the images to the HTML folder, do I copy the whole folder or just the images to the HTML folder?

                        I already have a folder in the html called "images" from another plugin.
                        Hector
                        ____________________________________
                        Win.2003 OS, HS3
                        BLDSC,BLstat,BLRadar,BLRamdom,BLOccupied
                        BLups,BLrain8,HSTouch,Ultrajones Weatherbug,
                        MyTrigger,ACRF2,W800,Zwave
                        AP800,Honeywell Stat

                        Comment


                          #13
                          Bump
                          Hector
                          ____________________________________
                          Win.2003 OS, HS3
                          BLDSC,BLstat,BLRadar,BLRamdom,BLOccupied
                          BLups,BLrain8,HSTouch,Ultrajones Weatherbug,
                          MyTrigger,ACRF2,W800,Zwave
                          AP800,Honeywell Stat

                          Comment


                            #14
                            Jon, I am experimenting with this script to monitor uptime for my AC. questions is how does the script knows what device should it be monitoring and how does it know when its on or off? here is the INI that I filled in for testing but do not get any info to the device created?

                            [Device1]
                            Title=HVAC
                            TextBeforeValue=Running Time
                            TextAfterValue=
                            TimeStringFormat=16
                            ShowCounter=1
                            TriggerValueUnit=3
                            DeviceValueUnit=3
                            TriggerValue1=
                            TriggerValue2=
                            TriggerValue3=
                            Device=
                            DeviceOnRange=

                            I have the event for any device change and the paremeter are:

                            Main
                            1;DV

                            I know I am missing something
                            Hector
                            ____________________________________
                            Win.2003 OS, HS3
                            BLDSC,BLstat,BLRadar,BLRamdom,BLOccupied
                            BLups,BLrain8,HSTouch,Ultrajones Weatherbug,
                            MyTrigger,ACRF2,W800,Zwave
                            AP800,Honeywell Stat

                            Comment


                              #15
                              Hello,


                              you must fil in the device and the device value

                              [Device5]
                              Title=Voordeur
                              TextBeforeValue=
                              TextAfterValue=
                              TimeStringFormat=1
                              ShowCounter=1
                              TriggerValueUnit=3
                              DeviceValueUnit=3
                              TriggerValue1=
                              TriggerValue2=
                              TriggerValue3=
                              Device=361
                              DeviceOnRange=255


                              My front door is device 361

                              and when he is open the value is 255


                              The explanation is in the doc


                              Ed

                              Comment

                              Working...
                              X