Skip to content

Commit

Permalink
Update HomeAssistantDiscoveryClient.cpp
Browse files Browse the repository at this point in the history
Added: config[GroupStateFieldNames::BRIGHTNESS] = true;
For compatibility with Domoticz 2024.x

#834
  • Loading branch information
sincze authored Dec 10, 2024
1 parent 0a9ab66 commit 00c8ea1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/MQTT/HomeAssistantDiscoveryClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 00c8ea1

Please sign in to comment.