diff -r 52bb55ba0b01 -r 0e2c58f8eb78 thermferm/thermferm.c --- a/thermferm/thermferm.c Mon May 09 21:37:25 2016 +0200 +++ b/thermferm/thermferm.c Wed May 11 14:47:27 2016 +0200 @@ -1808,6 +1808,12 @@ if (unit->mqtt_flag & MQTT_FLAG_PROFILE) { mqtt_publish_str(unit->alias, (char *)"profile/uuid", unit->profile); mqtt_publish_str(unit->alias, (char *)"profile/state", (char *)PROFSTATE[unit->prof_state]); + for (profile = Config.profiles; profile; profile = profile->next) { + if (strcmp(unit->profile, profile->uuid) == 0) { + mqtt_publish_str(unit->alias, (char *)"profile/name", profile->name); + mqtt_publish_int(unit->alias, (char *)"profile/fridgemode", profile->fridge_mode); + } + } } if (unit->mqtt_flag & MQTT_FLAG_PERCENT) { mqtt_publish_int(unit->alias, (char *)"profile/percent", unit->prof_percent);