fix alive check error on software bridge

This commit is contained in:
Marko Oldenburg 2017-01-04 20:54:57 +01:00
parent cdb2c5e46b
commit fe3e5fe24a

View File

@ -353,7 +353,7 @@ sub NUKIBridge_Distribution($$$) {
}
}
if( $json eq "" and exists( $param->{code} ) && $param->{code} ne 200 ) {
if( ($json eq "" or $json =~ /Error/i ) and exists( $param->{code} ) and $param->{code} ne 200 ) {
if( $param->{endpoint} eq "alive") {
readingsBulkUpdate( $hash, "state", "connected" );