Issue of the topic: How can I get the current Tasmota release from Github
Please post configurations (if applicable):
In the tasmota documentation is described how you can get the most recent Tasmota release name to make it easy to check if your tasmota version is outdated: openHAB - Tasmota
Items configuration related to the issue (copied fro reference from tasmota documentation:
package = standard
binding = mqtt,http
transformation = jsonpath,map,javascript
http.cfg
# Tasmota Release Version (cached twice a day)
tasmotaRelease.url=https://api.github.com/repos/arendst/Tasmota/tags
#tasmotaRelease.updateInterval=43200000
tasmotaRelease.updateInterval=60000 # refresh every minute
If logs where generated please post these here using code fences:
2022-02-06 11:39:20.578 [WARN ] [ty.util.ssl.SslContextFactory.config] - Trusting all certificates configured for Client@4e027fba[provider=null,keyStore=null,trustStore=null]
2022-02-06 11:39:20.580 [WARN ] [ty.util.ssl.SslContextFactory.config] - No Client EndPointIdentificationAlgorithm configured for Client@4e027fba[provider=null,keyStore=null,trustStore=null]
The rules described in the tasmota documentation seem to be working. I can query the installed firmware version and trigger a restart. I did not test the upgrade button yet, because I have already installed the most recent firmware version.
Thing http:url:TasmotaVersion [
baseURL="https://api.github.com/repos/arendst/Tasmota/tags",
refresh=86400] { // refresh once a day
Channels:
Type string : Version "Version" [ stateTransformation="JSONPATH:$[0].name" ]
}
The rules from the tasmota documentation seem to be working fine. I will stick to them for the moment instead of using @opus javascript.
Did you just copy these both files?
I checked if all bindings and transformations are installed - but the item with the Firmware String stays āNULLā. Any idea?
If youād show us your actual config of Things and Items we could help ( copy&paste the YAML code). Otherwise we can only assume what you have done and why your item stays with āNULLā.
Thing http:url:TasmotaVersion [
baseURL="https://api.github.com/repos/arendst/Tasmota/tags",
refresh=86400] { // refresh once a day 86400
Channels:
Type string : Version "Version" [ stateTransformation="JSONPATH:$[0].name" ]
}
log file says: ārefreshed and loadedā. No errors, not even a hint what is wrong.
I cleaned the cache of openhab, restarted OH, even renamed the string item āfirmwareā. Item still contains āNullā.
Even the jsonpath transformation is correct: ā$[0].nameā result in the correct firmware. (Checked within https://jsonpath.com/). Could it be, that OH 2.5.12 has a problem with the expression ā$[0].nameā?