Skip to content

Instantly share code, notes, and snippets.

@pturner1989
Last active August 8, 2023 04:11
Show Gist options
  • Save pturner1989/4f78282f36bd4bf7bd3778a47c09fbef to your computer and use it in GitHub Desktop.
Save pturner1989/4f78282f36bd4bf7bd3778a47c09fbef to your computer and use it in GitHub Desktop.
alias: Get Heater Status
description: ""
trigger:
- platform: homeassistant
event: start
condition: []
action:
- service: mqtt.publish
data:
topic: Afterburner626E9C/cmd/Refresh
payload: "1"
mode: single
mqtt:
climate:
- name: Van Heating
action_topic: "Afterburner626E9C/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: "Afterburner626E9C/sts/TempCurrent"
max_temp: 35
min_temp: 8
modes:
- "off"
- "heat"
mode_state_topic: "Afterburner626E9C/sts/Run"
mode_state_template: >
{% if value == "1" %}
heat
{% else %}
off
{% endif %}
mode_command_topic: "Afterburner626E9C/cmd/Run"
mode_command_template: >
{% if value == "heat" %}
1
{% else %}
0
{% endif %}
precision: 0.1
temperature_command_topic: "Afterburner626E9C/cmd/TempDesired"
temperature_state_topic: "Afterburner626E9C/sts/TempDesired"
temp_step: 0.5
sensor:
- name: Afterburner Status
unique_id: afterburner_status
state_topic: "Afterburner626E9C/sts/RunString"
- name: Afterburner Error
unique_id: afterburner_error
state_topic: "Afterburner626E9C/sts/ErrorString"
- name: Afterburner Internal Temperature
unique_id: afterburner_internal_temp
state_topic: "Afterburner626E9C/sts/TempBody"
device_class: temperature
unit_of_measurement: °C
state_class: measurement
- name: Afterburner Consumption (Total)
unique_id: afterburner_consumption
state_topic: "Afterburner626E9C/sts/TotalFuelUsage"
unit_of_measurement: mL
state_class: total_increasing
- name: Afterburner Pump Rate
unique_id: afterburner_pump
state_topic: "Afterburner626E9C/sts/PumpActual"
unit_of_measurement: Hz
device_class: frequency
state_class: measurement
- name: Afterburner Fan Speed
unique_id: afterburner_fan
state_topic: "Afterburner626E9C/sts/FanRPM"
unit_of_measurement: RPM
state_class: measurement
- name: Afterburner Glow Plug
unique_id: afterburner_glowplug
state_topic: "Afterburner626E9C/sts/GlowCurrent"
device_class: current
unit_of_measurement: A
state_class: measurement
@Phil2336
Copy link

Hi,

Trying to implement this and only seem to have it partially working.
Made mention of it here,
https://community.home-assistant.io/t/afterbuner-mqtt-to-homeassistant/279936/17

Not sure I completely understand the Climate section.
It's a bit outside my BASIC programming familiarity.

Any Suggestions?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment