freeathome icon indicating copy to clipboard operation
freeathome copied to clipboard

Bugfix: Remove inputPairingId and outputPairingId attributes

Open steffenaxer opened this issue 7 months ago • 2 comments

Bugfix for #190 @jheling Since firmware 3.3.1 the config xml may contain such a row: <parameter dpt="0705" dependencyIndex="FFFF" sync="none" matchCode="00000001" parameterId="0015" nameId="016D" outputPairingId="01AF" writable="true" inputPairingId="01AE" applyScope="none" visible="true" accessLevel="Enduser" name="Autonomous switch off time duration" i="pm0000" optional="false" inputPairingId="01AE" outputPairingId="01AF">

The attributes inputPairingId and outputPairingId are each time dublicated, which causes an exception while parsing the XML tree. This is again a somehow ugly regex filtering before processing the xml. Other ideas are apprecicated to fix this. I'm also wondering, why this problem happens. @oliverlinsenmaier provided me two xml samples

  1. Fetched from the original backup feature of the sysAp
  2. Fetched from this component, bypassed and exported

While 1. is a valid xml, 2. contains this error.

Anyway, this fix should work fine....till new attributes are incoming 😄

steffenaxer avatar Jul 18 '24 07:07 steffenaxer