How can I use MQTT to report the status of a light bulb?

I am trying to simulate a device using MQTTX to display data on Home Assistant, but I have failed. What should I do?


image
image