Announcement

Collapse
No announcement yet.

Trigger on hi usage?

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

  • Trigger on hi usage?

    I want to trigger even on exceeding a certain power KW.
    I assume us conditional of "In the range of nn...nn".

    However KW output Scales in watts, then KW as Value exceeds 1000 wats.

    How do I act upon a numerical watt value if the addin returns number + text of wats or KW?

  • #2
    Device values can not store text. Did you check the deviceValue of the device in question?
    -Rupp
    sigpic

    Comment


    • #3
      Can't you just add the extra three zeros to the range?

      If you want to trigger on usage higher than, say 10 kW, you put would put the range to "10...100". Now you just put "10000...100000" for example.
      HSPro 3.0.0.458, Z-NET with Z-wave plugin 3.0.1.190, RFXCOM + 2x RFXtrx433E, HSTouch, Squeezebox plugin, iTach IP/WF2IR & GC-100-6 with UltraGCIR, BLDenon, NetcamStudio, Jon00s Webpage builder, Harmony Hub plugin, SCSIP (with FreePBX), Arduino plugin, IFTTT, Pushalot plugin, Device History plugin.
      Running on Windows 10 (64) virtualized
      on ESXi (Fujitsu Primergy TX150 S8).
      WinSeer (for Win10) - TextSeer - FitbitSeer - HSPI_MoskusSample

      Are you Norwegian (or Scandinavian) and getting started with HomeSeer? Read the "HomeSeer School"!

      Comment


      • #4
        I know you can use scripting to do this, if thats an option for you:
        PHP Code:
        If (CInt(hs.DeviceValue("A1")) >= 3000 And CInt(hs.DeviceValue("A1")) < 7000Then 
        ''do something
        End 
        If 
        Replace A1 with the device code for the Realtime Usage All Channels(KW)
        HS3Pro Running on a Raspberry Pi3
        64 Z-Wave Nodes, 168 Events, 280 Devices
        UPB modules via OMNI plugin/panel
        Plugins: Z-Wave, BLRF, OMNI, HSTouch, weatherXML, EasyTrigger
        HSTouch Clients: 3 Android, 1 Joggler

        Comment


        • #5
          Thanks rmasonjr. Your code snippet put me on the right track.



          Phil

          Comment


          • #6
            Originally posted by PhTMan View Post
            Thanks rmasonjr. Your code snippet put me on the right track.



            Phil
            No problem. I use this particular scripting to change font colors on my HSTouch display based on kW values. If my family sees green on the display, then the kW are below 3kw. Yellow is 3kW - 7kW. Red is anything above 9kW. Dad gets progressively irate based on the colors
            HS3Pro Running on a Raspberry Pi3
            64 Z-Wave Nodes, 168 Events, 280 Devices
            UPB modules via OMNI plugin/panel
            Plugins: Z-Wave, BLRF, OMNI, HSTouch, weatherXML, EasyTrigger
            HSTouch Clients: 3 Android, 1 Joggler

            Comment

            Working...
            X