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…
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
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
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.
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
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.
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?
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?
It’s Been in the back of my mind lately with Winter coming on.
Just revisiting it’s current state now so I can refresh my mind & make a constructive post.
Suspect something Buggy, given the fact that the Values I can’t see in the Integration appear in MQTT Explorer.
Not sure I understand.
Would the code I posted work or you had the same and it didn’t work?
My problem is really with the “thermostat”. I use the heater in manual mode adjusting only the pump speed as I want to avoid the heater turning on and off constantly. It’s bad for the heater and also use a shit load of electricity when heating up the glow plug every time it switches on or off.
But I need to automate the heating control/pump speed with HA based on the interior temperature.
Just got to trying it & the same results as every other thing I’ve tried.
The value shows in Explorer but not in the entity, sensor.afterburner_current_usage
This is the Code Block:-
- name: Afterburner Current Usage
unique_id: afterburner_current_usage
state_topic: “AfterburnerFF4E3C/sts/FuelUsage”
unit_of_measurement: mL
value_template: "{{ value }}"
Hmm, this is the whole code in yaml (deleted some unrelated sensors).
What I noticed you missed some quotes and double quotes but I reckon if your other sensors are the same and present then does not make a difference…