sensor:
  - platform: modbus_controller
    modbus_controller_id: ${modbus_controller_id}
    name: "${name} Ruecklauftemperatur an der Zirkulations Leitung"
    id: ${lower_name}_Ruecklauftemperatur_an_der_Zirkulations_Leitung
    register_type: read
    address: 711
    unit_of_measurement: "°C"
    value_type: U_WORD
    filters:
      - multiply: 0.5

  - platform: modbus_controller
    modbus_controller_id: ${modbus_controller_id}
    name: "${name} Strömungsschalter an der Brauchwasser Leitung"
    id: ${lower_name}_Stoemungsschalter_an_der_Brauchwasser_Leitung
    register_type: read
    address: 600
    value_type: U_WORD

  - platform: modbus_controller
    modbus_controller_id: ${modbus_controller_id}
    name: "${name} Drehzahl der Zirkulations Pumpe"
    id: ${lower_name}_Drehzahl_der_Zirkulations_Pumpe
    register_type: read
    address: 710
    unit_of_measurement: "%"
    value_type: U_WORD

binary_sensor:
  - platform: template
    name: "${name} Zirkulationspumpe AN AUS"
    id: ${lower_name}_Zirkulations_Pumpe_AN_AUS
    lambda: |-
      if (id(${lower_name}_Drehzahl_der_Zirkulations_Pumpe).state > 0) {
        return true;
      } else {
        return false;
      }

number:
  - platform: modbus_controller
    modbus_controller_id: ${modbus_controller_id}
    name: "${name} Bei welcher RL Temperatur an der Zirkulationsleitung soll die Pumpe ausschalten"
    id: ${lower_name}_Bei_welcher_RL_Temperatur_an_der_Zirkulationsleitung_soll_die_Pumpe_ausschalten
    address: 600
    unit_of_measurement: "°C"
    value_type: U_WORD
    multiply: 2
    min_value: 20
    max_value: 120
