Hallo zusammen,
hat einer eine bessere Alternative zur Abfrage der Aktualität der aktiven Firmware eines "tasmota" - MQTT2_DEVICE als mit
defmod tasmota_fw HTTPMOD https://github.com/arendst/Tasmota/releases/latest 3600
attr tasmota_fw reading01Name Version
attr tasmota_fw reading01Regex \/tag\/(?<version>.*)">(?<release>.*)<\/a>[\w\W]*href="\/arendst\/Tasmota\/releases\/latest">(.*)<\/a>
attr tasmota_fw userReadings state\
{\
return "v".ReadingsVal($NAME,"version","")."(tasmota)";;\
}
und der Anlage eines userReadings am "tasmota" MQTT2_DEVICE:
attr <"tasmota" MQTT2_DEVICE> userReadings new_fw
{
if (ReadingsVal($NAME,"Info1_Version","") ~= ReadingsVal("tasmota_fw","state","")) {
return "false";
}
else {
return "true";
}
}
Vielen Dank,
Gernot
Schau mal hier:
https://forum.fhem.de/index.php/topic,110350.0.html
Vielen Dank, @mike1969bln.