From 00c8ea12d0e8962770ffa58da285e7eafdc50a2f Mon Sep 17 00:00:00 2001 From: Sandor Date: Tue, 10 Dec 2024 17:49:02 +0100 Subject: [PATCH] Update HomeAssistantDiscoveryClient.cpp Added: config[GroupStateFieldNames::BRIGHTNESS] = true; For compatibility with Domoticz 2024.x https://github.com/sidoh/esp8266_milight_hub/pull/834 --- lib/MQTT/HomeAssistantDiscoveryClient.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/MQTT/HomeAssistantDiscoveryClient.cpp b/lib/MQTT/HomeAssistantDiscoveryClient.cpp index 8bfa76b6..33b53b4f 100644 --- a/lib/MQTT/HomeAssistantDiscoveryClient.cpp +++ b/lib/MQTT/HomeAssistantDiscoveryClient.cpp @@ -81,6 +81,8 @@ void HomeAssistantDiscoveryClient::addConfig(const char* alias, const BulbId& bu config[F("pl_not_avail")] = F("disconnected"); } + // To remain compatible with Homeassistant and Domoticz + config[GroupStateFieldNames::BRIGHTNESS] = true; // Configure supported commands based on the bulb type config[GroupStateFieldNames::EFFECT] = true;