Created
August 18, 2023 13:29
-
-
Save Mictronics/bc8d34e25afdb1fc02d3fb68752c4f80 to your computer and use it in GitHub Desktop.
Home Assistant HASS configuration for chines diesel heater controller Afterburner Mk2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias: Get Heater Status | |
description: "" | |
trigger: | |
# - platform: homeassistant | |
# event: start | |
- platform: time_pattern | |
# Matches every hour at 5 minutes past whole | |
minutes: "/1" | |
condition: [] | |
action: | |
- service: mqtt.publish | |
data: | |
topic: AfterburnerF25A18/cmd/Refresh | |
payload: "1" | |
mode: single |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mqtt: | |
climate: | |
- name: Van Heating | |
action_topic: "AfterburnerF25A18/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: "AfterburnerF25A18/sts/TempCurrent" | |
max_temp: 35 | |
min_temp: 8 | |
modes: | |
- "off" | |
- "heat" | |
mode_state_topic: "AfterburnerF25A18/sts/Run" | |
mode_state_template: > | |
{% if value == "1" %} | |
heat | |
{% else %} | |
off | |
{% endif %} | |
mode_command_topic: "AfterburnerF25A18/cmd/Run" | |
mode_command_template: > | |
{% if value == "heat" %} | |
1 | |
{% else %} | |
0 | |
{% endif %} | |
precision: 0.1 | |
temperature_command_topic: "AfterburnerF25A18/cmd/TempDesired" | |
temperature_state_topic: "AfterburnerF25A18/sts/TempDesired" | |
temp_step: 0.5 | |
sensor: | |
- name: Afterburner Status | |
unique_id: afterburner_status | |
state_topic: "AfterburnerF25A18/sts/RunString" | |
- name: Afterburner Error | |
unique_id: afterburner_error | |
state_topic: "AfterburnerF25A18/sts/ErrorString" | |
- name: Afterburner Internal Temperature | |
unique_id: afterburner_internal_temp | |
state_topic: "AfterburnerF25A18/sts/TempBody" | |
device_class: temperature | |
unit_of_measurement: °C | |
state_class: measurement | |
- name: Afterburner Consumption (Total) | |
unique_id: afterburner_consumption | |
state_topic: "AfterburnerF25A18/sts/TotalFuelUsage" | |
unit_of_measurement: mL | |
state_class: total_increasing | |
- name: Afterburner Pump Rate | |
unique_id: afterburner_pump | |
state_topic: "AfterburnerF25A18/sts/PumpActual" | |
unit_of_measurement: Hz | |
device_class: frequency | |
state_class: measurement | |
- name: Afterburner Fan Speed | |
unique_id: afterburner_fan | |
state_topic: "AfterburnerF25A18/sts/FanRPM" | |
unit_of_measurement: RPM | |
state_class: measurement | |
- name: Afterburner Glow Plug | |
unique_id: afterburner_glowplug | |
state_topic: "AfterburnerF25A18/sts/GlowCurrent" | |
device_class: current | |
unit_of_measurement: A | |
state_class: measurement | |
- name: Afterburner Glow Voltage | |
unique_id: afterburner_glowvoltage | |
state_topic: "AfterburnerF25A18/sts/GlowVoltage" | |
device_class: voltage | |
unit_of_measurement: V | |
state_class: measurement | |
- name: Afterburner Wifi RSSI | |
unique_id: afterburner_wifirssi | |
state_topic: "AfterburnerF25A18/JSONout" | |
device_class: signal_strength | |
unit_of_measurement: dBm | |
state_class: measurement | |
value_template: "{{ value_json.IP_STARSSI }}" | |
- name: Afterburner Input Voltage | |
unique_id: afterburner_inputvoltage | |
state_topic: "AfterburnerF25A18/JSONout" | |
device_class: voltage | |
unit_of_measurement: V | |
state_class: measurement | |
value_template: "{{ value_json.InputVoltage }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment