Need help with mqtt

Hello friends

I need your help.

I have home assistant and lily ttgo 433MHz module installed, through which I catch a message from the door sensor via mqtt, but HA only shows me rssi and battery status, it is a door sensor https://www.soselectronic.com/…/aurel/magcon-hcs-150675… /magcon-hcs.pdf

can you please tell me how to set the switch or sensor in ha via mqtt. La can I see the mqtt message through the HA visor as in the attached picture, I need to set to as a switch part …button…where 9 is open and 1 is closed state
416947246_7234628179934492_2305177269470811565_n
416949090_7234628186601158_8705465825903489560_n

It’s showing more than just that. There are ten parameters in the MQTT message.

If it’s a door sensor then it should be configured as a binary_sensor not a switch.

It appears that you are using OpenMQTTGateway. It supports automatic discovery of devices in Home Assistant. In other words, your door sensor should already have been automatically added to Home Assistant.

but all i can see is rssi and battery

All I can see is what you post and the only thing you posted is a screenshot of the received MQTT payload. You will need to describe where you are only seeing rssi and battery.

Create your devices manually:

i see it in home assistant under mqtt in devices

all i can see it in home assistant is

when i start listening in mqtt

battery and rssi is shoved up but its all i can see