mirror of https://github.com/arendst/Tasmota.git
Added section about comparing the device firmware with the current github release.
parent
7df57a777e
commit
d1b56f2d45
22
openHAB.md
22
openHAB.md
|
@ -179,6 +179,28 @@ then
|
||||||
end
|
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
|
## Community Forum
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue