diff --git a/98_SmarterCoffee.pm b/98_SmarterCoffee.pm index 0c96d6a..03e00a9 100644 --- a/98_SmarterCoffee.pm +++ b/98_SmarterCoffee.pm @@ -599,7 +599,7 @@ sub WritePending { # Processing pending commands if ( ( $hash->{INVALID_DEVICE} // "0" ) eq "1" ) { - readingsSingleUpdate( $hash, 'state', 'invalid', 0 ); + readingsSingleUpdate( $hash, 'state', 'invalid', 1 ); } else { if ($pending) {