Announcement

Collapse
No announcement yet.

Xiaomi Temperature Sensor Conversion

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

  • AutomatedJim
    started a topic Xiaomi Temperature Sensor Conversion

    Xiaomi Temperature Sensor Conversion

    Very easy pairing the Xiaomi Temperature Sensor. Trying to use the conversion expression from mcsMQTT manual. No matter what I try it displays zero.

    "4.1.15 How do I change Payload temperature from Centigrade to Fahrenheit
    A transformation can be performed on a payload before it is stored into a HS Device. For textual transformation regular expressions can be used most easily. For numeric transformation then numeric expressions can be used. In this case it will be a numeric expression “$$PAYLOAD * 1.8 + 32” that is entered on the Expression row of the Edit tab."

    I have tried “$$PAYLOAD * 1.8 + 32” and $$PAYLOAD * 1.8 + 32 I tried just $$PAYLOAD to see if it would display the original Centigrade value, still zero.

    I am entering this on the edit tab in the field labeled "Expression"

    What am i doing wrong?

    Thanks,

    Jim

  • AutomatedJim
    replied
    No problem, everything worked out in the end.

    Leave a comment:


  • Michael McSharry
    replied
    Should have fixed the manual the first time to include the colon at the end. Sorry about that.

    Leave a comment:


  • AutomatedJim
    replied
    Nevermind, got it working. Found this post https://forums.homeseer.com/forum/li...-to-fahrenheit

    Should use search first.....

    Leave a comment:

Working...
X