that worked for me, thanks.
Can you please provide an example for a textual configuration of the new http binding ? It is missing in the manual.
My original items definition was:
Number Vito_Betriebsmodus "Betriebsmodus" <switch> (gHeating)
{ http="<[http://192.168.1.61/read?DP=0xb000&Type=Mode:88600200:REGEX((^[-+]?[0-9]+))] >[CHANGED:POST:http://192.168.1.61/write?DP=0xb000&Type=Mode&Value=%2$s]" }
Number Vito_ManuellerModus "ManuellerModus" <switch> (gHeating)
{ http="<[http://192.168.1.61/read?DP=0xb020&Type=Mode:88600210:REGEX((^[-+]?[0-9]+))] >[CHANGED:POST:http://192.168.1.61/write?DP=0xb020&Type=Mode&Value=%2$s]" }
So far I do have a thing file, e.g.
Thing http:url:vitowifi "VitoWifi" [ baseURL="http://192.168.1.61", refresh=10] {
Channels:
Type number : Channel_Vito_Betriebsmodus "Vito_Betriebsmodus" [ stateExtension="read?DP=0xb000&Type=Mode", stateTransformation="REGEX((^[-+]?[0-9]+))", commandExtension="write?DP=0xb000&Type=Mode&Value=%2$s" ]
Type number : Channel_Vito_ManuellerModus "Vito_ManuellerModus" [ stateExtension="read?DP=0xb020&Type=Mode", stateTransformation="REGEX((^[-+]?[0-9]+))", commandExtension="write?DP=0xb020&Type=Mode&Value=%2$s" ]
}
and an items file:
Number Vito_Betriebsmodus "Vito_Betriebsmodus" <switch> (gHeating) {channel="http:url:vitowifi:Channel_Vito_Betriebsmodus"}
Number Vito_ManuellerModus "Vito_ManuellerModus" <switch> (gHeating) {channel="http:url:vitowifi:Channel_Vito_ManuellerModus"}```
Both files load without error, but no items are generated. At least they neither show up in the log nor the gui.
And I guess I will have to change all postUpdate
statemens to these items to sendCommand
, right ? Or how would an update of these items propagate through to http ?
Update: got it. The Regex must be adapted from:
stateTransformation="REGEX((^[-+]?[0-9]+))"
to
stateTransformation="REGEX:(^[-+]?[0-9]+)"
(mind the : and the () )