Hi,
I hope this is (not) something obvious, I have been searching for a solution for a while.
In all honesty I am certainly only a beginner, but trying to learn while doing.
I have an ESP32 which connects via ble to a TRV and publishes it to mqtt.
This part seems to work pretty good (GitHub - softypit/esp32_mqtt_eq3: esp32-based mqtt node to control EQ-3 BLE TRVs).
I added this in my home assistant using mqtt hvac, which seems to work, but the thermostat card still status Grey, even though it does seem to work.
Any ideas on where to start?
My configuration:
climate:
- platform: mqtt
unique_id: bureau_eq3
name: bureau
mode_state_topic: "/esp321radout/status"
modes:
- "auto"
- "off"
- "heat"
- "cool"
mode_command_topic: "/esp321radin/trv"
mode_command_template: >
{% if 'heat' in value %}
'00:1A:22:11:F9:BC on'
{% elif 'auto' in value %}
'00:1A:22:11:F9:BC auto'
{% elif 'cool' in value %}
'00:1A:22:11:F9:BC manual'
{% else %}
'00:1A:22:11:F9:BC off'
{% endif %}
precision: 0.5
temperature_command_topic: "/esp321radin/trv"
temperature_command_template: "00:1A:22:11:F9:BC settemp {{value|int}}"
#"{{"00:1A:22:11:F9:BC settemp "}}"
temperature_state_topic: "/esp321radout/status"
temperature_state_template: "{{ value_json.temp | float}}"
current_temperature_topic: "/esp321radout/status"
current_temperature_template: "{{ value_json.temp | float}}"
mode_state_topic: "/esp321radout/status"
mode_state_template: >
{% if "30.0" in value_json.temp %}
'heat'
{% elif "auto" in value_json.mode %}
set mode = 'auto'
{% elif "manual" in value_json.mode %}
set mode = 'cool'
{% else %}
set mode = 'off'
{% endif %}
min_temp: 4
max_temp: 31
temp_step: 0.5