ich habe vermutlich ein verständniss Problem mit dem HTTP Binding und würde hilfe benötigen.
Basis:
Openhab 3.2
Sungrow Datenlogger 1000 https://en.sungrowpower.com/productDetail/1025
der Datenlooger bietet bei Login ohne Auth. eine Übersichtsseite mit div. Informationen, hier u.a. folgendes enthalten:
Unter anderem diesen Wert würde ich gerne "auslesen" mittels dem HTTP Binding und hab das Thing wie folgt konfiguriert:<div> <label src="" class="SG-font-34" id="today_energy">0.60</label> <small class="SG-font-16" id="today_energy_unit">kWh</small> </div>
Base URL http://192.168.1.165/
Content Type - text/html
Alle anderen Werte habe ich belassen:
Authentication Mode - Basic Authentication
State Method - GET
Command Method - GET
Den Channel habe ich wie folgt konfguriert:
State Transformation - total_energy
Read/Write Mode - Read Only
Alle anderen Werte habe ich belassen
Hier nochmal der Code:
UID: http:url:e557231074
label: PV Werte
thingTypeUID: http:url
configuration:
authMode: BASIC
ignoreSSLErrors: false
baseURL: http://192.168.1.165/
delay: 0
stateMethod: GET
refresh: 30
commandMethod: GET
contentType: text/html
timeout: 3000
bufferSize: 2048
channels:
- id: total_energy
channelTypeUID: http:string
label: total_energy
description: ""
configuration:
mode: READONLY
stateTransformation: total_energy
Die Doku hilft mir auch nicht weiter, die ist noch von OH 2.5
Vielen Dank vorweg an alle die mithelfen...