Hello
if someone also habe Smart-Me AG M-Bus Gateway and some Heat Maessurment Device connect, here small template to get such data over rest interface :
Some simple visualisation
rest:
- authentication: basic
username: xxxx
password: xxxx
resource: https://smart-me.com:443/api/Values/xxxxxx-0a0e-xxxx-b348-xxxxxxx
scan_interval: 15
sensor:
- name: "Heizung Zähler"
value_template: "{{ value_json.Values | selectattr('Obis', 'eq', '6-0:1.0.0*255') | map(attribute='Value') | first | int / 1000}}"
unit_of_measurement: KWh
- name: "Heizung Vorlauf"
value_template: "{{ (value_json.Values | selectattr('Obis', 'eq', '6-0:10.0.0*255') | map(attribute='Value')|first -273.15)|float|round(2) }}"
unit_of_measurement: "°C"
state_class: measurement
- name: "Heizung Rücklauf"
value_template: "{{ (value_json.Values | selectattr('Obis', 'eq', '6-0:11.0.0*255') | map(attribute='Value')|first -273.15)|float|round(2) }}"
unit_of_measurement: '°C'
- name: "Heizung Leistung"
value_template: "{{ value_json.Values | selectattr('Obis', 'eq', '6-0:8.0.0*255') | map(attribute='Value') | first | float}}"
unit_of_measurement: 'W'
- name: "Heizung Durchfluss"
value_template: "{{ (value_json.Values | selectattr('Obis', 'eq', '6-0:9.0.0*255') | map(attribute='Value') | first | float|round(2)) }}"
unit_of_measurement: "m³/h"