Updating brightness status in HA, slider whith mqtt

Hi,

just wondering if someone had problem with brightness status (and slider) updating in HA when brightness changes fron another input, lets say webinterface of the device. ESP then sends status message to home assistant but brightness status and slider possition does not change.
Managed to send same autoconfiguration in JSON from Mqtt Explorer and surprisingly status in HA is correctly updates when status message is sent from it. But not if message is sent from ESP32.
Despite this, ON/OFF state work well even if message is sent from ESP.
Is there something I mising?