Announcement

Collapse
No announcement yet.

424:Object required error - resetting accumulated values

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

    424:Object required error - resetting accumulated values

    How to use script methods

    i want to track the power usage over last 7 days, so I made 7 virtual devices 9P1-P7), at midnight, I copy 6-77 5-6, etc. I then want to reset the accumulated value on ECM1240

    I tried the following (assuming this works with the 1240):

    Code:
    Sub Main
        hs.setdevicestring "P7", hs.devicestring("P6")
        hs.setdevicestring "P6", hs.devicestring("P5")
        hs.setdevicestring "P5", hs.devicestring("P4")
        hs.setdevicestring "P4", hs.devicestring("P3")
        hs.setdevicestring "P3", hs.devicestring("P2")
        hs.setdevicestring "P2", hs.devicestring("P1")
        hs.setdevicestring "P1", hs.devicestring("]6")
    hs.plugin("BLPowerMonitor").ResetEcm1220AccumulatedData()
    
    End Sub
    I get this error:

    424:Object required in line 10 More info: Object required

    Can anyone tell me how to fix?

    Regards

    mark
    ________________________

    Dell Zino HD - HSPRo 2.x
    HSTouch - iPhone 3GS, 4S, iPad2 and iPad 3, 3xKindle Fire (Wall mounted)
    2 x Brultech ECM1240 with UltraECM
    USB UIRT
    Cooper Aspire Z-Wave Switches
    WGL800 w ACRF2 and 3xDS10a (Sump Level/Activity sensing)
    HM ST812-2 Flood Sensor
    HSM100 - Motion Detector with Light and Temperature
    2GIG Thermostat
    BLDSC - Alarm Plug-in
    BLUPS
    UltraLog (SQL2008)
    Jon00 Plugins
    Host XR3 BT and Jon00 BT Proximity
    Global Cache IP2IR
    Foscam FI8918W

    #2
    Ah yes. That call will likely not work anymore now that I am using the Brultech engine app to get the data.
    Cheers,
    Bob
    Web site | Help Desk | Feature Requests | Message Board

    Comment


      #3
      Hi Bob

      Thanks for the reply. So does that mean there's no way in either the plug-in or the engine to automatically reset the accumulated value each night?
      ________________________

      Dell Zino HD - HSPRo 2.x
      HSTouch - iPhone 3GS, 4S, iPad2 and iPad 3, 3xKindle Fire (Wall mounted)
      2 x Brultech ECM1240 with UltraECM
      USB UIRT
      Cooper Aspire Z-Wave Switches
      WGL800 w ACRF2 and 3xDS10a (Sump Level/Activity sensing)
      HM ST812-2 Flood Sensor
      HSM100 - Motion Detector with Light and Temperature
      2GIG Thermostat
      BLDSC - Alarm Plug-in
      BLUPS
      UltraLog (SQL2008)
      Jon00 Plugins
      Host XR3 BT and Jon00 BT Proximity
      Global Cache IP2IR
      Foscam FI8918W

      Comment


        #4
        I believe you can reset it in the engine app but I do not know how to do it off hand.
        You could contact Paul Brule. I am sure he knows because he wrote the engine app.
        Cheers,
        Bob
        Web site | Help Desk | Feature Requests | Message Board

        Comment

        Working...
        X