Hallo,
ich lese die lese per HTTPMOD die Temperatur im Wohnzimmer ein:
Zitatdefine tado_temp HTTPMOD https://my.tado.com/mobile/1.3/getCurrentState?username=4562_dass&password=dasas 600
attr tado_temp readingsName1 tempist
attr tado_temp readingsName2 tempsoll
attr tado_temp readingsName3 operation
attr tado_temp readingsName4 controlPhase
attr tado_temp readingsRegex1 insideTemp":([\d\.]+)
attr tado_temp readingsRegex2 setPointTemp":([\d\.]+)
attr tado_temp readingsRegex3 operation":"([\w\.]+)
attr tado_temp readingsRegex4 controlPhase":"([\w\.]+)
attr tado_temp requestHeader1 Content-Type: application/json
attr tado_temp requestHeader2 Accept: */*
Der Istwert "insideTemp/tempist" ist dann z.B. 20.959999084472656.
Wie kann ich den Wert nun auf 2 Stellen hinter dem Komma bringen?
Danke und Gruß
LinuxQ