mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 08:49:52 +03:00
aloow flag entities not to register, test for #891
This commit is contained in:
@@ -524,6 +524,9 @@ void EMSdevice::add_device_value(uint8_t tag,
|
|||||||
// get Mask
|
// get Mask
|
||||||
uint8_t mask = Helpers::hextoint(entity_id.substr(0, 2).c_str());
|
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
|
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
|
// see if there is a custom name in the entity string
|
||||||
if (has_custom_name) {
|
if (has_custom_name) {
|
||||||
custom_fullname = entity_id.substr(custom_name_pos + 1);
|
custom_fullname = entity_id.substr(custom_name_pos + 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user