From 9928b0fa0a1d4657af81c6ed6c48ffcd26ffbf70 Mon Sep 17 00:00:00 2001 From: ntruchsess <> Date: Sat, 25 Oct 2014 12:17:42 +0000 Subject: [PATCH] MYSENSORS_DEVICE: let autocreate readings-indices start at 2 (skipping the 1 which is left blank git-svn-id: https://svn.fhem.de/fhem/trunk@6809 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_MYSENSORS_DEVICE.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/10_MYSENSORS_DEVICE.pm b/fhem/FHEM/10_MYSENSORS_DEVICE.pm index 76d87d714..ce854ab48 100644 --- a/fhem/FHEM/10_MYSENSORS_DEVICE.pm +++ b/fhem/FHEM/10_MYSENSORS_DEVICE.pm @@ -366,7 +366,7 @@ sub onPresentationMessage($$) { my $readingMappings = $hash->{readingMappings}; my $typeMappings = $hash->{typeMappings}; if (my $sensorMappings = $hash->{sensorMappings}->{$nodeType}) { - my $idStr = ($id > 1 ? $id-1 : ""); + my $idStr = ($id > 1 ? $id : ""); my @ret = (); foreach my $type (@{$sensorMappings->{sends}}) { next if (defined $readingMappings->{$id}->{$type});