From 361e0774bf4153e7a88436c9529fa3d10490f359 Mon Sep 17 00:00:00 2001 From: Jon Whitear Date: Wed, 5 Sep 2018 07:25:45 +1000 Subject: [PATCH] Multioltage Device Registration fix This fixes ZWave multivoltage device registration, so that specifying only the major device ID in the MHT file registers the various subdevices. --- lib/raZberry.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/raZberry.pm b/lib/raZberry.pm index 8209c97e8..4d2f7251e 100755 --- a/lib/raZberry.pm +++ b/lib/raZberry.pm @@ -1996,7 +1996,7 @@ sub new { #ZWayVDev_zway_x-0-50-5 - Current Sensor A #push( @{ $$self{states} }, 'on', 'off'); I'm not sure we should set the states here, since it's not a controlable item? - unless ( $devid =~ m/^\d+$/ ) { + if ( $devid =~ m/^\d+$/ ) { $$self{master_object} = $object; $$self{type} = "Multilevel Voltage"; $$self{devid} = $devid;