OH3 Migration - http binding - item transfer

I have a heating system that provides XML data the following way:

<eta version="1.0">
<value uri="/user/var/120/10601/0/0/12528" strValue="90" unit="%" decPlaces="0" scaleFactor="10" advTextOffset="0">902</value>

In OH2.5 i uses the folllowing item + transformation and all worked fine. Now with OH3 the same structure does not provide anything.

Number PufferState "Puffer Status [%.1f %%]" <sewerage> (MyHeating) { http="<[]",expire="1h" }


<?xml version="1.0"?>
        <xsl:output indent="yes" method="xml" encoding="UTF-8" omit-xml-declaration="yes" />
        <xsl:template match="/">
                <xsl:value-of select="//eta:value div //eta:value/@scaleFactor" />

I’m not that good in these transformations but found it somewhere in the internet and it worked great…until now. Any idea why OH3 does not seem to like the same structure?


Your Item configuration is using the old v1 HTTP Binding syntax. V1 bindings do not work with OH3 - you will have to update to the new syntax using Things, Channels and Items. So it’s probably nothing to do with your transformation.

This is the documentation but that unfortunately doesn’t show any text file configuration examples, but this forum has quite a few examples if you search.

OK. thanks…so i will try to find good examples based on text-file config. Thanks Norbert!

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.