FHEM Forum

FHEM - Hausautomations-Systeme => ZWave => Thema gestartet von: Paul Guijt am 08 Oktober 2025, 14:15:56

Titel: fwMd
Beitrag von: Paul Guijt am 08 Oktober 2025, 14:15:56
What's the idea with fwMd?

Currently, it reports "fwMdManId: 0371, fwMdFwId_0: 0018, fwMdChkSum_0: 0000".

The definition of fwUpdate is
fwUpdate <decimal Target> <filename>

What is the decimal Target here?
Titel: Aw: fwMd
Beitrag von: rudolfkoenig am 08 Oktober 2025, 14:59:38
ZitatWhat is the decimal Target here?
The NodeId of the device, in decimal
Titel: Aw: fwMd
Beitrag von: Paul Guijt am 12 Oktober 2025, 13:07:56
Eh, perhaps it's an idea to change that in commandRef?
I suppose, the NodeId is available in the Module so it shouldn't have to be a parameter here.

Also, the fwUpdate definition says: The supported targets can be requested with the get fwMetaData command. And the resulting fwMd reading does not include 19, the NodeID, or 13, the nodeIdHex.
Titel: Aw: fwMd
Beitrag von: rudolfkoenig am 12 Oktober 2025, 15:16:27
Sorry, my previous answer is wrong.

As far as I understand the code, the number must be one of the <X> from of the fwMdFwId_<X> Strings in the fwMetaData reading.
A single ZWave device can in theory have more than one firmware, with this number you select the one to be updated.
If you enter the wrong number, you get the message: "Device $hash->{NAME} does not support target $target"

The OTA code is by SamsonBox: https://forum.fhem.de/index.php?topic=101961 and I have never tested it.
If you can confirm the above theory, then I will clarify the parameter in the documentation.