From 4982335bdcd736387060ad174998632b0ea4bf31 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Mon, 9 Nov 2020 20:53:43 +0000 Subject: [PATCH] zwavealliance.images.parse: readd 0x=>00 conversion (Forum #115717) git-svn-id: https://svn.fhem.de/fhem/trunk@23130 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/zwavealliance.images.parse | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fhem/contrib/zwavealliance.images.parse b/fhem/contrib/zwavealliance.images.parse index 59221dfcf..0e8af7515 100644 --- a/fhem/contrib/zwavealliance.images.parse +++ b/fhem/contrib/zwavealliance.images.parse @@ -59,6 +59,11 @@ for my $fn (sort { $a <=> $b } @files) { unlink("$ARGV[0]/$fn"); next; } + # There is sometimes 0x0x in the XML, see + # https://products.z-wavealliance.org/products/1694 + $mi =~s/0x/00/; + $pti=~s/0x/00/; + $pi =~s/0x/00/; printf OF "%s-%s-%s,%s,%s,%s\n", $mi,$pti,$pi,$fn,$pic,$bn; } closedir(DIRH);