Jump to content
  • 0

Data konvertering


Lars1
 Share

Question

Jeg har en udfordring med data konvertering i OpenHAB. Min Siemens LOGO8 PLC sender temperature som heltal, hvilket betyder at jeg er nød til at divider med 10 i OpenHAB får at få den rette temperatur. F.eks. når PLC'en rapporter 305 grader, er temperaturen reelt 30,5 grader. Jeg kan imidlertid ikke få data konverteringen til at fungere.

Item er konfigureret med følgende linie

Number:Temperature    Logo8_AM1 "Returløb bad [%.1]"     { channel="plclogo:analog:LOGO8:LOGO8-Analog-Marker:AM1" [profile="transform:JS", function="LOGO8-0.1.js"] }

men der sker absolut ingen konvertering. Item bliver bare opdateret med den rå værdi. Hvis jeg opretter item via GUI, virker konverteringen fint, men jeg fortrækker konfigurations filer.

Nogen som kan fortælle mig hvad jeg gør forkert?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

Privacy Policy og We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

1200x630bb.png

ok