Sending values from HA to Mqtt

Maybe I’m blind but I can’t find any tutorial that shows me how to send all the values that I get from my denon av or from my mifit scale (over esphome) to my mqtt broker.
Please help a noob

Do you want to send data from denon av or mifit scale to mqtt for integration in HA, or data that is already in HA back to mqtt ?

I have a Denon integration in HA and want to send the values (on/off, volume, signal source, etc) to my mqtt broker (not in HA, other device).
The same with miscale, what is connected via esphome.
There is no “back to …”
I hope this explains it

You create an automation.
Trigger : change on your denon or miscale

  action:
  - data:
      payload_template: '{{ the_state_you_want_published }}'
      topic: your_topic
    service: mqtt.publish

or use this custom integration:

Thank you.
How do I get the “’{{ the_state_you_want_published}}”?
And do I have to create a trigger for every value, or is there a way to get all with a placeholder?

In FHEM I can dump the complete state with

attr Denon_AVR mqttPublish *:topic={"Entertain/wz/denon.main/stat/$name"} *:retain=1

Edit: mqtt_statestream works fine for me