From fc81ca889b0d7ca054040046b073c6fb3f58bd41 Mon Sep 17 00:00:00 2001 From: Paul C Diem Date: Tue, 14 Dec 2021 08:38:15 -0600 Subject: [PATCH] Add DevGroupSend full status item --- tasmota/support_device_groups.ino | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tasmota/support_device_groups.ino b/tasmota/support_device_groups.ino index 2f2089a12..be23234d0 100644 --- a/tasmota/support_device_groups.ino +++ b/tasmota/support_device_groups.ino @@ -591,8 +591,7 @@ bool _SendDeviceGroupMessage(int32_t device, DevGroupMessageType message_type, . value_ptr = (uint8_t *)XdrvMailbox.data; while ((item = strtoul((char *)value_ptr, (char **)&value_ptr, 0))) { item_ptr->item = item; - if (*value_ptr != '=') return 1; - value_ptr++; + if (*value_ptr == '=') value_ptr++; // If flags were specified for this item, save them. item_ptr->flags = 0; @@ -613,6 +612,12 @@ bool _SendDeviceGroupMessage(int32_t device, DevGroupMessageType message_type, . value = (oper == '+' ? old_value + value : oper == '-' ? old_value - value : oper == '^' ? old_value ^ value : oper == '|' ? old_value | value : old_value == '&' ? old_value & value : old_value); } item_ptr->value = value; + + if (item == DGR_ITEM_STATUS) { + if (!(item_ptr->flags & DGR_ITEM_FLAG_NO_SHARE)) device_group->no_status_share = 0; + _SendDeviceGroupMessage(-device_group_index, DGR_MSGTYP_FULL_STATUS); + item_ptr--; + } } else { item_ptr->value_ptr = out_ptr;