How can i confgure MQTT device correctly for RF433 butoon

Hello HA masters

I have bought this little RF433 button from AliExpress
https://www.aliexpress.com/item/1005007463319446.html
I didnt buy the RF relay part, , I only want to use the button part as on demand RF button. to detect only when its pressed ( I understand that the button does not send anything while not being used)

Im reading it from Li=ligo32 module which also reads other RF433 sensors from my home

for some reason its being detected as smoke alert sensor in MQTT explorer and creates a smoke alert sensor in HA but only with sinbgle entity of RSSI, no on/off state entity
see MQTT JSON

{"model":"Smoke-GS558","id":13550,"unit":1,"learn":0,"code":"169dc1","protocol":"Wireless Smoke and Heat Detector GS 558","rssi":-93,"duration":1307000}

What i noticed is when i press the button a button the RSSI gets sent to MQTT and HA
but no other status is updated in the JSON

but thats the only thing updated

is there a way to configre the MQTT somehow on how to parse this to be able to detect the button ?

thanks in advance!

someone posted answer here and then deleted it for some reason

here is the solution

configure MQTT binary sensor to detect RSSI value:

binary_sensor:
  - name: "RF433 Button 1"
    unique_id: "RF433_Button_1"
    state_topic: "homelily1/OMG_lilygo_rtl_433_ESP/RTL_433toMQTT/Smoke-GS558/13550" # Replace with your MQTT topic
    value_template: "{{ 'ON' if value_json.rssi is defined else 'OFF' }}"
    device_class: "motion" # This can be set to any class or left out
    off_delay: 1 # Turns off 1 second after RSSI update

This will define a sensor that will get state “Detected” when the button is pressed and after 1 second will turn off (regardless if the button was released)

then you can write automations to trigger on this new entity