How to assign entity topics to mqtt broker?

Colleagues, I’ll admit at the outset that I’m new to Homeassistant and mQTT, so please bear with me. Can you help me send topics to a broker deployed in HA? I’d like another recipient in the local network to be able to read the data. Initially, I thought that if the broker deployed in HA, it would happen automatically, but I now know that’s not the case. My question is: is the only correct approach to create automation for each entity? Or can this be accomplished with a single entry in the configuration file? For example, the air conditioner I want to control has the following entry:

hvac_modes:

  • “off”
  • auto
  • cool
  • dry
  • heat
  • fan_only
    min_temp: 16
    max_temp: 30
    target_temp_step: 0.5
    fan_modes:
  • silent
  • low
  • medium
  • high
  • full
  • auto
    preset_modes:
  • none
  • comfort
  • eco
  • boost
  • sleep
  • away
    swing_modes:
  • “off”
  • vertical
  • horizontal
  • both
    icon: mdi:air-conditioner
    friendly_name: KLIMATYZACJA None
    supported_features: 441
    current_temperature: 25
    temperature: 23
    fan_mode: auto
    preset_mode: none
    swing_mode: “off”
    prompt_tone: true
    power: false
    mode: 5
    target_temperature: 23
    fan_speed: 102
    swing_vertical: false
    swing_horizontal: false
    smart_eye: false
    dry: false
    aux_heating: false
    boost_mode: false
    sleep_mode: false
    frost_protect: false
    comfort_mode: false
    eco_mode: false
    natural_wind: false
    temp_fahrenheit: false
    screen_display: false
    screen_display_alternate: false
    full_dust: false
    indoor_temperature: 25
    outdoor_temperature: 2
    indirect_wind: false
    indoor_humidity: null
    breezeless: false
    total_energy_consumption: null
    total_operating_consumption: null
    current_energy_consumption: null
    realtime_power: null
    electrify_time: null
    total_operating_time: null
    current_operating_time: null
    fresh_air_power: false
    fresh_air_fan_speed: 0
    fresh_air_mode: null
    fresh_air_1: null
    fresh_air_2: null
    wind_lr_angle: null
    wind_ud_angle: null

Will a single entry do the trick?

I’d like to do the same with the weather, other switches, and other devices, for example.

Thanks in advance for any help.

Not sure what you are trying to do but have you seen?

1 Like

And

1 Like