Energy dashboard not displaying any data

Hello everyone!
I am trying to setup node red and the energy dashboard

could someone give my a simple step by step on how to integrate node red mqtt(from a differant device into ha energy dashboard?

for some reason there are no values coming up on the dashboard

what iv done
setup local mqtt broker
conneted to the broker. ha and node red(i tested simple topics and displayed on the overview dash and all that worked)
edited the config.ymal

here are some screenshots.(all on one pic)

first I see the state is being sent as a string and not a number. Remove the quotes to send a number.

"state": 5.87

You may need to add a value template to the config.yaml entry.

value_template: "{{ value_json.state }}"