Announcement

Collapse
No announcement yet.

Convert payload from Celsius to Fahrenheit

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

  • Convert payload from Celsius to Fahrenheit

    I have a sensor sending a payload in celsius. I put in the expression field:
    "$$PAYLOAD * 1.8 + 32"

    In the device list the value returns 0

    Click image for larger version

Name:	Screen Shot 2018-12-03 at 6.19.15 PM.png
Views:	8
Size:	80.3 KB
ID:	1264051

    Thanks
    Attached Files

  • #2
    Substitution parameter ends in colon. $$PAYLOAD:
    See if that makes a difference.
    Also make certain that the payload is a number. If it has something like "C" suffix then use the regular expression fields to remove the suffix.

    Comment


    • #3
      Thanks. I knew it was something like that. It's working.

      Last time i had empty space in the MQTT Publish Payload Template. Why does "ON " not work? !!@##. Many hours later . . . . "ON" works much better!

      Thanks

      Comment

      Working...
      X