Afterburner MQTT to HomeAssistant

Hi
How did you go with Afterburner integration?
I added this to my config so i could access the web UI in HA

panel_iframe:
   afterburner:
    title: heater panel
    icon: mdi:radiator
    url: http://192.168.1.31:80

Screen Shot 2022-04-21 at 9.48.03 am

I did try to connect to the MQTT broker too when i received my afterburner but then realised there needs to be a add-on created in HA so that HA knows what to listen for form the afterburner.
Ill have a look at my settings and i post a pic of my MQTT settings.
Thanks

1 Like

Did you get sorted with this, looks to be broker (MQTT) is not set, change core-mosquitto to your home assistant IP or homeassitant.local if hostname is default.
I’ve got my afterburner en-route so researching issues beforehand…

I just got mine working with help from Ray, you need to type your IP address in Broker port 1884 for websocket (default Mosquitto broker settings), my Afterburner settings attached and Home assistant config below. They needed to be added manually as wouldn’t auto discover the sensors/switch… Happy automating :slight_smile:


switch:

  • platform: mqtt
    name: Afterburner
    state_topic: “Afterburner34C224/sts/RunString”
    command_topic: “Afterburner34C224/cmd/RunState”
    payload_on: “1”
    payload_off: “0”
    sensor:
  • platform: mqtt
    state_topic: “Afterburner34C224/sts/TempDesired”
    name: “Heater Desired Temperature”
  • platform: mqtt
    state_topic: “Afterburner34C224/sts/TempCurrent”
    name: “Heater Current Temperature”
  • platform: mqtt
    state_topic: “Afterburner34C224/sts/Temp2Current”
    name: “Heater Current Temperature 2”
  • platform: mqtt
    state_topic: “Afterburner34C224/sts/TempBody”
    name: “Heater Body Temperature”
  • platform: mqtt
    state_topic: “Afterburner34C224/sts/FuelUsage”
    name: “Heater Fuel Usage”
  • platform: mqtt
    state_topic: “Afterburner34C224/sts/TotalFuelUsage”
    name: “Heater Fuel Used”
  • platform: mqtt
    state_topic: “Afterburner34C224/sts/FuelRate”
    name: “Heater Fuel Rate”
  • platform: mqtt
    state_topic: “Afterburner34C224/sts/InputVoltage”
    name: “Heater Voltage”
  • platform: mqtt
    state_topic: “Afterburner34C224/sts/PumpActual”
    name: “Heater Pump”
  • platform: mqtt
    state_topic: “Afterburner34C224/sts/PumpFixed”
    name: “Heater Pump Fixed”
  • platform: mqtt
    state_topic: “Afterburner34C224/sts/FanRPM”
    name: “Heater Fan RPM”
  • platform: mqtt
    state_topic: “Afterburner34C224/sts/GlowVoltage”
    name: “Heater Glow Plug Voltage”
  • platform: mqtt
    state_topic: “Afterburner34C224/sts/GlowCurrent”
    name: “Heater Glow Plug Current”
  • platform: mqtt
    state_topic: “Afterburner34C224/sts/ErrorString”
    name: “Heater Error State”
  • platform: mqtt
    state_topic: “Afterburner34C224/sts/RunString”
    name: “Heater State”
  • platform: mqtt
    state_topic: “Afterburner34C224/sts/Thermostat”
    name: “Heater Glow Thermostat”
4 Likes

Tks it is working

1 Like

Hi Ashley
Thanks for looking up this info.
Did you just copy the switch and sensor info into the config file.
My Mqtt broker hasn’t detected the heater
Was there any thing else i need to do
Screen Shot 2022-07-07 at 9.11.06 am

I’m adding this post to show how to add the afterburner as a device in the Mqtt integration.

Hi Nicko1,
Sorry for the late reply, where is states Afterburner34C224/ in the config you will need to change 34C224/ to your own specific Afterburner…

But here’s another link i’d like to point you to from pturner1989, this show’s a better way now with perfected thermostat option, but again change his 626E9C/ config to your own…

2 Likes

Where is this thermostat bought from?

@scubieman

This a great little device from down under to control your cheap Chinese diesel heater - a bummer for the rich who can afford a £1k+ Webasto unit as it does not work with that :wink:

Head over to Home and talk to Ray.

3 Likes

​I’ve tried this, it’s cool.

I had two problems though. I does not work remotely (http vs https issue) and although I am Ray’s one of the biggest fan, I don’t particularly like the aesthetics of the web page :slight_smile:

Anyway, thanks for posting it!

I agree, the device is amazing and mine is used daily however the interface is not the strongest area, easy to rectify in Home Assistant though as most of the functionality can be lifted and shifted into a nice dashboard.

Hi All,

Looking at this implementation & seem to be hitting a problem that’s out of my league.
I’m Getting Entities I read for some things but also getting an error in the code.

Any thoughts?

My Code in Configuration.yaml

mqtt:
  climate:
    - name: Van Heating
      action_topic: "AfterburnerFF4E3C/sts/RunState"
      action_template: >
        {% if value in ("0", "1", "6", "7", "8") %}
          off
        {% elif value in ("10", "12") %}
          idle
        {% else %}
          heating
        {% endif %}
      current_temperature_topic: "AfterburnerFF4E3C/sts/TempCurrent"
      max_temp: 35
      min_temp: 8
      modes:
        - "off"
        - "heat"
      mode_state_topic: "AfterburnerFF4E3C/sts/Run"
      mode_state_template: >
        {% if value == "1" %}
          heat
        {% else %}
          off
        {% endif %}
      mode_command_topic: "AfterburnerFF4E3C/cmd/Run"
      mode_command_template: >
        {% if value == "heat" %}
          1
        {% else %}
          0
        {% endif %}
      precision: 0.1
      temperature_command_topic: "AfterburnerFF4E3C/cmd/TempDesired"
      temperature_state_topic: "AfterburnerFF4E3C/sts/TempDesired"
      temp_step: 0.5

  sensor:
    - name: Afterburner Status
      unique_id: afterburner_status
      state_topic: "AfterburnerFF4E3C/sts/RunString"

    - name: Afterburner Error
      unique_id: afterburner_error
      state_topic: "AfterburnerFF4E3C/sts/ErrorString"

    - name: Afterburner Internal Temperature
      unique_id: afterburner_internal_temp
      state_topic: "AfterburnerFF4E3C/sts/TempBody"
      device_class: temperature
      unit_of_measurement: °C
      state_class: measurement

    - name: Afterburner Consumption (Total)
      unique_id: afterburner_consumption
      state_topic: "AfterburnerFF4E3C/sts/TotalFuelUsage"
      unit_of_measurement: mL
      state_class: total_increasing

    - name: Afterburner Pump Rate
      unique_id: afterburner_pump
      state_topic: "AfterburnerFF4E3C/sts/PumpActual"
      unit_of_measurement: Hz
      device_class: frequency
      state_class: measurement

    - name: Afterburner Fan Speed
      unique_id: afterburner_fan
      state_topic: "AfterburnerFF4E3C/sts/FanRPM"
      unit_of_measurement: RPM
      state_class: measurement

    - name: Afterburner Glow Plug
      unique_id: afterburner_glowplug
      state_topic: "AfterburnerFF4E3C/sts/GlowCurrent"
      device_class: current
      unit_of_measurement: A
      state_class: measurement

The Error I’m Seeing in the editor.

Some of the data I can get, but not current Temp.

Any thoughts?

Edit,
In the MQTT Intergration I’m only seein 7 Entities,
They are the ones in the second part on the code,
under the Sensor Section.

Other thing I just found is that if I move the yaml to a different file,
as in mqtt.yaml, and put in an include in configuration.yaml, I don’t see the same error showing in the code editor.

The same 7 entities all still appear Ok.

mqtt:  !include mqtt,yaml

Hi Phil23,

Strange as your config looks the same as mine but mine not showing an error in file editor.

Where it states value not accepted, Valid … does it say anything else after that ?

Have you tried installing MQTT Explorer on your laptop to monitor all MQTT traffic during operation. it’s what helped me build all them entities.

Have it Working now, but it seems to not be receiving a few topics.
The two I can’t get are FuelUsage & FuelRate as seen here.
Have you tried adding them?

They are showing up correctly in MQTT Explorer.

These are the two blocks of code that are not returning values.

  - name: Afterburner Current Usage
    unique_id: afterburner_current_usage
    state_topic: “AfterburnerFF4E3C/sts/FuelUsage”
    unit_of_measurement: mL
    state_class: total_increasing
  - name: Afterburner Fuel Rate
    unique_id: afterburner_fuelrate
    state_topic: “AfterburnerFF4E3C/sts/FuelRate”
  #    unit_of_measurement:
  #    state_class:

Tried removing the Unit & State_Class, but the Broker is still not passing them on to Home Assistant.

I’m stumped… MQTT explorer sees but not HA…

Have you tried to remove your Afterburner webpage card from dashboard?

How often does FuelUsage & FuelRate update in MQTT explorer ?

Loosely speaking about every second.
Or maybe every time there is a change in it’s value in the AB code.

Removing the Card makes no difference & when I look at the States Page in Developer Tools it shows it last read 2 days ago.

Can you post your entire yaml?

Should be noted that currently I have all mine sitting in another file called mtqq.yaml.
I consider that to be irrelevant, as the other 7 entities work & it’s accepted practice what I’ve done with the include.

Edit.

This is my entire mqtt.yaml and its refered to by this in the main config.
For the record its is not running on my main HA instance, it’s on a Test NUC I have that has very little installed.

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

# Text-to-speech
tts:
  - platform: google_translate

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
mqtt: !include mqtt.yaml

#mqtt:
climate:
  - name: Van Heating
    action_topic: "AfterburnerFF4E3C/sts/RunState"
    action_template: >
      {% if value in ("0", "1", "6", "7", "8") %}
        off
      {% elif value in ("10", "12") %}
        idle
      {% else %}
        heating
      {% endif %}
    current_temperature_topic: "AfterburnerFF4E3C/sts/TempCurrent"
    max_temp: 35
    min_temp: 8
    modes:
      - "off"
      - "heat"
    mode_state_topic: "AfterburnerFF4E3C/sts/Run"
    mode_state_template: >
      {% if value == "1" %}
        heat
      {% else %}
        off
      {% endif %}
    mode_command_topic: "AfterburnerFF4E3C/cmd/Run"
    mode_command_template: >
      {% if value == "heat" %}
        1
      {% else %}
        0
      {% endif %}
    precision: 0.1
    temperature_command_topic: "AfterburnerFF4E3C/cmd/TempDesired"
    temperature_state_topic: "AfterburnerFF4E3C/sts/TempDesired"
    temp_step: 0.5

sensor:
  - name: Afterburner Status
    unique_id: afterburner_status
    state_topic: "AfterburnerFF4E3C/sts/RunString"

  - name: Afterburner Error
    unique_id: afterburner_error
    state_topic: "AfterburnerFF4E3C/sts/ErrorString"

  - name: Afterburner Internal Temperature
    unique_id: afterburner_internal_temp
    state_topic: "AfterburnerFF4E3C/sts/TempBody"
    device_class: temperature
    unit_of_measurement: °C
    state_class: measurement

  - name: Afterburner Current Usage
    unique_id: afterburner_current_usage
    state_topic: “AfterburnerFF4E3C/sts/FuelUsage”
    unit_of_measurement: mL
    state_class: total_increasing

  - name: Afterburner Consumption (Total)
    unique_id: afterburner_consumption
    state_topic: "AfterburnerFF4E3C/sts/TotalFuelUsage"
    unit_of_measurement: mL
    state_class: total_increasing

  - name: Afterburner Pump Rate
    unique_id: afterburner_pump
    state_topic: "AfterburnerFF4E3C/sts/PumpActual"
    unit_of_measurement: Hz
    device_class: frequency
    state_class: measurement

  - name: Afterburner Fan Speed
    unique_id: afterburner_fan
    state_topic: "AfterburnerFF4E3C/sts/FanRPM"
    unit_of_measurement: RPM
    state_class: measurement

  - name: Afterburner Glow Plug
    unique_id: afterburner_glowplug
    state_topic: "AfterburnerFF4E3C/sts/GlowCurrent"
    device_class: current
    unit_of_measurement: A
    state_class: measurement

  - name: Afterburner Fuel Rate
    unique_id: afterburner_fuelrate
    state_topic: “AfterburnerFF4E3C/sts/FuelRate”
  #    unit_of_measurement:
  #    state_class:

I agree, if most of the entities are reporting then you should be seeing all. Il send over config shortly I’m out atm. But all config is above in one of my first posts.

The only reason I asked to remove your webpage panel (temporarily) is so afterburner is not hosting http page and broadcasting mqtt at the same time.

Is your afterburner mqtt setup the same as my above post?

Are ya’ll resetting fuel consumption through HA or the device itself?