I found some old code from the previous http binding which I haven’t migrated to the new http binding:
# Tasmota Release Status (cached twice a day)
tasmotaRelease.url=https://api.github.com/repos/arendst/Sonoff-Tasmota/tags
tasmotaRelease.updateInterval=43200
I created the following thing and item:
Thing http:url:tasmotaversion "Tasmota latest version" [
baseURL="https://api.github.com/repos/arendst/Sonoff-Tasmota/tags",
refresh=43200] {
Channels:
Type string : text "Text" [ stateTransformation="JSONPATH:$.name" ]
}
String Tasmota_Current_FW_Available "Current Releasee [%s]" <settings> {channel="http:url:tasmotaversion:text"}
But no matter what value I enter in stateTransformation
, I get the entire page of https://api.github.com/repos/arendst/Sonoff-Tasmota/tags in my item.
Could someone point me in the right direction?