I try via the API of SolarEdge to import data into OH1.
Items I have the following line:
Number lastday "Last day [% .1f W]" (SolarEdge) {http="<[http://monitoringapi.solaredge.com/site/mysiteID/details.xml?api_key=MYAPIKEY(Solaredge.xsl)]" }
When I open the URL in a browser, I see the data in XML format.
When I check my transforms through http://www.utilities-online.info/xsltransformation/#.V7hoiJiLTIU correct this and I get the correct information out.
My transform
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output indent="yes" method="xml" encoding="UTF-8" omit-xml-declaration="yes" />
<xsl:template match="/">
<xsl:value-of select="(//data/value)[last()]"/>
</xsl:template>
</xsl:stylesheet>
So far no problem I think.
OH gives an error
org.openhab.model.item.binding.BindingConfigParseException: bindingConfig 'http://monitoringapi.solaredge.com/site/MYSITEID/details.xml?api_key=MYAPIKEY(Solaredge.xsl)' doesn't represent a valid in-binding-configuration. A valid configuration is matched by the RegExp '(.*?)(\{.*\})?:(?!//)(\d*):(.*)'
does anyone have an idea?