Announcement

Collapse
No announcement yet.

Enums.CAPIControlType.TextBox_Number Has (value) displayed.

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

    Enums.CAPIControlType.TextBox_Number Has (value) displayed.

    Can't figure this out. What am I doing wrong? Everything functions, just has (value) displayed. OCD won't let it be...


    Click image for larger version

Name:	keypad.png
Views:	100
Size:	134.8 KB
ID:	1573105
    PHP Code:

    Case "Phone"

    Dim SPair As VSPair
    Dim GPair 
    As VGPair

    SPair 
    = New VSPair(ePairStatusControl.Both)
    SPair.PairType VSVGPairType.Range
    SPair
    .RangeStart 0
    SPair
    .RangeEnd 9999999
    SPair
    .RangeStatusPrefix ""
    SPair.RangeStatusSuffix ""
    SPair.IncludeValues False
    SPair
    .Render Enums.CAPIControlType.TextBox_Number

    hs
    .DeviceVSP_AddPair(dv.Ref(hs), SPair)

    GPair = New VGPair
    GPair
    .PairType VSVGPairType.SingleValue
    GPair
    .Set_Value 0
    GPair
    .Graphic "/images/HomeSeer/contemporary/unlocked.gif"

    hs.DeviceVGP_AddPair(dv.Ref(hs), GPair)

    GPair = New VGPair
    GPair
    .PairType VSVGPairType.SingleValue
    GPair
    .Set_Value 100
    GPair
    .Graphic "/images/HomeSeer/contemporary/locked.gif"

    hs.DeviceVGP_AddPair(dv.Ref(hs), GPair)

    ​ 
    3.0.0.548: HS3PRO - 3.0.5.10: AIAlert - 2.1.1.0: APIWeather - 2.0.64.0: BLBackup - 2.0.45.0: BLLAN - 2.0.37.0: BLRoombaWifi - 1.0.0.3: DevLog - 1.2.5.15: KeyPad - 3.0.2.25: NetCAM - 0.0.0.52: Pushover 3P - 3.0.0.5: SendVFD - 1.0.0.3: Tiles - 3.0.11.0: Z-Wave

    #2
    Is DeviceString blank? It has display priority over VSP.

    Comment


      #3
      Yes, it is clear. Never set in this scenario. I tried Enums.CAPIControlType.TextBox_String too...
      This is for pin input from hs Mobile so TextBox_String gives an alpha keyboard upon input.
      TextBox_Number gives a numeric keyboard.

      I'm just wanting to remove the word, (value), from above the textbox. It shows in HS Mobile.



      Click image for larger version  Name:	ds.png Views:	0 Size:	61.0 KB ID:	1573108

      As an aside, this website has more errors than a blind baseball team...
      Last edited by Jebus; October 28, 2022, 11:30 PM. Reason: observation
      3.0.0.548: HS3PRO - 3.0.5.10: AIAlert - 2.1.1.0: APIWeather - 2.0.64.0: BLBackup - 2.0.45.0: BLLAN - 2.0.37.0: BLRoombaWifi - 1.0.0.3: DevLog - 1.2.5.15: KeyPad - 3.0.2.25: NetCAM - 0.0.0.52: Pushover 3P - 3.0.0.5: SendVFD - 1.0.0.3: Tiles - 3.0.11.0: Z-Wave

      Comment


        #4
        Try this:

        Code:
        SPair = New VSPair(ePairStatusControl.Both)
        SPair.PairType = VSVGPairType.SingleValue
        SPair.Value = 0
        SPair.IncludeValues = False
        SPair.Render = Enums.CAPIControlType.TextBox_Number
        Jon

        Comment


          #5

          Click image for larger version  Name:	stat.png Views:	0 Size:	69.0 KB ID:	1573146


          HS Mobile wants​ all possible device control values presented. Basically if I want to have all 9999999 numbers available for pin input in Mobile, it has to be a range in the device.
          If I present a single value, or two values only, say 0 and 100, HSMobile errors when any other value is input. I'm sure I'm missing something...


          Click image for larger version

Name:	single.png
Views:	103
Size:	65.0 KB
ID:	1573149

          JSON controldevicebyvalue ref 9596 value not found
          3.0.0.548: HS3PRO - 3.0.5.10: AIAlert - 2.1.1.0: APIWeather - 2.0.64.0: BLBackup - 2.0.45.0: BLLAN - 2.0.37.0: BLRoombaWifi - 1.0.0.3: DevLog - 1.2.5.15: KeyPad - 3.0.2.25: NetCAM - 0.0.0.52: Pushover 3P - 3.0.0.5: SendVFD - 1.0.0.3: Tiles - 3.0.11.0: Z-Wave

          Comment

          Working...
          X