New Shelly TRV BLU integration

Yes i have read this. But I don’t know what exactly I need to find the Shelly BLU TRV.
The above code for “mqtt” does not work.

Oke, After Day’s of struggling and sometimes with some improvements. i give up :smile: the case is: the MQTT connection from myBLUGW is up. as you can see in the screenshot below. but in HA (left side) the response of the devices stay’s ‘not availible’

The ID of my blutrv is correct
THe ID of my BLUgateway have i copied from the bottom left of the webinterface (and hover text say’s ID) but i cannot find out why in HA i do not get the device running. the only thing i can think of is, that i have one other MQTT device that MQTT did find on its own and is NOT in the configuration.yaml. but this device also a HAVC (Airconditioning) is working. Please someone any idea’s

mqtt:
- climate:
    name: "Blutrv"
    unique_id: "f8:44:77:2a:f9:32"
    current_temperature_topic: "shellyblugwg3-34cdb078aec4/status/bthomesensor:203"
    current_temperature_template: "{{ value_json.value }}"
    max_temp: 30
    min_temp: 4
    temp_step: 0.1
    temperature_state_topic: "shellyblugwg3-34cdb078aec4/status/bthomesensor:202"
    temperature_state_template: "{{ value_json.value }}"
    temperature_command_template: "{{ {'id': 0, 'src': 'homeassistant', 'method': 'BluTRV.Call', 'params': {'id': 200, 'method': 'TRV.SetTarget', 'params': {'id': 0, 'target_C': value | round(1)}}} | to_json }}"
    temperature_command_topic: "shellyblugwg3-34cdb078aec4/rpc"
    mode_state_topic: "shellyblugwg3-34cdb078aec4/status/bthomesensor:202"
    mode_state_template: "heat"
    modes: ["heat"]
    availability:
      - topic: "shellyblugwg3-34cdb078aec4/status/blutrv:200"
        value_template: "{%if value_json.rpc%}online{%else%}offline{%endif%}"
    device:
      connections:
        - - bluetooth
          - f8:44:77:2a:f9:32
      name: Blutrv
      model: Blutrv
      model_id: SBTR-EU867E
      manufacturer: Allterco Robotics

What the earlier reply was is that the ‘TAB’s’ or something like that are not correct.
Your code is not formated in the right way HA wants to. i also had this issue and this is an HA logic and not an BluTRV issue.

Topics are different

But how dit i manage to change the topic in the webinterface of the BLUGW?
or in other words is the sollution to change the YAML with replacing the ID

"shellyblugwg3-34cdb078aec4/ to “blutrv”

MQTT Prefix field.

Yes, you can use such topic in the YAML configuration.

1 Like

YOU ARE THE GREATEST!!! :slight_smile:

1 Like

Great work from @Bieniu! But i gave up and send them back to Shelly.
Its weird that normal support takes so long while all other devices work fine with the shelly intergration.

I bought 6 Sonoff TRV’s for half the money and they work flawless since i installed them. Just something to think about if you might consider buying smart valves.

New configuration with HVAC action support (firmware 20250109-090619/1.5.0-beta1-g16e0ef4 for BLU Gateway required)

mqtt:
  - climate:
      name: "Shelly BLU TRV Thermostat"
      unique_id: "112233445566"
      current_temperature_topic: "shellyblugwg3-aabbccddeeff/status/blutrv:200"
      current_temperature_template: "{{value_json.current_C}}"
      max_temp: 30
      min_temp: 4
      temp_step: 0.1
      temperature_state_topic: "shellyblugwg3-aabbccddeeff/status/blutrv:200"
      temperature_state_template: "{{value_json.target_C}}"
      temperature_command_template: "{{ {'id': 0, 'src': 'homeassistant', 'method': 'BluTRV.Call', 'params': {'id': 200, 'method': 'TRV.SetTarget', 'params': {'id': 0, 'target_C': value | round(1)}}} | to_json }}"
      temperature_command_topic: "shellyblugwg3-aabbccddeeff/rpc"
      mode_state_topic: "shellyblugwg3-aabbccddeeff/status/blutrv:200"
      mode_state_template: "heat"
      modes: ["heat"]
     action_topic: "shellyblugwg3-aabbccddeeff/status/blutrv:200"
     action_template: "{% if value_json.pos > 0 %}heating{% else %}idle{% endif %}"
      availability:
        - topic: "shellyblugwg3-aabbccddeeff/status/blutrv:200"
          value_template: "{% if value_json.rpc %}online{% else %}offline{% endif %}"
      device:
        connections:
          - - bluetooth
            - 11:22:33:44:55:66
        name: Shelly BLU TRV
        model: Shelly BLU TRV
        model_id: SBTR-EU867E
        manufacturer: Allterco Robotics

112233445566 - BLU TRV ID
aabbccddeeff - BLU Gateway ID
200 - BLU TRV ID from BLU Gateway webpanel

Hi, do we need the BLU gateway at all? I have a shellyplus1pm and interface is practically the same with the same functionality and running faster than the gateway.
Has anybody tried to integrate the TRV via Gen2/3 switch?

One more thing - where is the option to enable the zigbee radio? I tried the latest beta but can’t see such option.

Yes, only BLU Gateway Gen3 supports BLU TRV.

Push 3 times the button on the device.

1 Like

Are there any Updates on the official integration?

Or can anyone post a link to an Step by Step Guide for the MQTT variant?

I’m not talented enough for this. Im used to plug and play from shelly devices.

I have copied and pasted the code for my BluTrv but my editor is coming up with some errors on the action lines,I am not used to editing code and have tried a couple of things but they did not work any ideas?
action_topic: “shellyblugwg3-e4b3231668e0/status/blutrv:200” Value is not accepted. Valid Values:“cooling”, “Drying”, “fan”, “heating”, “idle”, “off”.

mqtt:
  - climate:
      name: "Kitchen TRV"
      unique_id: "F8:44:77:3A:C4:37"
      current_temperature_topic: "shellyblugwg3-e4b3231668e0/status/blutrv:200"
      current_temperature_template: "{{value_json.current_C}}"
      max_temp: 30
      min_temp: 4
      temp_step: 0.1
      temperature_state_topic: "shellyblugwg3-e4b3231668e0/status/blutrv:200"
      temperature_state_template: "{{value_json.target_C}}"
      temperature_command_template: "{{ {'id': 0, 'src': 'homeassistant', 'method': 'BluTRV.Call', 'params': {'id': 200, 'method': 'TRV.SetTarget', 'params': {'id': 0, 'target_C': value | round(1)}}} | to_json }}"
      temperature_command_topic: "shellyblugwg3-e4b3231668e0/rpc"
      mode_state_topic: "shellyblugwg3-e4b3231668e0/status/blutrv:200"
      mode_state_template: "heat"
      modes: ["heat"]
      action_topic: "shellyblugwg3-e4b3231668e0/status/blutrv:200"
      action_template: "{% if value_json.pos > 0 %}heating{% else %}idle{% endif %}"
      availability:
        - topic: "shellyblugwg3-e4b3231668e0/status/blutrv:200"
          value_template: "{% if value_json.rpc %}online{% else %}offline{% endif %}"
      device:
        connections:
          - - bluetooth
            - F8:44:77:3A:C4:37
        name: "Kitchen TRV"
        model: Shelly BLU TRV
        model_id: SBTR-EU867E
        manufacturer: Allterco Robotics

Hope this makes sense this is my first post.

@Bieniu what are you saying? I am not too versed with this stuff as well, but the action_topic in your YAML provided here is exactly as the one in the question from @BJeffrey (and mine). I am not sure, if you are saying we need to change the YAML, of this indicates another error. Maybe you can add a sentence or two to help those struggling here? :slight_smile:

I’m saying the documentation confirms the configuration is correct.

1 Like

I figured out my issue: I downgraded from the 1.5.0-beta firmware after I saw some issues. That broke the integration for me. After upgrading again, everything looks schwifty now. Thanks for all your work @Bieniu! :green_heart:

Last configuration REQUIRES firmware 1.5.0 beta 1. There will be no HVAC action without this firmware.

1 Like

PRs merged

and Shelly BLU TRV will be supported in HA 2025.2.

4 Likes