I picked up a Shelly natural gas sensor, and switched it over to MQTT (dont wanna use their cloud). I added this in the binary_sensor.yaml and tested, it works. When it detects gas over a certain level, it writes MILD message to a topic, and my sensor in home assistant changed to detected.
But the sensor can also report the concentration in # values. Is there anyway I can integrate this topic into home assistant as well? Such as into a input_number?