Show the value of an mqtt message in lovelace

Im trying to show the value of an mqtt message in lovelace. As far as i can tell i need to create a sensor entity. I have spent the entire day trying to figure this out and i cant seem to do it.
I have added this to my config.yaml

input_number:

  slider:
    name: Set Pool Temperature
    min: 60
    max: 95
    step: 1
    

sensor:
  - platform: mqtt
    name: "Target Temperature"
    state_topic: "poolcontrol/mem1"

This is not creating any entity that i can see. I look in developer tools/states and i cant find it.
I have also tried

Any help?


Yeah it can be a bit difficult to start with. Show what the topic and payload are using mqttexplorer.

The topic is poolcontrol/mem1
MQTT explorer is showing this:
poolcontrol

power1 = 1

mem1 = 88

mem2 = 95

Ok got the topic

{
  "ip": "192.168.73.75",
  "name": "weathersmall",
  "version": "2024.12.4",
  "mac": "4417931e769a",
  "platform": "ESP8266",
  "board": "esp01_1m",
  "network": "wifi"
}

This is how a payload looks like when you use </> prefromatted text

power1 = 1

mem1 = 88

mem2 = 95

doesn’t look quite right. Indentation is very important when using YAML. It’s not forgiving. :grimacing: Is mem1 the entry you are looking to turn into an entity? Show everything as it appears between the {stuff}