Announcement

Collapse
No announcement yet.

Add decimals to device value

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

    Add decimals to device value

    Trying to show a device value in a text field, but the value seems automatically rounded.
    How can I have it show the decimals as well?
    found other similar threads, but couldn't find the exact same scenario.
    Reference ID 2492
    Technology Address home/OpenMQTTGateway_SRFB/PilighttoMQTT
    Status 27.1 = Dim
    Value 27.1 = "27.1"
    String
    using this in text field:

    TEMP [$SCRIPT=&hs.devicevalue("2492")]C

    getting this on screen

    TEMP 27C

    I'd like to see

    TEMP 27.1C

    Thanks for your help

    #2
    Use: TEMP [$SCRIPT=&hs.devicevalueEx("2492")]C
    Jon

    Comment


      #3
      Thanks Jon, works.
      had overlooked the documentation: https://help.homeseer.com/help/hs3/#...es_devicevalue
      Cheers

      Comment

      Working...
      X