From 7bb35812ffee4fbab3b2447d895310fe38fc8aca Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Fri, 6 Jan 2023 13:44:02 +0100 Subject: [PATCH] aloow flag entities not to register, test for #891 --- src/emsdevice.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/emsdevice.cpp b/src/emsdevice.cpp index 76f954ee5..4ac9cc3c2 100644 --- a/src/emsdevice.cpp +++ b/src/emsdevice.cpp @@ -524,6 +524,9 @@ void EMSdevice::add_device_value(uint8_t tag, // get Mask uint8_t mask = Helpers::hextoint(entity_id.substr(0, 2).c_str()); state = mask << 4; // set state high bits to flag, turn off active and ha flags + if (mask & 0x80) { + return; + } // see if there is a custom name in the entity string if (has_custom_name) { custom_fullname = entity_id.substr(custom_name_pos + 1);