Meinst du so?
Das geht mit MQTT
Im Shelly Gateway so einstellen (mit deinem eigenen Namen und dem passenden User für MQTT
in der configuration.yam den Code passend machen und neu starten
mqtt:
- climate:
name: "Thermostat_BO"
unique_id: "thermostat_bo"
current_temperature_topic: "blegatewayv3ug/status/bthomesensor:203"
current_temperature_template: "{{ value_json.value }}"
max_temp: 30
min_temp: 4
precision: 0.1
temp_step: 0.1
temperature_state_topic: "blegatewayv3ug/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: "blegatewayv3ug/rpc"
mode_state_topic: "blegatewayv3ug/status/bthomesensor:202"
mode_state_template: "{{ 'off' if value_json.value == 4 else 'heat' }}"
modes: ["heat", "off"]
mode_command_topic: "blegatewayv3ug/rpc"
mode_command_template: "{% set target = 4 if value == 'off' else 21 %}{{ {'id': 0, 'src': 'homeassistant', 'method': 'BluTRV.Call', 'params': {'id': 200, 'method': 'TRV.SetTarget', 'params': {'id': 0, 'target_C': target}}} | to_json }}"
availability:
- topic: "blegatewayv3ug/online"
payload_available: "true"
payload_not_available: "false"
- topic: "blegatewayv3ug/status/mqtt"
value_template: "{% if value_json.connected %}online{%else%}offline{%endif%}"
device:
connections:
- - bluetooth
- 28:db:a7:b5:d2:06
name: Shelly BLU TRV
model: Shelly BLU TRV
model_id: SBTR-EU867E
manufacturer: Allterco Robotics
Die MAC-Adresse des TRV findet man im Gateway unter Components
Die native Unterstützung kommt noch…