Thanks, it’s working as expected now. Here’s my promised complex example for your docs:
My ‘Dreambox’ TV receiver has an HTTP API. The hostname is dm900.
On requesting /web/powerstate, it returns an XML
<e2powerstate>
<e2instandby>false</e2instandby>
</e2powerstate>
meaning it is currently not in standby thus ON. A POST request /web/powerstate?newstate=5 will instruct it to switch OFF and newstate=4 means to switch ON.
The state transformation REGEX fully reads REGEX:.*?<e2instandby>(.*?)</e2instandby>.* and returns what is between <e2instandby> and </e2instandby>, i.e. false or true.
dreambox.map for the command transformation is
true=5
false=4
NULL=no data
-=no data
Very unlike the HTTPv1 binding, the item definition is only a very simple channel reference
Switch Dreambox "Dreambox [%s]" { channel="http:url:<thing ID>:<channel ID>" }

