Added section about comparing the device firmware with the current github release.

Jerome L 2018-01-28 12:30:21 +01:00
parent 7df57a777e
commit d1b56f2d45
1 changed files with 22 additions and 0 deletions

@ -179,6 +179,28 @@ then
end
```
### Comparing your device firmware with the current Tasmota GitHub Release
Knowing your devices firmware version(s) is good.
Being able to compare it with the current release directly, is even better.
You can archive this by combining the maintenance actions with the openHAB http binding, the jsonpath transformation and the GitHub API.
Just extend the maintenance setup with the following Item and config:
**http.cfg:**
```java
# Tasmota Release Status (cached twice a day)
tasmotaRelease.url=https://api.github.com/repos/arendst/Sonoff-Tasmota/tags
tasmotaRelease.updateInterval=43200000
```
**sonoff.items:**
```java
String Sonoff_Current_FW_Available "Current Release [%s]" <sonoff_basic> (Sonoff_Maintenance) { http="<[tasmotaRelease:10000:JSONPATH($[0].name)]"}
```
With the item in your sitemap, you will now see the latest release/tag from the tasmota repository.
## Community Forum