dynamically add HA thermostat modes based on model

This commit is contained in:
proddy
2025-12-13 11:22:22 +01:00
parent c71b54fb5b
commit d3b4bab40a
3 changed files with 69 additions and 36 deletions

View File

@@ -113,7 +113,7 @@ class Mqtt {
const bool create_device_config = false);
static bool publish_system_ha_sensor_config(uint8_t type, const char * name, const char * entity, const uint8_t uom);
static bool publish_ha_climate_config(const DeviceValue & dv, const bool has_roomtemp, const bool remove = false);
static bool publish_ha_climate_config(const DeviceValue & dv, const bool has_roomtemp, const char * const ** mode_options, const bool remove = false);
static void show_topic_handlers(uuid::console::Shell & shell, const uint8_t device_type);
static void show_mqtt(uuid::console::Shell & shell);