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
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.
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.