diff --git a/ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_leds.yaml b/ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_leds.yaml index 1bbee37..3bf536c 100644 --- a/ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_leds.yaml +++ b/ESPHome/TX-Ultimate-Easy-ESPHome_core_hw_leds.yaml @@ -570,7 +570,7 @@ script: - lambda: |- auto attrs_pair = tx_ultimate_easy::unpack_dual_light_attributes(*attr_global_ptr); tx_ultimate_easy::LightAttributes attrs = (group_index == 1) ? attrs_pair.first : attrs_pair.second; - + auto call = light_ptr->make_call(); call.set_brightness(attrs.brightness / 100.0f); call.set_rgb(attrs.red / 255.0f, attrs.green / 255.0f, attrs.blue / 255.0f); @@ -610,10 +610,10 @@ script: .green = uint8_t(current.get_green() * 255.0f), .blue = uint8_t(current.get_blue() * 255.0f) }; - + // Unpack existing dual attributes auto existing = tx_ultimate_easy::unpack_dual_light_attributes(*attr_global_ptr); - + // Update the appropriate group if (group_index == 1) { *attr_global_ptr = tx_ultimate_easy::pack_dual_light_attributes(new_attrs, existing.second); diff --git a/components/tx_ultimate_easy/tx_ultimate_easy_light.h b/components/tx_ultimate_easy/tx_ultimate_easy_light.h index 3a892c3..8fd5d1c 100644 --- a/components/tx_ultimate_easy/tx_ultimate_easy_light.h +++ b/components/tx_ultimate_easy/tx_ultimate_easy_light.h @@ -13,6 +13,8 @@ namespace esphome { namespace tx_ultimate_easy { + // Log tag + static const char *TAG = "tx_ultimate_easy.light"; /** * @brief Light attributes structure for storing color and brightness data. diff --git a/components/tx_ultimate_easy/tx_ultimate_easy_touch.h b/components/tx_ultimate_easy/tx_ultimate_easy_touch.h index 08086a3..5062f11 100644 --- a/components/tx_ultimate_easy/tx_ultimate_easy_touch.h +++ b/components/tx_ultimate_easy/tx_ultimate_easy_touch.h @@ -32,7 +32,7 @@ namespace esphome { constexpr int VALID_DATA_BYTE_3 = 0x02; // Log tag - static const char *TAG = "tx_ultimate_easy"; + static const char *TAG = "tx_ultimate_easy.touch"; struct TouchPoint { uint8_t button = 0;