Advertisement
blackscreener

Sprsun Heat Pump esphome logger

Sep 13th, 2023 (edited)
2,108
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 235.76 KB | Source Code | 1 0
  1. esphome:
  2.   name: $devicename
  3.   platform: ESP32
  4.   board: nodemcu-32s
  5.   #board_flash_mode: dout
  6.  
  7. substitutions:
  8.   devicename: sprsun-logger-v2
  9.   friendly_name: Sprsun
  10.  
  11. wifi:
  12.   ssid: !secret wifi_ssid
  13.   password: !secret wifi_password
  14.  
  15.   # Enable fallback hotspot (captive portal) in case wifi connection fails
  16.   ap:
  17.     ssid: "sweet-fallback-${devicename}"
  18.     password: cvbcbcbcvsdsdsdds
  19.  
  20. captive_portal:
  21. logger:
  22.   level: DEBUG
  23.   baud_rate: 0
  24.  
  25. # Enable Home Assistant API
  26. api:
  27.  #password: !secret api-password
  28.  
  29. ota:
  30.  #password: !secret ota-password
  31.  
  32. # Enable Web server
  33. #web_server:
  34. #  port: 80
  35.  
  36. uart:
  37.   - id: mod_bus #sprsun
  38.     tx_pin: 16
  39.     rx_pin: 17
  40.     baud_rate: 19200
  41.     stop_bits: 2
  42.  
  43.   - id: mod_bus2 #pzem
  44.     tx_pin: 1
  45.     rx_pin: 3
  46.     baud_rate: 9600
  47.     stop_bits: 2  #1 dla esp8266
  48.  
  49. #bluetooth_proxy:
  50. #esp32_ble_tracker:
  51.  
  52.  
  53. dallas:
  54.   - pin: 18
  55.     update_interval: 30s
  56.  
  57. modbus:
  58.   - id: mod_bus_sprsun
  59.     uart_id: mod_bus
  60.     send_wait_time: 200ms
  61.   - id: mod_bus_pzem
  62.     send_wait_time: 200ms
  63.     uart_id: mod_bus2
  64.  
  65. modbus_controller:
  66.   - id: sprsun_pc
  67.     address: 0x01
  68.     modbus_id: mod_bus_sprsun
  69.     update_interval: 5s
  70.     setup_priority: -10
  71.  
  72.   - id: pzem1
  73.     modbus_id: mod_bus_pzem
  74.     command_throttle: 0ms
  75.     setup_priority: -10
  76.     update_interval: 5s
  77.  
  78.  
  79. globals:
  80.   - id: number_compressor_starts
  81.     type: int
  82.     restore_value: yes
  83.     initial_value: '0'
  84.  
  85.  
  86. binary_sensor:
  87. - platform: modbus_controller
  88.   modbus_controller_id: sprsun_pc
  89.   name: Grzałka CO
  90.   id: grzalka_co
  91.   #entity_category: diagnostic
  92.   #device_class: heat
  93.   register_type: holding
  94.   address: 0x0005
  95.   bitmask: 0x20
  96.   on_press:
  97.     if:
  98.       condition:
  99.         switch.is_on: blokada_grzalka_co
  100.       then:
  101.         - switch.turn_on: relay_grzalka_co
  102.   on_release:
  103.     if:
  104.       condition:
  105.         switch.is_on: blokada_grzalka_co
  106.       then:
  107.         - switch.turn_off: relay_grzalka_co
  108.  
  109. - platform: modbus_controller
  110.   modbus_controller_id: sprsun_pc
  111.   name: Grzałka CWU
  112.   id: grzalka_cwu
  113.   #entity_category: diagnostic
  114.   #device_class: heat
  115.   register_type: holding
  116.   address: 0x0005
  117.   bitmask: 0x80
  118.   on_press:
  119.     if:
  120.       condition:
  121.         switch.is_on: blokada_grzalka_cwu
  122.       then:
  123.         - switch.turn_on: relay_grzalka_cwu
  124.   on_release:
  125.     if:
  126.       condition:
  127.         switch.is_on: blokada_grzalka_cwu
  128.       then:
  129.         - switch.turn_off: relay_grzalka_cwu
  130.  
  131. - platform: modbus_controller
  132.   modbus_controller_id: sprsun_pc
  133.   name: Grzanie CWU
  134.   id: hotwater_demand
  135.   #entity_category: diagnostic
  136.   #device_class: heat
  137.   register_type: holding
  138.   address: 0x0003
  139.   bitmask: 0x01
  140.  
  141. - platform: modbus_controller
  142.   modbus_controller_id: sprsun_pc
  143.   name: Grzanie CO
  144.   id: heating_demand
  145.   #entity_category: diagnostic
  146.   #device_class: heat
  147.   register_type: holding
  148.   address: 0x0003
  149.   bitmask: 0x02
  150.  
  151. - platform: modbus_controller
  152.   modbus_controller_id: sprsun_pc
  153.   name: Praca sprężarki
  154.   id: compressor_demand
  155.   #entity_category: diagnostic
  156.   #device_class: heat
  157.   register_type: holding
  158.   address: 0x0004
  159.   bitmask: 0x01
  160.   on_press:
  161.     then:
  162.       - lambda: 'id(number_compressor_starts)++;'
  163.  
  164. text_sensor:
  165.   - platform: template
  166.     id: pump1_status
  167.     name: "Pompa CO status"
  168.     icon: mdi:thermostat
  169.  
  170.   - platform: template
  171.     name: ${friendly_name} Uptime
  172.     lambda: |-
  173.       int seconds = (id(uptime_sec).state);
  174.       int days = seconds / (24 * 3600);
  175.       seconds = seconds % (24 * 3600);
  176.       int hours = seconds / 3600;
  177.       seconds = seconds % 3600;
  178.       int minutes = seconds /  60;
  179.       seconds = seconds % 60;
  180.       return { (String(days) +"d " + String(hours) +"h " + String(minutes) +"m "+ String(seconds) +"s").c_str() };
  181.     icon: mdi:clock-start
  182.     update_interval: 120s
  183.    
  184.   - platform: modbus_controller
  185.     modbus_controller_id: sprsun_pc
  186.     name: ${friendly_name} Switching input symbol
  187.     id: switching_input_symbol
  188.     register_type: holding
  189.     address: 0x0002
  190.     response_size: 2
  191.     raw_encode: HEXBYTES
  192.     #bitmask: 0
  193.     lambda: |-
  194.        std::string z = "";
  195.        int idx = item->offset+1;
  196.        if ((data[idx] & 0x0001) != 0) z += "A/C Linkage switch, ";
  197.        if ((data[idx] & 0x0002) != 0) z += "Linkage switch, ";
  198.        if ((data[idx] & 0x0004) != 0) z += "Heating linkage, ";
  199.        if ((data[idx] & 0x0008) != 0) z += "Cooling linkage, ";
  200.        if ((data[idx] & 0x0010) != 0) z += "Flow Switch, ";
  201.        if ((data[idx] & 0x0020) != 0) z += "High pessure switch, ";
  202.        if ((data[idx] & 0x0040) != 0) z += "Phase sequence detection, ";
  203.        if ((data[idx] & 0x0080) != 0) z += "Invalid, ";
  204.    
  205.        if(z.length() > 0){
  206.          z.pop_back();
  207.        }
  208.        return {z};
  209.  
  210.   - platform: modbus_controller
  211.     modbus_controller_id: sprsun_pc
  212.     name: ${friendly_name} Working status mark
  213.     id: working_status_mark
  214.     register_type: holding
  215.     address: 0x0003
  216.     response_size: 2
  217.     raw_encode: HEXBYTES
  218.     #bitmask: 0
  219.     lambda: |-
  220.        std::string z = "";
  221.        int idx = item->offset+1;
  222.        if ((data[idx] & 0x0001) != 0) z += "Hot water demand, ";
  223.        if ((data[idx] & 0x0002) != 0) z += "Heating demand, ";
  224.        if ((data[idx] & 0x0004) != 0) z += "With or without heating, ";
  225.        if ((data[idx] & 0x0008) != 0) z += "With or without cooling, ";
  226.        if ((data[idx] & 0x0010) != 0) z += "Antilegionella on, ";
  227.        if ((data[idx] & 0x0020) != 0) z += "Cooling demand, ";
  228.        if ((data[idx] & 0x0040) != 0) z += "Alarm downtime, ";
  229.        if ((data[idx] & 0x0080) != 0) z += "Defrost, ";
  230.    
  231.        if(z.length() > 0){
  232.          z.pop_back();
  233.        }
  234.        return {z};
  235.  
  236.   - platform: modbus_controller
  237.     modbus_controller_id: sprsun_pc
  238.     name: ${friendly_name} Output symbol 1
  239.     id: output_symbol_1
  240.     register_type: holding
  241.     address: 0x0004
  242.     response_size: 2
  243.     raw_encode: HEXBYTES
  244.     #bitmask: 0
  245.     lambda: |-
  246.        std::string z = "";
  247.        int idx = item->offset+1;
  248.        if ((data[idx] & 0x0001) != 0) z += "Compressor, ";
  249.        if ((data[idx] & 0x0002) != 0) z += "Invalid, ";
  250.        if ((data[idx] & 0x0004) != 0) z += "Invalid, ";
  251.        if ((data[idx] & 0x0008) != 0) z += "Invalid, ";
  252.        if ((data[idx] & 0x0010) != 0) z += "Invalid, ";
  253.        if ((data[idx] & 0x0020) != 0) z += "Fan, ";
  254.        if ((data[idx] & 0x0040) != 0) z += "4-way valve, ";
  255.        if ((data[idx] & 0x0080) == 0) z += "Low fan speed, ";
  256.        if ((data[idx] & 0x0080) == 128) z += "High fan speed, ";
  257.    
  258.        if(z.length() > 0){
  259.          z.pop_back();
  260.        }
  261.        return {z};
  262.  
  263.  
  264.        
  265.   - platform: modbus_controller
  266.     modbus_controller_id: sprsun_pc
  267.     name: ${friendly_name} Output symbol 2
  268.     id: output_symbol_2
  269.     register_type: holding
  270.     address: 0x0005
  271.     response_size: 2
  272.     raw_encode: HEXBYTES
  273.     #bitmask: 0
  274.     lambda: |-
  275.        std::string z = "";
  276.        int idx = item->offset+1;
  277.        if ((data[idx] & 0x0001) != 0) z += "Chasis heater, ";
  278.        if ((data[idx] & 0x0002) != 0) z += "Invalid, ";
  279.        if ((data[idx] & 0x0004) != 0) z += "Invalid, ";
  280.        if ((data[idx] & 0x0008) != 0) z += "Invalid, ";
  281.        if ((data[idx] & 0x0010) != 0) z += "Invalid, ";
  282.        if ((data[idx] & 0x0020) != 0) z += "Heating heater, ";
  283.        if ((data[idx] & 0x0040) != 0) z += "Three-way valve, ";
  284.        if ((data[idx] & 0x0080) != 0) z += "Hotwater heater, ";
  285.    
  286.        if(z.length() > 0){
  287.          z.pop_back();
  288.        }
  289.        return {z};
  290.  
  291.   - platform: modbus_controller
  292.     modbus_controller_id: sprsun_pc
  293.     name: ${friendly_name} Output symbol 3
  294.     id: output_symbol_3
  295.     register_type: holding
  296.     address: 0x0006
  297.     response_size: 2
  298.     raw_encode: HEXBYTES
  299.     #bitmask: 0
  300.     lambda: |-
  301.        std::string z = "";
  302.        int idx = item->offset+1;
  303.        if ((data[idx] & 0x0001) != 0) z += "A/C PUMP, ";
  304.        if ((data[idx] & 0x0002) != 0) z += "Crank heater, ";
  305.        if ((data[idx] & 0x0004) != 0) z += "Invalid, ";
  306.        if ((data[idx] & 0x0008) != 0) z += "Invalid, ";
  307.        if ((data[idx] & 0x0010) != 0) z += "Invalid, ";
  308.        if ((data[idx] & 0x0020) != 0) z += "Assistant solenoid valve, ";
  309.        if ((data[idx] & 0x0040) != 0) z += "Pump, ";
  310.        if ((data[idx] & 0x0080) != 0) z += "Invalid, ";
  311.    
  312.        if(z.length() > 0){
  313.          z.pop_back();
  314.        }
  315.        return {z};
  316.        
  317.   - platform: modbus_controller
  318.     modbus_controller_id: sprsun_pc
  319.     name: ${friendly_name} Failure symbol 1
  320.     id: failure_symbol_1
  321.     register_type: holding
  322.     address: 0x0007
  323.     response_size: 2
  324.     raw_encode: HEXBYTES
  325.     #bitmask: 0
  326.     lambda: |-
  327.        std::string z = "";
  328.        int idx = item->offset+1;
  329.        if ((data[idx] & 0x0001) != 0) z += "Hotwater temp, ";
  330.        if ((data[idx] & 0x0002) != 0) z += "Ambi temp, ";
  331.        if ((data[idx] & 0x0004) != 0) z += "Coil temp, ";
  332.        if ((data[idx] & 0x0008) != 0) z += "Invalid, ";
  333.        if ((data[idx] & 0x0010) != 0) z += "Outlet temp, ";
  334.        if ((data[idx] & 0x0020) != 0) z += "High pressure sensor failure, ";
  335.        if ((data[idx] & 0x0040) != 0) z += "Invalid, ";
  336.        if ((data[idx] & 0x0080) != 0) z += "Phase sequence, ";
  337.    
  338.        if(z.length() > 0){
  339.          z.pop_back();
  340.        }
  341.        return {z};
  342.  
  343.   - platform: modbus_controller
  344.     modbus_controller_id: sprsun_pc
  345.     name: ${friendly_name} Failure symbol 2
  346.     id: failure_symbol_2
  347.     register_type: holding
  348.     address: 0x0008
  349.     response_size: 2
  350.     raw_encode: HEXBYTES
  351.     #bitmask: 0
  352.     lambda: |-
  353.        std::string z = "";
  354.        int idx = item->offset+1;
  355.        if ((data[idx] & 0x0001) != 0) z += "Water flow failure, ";
  356.        if ((data[idx] & 0x0002) != 0) z += "Invalid, ";
  357.        if ((data[idx] & 0x0004) != 0) z += "High protection of heating water outlet, ";
  358.        if ((data[idx] & 0x0008) != 0) z += "Invalid, ";
  359.        if ((data[idx] & 0x0010) != 0) z += "Invalid, ";
  360.        if ((data[idx] & 0x0020) != 0) z += "Invalid, ";
  361.        if ((data[idx] & 0x0040) != 0) z += "Invalid, ";
  362.        if ((data[idx] & 0x0080) != 0) z += "Invalid, ";
  363.    
  364.        if(z.length() > 0){
  365.          z.pop_back();
  366.        }
  367.        return {z};
  368.  
  369.   - platform: modbus_controller
  370.     modbus_controller_id: sprsun_pc
  371.     name: ${friendly_name} Failure symbol 3
  372.     id: failure_symbol_3
  373.     register_type: holding
  374.     address: 0x0009
  375.     response_size: 2
  376.     raw_encode: HEXBYTES
  377.     #bitmask: 0
  378.     lambda: |-
  379.        std::string z = "";
  380.        int idx = item->offset+1;
  381.        if ((data[idx] & 0x0001) != 0) z += "Invalid, ";
  382.        if ((data[idx] & 0x0002) != 0) z += "Invalid, ";
  383.        if ((data[idx] & 0x0004) != 0) z += "Invalid, ";
  384.        if ((data[idx] & 0x0008) != 0) z += "Invalid, ";
  385.        if ((data[idx] & 0x0010) != 0) z += "Invalid, ";
  386.        if ((data[idx] & 0x0020) != 0) z += "Invalid, ";
  387.        if ((data[idx] & 0x0040) != 0) z += "Outlet gas temp failure, ";
  388.        if ((data[idx] & 0x0080) != 0) z += "Invalid, ";
  389.    
  390.        if(z.length() > 0){
  391.          z.pop_back();
  392.        }
  393.        return {z};
  394.        
  395.   - platform: modbus_controller
  396.     modbus_controller_id: sprsun_pc
  397.     name: ${friendly_name} Failure symbol 4
  398.     id: failure_symbol_4
  399.     register_type: holding
  400.     address: 0x000A
  401.     response_size: 2
  402.     raw_encode: HEXBYTES
  403.     #bitmask: 0
  404.     lambda: |-
  405.        std::string z = "";
  406.        int idx = item->offset+1;
  407.        if ((data[idx] & 0x0001) != 0) z += "Water inlet temp failure, ";
  408.        if ((data[idx] & 0x0002) != 0) z += "Exhaust temperature is too high, ";
  409.        if ((data[idx] & 0x0004) != 0) z += "Invalid, ";
  410.        if ((data[idx] & 0x0008) != 0) z += "Invalid, ";
  411.        if ((data[idx] & 0x0010) != 0) z += "Invalid, ";
  412.        if ((data[idx] & 0x0020) != 0) z += "Low protection of cooling water outlet, ";
  413.        if ((data[idx] & 0x0040) != 0) z += "Inlet gas temp failure, ";
  414.        if ((data[idx] & 0x0080) != 0) z += "Invalid, ";
  415.    
  416.        if(z.length() > 0){
  417.          z.pop_back();
  418.        }
  419.        return {z};
  420.        
  421.   - platform: modbus_controller
  422.     modbus_controller_id: sprsun_pc
  423.     name: ${friendly_name} Failure symbol 5
  424.     id: failure_symbol_5
  425.     register_type: holding
  426.     address: 0x000B
  427.     response_size: 2
  428.     raw_encode: HEXBYTES
  429.     #bitmask: 0
  430.     lambda: |-
  431.        std::string z = "";
  432.        int idx = item->offset+1;
  433.        if ((data[idx] & 0x0001) != 0) z += "Low pressure protection, ";
  434.        if ((data[idx] & 0x0002) != 0) z += "High pressure protection, ";
  435.        if ((data[idx] & 0x0004) != 0) z += "Coil temperature is too high, ";
  436.        if ((data[idx] & 0x0008) != 0) z += "Invalid, ";
  437.        if ((data[idx] & 0x0010) != 0) z += "Invalid, ";
  438.        if ((data[idx] & 0x0020) != 0) z += "Invalid, ";
  439.        if ((data[idx] & 0x0040) != 0) z += "High pressure sensor failure, ";
  440.        if ((data[idx] & 0x0080) != 0) z += "Low pressure sensor failure, ";
  441.    
  442.        if(z.length() > 0){
  443.          z.pop_back();
  444.        }
  445.        return {z};
  446.  
  447.  
  448.   - platform: modbus_controller
  449.     modbus_controller_id: sprsun_pc
  450.     name: ${friendly_name} Failure symbol 6
  451.     id: failure_symbol_6
  452.     register_type: holding
  453.     address: 0x000C
  454.     response_size: 2
  455.     raw_encode: HEXBYTES
  456.     #bitmask: 0
  457.     lambda: |-
  458.        std::string z = "";
  459.        int idx = item->offset+1;
  460.        if ((data[idx] & 0x0001) != 0) z += "Invalid, ";
  461.        if ((data[idx] & 0x0002) != 0) z += "Invalid, ";
  462.        if ((data[idx] & 0x0004) != 0) z += "Invalid, ";
  463.        if ((data[idx] & 0x0008) != 0) z += "Invalid, ";
  464.        if ((data[idx] & 0x0010) != 0) z += "Sec antifreeze, ";
  465.        if ((data[idx] & 0x0020) != 0) z += "One antifreeze, ";
  466.        if ((data[idx] & 0x0040) != 0) z += "Invalid, ";
  467.        if ((data[idx] & 0x0080) != 0) z += "Invalid, ";
  468.    
  469.        if(z.length() > 0){
  470.          z.pop_back();
  471.        }
  472.        return {z};
  473.  
  474.   - platform: modbus_controller
  475.     modbus_controller_id: sprsun_pc
  476.     name: ${friendly_name} Failure symbol 7
  477.     id: failure_symbol_7
  478.     register_type: holding
  479.     address: 0x000D
  480.     response_size: 2
  481.     raw_encode: HEXBYTES
  482.     #bitmask: 0
  483.     lambda: |-
  484.        std::string z = "";
  485.        int idx = item->offset+1;
  486.        if ((data[idx] & 0x0001) != 0) z += "Invalid, ";
  487.        if ((data[idx] & 0x0002) != 0) z += "Ambient temperature is too low, ";
  488.        if ((data[idx] & 0x0004) != 0) z += "Invalid, ";
  489.        if ((data[idx] & 0x0008) != 0) z += "Invalid, ";
  490.        if ((data[idx] & 0x0010) != 0) z += "Frequency conversion module is faulty ";
  491.        if ((data[idx] & 0x0020) != 0) z += "2# DC fan failure, ";
  492.        if ((data[idx] & 0x0040) != 0) z += "1# DC fan failure, ";
  493.        if ((data[idx] & 0x0080) != 0) z += "Invalid, ";
  494.    
  495.        if(z.length() > 0){
  496.          z.pop_back();
  497.        }
  498.        return {z};
  499.  
  500.  
  501. climate:
  502.   - platform: bang_bang
  503.     name: "Termostat CO"
  504.     id: termostat_co
  505.     sensor: temp_co_dallas
  506.     default_target_temperature_low: 30 °C
  507.     default_target_temperature_high: 35 °C
  508.     visual:
  509.       min_temperature: 10
  510.       max_temperature: 55
  511.       temperature_step: 1.0
  512.     heat_action:
  513.       - switch.turn_on: relay_grzalka_co
  514.     idle_action:
  515.       - switch.turn_off: relay_grzalka_co
  516.  
  517.   - platform: bang_bang
  518.     name: "Termostat CWU"
  519.     id: termostat_cwu
  520.     sensor: temp_cwu_dallas
  521.     default_target_temperature_low: 50 °C
  522.     default_target_temperature_high: 55 °C
  523.     visual:
  524.       min_temperature: 10
  525.       max_temperature: 80
  526.       temperature_step: 1.0
  527.     heat_action:
  528.       - switch.turn_on: relay_grzalka_cwu
  529.     idle_action:
  530.       - switch.turn_off: relay_grzalka_cwu
  531.  
  532. time:
  533.   - platform: sntp
  534.     id: my_time
  535. ############################################################
  536. sensor:
  537.   - name: "Liczba włączeń sprężarki" # From gloabl variable. To HA
  538.     id: number_of_compressor_starts
  539.     platform: template
  540.     #unit_of_measurement: "litres"
  541.     accuracy_decimals: 0
  542.     lambda: 'return id(number_compressor_starts);'
  543.     update_interval: 60s
  544.  
  545.  
  546. ############################################
  547.   - platform: modbus_controller
  548.     modbus_controller_id: sprsun_pc
  549.     id: parameter_marker_definition_raw
  550.     register_type: holding
  551.     address: 0x0032
  552.     value_type: U_WORD
  553.  
  554.   - platform: modbus_controller
  555.     modbus_controller_id: sprsun_pc
  556.     id: control_mark_1_raw
  557.     register_type: holding
  558.     address: 0x0033
  559.     value_type: U_WORD
  560.  
  561.   - platform: modbus_controller
  562.     modbus_controller_id: sprsun_pc
  563.     id: control_mark_2_raw
  564.     register_type: holding
  565.     address: 0x0034
  566.     value_type: U_WORD
  567.  
  568.   - platform: modbus_controller
  569.     modbus_controller_id: sprsun_pc
  570.     id: timeband_raw
  571.     register_type: holding
  572.     address: 0x0035
  573.     value_type: U_WORD
  574.  
  575. #########################################################################
  576. ###########  Status pompy obiegowej
  577.   - platform: duty_cycle
  578.     pin:
  579.       number: 33
  580.       mode: INPUT_PULLUP
  581.     id: pump1_power
  582.     name: Pompa obiegowa CO pobór
  583.     update_interval: 5s
  584.     accuracy_decimals: 0
  585.     device_class: "power"
  586.     unit_of_measurement: 'W'
  587.     filters:
  588.       - lambda: |-
  589.           return x == 100.0 ? 0.0 : x;
  590.     on_value:
  591.       - lambda: |-
  592.           ESP_LOGD("pompa_co", "state=%f", id(pump1_power).state);
  593.           if (id(pump1_power).state == 0) {
  594.             id(pump1_status).publish_state("Wyłączona");
  595.           }
  596.           else if (id(pump1_power).state > 74 && id(pump1_power).state < 76) {
  597.             id(pump1_status).publish_state("Ostrzeżenie");
  598.           }
  599.           else if (id(pump1_power).state > 84 && id(pump1_power).state < 86) {
  600.             id(pump1_status).publish_state("Zatrzymanie alarmowe, awaria elektryczna");
  601.           }
  602.           else if (id(pump1_power).state > 89 && id(pump1_power).state < 91) {
  603.             id(pump1_status).publish_state("Zatrzymanie alarmowe, blokada");
  604.           }
  605.           else if (id(pump1_power).state > 94 && id(pump1_power).state < 96) {
  606.             id(pump1_status).publish_state("Tryb gotowości przez sygnał PWM (STOP)");
  607.           }
  608.           else if (id(pump1_power).state >= 100) {
  609.             id(pump1_status).publish_state("Wyłączona");
  610.             id(pump1_power).publish_state(0);
  611.           }
  612.  #         else {
  613.  #           if (id(fan_pump1_state)) { id(pump1_status).publish_state("PWM"); }
  614.  #           else { id(pump1_status).publish_state("Ręczny"); }
  615.  #         }
  616.  
  617.  
  618. ##########################################################################
  619.   - platform: duty_time
  620.     name: "Czas pracy grzanie CO"
  621.     id: work_time_heating
  622.     sensor: heating_demand
  623.     # ... EOR 'lambda'
  624.    # lambda: "return id(my_climate).mode != CLIMATE_MODE_OFF;"
  625.     # Restore (optional, default: False)
  626.     restore: false
  627.     last_time:
  628.       name: Last time grzanie CO
  629.  
  630.   - platform: duty_time
  631.     name: "Czas pracy grzanie CWU"
  632.     id: work_time_hot_water
  633.     sensor: hotwater_demand
  634.     # ... EOR 'lambda'
  635.     #lambda: "return id(my_climate).mode != CLIMATE_MODE_OFF;"
  636.     # Restore (optional, default: False)
  637.     restore: false
  638.     last_time:
  639.       name: Last time grzanie CWU
  640.  
  641.   - platform: duty_time
  642.     name: "Czas pracy sprężarki"
  643.     id: work_time
  644.     sensor: compressor_demand
  645.     # ... EOR 'lambda'
  646.     #lambda: "return id(my_climate).mode != CLIMATE_MODE_OFF;"
  647.     # Restore (optional, default: False)
  648.     restore: false
  649.     last_time:
  650.       name: Last time grzanie
  651.  
  652.  
  653. ############   PZEM-004T V3 Pompa
  654.   - platform: pzemac
  655.     modbus_id: mod_bus_pzem
  656.     address: 1
  657.     current:
  658.       name: "PC prąd"
  659.       accuracy_decimals: 2
  660.       id: pc_prad
  661.     voltage:
  662.       name: "PC napięcie"
  663.       unit_of_measurement: W
  664.       accuracy_decimals: 2
  665.       id: pc_napiecie
  666.     energy:
  667.       name: "PC zużycie energii"
  668.       filters:
  669.        # Wh to kWh is 0.001
  670.         - multiply: 0.001
  671.       unit_of_measurement: kWh
  672.       accuracy_decimals: 3
  673.       id: pc_energia
  674.     power:
  675.       name: "PC moc"
  676.       unit_of_measurement: W
  677.       accuracy_decimals: 2
  678.       id: pc_moc
  679.     frequency:
  680.       name: "PC częstotliwość"
  681.       unit_of_measurement: Hz
  682.       accuracy_decimals: 2
  683.     power_factor:
  684.       name: "PC współczynnik mocy"
  685.       accuracy_decimals: 2
  686.       id: pc_power_factor
  687.     update_interval: 5s
  688.  
  689.   - platform: total_daily_energy
  690.     name: "PC dzienne zużycie energii"
  691.     power_id: pc_moc
  692.     unit_of_measurement: "kWh"
  693.     accuracy_decimals: 3
  694.     id: pc_daily_kwh
  695.     icon: mdi:counter
  696.     device_class: energy
  697.  
  698. #######  PC zużycie energii grzanie CO
  699.   - platform: template
  700.     name: "PC moc grzanie CO"
  701.     id: pc_moc_grzanie_co
  702.     device_class: power
  703.     state_class: measurement
  704.     unit_of_measurement: W
  705.     accuracy_decimals: 2
  706.     lambda: |-
  707.       if (id(heating_demand).state) {
  708.         return id(pc_moc).state;
  709.       } else {
  710.         return 0;
  711.       }
  712.     update_interval: 5s
  713.  
  714.   - platform: total_daily_energy
  715.     name: "PC dzienne zużycie energii CO"
  716.     power_id: pc_moc_grzanie_co
  717.     unit_of_measurement: "kWh"
  718.     accuracy_decimals: 3
  719.     id: pc_daily_co_kwh
  720.     icon: mdi:counter
  721.     device_class: energy
  722.  
  723. #######  PC zużycie energii grzanie CWU
  724.   - platform: template
  725.     name: "PC moc grzanie CWU"
  726.     id: pc_moc_grzanie_cwu
  727.     device_class: power
  728.     state_class: measurement
  729.     unit_of_measurement: W
  730.     accuracy_decimals: 2
  731.     lambda: |-
  732.       if (id(hotwater_demand).state) {
  733.         return id(pc_moc).state;
  734.       } else {
  735.         return 0;
  736.       }
  737.     update_interval: 5s
  738.  
  739.   - platform: total_daily_energy
  740.     name: "PC dzienne zużycie energii CWU"
  741.     power_id: pc_moc_grzanie_cwu
  742.     unit_of_measurement: "kWh"
  743.     accuracy_decimals: 3
  744.     id: pc_daily_cwu_kwh
  745.     icon: mdi:counter
  746.     device_class: energy
  747.  
  748.  
  749.  
  750. ############   PZEM-004T V3 grzałka CO
  751.   - platform: pzemac
  752.     modbus_id: mod_bus_pzem
  753.     address: 2
  754.     current:
  755.       name: "Grzałka CO prąd"
  756.       accuracy_decimals: 2
  757.       id: grzalka_co_prad
  758.     voltage:
  759.       name: "Grzałka CO napięcie"
  760.       unit_of_measurement: W
  761.       accuracy_decimals: 2
  762.       id: grzalka_co_napiecie
  763.     energy:
  764.       name: "Grzałka CO zużycie energii"
  765.       filters:
  766.        # Wh to kWh is 0.001
  767.         - multiply: 0.001
  768.       unit_of_measurement: kWh
  769.       accuracy_decimals: 3
  770.       id: grzalka_co_energia
  771.     power:
  772.       name: "Grzałka CO moc"
  773.       unit_of_measurement: W
  774.       accuracy_decimals: 2
  775.       id: grzalka_co_moc
  776.     frequency:
  777.       name: "Grzałka CO częstotliwość"
  778.       unit_of_measurement: Hz
  779.       accuracy_decimals: 2
  780.     power_factor:
  781.       name: "Grzałka CO współczynnik mocy"
  782.       accuracy_decimals: 2
  783.       id: grzalka_co_power_factor
  784.     update_interval: 5s
  785.  
  786.   - platform: total_daily_energy
  787.     name: "Grzałka CO dzienne zużycie energii"
  788.     power_id: grzalka_co_moc
  789.     unit_of_measurement: "kWh"
  790.     accuracy_decimals: 3
  791.     id: grzalka_co_daily_kwh
  792.     icon: mdi:counter
  793.     device_class: energy
  794.  
  795. ############   PZEM-004T V3 grzałka CWU
  796.   - platform: pzemac
  797.     modbus_id: mod_bus_pzem
  798.     address: 3
  799.     current:
  800.       name: "Grzałka CWU prąd"
  801.       accuracy_decimals: 2
  802.       id: grzalka_cwu_prad
  803.     voltage:
  804.       name: "Grzałka CWU napięcie"
  805.       unit_of_measurement: W
  806.       accuracy_decimals: 2
  807.       id: grzalka_cwu_napiecie
  808.     energy:
  809.       name: "Grzałka CWU zużycie energii"
  810.       filters:
  811.        # Wh to kWh is 0.001
  812.         - multiply: 0.001
  813.       unit_of_measurement: kWh
  814.       accuracy_decimals: 3
  815.       id: grzalka_cwu_energia
  816.     power:
  817.       name: "Grzałka CWU moc"
  818.       unit_of_measurement: W
  819.       accuracy_decimals: 2
  820.       id: grzalka_cwu_moc
  821.     frequency:
  822.       name: "Grzałka CWU częstotliwość"
  823.       unit_of_measurement: Hz
  824.       accuracy_decimals: 2
  825.     power_factor:
  826.       name: "Grzałka CWU współczynnik mocy"
  827.       accuracy_decimals: 2
  828.       id: grzalka_cwu_power_factor
  829.     update_interval: 5s
  830.  
  831.   - platform: total_daily_energy
  832.     name: "Grzałka CWU dzienne zużycie energii"
  833.     power_id: grzalka_cwu_moc
  834.     unit_of_measurement: "kWh"
  835.     accuracy_decimals: 3
  836.     id: grzalka_cwu_daily_kwh
  837.     icon: mdi:counter
  838.     device_class: energy
  839.  
  840. ###########################################################################
  841.   - platform: dallas
  842.     address: 0x1c0000031edd2a28
  843.     name: "Temperatura CO Dallas"
  844.     id: temp_co_dallas
  845.  
  846.   - platform: dallas
  847.     address: 0x1c0000031edd2a29
  848.     name: "Temperatura CWU Dallas"
  849.     id: temp_cwu_dallas
  850.  
  851.   - platform: pulse_meter
  852.     pin: GPIO13
  853.     id: flow_rate
  854.     name: "Przepływomierz PC"
  855.     unit_of_measurement: "L/hr"
  856.     #icon: "${ha_icon}"
  857.     timeout: 1s
  858.     accuracy_decimals: 3
  859.     filters:
  860.       - lambda: return (x / 27.0) * 60.0; #F(Hz)=(0,45*Q)
  861.     total:
  862.       name: "Wodomierz PC"
  863.       id: total_water_pc
  864.       unit_of_measurement: "m³"
  865.       device_class: water
  866.       state_class: total_increasing
  867.       accuracy_decimals: 3
  868.       #icon: "${ha_icon}"
  869.       filters:
  870.         - lambda: return (x / 27000.0);
  871.  
  872.   - platform: wifi_signal
  873.     name: ${friendly_name} RSSI
  874.     update_interval: 60s
  875.  
  876.   - platform: uptime
  877.     id: uptime_sec
  878.  
  879. #   - platform: modbus_controller
  880. #     modbus_controller_id: sprsun_pc
  881. #     name: ${friendly_name} Czas pracy
  882. #     id: work_time
  883. #     register_type: holding
  884. #     address: 0x0001
  885. #     unit_of_measurement: "h"
  886. #     #device_class: "temperature"
  887. #     value_type: U_WORD
  888. #     filters:
  889. #       - lambda: return x * 1;
  890. #     accuracy_decimals: 0
  891.  
  892.   - platform: modbus_controller
  893.     modbus_controller_id: sprsun_pc
  894.     name: ${friendly_name} Temperatura powrotu
  895.     id: inlet_temp
  896.     register_type: holding
  897.     address: 0x000E
  898.     unit_of_measurement: "°C"
  899.     device_class: "temperature"
  900.     value_type: S_WORD
  901.     filters:
  902.       - lambda: return x * 0.1;
  903.     accuracy_decimals: 2
  904.    
  905.   - platform: modbus_controller
  906.     modbus_controller_id: sprsun_pc
  907.     name: ${friendly_name} Temperatura CWU
  908.     id: hotwater_temp
  909.     register_type: holding
  910.     address: 0x000F
  911.     unit_of_measurement: "°C"
  912.     device_class: "temperature"
  913.     value_type: S_WORD
  914.     filters:
  915.       - lambda: return x * 0.1;
  916.     accuracy_decimals: 2
  917.  
  918.   - platform: modbus_controller
  919.     modbus_controller_id: sprsun_pc
  920.     name: ${friendly_name} Temperatura zewnętrzna
  921.     id: ambi_temp
  922.     register_type: holding
  923.     address: 0x0011
  924.     unit_of_measurement: "°C"
  925.     device_class: "temperature"
  926.     value_type: S_WORD
  927.     filters:
  928.       - lambda: return x * 0.5;
  929.     accuracy_decimals: 2
  930.  
  931.   - platform: modbus_controller
  932.     modbus_controller_id: sprsun_pc
  933.     name: ${friendly_name} Temperatura zasilania
  934.     id: outlet_temp
  935.     register_type: holding
  936.     address: 0x0012
  937.     unit_of_measurement: "°C"
  938.     device_class: "temperature"
  939.     value_type: S_WORD
  940.     filters:
  941.       - lambda: return x * 0.1;
  942.     accuracy_decimals: 2
  943.  
  944.   - platform: template
  945.     name: ${friendly_name} delta woda
  946.     id: delta
  947.     icon: mdi:delta
  948.     unit_of_measurement: "°C"
  949.     device_class: "temperature"
  950.     accuracy_decimals: 2
  951.     update_interval: 5s
  952.     lambda: |-
  953.       return id(outlet_temp).state - id(inlet_temp).state;
  954.  
  955.   - platform: template
  956.     name: ${friendly_name} moc cieplna
  957.     id: moc_cieplna
  958.     unit_of_measurement: "W"
  959.     device_class: "power"
  960.     #icon: mdi:power
  961.     accuracy_decimals: 2
  962.     update_interval: 5s
  963.     lambda: |-
  964.       return id(delta).state * id(flow_rate).state * 4.1899 * 975 / 3600;
  965.    #przepływ: 1100-1440
  966.  
  967.   - platform: template
  968.     name: ${friendly_name} Współczynnik COP
  969.     id: cop
  970.     #unit_of_measurement: "W"
  971.     #device_class: "power"
  972.     #icon: mdi:power
  973.     accuracy_decimals: 2
  974.     update_interval: 5s  
  975.     lambda: |-
  976.       return id(moc_cieplna).state / id(pc_moc).state;
  977.  
  978.   - platform: template
  979.     name: ${friendly_name} Współczynnik COP dla CO
  980.     id: cop_co
  981.     #unit_of_measurement: "W"
  982.     #device_class: "power"
  983.     #icon: mdi:power
  984.     accuracy_decimals: 2
  985.     update_interval: 5s  
  986.     lambda: |-
  987.       if ((id(heating_demand).state) and (id(pc_moc).state >= 200.00)) {
  988.         return id(moc_cieplna).state / id(pc_moc).state;
  989.       } else {
  990.         return 0.00;
  991.       }
  992.  
  993.   - platform: template
  994.     name: ${friendly_name} Współczynnik COP dla CWU
  995.     id: cop_cwu
  996.     #unit_of_measurement: "W"
  997.     #device_class: "power"
  998.     #icon: mdi:power
  999.     accuracy_decimals: 2
  1000.     update_interval: 5s  
  1001.     lambda: |-
  1002.       if ((id(hotwater_demand).state) and (id(pc_moc).state >= 200.00)) {
  1003.         return id(moc_cieplna).state / id(pc_moc).state;
  1004.       } else {
  1005.         return 0.00;
  1006.       }
  1007.  
  1008.   - platform: modbus_controller
  1009.     modbus_controller_id: sprsun_pc
  1010.     name: ${friendly_name} Temperatura gazu - wlot
  1011.     id: suct_gas_temp
  1012.     register_type: holding
  1013.     address: 0x0015
  1014.     unit_of_measurement: "°C"
  1015.     device_class: "temperature"
  1016.     value_type: S_WORD
  1017.     filters:
  1018.       - lambda: return x * 0.5;
  1019.     accuracy_decimals: 2
  1020.  
  1021.   - platform: modbus_controller
  1022.     modbus_controller_id: sprsun_pc
  1023.     name: ${friendly_name} Temperatura odparowania (Coil temp.)
  1024.     id: coil_temp
  1025.     register_type: holding
  1026.     address: 0x0016
  1027.     unit_of_measurement: "°C"
  1028.     device_class: "temperature"
  1029.     value_type: S_WORD
  1030.     filters:
  1031.       - lambda: return x * 0.5;
  1032.     accuracy_decimals: 2
  1033.    
  1034.    
  1035.   - platform: modbus_controller
  1036.     modbus_controller_id: sprsun_pc
  1037.     name: ${friendly_name} Pobór
  1038.     id: power_w
  1039.     register_type: holding
  1040.     address: 0x0017
  1041.     unit_of_measurement: "W"
  1042.     device_class: "power"
  1043.     value_type: U_WORD
  1044.     filters:
  1045.       - lambda: return x * 1.0;
  1046.     accuracy_decimals: 2
  1047.  
  1048.   - platform: modbus_controller
  1049.     modbus_controller_id: sprsun_pc
  1050.     name: ${friendly_name} Temperatura gazu - wylot
  1051.     id: exhaust_temp
  1052.     register_type: holding
  1053.     address: 0x001B
  1054.     unit_of_measurement: "°C"
  1055.     device_class: "temperature"
  1056.     value_type: S_WORD
  1057.     filters:
  1058.       - lambda: return x * 1.0;
  1059.     accuracy_decimals: 2
  1060.  
  1061.   - platform: modbus_controller
  1062.     modbus_controller_id: sprsun_pc
  1063.     name: ${friendly_name} EEV 1
  1064.     id: EEV_1_step
  1065.     register_type: holding
  1066.     address: 0x001C
  1067.     unit_of_measurement: "P"
  1068.     device_class: "temperature"
  1069.     value_type: U_WORD
  1070.     filters:
  1071.       - lambda: return x * 1.0;
  1072.     accuracy_decimals: 0
  1073.  
  1074.   - platform: modbus_controller
  1075.     modbus_controller_id: sprsun_pc
  1076.     name: ${friendly_name} EEV 2
  1077.     id: EEV_2_step
  1078.     register_type: holding
  1079.     address: 0x001D
  1080.     unit_of_measurement: "P"
  1081.     device_class: "temperature"
  1082.     value_type: U_WORD
  1083.     filters:
  1084.       - lambda: return x * 1.0;
  1085.     accuracy_decimals: 0
  1086.    
  1087.   - platform: modbus_controller
  1088.     modbus_controller_id: sprsun_pc
  1089.     name: ${friendly_name} Kompresor freq
  1090.     id: comp_frequency
  1091.     register_type: holding
  1092.     address: 0x001E
  1093.     unit_of_measurement: "Hz"
  1094.     device_class: "frequency"
  1095.     value_type: U_WORD
  1096.     filters:
  1097.       - lambda: return x * 1.0;
  1098.     accuracy_decimals: 2
  1099.    
  1100.   - platform: modbus_controller
  1101.     modbus_controller_id: sprsun_pc
  1102.     name: ${friendly_name} Frequency conversion failure 1
  1103.     id: freq_failure_1
  1104.     register_type: holding
  1105.     address: 0x001F
  1106.     #unit_of_measurement: "Hz"
  1107.     #device_class: "frequency"
  1108.     value_type: U_WORD
  1109.     filters:
  1110.       - lambda: return x * 1.0;
  1111.     accuracy_decimals: 2
  1112.  
  1113.   - platform: modbus_controller
  1114.     modbus_controller_id: sprsun_pc
  1115.     name: ${friendly_name} Frequency conversion failure 2
  1116.     id: freq_failure_2
  1117.     register_type: holding
  1118.     address: 0x0020
  1119.     #unit_of_measurement: "Hz"
  1120.     #device_class: "frequency"
  1121.     value_type: U_WORD
  1122.     filters:
  1123.       - lambda: return x * 1.0;
  1124.     accuracy_decimals: 2
  1125.    
  1126.   - platform: modbus_controller
  1127.     modbus_controller_id: sprsun_pc
  1128.     name: ${friendly_name} Napięcie szyny DC
  1129.     id: dc_bus_voltage
  1130.     register_type: holding
  1131.     address: 0x0021
  1132.     unit_of_measurement: "V"
  1133.     device_class: "voltage"
  1134.     value_type: U_WORD
  1135.     filters:
  1136.       - lambda: return x * 1.0;
  1137.     accuracy_decimals: 2
  1138.  
  1139.   - platform: modbus_controller
  1140.     modbus_controller_id: sprsun_pc
  1141.     name: ${friendly_name} Driving temp.
  1142.     id: driving_temp
  1143.     register_type: holding
  1144.     address: 0x0022
  1145.     unit_of_measurement: "°C"
  1146.     device_class: "temperature"
  1147.     value_type: S_WORD
  1148.     filters:
  1149.       - lambda: return x * 0.5;
  1150.     accuracy_decimals: 2
  1151.    
  1152.   - platform: modbus_controller
  1153.     modbus_controller_id: sprsun_pc
  1154.     name: ${friendly_name} Prąd kompresora
  1155.     id: comp_current
  1156.     register_type: holding
  1157.     address: 0x0023
  1158.     unit_of_measurement: "A"
  1159.     device_class: "current"
  1160.     value_type: U_WORD
  1161.     filters:
  1162.       - lambda: return x * 1.0;
  1163.     accuracy_decimals: 2
  1164.    
  1165.   - platform: modbus_controller
  1166.     modbus_controller_id: sprsun_pc
  1167.     name: ${friendly_name} Kompresor zadana
  1168.     id: comp_frequency_target
  1169.     register_type: holding
  1170.     address: 0x0024
  1171.     unit_of_measurement: "Hz"
  1172.     device_class: "frequency"
  1173.     value_type: U_WORD
  1174.     filters:
  1175.       - lambda: return x * 1.0;
  1176.     accuracy_decimals: 2
  1177.    
  1178.   - platform: modbus_controller
  1179.     modbus_controller_id: sprsun_pc
  1180.     name: ${friendly_name} Wentylator 1
  1181.     id: dc_fan_1_speed
  1182.     register_type: holding
  1183.     address: 0x0026
  1184.     unit_of_measurement: "RPM"
  1185.     #device_class: "frequency"
  1186.     value_type: U_WORD
  1187.     filters:
  1188.       - lambda: return x * 1.0;
  1189.     accuracy_decimals: 2
  1190.  
  1191.   - platform: modbus_controller
  1192.     modbus_controller_id: sprsun_pc
  1193.     name: ${friendly_name} Wentylator 2
  1194.     id: dc_fan_2_speed
  1195.     register_type: holding
  1196.     address: 0x0027
  1197.     unit_of_measurement: "RPM"
  1198.     #device_class: "frequency"
  1199.     value_type: U_WORD
  1200.     filters:
  1201.       - lambda: return x * 1.0;
  1202.     accuracy_decimals: 2
  1203.    
  1204.   - platform: modbus_controller
  1205.     modbus_controller_id: sprsun_pc
  1206.     name: ${friendly_name} Temperatura odparowania
  1207.     id: evap_temp
  1208.     register_type: holding
  1209.     address: 0x0028
  1210.     unit_of_measurement: "°C"
  1211.     device_class: "temperature"
  1212.     value_type: S_WORD
  1213.     filters:
  1214.       - lambda: return x * 0.1;
  1215.     accuracy_decimals: 2
  1216.  
  1217.   - platform: modbus_controller
  1218.     modbus_controller_id: sprsun_pc
  1219.     name: ${friendly_name} Temperatura skraplacza
  1220.     id: cond_temp
  1221.     register_type: holding
  1222.     address: 0x0029
  1223.     unit_of_measurement: "°C"
  1224.     device_class: "temperature"
  1225.     value_type: S_WORD
  1226.     filters:
  1227.       - lambda: return x * 0.1;
  1228.     accuracy_decimals: 2
  1229.    
  1230.   - platform: modbus_controller
  1231.     modbus_controller_id: sprsun_pc
  1232.     name: ${friendly_name} Frequency conversion fault 8 bits higher
  1233.     id: freq_conv_fault_8_bits_higher
  1234.     register_type: holding
  1235.     address: 0x002A
  1236.     #unit_of_measurement: "Hz"
  1237.     #device_class: "frequency"
  1238.     value_type: U_WORD
  1239.     filters:
  1240.       - lambda: return x * 1.0;
  1241.     accuracy_decimals: 2
  1242.    
  1243.   - platform: modbus_controller
  1244.     modbus_controller_id: sprsun_pc
  1245.     name: ${friendly_name} Frequency conversion fault 8 bits lower
  1246.     id: freq_conv_fault_8_bits_lower
  1247.     register_type: holding
  1248.     address: 0x002B
  1249.     #unit_of_measurement: "Hz"
  1250.     #device_class: "frequency"
  1251.     value_type: U_WORD
  1252.     filters:
  1253.       - lambda: return x * 1.0;
  1254.     accuracy_decimals: 2
  1255.    
  1256.   - platform: modbus_controller
  1257.     modbus_controller_id: sprsun_pc
  1258.     name: ${friendly_name} Controller Version
  1259.     id: controller_version
  1260.     register_type: holding
  1261.     address: 0x002C
  1262.     #unit_of_measurement: "Hz"
  1263.     #device_class: "frequency"
  1264.     value_type: U_WORD
  1265.     filters:
  1266.       - lambda: return x * 1.0;
  1267.     accuracy_decimals: 0
  1268.     skip_updates: 10
  1269.  
  1270.   - platform: modbus_controller
  1271.     modbus_controller_id: sprsun_pc
  1272.     name: ${friendly_name} Display Version
  1273.     id: display_version
  1274.     register_type: holding
  1275.     address: 0x002D
  1276.     #unit_of_measurement: "Hz"
  1277.     #device_class: "frequency"
  1278.     value_type: U_WORD
  1279.     filters:
  1280.       - lambda: return x * 1.0;
  1281.     accuracy_decimals: 0
  1282.     skip_updates: 10
  1283.  
  1284.   - platform: modbus_controller
  1285.     modbus_controller_id: sprsun_pc
  1286.     name: ${friendly_name} Pompa obiegowa PWM
  1287.     id: dc_pump_speed
  1288.     register_type: holding
  1289.     address: 0x002E
  1290.     unit_of_measurement: "%"
  1291.     #device_class: "frequency"
  1292.     value_type: U_WORD
  1293.     filters:
  1294.       - lambda: return x * 1.0;
  1295.     accuracy_decimals: 1
  1296.  
  1297.   - platform: modbus_controller
  1298.     modbus_controller_id: sprsun_pc
  1299.     name: ${friendly_name} Ciśnienie sprężania
  1300.     id: suct_press
  1301.     register_type: holding
  1302.     address: 0x002F
  1303.     unit_of_measurement: "bar"
  1304.     device_class: "pressure"
  1305.     value_type: U_WORD
  1306.     filters:
  1307.       - multiply: 0.01
  1308.     accuracy_decimals: 1
  1309.  
  1310.   - platform: modbus_controller
  1311.     modbus_controller_id: sprsun_pc
  1312.     name: ${friendly_name} Ciśnienie rozprężania
  1313.     id: disch_press
  1314.     register_type: holding
  1315.     address: 0x0030
  1316.     unit_of_measurement: "bar"
  1317.     device_class: "pressure"
  1318.     value_type: U_WORD
  1319.     filters:
  1320.       - multiply: 0.01
  1321.     accuracy_decimals: 1
  1322.  
  1323.   - platform: modbus_controller
  1324.     modbus_controller_id: sprsun_pc
  1325.     name: ${friendly_name} Wentylator zadana
  1326.     id: dc_fan_target
  1327.     register_type: holding
  1328.     address: 0x0031
  1329.     unit_of_measurement: "RPM"
  1330.     #device_class: "frequency"
  1331.     value_type: U_WORD
  1332.     filters:
  1333.       - lambda: return x * 1.0;
  1334.     accuracy_decimals: 0
  1335.  
  1336.  
  1337. select:
  1338.   - platform: modbus_controller
  1339.     modbus_controller_id: sprsun_pc
  1340.     name: ${friendly_name} Tryb jednostki
  1341.     #icon: "mdi:fan"
  1342.     id: p06_unit_mode
  1343.     address: 0x0036
  1344.     entity_category: config
  1345.     value_type: U_WORD
  1346.     optimistic: false
  1347.     skip_updates: 6
  1348.     optionsmap:
  1349.       "CWU": 0
  1350.       "Grzanie": 1
  1351.       "Chłodzenie": 2
  1352.       "Grzanie + CWU": 3
  1353.       "Chłodzenie + CWU": 4
  1354.  
  1355.   - platform: modbus_controller
  1356.     modbus_controller_id: sprsun_pc
  1357.     name: ${friendly_name} Tryb pompy obiegowej m/a
  1358.     #icon: "mdi:fan"
  1359.     id: f13_dc_pump_mode
  1360.     address: 0x0186
  1361.     entity_category: config
  1362.     value_type: U_WORD
  1363.     optimistic: false
  1364.     skip_updates: 6
  1365.     optionsmap:
  1366.       "Manual": 0
  1367.       "Auto": 1
  1368.  
  1369.   - platform: modbus_controller
  1370.     modbus_controller_id: sprsun_pc
  1371.     name: ${friendly_name} Tryb kompresora
  1372.     #icon: "mdi:fan"
  1373.     id: f23_compressor_mode
  1374.     address: 0x0190
  1375.     entity_category: config
  1376.     value_type: U_WORD
  1377.     optimistic: false
  1378.     skip_updates: 6
  1379.     optionsmap:
  1380.       "Dzienny": 0
  1381.       "ECO": 1
  1382.       "Nocny": 2
  1383.       "Testowy": 3
  1384.  
  1385.   - platform: modbus_controller
  1386.     modbus_controller_id: sprsun_pc
  1387.     name: ${friendly_name} Przełącznik grzanie/chłodzenie od temp zewnętrznej
  1388.     #icon: "mdi:fan"
  1389.     id: g09_enable_switch
  1390.     address: 0x0191
  1391.     entity_category: config
  1392.     value_type: U_WORD
  1393.     optimistic: false
  1394.     skip_updates: 10
  1395.     optionsmap:
  1396.       "Wyłączony": 0
  1397.       "Włączony": 1
  1398.  
  1399.   - platform: modbus_controller
  1400.     modbus_controller_id: sprsun_pc
  1401.     name: ${friendly_name} Dzień sterylizacji legionella
  1402.     #icon: "mdi:fan"
  1403.     id: weekday_of_antilegionella
  1404.     address: 0x019B
  1405.     entity_category: config
  1406.     value_type: U_WORD
  1407.     optimistic: false
  1408.     skip_updates: 10
  1409.     optionsmap:
  1410.       "Niedziela": 0
  1411.       "Poniedziałek": 1
  1412.       "Wtorek": 2
  1413.       "Środa": 3
  1414.       "Czwartek": 4
  1415.       "Piątek": 5
  1416.       "Sobota": 6
  1417.  
  1418.   - platform: modbus_controller
  1419.     modbus_controller_id: sprsun_pc
  1420.     name: ${friendly_name} Dzień przedziału czasowego nr 1
  1421.     #icon: "mdi:fan"
  1422.     id: week_set_of_timeband_1
  1423.     address: 0x01AD
  1424.     entity_category: config
  1425.     value_type: U_WORD
  1426.     optimistic: false
  1427.     skip_updates: 10
  1428.     optionsmap:
  1429.       "Niedziela": 0
  1430.       "Poniedziałek": 1
  1431.       "Wtorek": 2
  1432.       "Środa": 3
  1433.       "Czwartek": 4
  1434.       "Piątek": 5
  1435.       "Sobota": 6
  1436.  
  1437.   - platform: modbus_controller
  1438.     modbus_controller_id: sprsun_pc
  1439.     name: ${friendly_name} Dzień przedziału czasowego nr 2
  1440.     #icon: "mdi:fan"
  1441.     id: week_set_of_timeband_2
  1442.     address: 0x01AE
  1443.     entity_category: config
  1444.     value_type: U_WORD
  1445.     optimistic: false
  1446.     skip_updates: 10
  1447.     optionsmap:
  1448.       "Niedziela": 0
  1449.       "Poniedziałek": 1
  1450.       "Wtorek": 2
  1451.       "Środa": 3
  1452.       "Czwartek": 4
  1453.       "Piątek": 5
  1454.       "Sobota": 6
  1455.  
  1456.   - platform: modbus_controller
  1457.     modbus_controller_id: sprsun_pc
  1458.     name: ${friendly_name} Dzień przedziału czasowego nr 3
  1459.     #icon: "mdi:fan"
  1460.     id: week_set_of_timeband_3
  1461.     address: 0x01AF
  1462.     entity_category: config
  1463.     value_type: U_WORD
  1464.     optimistic: false
  1465.     skip_updates: 10
  1466.     optionsmap:
  1467.       "Niedziela": 0
  1468.       "Poniedziałek": 1
  1469.       "Wtorek": 2
  1470.       "Środa": 3
  1471.       "Czwartek": 4
  1472.       "Piątek": 5
  1473.       "Sobota": 6
  1474.  
  1475.   - platform: modbus_controller
  1476.     modbus_controller_id: sprsun_pc
  1477.     name: ${friendly_name} Tryb pompy obiegowej
  1478.     #icon: "mdi:fan"
  1479.     id: g02_pump_work
  1480.     address: 0x019E
  1481.     entity_category: config
  1482.     value_type: U_WORD
  1483.     optimistic: false
  1484.     skip_updates: 10
  1485.     optionsmap:
  1486.       "Interwał": 0
  1487.       "Ciągła": 1
  1488.       "Na żądanie": 2
  1489.  
  1490. #   - platform: modbus_controller
  1491. #     modbus_controller_id: sprsun_pc
  1492. #     name: ${friendly_name} F56 Model pompy ciepła
  1493. #     #icon: "mdi:fan"
  1494. #     id: f56_model_selection
  1495. #     address:  0x01BA
  1496. #     entity_category: config
  1497. #     value_type: U_WORD
  1498. #     optimistic: false
  1499. #     skip_updates: 10
  1500. #     optionsmap:
  1501. #       "A102508 - CGK025V3L-B 9.5 kW 220V": 1
  1502. #       "A202508 - CGK-025V3L-B 9.5 kW 380V": 2
  1503. #       "A103008 - CGK030V3L-B 12 kW 220V": 3
  1504. #       "A203008 - CGK-030V3L-B 12 kW 380V": 4
  1505. #       "A104008 - CGK040V3L-B 15 kW 220V": 5
  1506. #       "A204008 - CGK-040V3L-B 15 kW 380V": 6
  1507. #       "A105008 - CGK050V3L-B 20 kW 220V": 7
  1508. #       "A205008 - CGK-050V3L-B 20 kW 380V": 8
  1509. #       "A106008 - CGK060V3L-B 22 kW 220V": 9
  1510. #       "A206008 - CGK-060V3L-B 22 kW 380V": 10
  1511.  
  1512. #####################################   PARAMETER MARKER DEFINITION
  1513.   - platform: modbus_controller
  1514.     use_write_multiple: true
  1515.     modbus_controller_id: sprsun_pc
  1516.     name: "Heat pump on/off switch"
  1517.     id: on_off
  1518.     address: 0x0032
  1519.     value_type: U_WORD
  1520.     optionsmap:
  1521.       "OFF": 0
  1522.       "ON": 1
  1523.     lambda: |-
  1524.       //ESP_LOGE("main","Modbus Number incoming value = %d",x);
  1525.       //ESP_LOGE("main","Modbus eval value = %d",(x & 0x0001));
  1526.       if ((x & 0x0001) == 0)
  1527.         return  std::string("OFF");
  1528.       if ((x & 0x0001) == 1)
  1529.         return  std::string("ON");
  1530.       return {};
  1531.     write_lambda: |-
  1532.       //ESP_LOGE("main","Modbus write gets = %d",value);
  1533.       uint16_t unmodified =  id(parameter_marker_definition_raw).state;
  1534.       //ESP_LOGE("main","Modbus write unmodified = %d", unmodified);
  1535.       uint16_t modified = ((unmodified & ~0x0001) | value);
  1536.       //ESP_LOGE("main","Modbus write to write = %d", modified);
  1537.       return modified;
  1538.  
  1539.   - platform: modbus_controller
  1540.     use_write_multiple: true
  1541.     modbus_controller_id: sprsun_pc
  1542.     name: "MV mode 0-Auto, 1-Manual #(bit add: 0x321 - A45)"
  1543.     id: mv_mode
  1544.     address: 0x0032
  1545.     entity_category: config
  1546.     value_type: U_WORD
  1547.     optionsmap:
  1548.       "AUTO": 0
  1549.       "MANUAL": 2
  1550.     lambda: |-
  1551.       //ESP_LOGE("main","Modbus Number incoming value = %d",x);
  1552.       //ESP_LOGE("main","Modbus eval value = %d",(x & 0x0002));
  1553.       if ((x & 0x0002) == 0)
  1554.         return  std::string("AUTO");
  1555.       if ((x & 0x0002) == 2)
  1556.         return  std::string("MANUAL");
  1557.       return {};
  1558.     write_lambda: |-
  1559.       //ESP_LOGE("main","Modbus write gets = %d",value);
  1560.       uint16_t unmodified =  id(parameter_marker_definition_raw).state;
  1561.       //ESP_LOGE("main","Modbus write unmodified = %d", unmodified);
  1562.       uint16_t modified = ((unmodified & ~0x0002) | value);
  1563.       //ESP_LOGE("main","Modbus write to write = %d", modified);
  1564.       return modified;
  1565.  
  1566.   - platform: modbus_controller
  1567.     use_write_multiple: true
  1568.     modbus_controller_id: sprsun_pc
  1569.     name: "Manual frequency selection #(bit add: 0x322)"
  1570.     id: manual_frequency_selection
  1571.     address: 0x0032
  1572.     entity_category: config
  1573.     value_type: U_WORD
  1574.     optionsmap:
  1575.       "OFF": 0
  1576.       "ON": 4
  1577.     lambda: |-
  1578.       //ESP_LOGE("main","Modbus Number incoming value = %d",x);
  1579.       //ESP_LOGE("main","Modbus eval value = %d",(x & 0x0004));
  1580.       if ((x & 0x0004) == 0)
  1581.         return  std::string("OFF");
  1582.       if ((x & 0x0004) == 4)
  1583.         return  std::string("ON");
  1584.       return {};
  1585.     write_lambda: |-
  1586.       //ESP_LOGE("main","Modbus write gets = %d",value);
  1587.       uint16_t unmodified =  id(parameter_marker_definition_raw).state;
  1588.       //ESP_LOGE("main","Modbus write unmodified = %d", unmodified);
  1589.       uint16_t modified = ((unmodified & ~0x0004) | value);
  1590.       //ESP_LOGE("main","Modbus write to write = %d", modified);
  1591.       return modified;
  1592.  
  1593.   - platform: modbus_controller
  1594.     use_write_multiple: true
  1595.     modbus_controller_id: sprsun_pc
  1596.     name: "AV Mode 0-Auto, 1-Manual #(bit add: 0x325 - B01)"
  1597.     id: av_mode
  1598.     address: 0x0032
  1599.     entity_category: config
  1600.     value_type: U_WORD
  1601.     optionsmap:
  1602.       "AUTO": 0
  1603.       "MANUAL": 32
  1604.     lambda: |-
  1605.       //ESP_LOGE("main","Modbus Number incoming value = %d",x);
  1606.       //ESP_LOGE("main","Modbus eval value = %d",(x & 0x0020));
  1607.       if ((x & 0x0020) == 0)
  1608.         return  std::string("AUTO");
  1609.       if ((x & 0x0020) == 32)
  1610.         return  std::string("MANUAL");
  1611.       return {};
  1612.     write_lambda: |-
  1613.       //ESP_LOGE("main","Modbus write gets = %d",value);
  1614.       uint16_t unmodified =  id(parameter_marker_definition_raw).state;
  1615.       //ESP_LOGE("main","Modbus write unmodified = %d", unmodified);
  1616.       uint16_t modified = ((unmodified & ~0x0020) | value);
  1617.       //ESP_LOGE("main","Modbus write to write = %d", modified);
  1618.       return modified;
  1619.  
  1620.   - platform: modbus_controller
  1621.     use_write_multiple: true
  1622.     modbus_controller_id: sprsun_pc
  1623.     name: "AV init outlet setpoint #(bit add: 0x326 - B93)"
  1624.     id: av_init_outlet_stp
  1625.     address: 0x0032
  1626.     entity_category: config
  1627.     value_type: U_WORD
  1628.     optionsmap:
  1629.       "OFF": 0
  1630.       "ON": 64
  1631.     lambda: |-
  1632.       //ESP_LOGE("main","Modbus Number incoming value = %d",x);
  1633.       //ESP_LOGE("main","Modbus eval value = %d",(x & 0x0040));
  1634.       if ((x & 0x0040) == 0)
  1635.         return  std::string("OFF");
  1636.       if ((x & 0x0040) == 64)
  1637.         return  std::string("ON");
  1638.       return {};
  1639.     write_lambda: |-
  1640.       //ESP_LOGE("main","Modbus write gets = %d",value);
  1641.       uint16_t unmodified =  id(parameter_marker_definition_raw).state;
  1642.       //ESP_LOGE("main","Modbus write unmodified = %d", unmodified);
  1643.       uint16_t modified = ((unmodified & ~0x0040) | value);
  1644.       //ESP_LOGE("main","Modbus write to write = %d", modified);
  1645.       return modified;
  1646.  
  1647. ############################################    CONTROL MARK 1
  1648.   - platform: modbus_controller
  1649.     use_write_multiple: true
  1650.     modbus_controller_id: sprsun_pc
  1651.     name: "Constant freq adj 0-NO, 1-YES #bit add: 0x0330 - R29"
  1652.     id: constant_freq_adj
  1653.     address: 0x0033
  1654.     entity_category: config
  1655.     value_type: U_WORD
  1656.     optionsmap:
  1657.       "NO": 0
  1658.       "YES": 1
  1659.     lambda: |-
  1660.       //ESP_LOGE("main","Modbus Number incoming value = %d",x);
  1661.       //ESP_LOGE("main","Modbus eval value = %d",(x & 0x0001));
  1662.       if ((x & 0x0001) == 0)
  1663.         return  std::string("NO");
  1664.       if ((x & 0x0001) == 1)
  1665.         return  std::string("YES");
  1666.       return {};
  1667.     write_lambda: |-
  1668.       //ESP_LOGE("main","Modbus write gets = %d",value);
  1669.       uint16_t unmodified =  id(control_mark_1_raw).state;
  1670.       //ESP_LOGE("main","Modbus write unmodified = %d", unmodified);
  1671.       uint16_t modified = ((unmodified & ~0x0001) | value);
  1672.       //ESP_LOGE("main","Modbus write to write = %d", modified);
  1673.       return modified;
  1674.  
  1675.   - platform: modbus_controller
  1676.     use_write_multiple: true
  1677.     modbus_controller_id: sprsun_pc
  1678.     name: "Pressure switch enable 0-unuse, 1-use #bit add: 0x0331 - F01"
  1679.     id: pressure_switch_enable
  1680.     address: 0x0033
  1681.     entity_category: config
  1682.     value_type: U_WORD
  1683.     optionsmap:
  1684.       "UNUSE": 0
  1685.       "USE": 2
  1686.     lambda: |-
  1687.       //ESP_LOGE("main","Modbus Number incoming value = %d",x);
  1688.       //ESP_LOGE("main","Modbus eval value = %d",(x & 0x0002));
  1689.       if ((x & 0x0002) == 0)
  1690.         return  std::string("UNUSE");
  1691.       if ((x & 0x0002) == 2)
  1692.         return  std::string("USE");
  1693.       return {};
  1694.     write_lambda: |-
  1695.       //ESP_LOGE("main","Modbus write gets = %d",value);
  1696.       uint16_t unmodified =  id(control_mark_1_raw).state;
  1697.       //ESP_LOGE("main","Modbus write unmodified = %d", unmodified);
  1698.       uint16_t modified = ((unmodified & ~0x0002) | value);
  1699.       //ESP_LOGE("main","Modbus write to write = %d", modified);
  1700.       return modified;
  1701.  
  1702.   - platform: modbus_controller
  1703.     use_write_multiple: true
  1704.     modbus_controller_id: sprsun_pc
  1705.     name: "AV cool enable 0-use, 1-unuse #bit add: 0x0332 - B74"
  1706.     id: av_cool_enable
  1707.     address: 0x0033
  1708.     entity_category: config
  1709.     value_type: U_WORD
  1710.     optionsmap:
  1711.       "UNUSE": 0
  1712.       "USE": 4
  1713.     lambda: |-
  1714.       //ESP_LOGE("main","Modbus Number incoming value = %d",x);
  1715.       //ESP_LOGE("main","Modbus eval value = %d",(x & 0x0004));
  1716.       if ((x & 0x0004) == 0)
  1717.         return  std::string("UNUSE");
  1718.       if ((x & 0x0004) == 4)
  1719.         return  std::string("USE");
  1720.       return {};
  1721.     write_lambda: |-
  1722.       //ESP_LOGE("main","Modbus write gets = %d",value);
  1723.       uint16_t unmodified =  id(control_mark_1_raw).state;
  1724.       //ESP_LOGE("main","Modbus write unmodified = %d", unmodified);
  1725.       uint16_t modified = ((unmodified & ~0x0004) | value);
  1726.       //ESP_LOGE("main","Modbus write to write = %d", modified);
  1727.       return modified;
  1728.  
  1729.   - platform: modbus_controller
  1730.     use_write_multiple: true
  1731.     modbus_controller_id: sprsun_pc
  1732.     name: "AV control mode 0-enhan, 1-exhau #bit add: 0x0333 - B92"
  1733.     id: av_control_mode
  1734.     address: 0x0033
  1735.     entity_category: config
  1736.     value_type: U_WORD
  1737.     optionsmap:
  1738.       "ENHAN": 0
  1739.       "EXHAU": 8
  1740.     lambda: |-
  1741.       //ESP_LOGE("main","Modbus Number incoming value = %d",x);
  1742.       //ESP_LOGE("main","Modbus eval value = %d",(x & 0x0008));
  1743.       if ((x & 0x0008) == 0)
  1744.         return  std::string("ENHAN");
  1745.       if ((x & 0x0008) == 8)
  1746.         return  std::string("EXHAU");
  1747.       return {};
  1748.     write_lambda: |-
  1749.       //ESP_LOGE("main","Modbus write gets = %d",value);
  1750.       uint16_t unmodified =  id(control_mark_1_raw).state;
  1751.       //ESP_LOGE("main","Modbus write unmodified = %d", unmodified);
  1752.       uint16_t modified = ((unmodified & ~0x0008) | value);
  1753.       //ESP_LOGE("main","Modbus write to write = %d", modified);
  1754.       return modified;
  1755.  
  1756.   - platform: modbus_controller
  1757.     use_write_multiple: true
  1758.     modbus_controller_id: sprsun_pc
  1759.     name: "DC fan 1 enable 0-Unuse, 1-Use #bit add: 0x0334 - D01"
  1760.     id: dc_fan_1_enable
  1761.     address: 0x0033
  1762.     entity_category: config
  1763.     value_type: U_WORD
  1764.     optionsmap:
  1765.       "UNUSE": 0
  1766.       "USE": 16
  1767.     lambda: |-
  1768.       //ESP_LOGE("main","Modbus Number incoming value = %d",x);
  1769.       //ESP_LOGE("main","Modbus eval value = %d",(x & 0x0010));
  1770.       if ((x & 0x0010) == 0)
  1771.         return  std::string("UNUSE");
  1772.       if ((x & 0x0010) == 16)
  1773.         return  std::string("USE");
  1774.       return {};
  1775.     write_lambda: |-
  1776.       //ESP_LOGE("main","Modbus write gets = %d",value);
  1777.       uint16_t unmodified =  id(control_mark_1_raw).state;
  1778.       //ESP_LOGE("main","Modbus write unmodified = %d", unmodified);
  1779.       uint16_t modified = ((unmodified & ~0x0010) | value);
  1780.       //ESP_LOGE("main","Modbus write to write = %d", modified);
  1781.       return modified;
  1782.  
  1783.   - platform: modbus_controller
  1784.     use_write_multiple: true
  1785.     modbus_controller_id: sprsun_pc
  1786.     name: "DC fan 2 enable 0-Unuse, 1-Use #bit add: 0x0335 - D02"
  1787.     id: dc_fan_2_enable
  1788.     address: 0x0033
  1789.     entity_category: config
  1790.     value_type: U_WORD
  1791.     optionsmap:
  1792.       "UNUSE": 0
  1793.       "USE": 32
  1794.     lambda: |-
  1795.       //ESP_LOGE("main","Modbus Number incoming value = %d",x);
  1796.       //ESP_LOGE("main","Modbus eval value = %d",(x & 0x0020));
  1797.       if ((x & 0x0020) == 0)
  1798.         return  std::string("UNUSE");
  1799.       if ((x & 0x0020) == 32)
  1800.         return  std::string("USE");
  1801.       return {};
  1802.     write_lambda: |-
  1803.       //ESP_LOGE("main","Modbus write gets = %d",value);
  1804.       uint16_t unmodified =  id(control_mark_1_raw).state;
  1805.       //ESP_LOGE("main","Modbus write unmodified = %d", unmodified);
  1806.       uint16_t modified = ((unmodified & ~0x0020) | value);
  1807.       //ESP_LOGE("main","Modbus write to write = %d", modified);
  1808.       return modified;
  1809.  
  1810.   - platform: modbus_controller
  1811.     use_write_multiple: true
  1812.     modbus_controller_id: sprsun_pc
  1813.     name: "Parameters reset 0-Unuse, 1-Use #bit add: 0x0336"
  1814.     id: parameters_reset
  1815.     address: 0x0033
  1816.     entity_category: config
  1817.     value_type: U_WORD
  1818.     optionsmap:
  1819.       "UNUSE": 0
  1820.       "USE": 64
  1821.     lambda: |-
  1822.       //ESP_LOGE("main","Modbus Number incoming value = %d",x);
  1823.       //ESP_LOGE("main","Modbus eval value = %d",(x & 0x0040));
  1824.       if ((x & 0x0040) == 0)
  1825.         return  std::string("UNUSE");
  1826.       if ((x & 0x0040) == 64)
  1827.         return  std::string("USE");
  1828.       return {};
  1829.     write_lambda: |-
  1830.       //ESP_LOGE("main","Modbus write gets = %d",value);
  1831.       uint16_t unmodified =  id(control_mark_1_raw).state;
  1832.       //ESP_LOGE("main","Modbus write unmodified = %d", unmodified);
  1833.       uint16_t modified = ((unmodified & ~0x0040) | value);
  1834.       //ESP_LOGE("main","Modbus write to write = %d", modified);
  1835.       return modified;
  1836.  
  1837.   - platform: modbus_controller
  1838.     use_write_multiple: true
  1839.     modbus_controller_id: sprsun_pc
  1840.     name: "Failure reset 0-Unuse, 1-Use #bit add: 0x0337"
  1841.     id: failure_reset
  1842.     address: 0x0033
  1843.     entity_category: config
  1844.     value_type: U_WORD
  1845.     optionsmap:
  1846.       "UNUSE": 0
  1847.       "USE": 128
  1848.     lambda: |-
  1849.       //ESP_LOGE("main","Modbus Number incoming value = %d",x);
  1850.       //ESP_LOGE("main","Modbus eval value = %d",(x & 0x0080));
  1851.       if ((x & 0x0080) == 0)
  1852.         return  std::string("UNUSE");
  1853.       if ((x & 0x0080) == 128)
  1854.         return  std::string("USE");
  1855.       return {};
  1856.     write_lambda: |-
  1857.       //ESP_LOGE("main","Modbus write gets = %d",value);
  1858.       uint16_t unmodified =  id(control_mark_1_raw).state;
  1859.       //ESP_LOGE("main","Modbus write unmodified = %d", unmodified);
  1860.       uint16_t modified = ((unmodified & ~0x0080) | value);
  1861.       //ESP_LOGE("main","Modbus write to write = %d", modified);
  1862.       return modified;
  1863.  
  1864. ############################################     CONTROL MARK 2
  1865.   - platform: modbus_controller
  1866.     use_write_multiple: true
  1867.     modbus_controller_id: sprsun_pc
  1868.     name: "Antilegionella Enable 0-Unuse, 1-Use #bit add: 0x0340"
  1869.     id: antilegionella_enable
  1870.     address: 0x0034
  1871.     entity_category: config
  1872.     value_type: U_WORD
  1873.     optionsmap:
  1874.       "UNUSE": 0
  1875.       "USE": 1
  1876.     lambda: |-
  1877.       //ESP_LOGE("main","Modbus Number incoming value = %d",x);
  1878.       //ESP_LOGE("main","Modbus eval value = %d",(x & 0x0001));
  1879.       if ((x & 0x0001) == 0)
  1880.         return  std::string("UNUSE");
  1881.       if ((x & 0x0001) == 1)
  1882.         return  std::string("USE");
  1883.       return {};
  1884.     write_lambda: |-
  1885.       //ESP_LOGE("main","Modbus write gets = %d",value);
  1886.       uint16_t unmodified =  id(control_mark_2_raw).state;
  1887.       //ESP_LOGE("main","Modbus write unmodified = %d", unmodified);
  1888.       uint16_t modified = ((unmodified & ~0x0001) | value);
  1889.       //ESP_LOGE("main","Modbus write to write = %d", modified);
  1890.       return modified;
  1891.  
  1892.   - platform: modbus_controller
  1893.     use_write_multiple: true
  1894.     modbus_controller_id: sprsun_pc
  1895.     name: "Two/Three function 0-Unuse, 1-Use #bit add: 0x0341"
  1896.     id: two_three_function
  1897.     address: 0x0034
  1898.     entity_category: config
  1899.     value_type: U_WORD
  1900.     optionsmap:
  1901.       "UNUSE": 0
  1902.       "USE": 2
  1903.     lambda: |-
  1904.       //ESP_LOGE("main","Modbus Number incoming value = %d",x);
  1905.       //ESP_LOGE("main","Modbus eval value = %d",(x & 0x0002));
  1906.       if ((x & 0x0002) == 0)
  1907.         return  std::string("UNUSE");
  1908.       if ((x & 0x0002) == 2)
  1909.         return  std::string("USE");
  1910.       return {};
  1911.     write_lambda: |-
  1912.       //ESP_LOGE("main","Modbus write gets = %d",value);
  1913.       uint16_t unmodified =  id(control_mark_2_raw).state;
  1914.       //ESP_LOGE("main","Modbus write unmodified = %d", unmodified);
  1915.       uint16_t modified = ((unmodified & ~0x0002) | value);
  1916.       //ESP_LOGE("main","Modbus write to write = %d", modified);
  1917.       return modified;
  1918.  
  1919. ##################################################            TIMEBAND
  1920.   - platform: modbus_controller
  1921.     use_write_multiple: true
  1922.     modbus_controller_id: sprsun_pc
  1923.     name: "Timeband 1 Enable #bit add: 0x0350"
  1924.     id: timeband_1
  1925.     address: 0x0035
  1926.     entity_category: config
  1927.     value_type: U_WORD
  1928.     optionsmap:
  1929.       "OFF": 0
  1930.       "ON": 1
  1931.     lambda: |-
  1932.       //ESP_LOGE("main","Modbus Number incoming value = %d",x);
  1933.       //ESP_LOGE("main","Modbus eval value = %d",(x & 0x0001));
  1934.       if ((x & 0x0001) == 0)
  1935.         return  std::string("OFF");
  1936.       if ((x & 0x0001) == 1)
  1937.         return  std::string("ON");
  1938.       return {};
  1939.     write_lambda: |-
  1940.       //ESP_LOGE("main","Modbus write gets = %d",value);
  1941.       uint16_t unmodified =  id(timeband_raw).state;
  1942.       //ESP_LOGE("main","Modbus write unmodified = %d", unmodified);
  1943.       uint16_t modified = ((unmodified & ~0x0001) | value);
  1944.       //ESP_LOGE("main","Modbus write to write = %d", modified);
  1945.       return modified;
  1946.  
  1947.   - platform: modbus_controller
  1948.     use_write_multiple: true
  1949.     modbus_controller_id: sprsun_pc
  1950.     name: "Timeband 2 Enable #bit add: 0x0351"
  1951.     id: timeband_2
  1952.     address: 0x0035
  1953.     entity_category: config
  1954.     value_type: U_WORD
  1955.     optionsmap:
  1956.       "OFF": 0
  1957.       "ON": 2
  1958.     lambda: |-
  1959.       //ESP_LOGE("main","Modbus Number incoming value = %d",x);
  1960.       //ESP_LOGE("main","Modbus eval value = %d",(x & 0x0002));
  1961.       if ((x & 0x0002) == 0)
  1962.         return  std::string("OFF");
  1963.       if ((x & 0x0002) == 2)
  1964.         return  std::string("ON");
  1965.       return {};
  1966.     write_lambda: |-
  1967.       //ESP_LOGE("main","Modbus write gets = %d",value);
  1968.       uint16_t unmodified =  id(timeband_raw).state;
  1969.       //ESP_LOGE("main","Modbus write unmodified = %d", unmodified);
  1970.       uint16_t modified = ((unmodified & ~0x0002) | value);
  1971.       //ESP_LOGE("main","Modbus write to write = %d", modified);
  1972.       return modified;
  1973.  
  1974.   - platform: modbus_controller
  1975.     use_write_multiple: true
  1976.     modbus_controller_id: sprsun_pc
  1977.     name: "Timeband 3 Enable #bit add: 0x0352"
  1978.     id: timeband_3
  1979.     address: 0x0035
  1980.     entity_category: config
  1981.     value_type: U_WORD
  1982.     optionsmap:
  1983.       "OFF": 0
  1984.       "ON": 4
  1985.     lambda: |-
  1986.       //ESP_LOGE("main","Modbus Number incoming value = %d",x);
  1987.       //ESP_LOGE("main","Modbus eval value = %d",(x & 0x0004));
  1988.       if ((x & 0x0004) == 0)
  1989.         return  std::string("OFF");
  1990.       if ((x & 0x0004) == 4)
  1991.         return  std::string("ON");
  1992.       return {};
  1993.     write_lambda: |-
  1994.       //ESP_LOGE("main","Modbus write gets = %d",value);
  1995.       uint16_t unmodified =  id(timeband_raw).state;
  1996.       //ESP_LOGE("main","Modbus write unmodified = %d", unmodified);
  1997.       uint16_t modified = ((unmodified & ~0x0004) | value);
  1998.       //ESP_LOGE("main","Modbus write to write = %d", modified);
  1999.       return modified;
  2000.  
  2001. ############################################################################
  2002. switch:
  2003.   - platform: gpio
  2004.     pin: 19
  2005.     id: relay_grzalka_co
  2006.     name: "Grzałka CO"
  2007.     icon: "mdi:heat"
  2008.  
  2009.   - platform: gpio
  2010.     pin: 21
  2011.     id: relay_grzalka_cwu
  2012.     name: "Grzałka CWU"
  2013.     icon: "mdi:heat"
  2014.  
  2015.   - platform: template
  2016.     name: "Sterowanie grzałki CO z PC"
  2017.     id: blokada_grzalka_co
  2018.     restore_mode: RESTORE_DEFAULT_OFF
  2019.     optimistic: true
  2020.     turn_off_action:
  2021.         if:
  2022.           condition:
  2023.             binary_sensor.is_on: grzalka_co
  2024.           then:
  2025.             - switch.turn_off: relay_grzalka_co
  2026.     turn_on_action:
  2027.         if:
  2028.           condition:
  2029.             binary_sensor.is_on: grzalka_co
  2030.           then:
  2031.             - switch.turn_on: relay_grzalka_co
  2032.  
  2033.  
  2034.  
  2035.   - platform: template
  2036.     name: "Sterowanie grzałki CWU z PC"
  2037.     id: blokada_grzalka_cwu
  2038.     restore_mode: RESTORE_DEFAULT_OFF
  2039.     optimistic: true    
  2040.     turn_off_action:
  2041.         if:
  2042.           condition:
  2043.             binary_sensor.is_on: grzalka_cwu
  2044.           then:
  2045.             - switch.turn_off: relay_grzalka_cwu
  2046.     turn_on_action:
  2047.         if:
  2048.           condition:
  2049.             binary_sensor.is_on: grzalka_cwu
  2050.           then:
  2051.             - switch.turn_on: relay_grzalka_cwu
  2052.  
  2053.    
  2054. number:
  2055.  
  2056.     - platform: modbus_controller
  2057.       modbus_controller_id: sprsun_pc
  2058.       name: ${friendly_name} H01 Defrost freq
  2059.       address: 0x0037
  2060.       skip_updates: 10
  2061.       unit_of_measurement: "Hz"
  2062.       id: h01_defrost_freq
  2063.       value_type: U_WORD
  2064.       min_value: 30
  2065.       max_value: 120
  2066.       step: 1
  2067.       mode: box
  2068.       entity_category: config
  2069.  
  2070.     - platform: modbus_controller
  2071.       modbus_controller_id: sprsun_pc
  2072.       name: ${friendly_name} H08 Defrost period 1
  2073.       address: 0x0038
  2074.       skip_updates: 10
  2075.       unit_of_measurement: "MIN"
  2076.       id: h08_defrost_period_1
  2077.       value_type: U_WORD
  2078.       min_value: 10
  2079.       max_value: 120
  2080.       step: 1
  2081.       mode: box
  2082.       entity_category: config  
  2083.  
  2084.     - platform: modbus_controller
  2085.       modbus_controller_id: sprsun_pc
  2086.       name: ${friendly_name} H11 Defrost period 2
  2087.       address: 0x0039
  2088.       skip_updates: 10      
  2089.       unit_of_measurement: "MIN"
  2090.       id: h11_defrost_period_1
  2091.       value_type: U_WORD
  2092.       min_value: 10
  2093.       max_value: 120
  2094.       step: 1
  2095.       mode: box
  2096.       entity_category: config  
  2097.  
  2098.     - platform: modbus_controller
  2099.       modbus_controller_id: sprsun_pc
  2100.       name: ${friendly_name} H11 Defrost period 3
  2101.       address: 0x003A
  2102.       skip_updates: 10      
  2103.       unit_of_measurement: "MIN"
  2104.       id: h14_defrost_period_3
  2105.       value_type: U_WORD
  2106.       min_value: 10
  2107.       max_value: 120
  2108.       step: 1
  2109.       mode: box
  2110.       entity_category: config  
  2111.  
  2112.     - platform: modbus_controller
  2113.       modbus_controller_id: sprsun_pc
  2114.       name: ${friendly_name} H15 Comp total run
  2115.       address: 0x003B
  2116.       skip_updates: 10      
  2117.       unit_of_measurement: "MIN"
  2118.       id: h15_comp_total_run
  2119.       value_type: U_WORD
  2120.       min_value: 1
  2121.       max_value: 60
  2122.       lambda: "return x / 5.0;"
  2123.       write_lambda: "return x * 5.0;"
  2124.       step: 1
  2125.       mode: box
  2126.       entity_category: config
  2127.  
  2128.     - platform: modbus_controller
  2129.       modbus_controller_id: sprsun_pc
  2130.       name: ${friendly_name} H16 Comp continuous run
  2131.       address: 0x003C
  2132.       skip_updates: 10      
  2133.       unit_of_measurement: "MIN"
  2134.       id: h16_comp_continuous_run
  2135.       value_type: U_WORD
  2136.       min_value: 5
  2137.       max_value: 90
  2138.       #lambda: "return x / 5.0;"
  2139.       #write_lambda: "return x * 5.0;"
  2140.       step: 1
  2141.       mode: box
  2142.       entity_category: config
  2143.  
  2144.     - platform: modbus_controller
  2145.       modbus_controller_id: sprsun_pc
  2146.       name: ${friendly_name} H05 Defrost time
  2147.       address: 0x003D
  2148.       skip_updates: 10      
  2149.       unit_of_measurement: "MIN"
  2150.       id: h05_defrost_time
  2151.       value_type: U_WORD
  2152.       min_value: 5
  2153.       max_value: 20
  2154.       #lambda: "return x / 5.0;"
  2155.       #write_lambda: "return x * 5.0;"
  2156.       step: 1
  2157.       mode: box
  2158.       entity_category: config
  2159.  
  2160.     # - platform: modbus_controller
  2161.     #   modbus_controller_id: sprsun_pc
  2162.     #   name: ${friendly_name} A01 MV preiod
  2163.     #   address: 0x003E
  2164.     #   skip_updates: 10      
  2165.     #   unit_of_measurement: "S"
  2166.     #   id: a01_mv_preiod
  2167.     #   value_type: U_WORD
  2168.     #   min_value: 20
  2169.     #   max_value: 90
  2170.     #   #lambda: "return x / 5.0;"
  2171.     #   #write_lambda: "return x * 5.0;"
  2172.     #   step: 1
  2173.     #   mode: box
  2174.     #   entity_category: config
  2175.  
  2176.     # - platform: modbus_controller
  2177.     #   modbus_controller_id: sprsun_pc
  2178.     #   name: ${friendly_name} A14 MV heat initial 0
  2179.     #   address: 0x003F
  2180.     #   skip_updates: 10      
  2181.     #   #unit_of_measurement: "S"
  2182.     #   id: a14_mv_heat_initial_0
  2183.     #   value_type: U_WORD
  2184.     #   min_value: 0
  2185.     #   max_value: 240
  2186.     #   lambda: "return x / 2.0;"
  2187.     #   write_lambda: "return x * 2.0;"
  2188.     #   step: 1
  2189.     #   mode: box
  2190.     #   entity_category: config
  2191.  
  2192.     # - platform: modbus_controller
  2193.     #   modbus_controller_id: sprsun_pc
  2194.     #   name: ${friendly_name} A15 MV heat initial 1
  2195.     #   address: 0x0040
  2196.     #   skip_updates: 10      
  2197.     #   #unit_of_measurement: "S"
  2198.     #   id: a15_mv_heat_initial_1
  2199.     #   value_type: U_WORD
  2200.     #   min_value: 0
  2201.     #   max_value: 240
  2202.     #   lambda: "return x / 2.0;"
  2203.     #   write_lambda: "return x * 2.0;"
  2204.     #   step: 1
  2205.     #   mode: box
  2206.     #   entity_category: config
  2207.  
  2208.     # - platform: modbus_controller
  2209.     #   modbus_controller_id: sprsun_pc
  2210.     #   name: ${friendly_name} A16 MV heat initial 2
  2211.     #   address: 0x0041
  2212.     #   skip_updates: 10      
  2213.     #   #unit_of_measurement: "S"
  2214.     #   id: a16_mv_heat_initial_2
  2215.     #   value_type: U_WORD
  2216.     #   min_value: 0
  2217.     #   max_value: 240
  2218.     #   lambda: "return x / 2.0;"
  2219.     #   write_lambda: "return x * 2.0;"
  2220.     #   step: 1
  2221.     #   mode: box
  2222.     #   entity_category: config
  2223.  
  2224.     # - platform: modbus_controller
  2225.     #   modbus_controller_id: sprsun_pc
  2226.     #   name: ${friendly_name} A17 MV heat initial 3
  2227.     #   address: 0x0042
  2228.     #   skip_updates: 10      
  2229.     #   #unit_of_measurement: "S"
  2230.     #   id: a17_mv_heat_initial_3
  2231.     #   value_type: U_WORD
  2232.     #   min_value: 0
  2233.     #   max_value: 240
  2234.     #   lambda: "return x / 2.0;"
  2235.     #   write_lambda: "return x * 2.0;"
  2236.     #   step: 1
  2237.     #   mode: box
  2238.     #   entity_category: config
  2239.  
  2240.     # - platform: modbus_controller
  2241.     #   modbus_controller_id: sprsun_pc
  2242.     #   name: ${friendly_name} A18 MV heat initial 4
  2243.     #   address: 0x0043
  2244.     #   skip_updates: 10      
  2245.     #   #unit_of_measurement: "S"
  2246.     #   id: a18_mv_heat_initial_4
  2247.     #   value_type: U_WORD
  2248.     #   min_value: 0
  2249.     #   max_value: 240
  2250.     #   lambda: "return x / 2.0;"
  2251.     #   write_lambda: "return x * 2.0;"
  2252.     #   step: 1
  2253.     #   mode: box
  2254.     #   entity_category: config
  2255.  
  2256.     # - platform: modbus_controller
  2257.     #   modbus_controller_id: sprsun_pc
  2258.     #   name: ${friendly_name} A19 MV heat initial 5
  2259.     #   address: 0x0044
  2260.     #   skip_updates: 10      
  2261.     #   #unit_of_measurement: "S"
  2262.     #   id: a19_mv_heat_initial_5
  2263.     #   value_type: U_WORD
  2264.     #   min_value: 0
  2265.     #   max_value: 240
  2266.     #   lambda: "return x / 2.0;"
  2267.     #   write_lambda: "return x * 2.0;"
  2268.     #   step: 1
  2269.     #   mode: box
  2270.     #   entity_category: config
  2271.  
  2272.     # - platform: modbus_controller
  2273.     #   modbus_controller_id: sprsun_pc
  2274.     #   name: ${friendly_name} A20 MV heat initial 6
  2275.     #   address: 0x0045
  2276.     #   skip_updates: 10      
  2277.     #   #unit_of_measurement: "S"
  2278.     #   id: a20_mv_heat_initial_6
  2279.     #   value_type: U_WORD
  2280.     #   min_value: 0
  2281.     #   max_value: 240
  2282.     #   lambda: "return x / 2.0;"
  2283.     #   write_lambda: "return x * 2.0;"
  2284.     #   step: 1
  2285.     #   mode: box
  2286.     #   entity_category: config
  2287.  
  2288.     # - platform: modbus_controller
  2289.     #   modbus_controller_id: sprsun_pc
  2290.     #   name: ${friendly_name} A21 MV heat initial 7
  2291.     #   address: 0x0046
  2292.     #   skip_updates: 10    
  2293.     #   #unit_of_measurement: "S"
  2294.     #   id: a21_mv_heat_initial_7
  2295.     #   value_type: U_WORD
  2296.     #   min_value: 0
  2297.     #   max_value: 240
  2298.     #   lambda: "return x / 2.0;"
  2299.     #   write_lambda: "return x * 2.0;"
  2300.     #   step: 1
  2301.     #   mode: box
  2302.     #   entity_category: config
  2303.  
  2304.     # - platform: modbus_controller
  2305.     #   modbus_controller_id: sprsun_pc
  2306.     #   name: ${friendly_name} A22 MV cool initial 0
  2307.     #   address: 0x0047
  2308.     #   skip_updates: 10      
  2309.     #   #unit_of_measurement: "S"
  2310.     #   id: a22_mv_cool_initial_0
  2311.     #   value_type: U_WORD
  2312.     #   min_value: 0
  2313.     #   max_value: 240
  2314.     #   lambda: "return x / 2.0;"
  2315.     #   write_lambda: "return x * 2.0;"
  2316.     #   step: 1
  2317.     #   mode: box
  2318.     #   entity_category: config
  2319.  
  2320.     # - platform: modbus_controller
  2321.     #   modbus_controller_id: sprsun_pc
  2322.     #   name: ${friendly_name} A23 MV cool initial 1
  2323.     #   address: 0x0048
  2324.     #   skip_updates: 10    
  2325.     #   #unit_of_measurement: "S"
  2326.     #   id: a23_mv_cool_initial_1
  2327.     #   value_type: U_WORD
  2328.     #   min_value: 0
  2329.     #   max_value: 240
  2330.     #   lambda: "return x / 2.0;"
  2331.     #   write_lambda: "return x * 2.0;"
  2332.     #   step: 1
  2333.     #   mode: box
  2334.     #   entity_category: config
  2335.  
  2336.     # - platform: modbus_controller
  2337.     #   modbus_controller_id: sprsun_pc
  2338.     #   name: ${friendly_name} A24 MV cool initial 2
  2339.     #   address: 0x0049
  2340.     #   skip_updates: 10
  2341.     #  #unit_of_measurement: "S"
  2342.     #   id: a24_mv_cool_initial_2
  2343.     #   value_type: U_WORD
  2344.     #   min_value: 0
  2345.     #   max_value: 240
  2346.     #   lambda: "return x / 2.0;"
  2347.     #   write_lambda: "return x * 2.0;"
  2348.     #   step: 1
  2349.     #   mode: box
  2350.     #   entity_category: config
  2351.  
  2352.     # - platform: modbus_controller
  2353.     #   modbus_controller_id: sprsun_pc
  2354.     #   name: ${friendly_name} A25 MV cool initial 3
  2355.     #   address: 0x004A
  2356.     #   skip_updates: 10      
  2357.     #   #unit_of_measurement: "S"
  2358.     #   id: a25_mv_cool_initial_3
  2359.     #   value_type: U_WORD
  2360.     #   min_value: 0
  2361.     #   max_value: 240
  2362.     #   lambda: "return x / 2.0;"
  2363.     #   write_lambda: "return x * 2.0;"
  2364.     #   step: 1
  2365.     #   mode: box
  2366.     #   entity_category: config
  2367.  
  2368.     # - platform: modbus_controller
  2369.     #   modbus_controller_id: sprsun_pc
  2370.     #   name: ${friendly_name} A26 MV water initial 0
  2371.     #   address: 0x004B
  2372.     #   skip_updates: 10      
  2373.     #   #unit_of_measurement: "S"
  2374.     #   id: a26_mv_water_initial_0
  2375.     #   value_type: U_WORD
  2376.     #   min_value: 0
  2377.     #   max_value: 240
  2378.     #   lambda: "return x / 2.0;"
  2379.     #   write_lambda: "return x * 2.0;"
  2380.     #   step: 1
  2381.     #   mode: box
  2382.     #   entity_category: config
  2383.  
  2384.     # - platform: modbus_controller
  2385.     #   modbus_controller_id: sprsun_pc
  2386.     #   name: ${friendly_name} A27 MV water initial 1
  2387.     #   address: 0x004C
  2388.     #   skip_updates: 10      
  2389.     #   #unit_of_measurement: "S"
  2390.     #   id: a27_mv_water_initial_1
  2391.     #   value_type: U_WORD
  2392.     #   min_value: 0
  2393.     #   max_value: 240
  2394.     #   lambda: "return x / 2.0;"
  2395.     #   write_lambda: "return x * 2.0;"
  2396.     #   step: 1
  2397.     #   mode: box
  2398.     #   entity_category: config
  2399.  
  2400.     # - platform: modbus_controller
  2401.     #   modbus_controller_id: sprsun_pc
  2402.     #   name: ${friendly_name} A28 MV water initial 2
  2403.     #   address: 0x004D
  2404.     #   skip_updates: 10      
  2405.     #   #unit_of_measurement: "S"
  2406.     #   id: a28_mv_water_initial_2
  2407.     #   value_type: U_WORD
  2408.     #   min_value: 0
  2409.     #   max_value: 240
  2410.     #   lambda: "return x / 2.0;"
  2411.     #   write_lambda: "return x * 2.0;"
  2412.     #   step: 1
  2413.     #   mode: box
  2414.     #   entity_category: config
  2415.  
  2416.     # - platform: modbus_controller
  2417.     #   modbus_controller_id: sprsun_pc
  2418.     #   name: ${friendly_name} A29 MV water initial 3
  2419.     #   address: 0x004E
  2420.     #   skip_updates: 10      
  2421.     #   #unit_of_measurement: "S"
  2422.     #   id: a29_mv_water_initial_3
  2423.     #   value_type: U_WORD
  2424.     #   min_value: 0
  2425.     #   max_value: 240
  2426.     #   lambda: "return x / 2.0;"
  2427.     #   write_lambda: "return x * 2.0;"
  2428.     #   step: 1
  2429.     #   mode: box
  2430.     #   entity_category: config
  2431.  
  2432.     # - platform: modbus_controller
  2433.     #   modbus_controller_id: sprsun_pc
  2434.     #   name: ${friendly_name} A30 MV water initial 4
  2435.     #   address: 0x004F
  2436.     #   skip_updates: 10      
  2437.     #   #unit_of_measurement: "S"
  2438.     #   id: a30_mv_water_initial_4
  2439.     #   value_type: U_WORD
  2440.     #   min_value: 0
  2441.     #   max_value: 240
  2442.     #   lambda: "return x / 2.0;"
  2443.     #   write_lambda: "return x * 2.0;"
  2444.     #   step: 1
  2445.     #   mode: box
  2446.     #   entity_category: config
  2447.  
  2448.     # - platform: modbus_controller
  2449.     #   modbus_controller_id: sprsun_pc
  2450.     #   name: ${friendly_name} A31 MV water initial 5
  2451.     #   address: 0x0050
  2452.     #   skip_updates: 10      
  2453.     #   #unit_of_measurement: "S"
  2454.     #   id: a31_mv_water_initial_5
  2455.     #   value_type: U_WORD
  2456.     #   min_value: 0
  2457.     #   max_value: 240
  2458.     #   lambda: "return x / 2.0;"
  2459.     #   write_lambda: "return x * 2.0;"
  2460.     #   step: 1
  2461.     #   mode: box
  2462.     #   entity_category: config
  2463.  
  2464.     # - platform: modbus_controller
  2465.     #   modbus_controller_id: sprsun_pc
  2466.     #   name: ${friendly_name} A32 MV water initial 6
  2467.     #   address: 0x0051
  2468.     #   skip_updates: 10      
  2469.     #   #unit_of_measurement: "S"
  2470.     #   id: a32_mv_water_initial_6
  2471.     #   value_type: U_WORD
  2472.     #   min_value: 0
  2473.     #   max_value: 240
  2474.     #   lambda: "return x / 2.0;"
  2475.     #   write_lambda: "return x * 2.0;"
  2476.     #   step: 1
  2477.     #   mode: box
  2478.     #   entity_category: config
  2479.  
  2480.     # - platform: modbus_controller
  2481.     #   modbus_controller_id: sprsun_pc
  2482.     #   name: ${friendly_name} A33 MV water initial 7
  2483.     #   address: 0x0052
  2484.     #   skip_updates: 10      
  2485.     #   #unit_of_measurement: "S"
  2486.     #   id: a33_mv_water_initial_7
  2487.     #   value_type: U_WORD
  2488.     #   min_value: 0
  2489.     #   max_value: 240
  2490.     #   lambda: "return x / 2.0;"
  2491.     #   write_lambda: "return x * 2.0;"
  2492.     #   step: 1
  2493.     #   mode: box
  2494.     #   entity_category: config
  2495.  
  2496.     # - platform: modbus_controller
  2497.     #   modbus_controller_id: sprsun_pc
  2498.     #   name: ${friendly_name} A34 MV heat lower 0
  2499.     #   address: 0x0053
  2500.     #   skip_updates: 10      
  2501.     #   #unit_of_measurement: "S"
  2502.     #   id: a34_mv_heat_lower_0
  2503.     #   value_type: U_WORD
  2504.     #   min_value: 0
  2505.     #   max_value: 240
  2506.     #   lambda: "return x / 2.0;"
  2507.     #   write_lambda: "return x * 2.0;"
  2508.     #   step: 1
  2509.     #   mode: box
  2510.     #   entity_category: config
  2511.  
  2512.     # - platform: modbus_controller
  2513.     #   modbus_controller_id: sprsun_pc
  2514.     #   name: ${friendly_name} A35 MV heat lower 1
  2515.     #   address: 0x0054
  2516.     #   skip_updates: 10      
  2517.     #   #unit_of_measurement: "S"
  2518.     #   id: a35_mv_heat_lower_1
  2519.     #   value_type: U_WORD
  2520.     #   min_value: 0
  2521.     #   max_value: 240
  2522.     #   lambda: "return x / 2.0;"
  2523.     #   write_lambda: "return x * 2.0;"
  2524.     #   step: 1
  2525.     #   mode: box
  2526.     #   entity_category: config
  2527.  
  2528.     # - platform: modbus_controller
  2529.     #   modbus_controller_id: sprsun_pc
  2530.     #   name: ${friendly_name} A34 MV heat lower 2
  2531.     #   address: 0x0055
  2532.     #   skip_updates: 10      
  2533.     #   #unit_of_measurement: "S"
  2534.     #   id: a34_mv_heat_lower_2
  2535.     #   value_type: U_WORD
  2536.     #   min_value: 0
  2537.     #   max_value: 240
  2538.     #   lambda: "return x / 2.0;"
  2539.     #   write_lambda: "return x * 2.0;"
  2540.     #   step: 1
  2541.     #   mode: box
  2542.     #   entity_category: config
  2543.  
  2544.     # - platform: modbus_controller
  2545.     #   modbus_controller_id: sprsun_pc
  2546.     #   name: ${friendly_name} A34 MV heat lower 3
  2547.     #   address: 0x0056
  2548.     #   skip_updates: 10      
  2549.     #   #unit_of_measurement: "S"
  2550.     #   id: a34_mv_heat_lower_3
  2551.     #   value_type: U_WORD
  2552.     #   min_value: 0
  2553.     #   max_value: 240
  2554.     #   lambda: "return x / 2.0;"
  2555.     #   write_lambda: "return x * 2.0;"
  2556.     #   step: 1
  2557.     #   mode: box
  2558.     #   entity_category: config
  2559.  
  2560.     # - platform: modbus_controller
  2561.     #   modbus_controller_id: sprsun_pc
  2562.     #   name: ${friendly_name} A34 MV heat lower 4
  2563.     #   address: 0x0057
  2564.     #   skip_updates: 10      
  2565.     #   #unit_of_measurement: "S"
  2566.     #   id: a34_mv_heat_lower_4
  2567.     #   value_type: U_WORD
  2568.     #   min_value: 0
  2569.     #   max_value: 240
  2570.     #   lambda: "return x / 2.0;"
  2571.     #   write_lambda: "return x * 2.0;"
  2572.     #   step: 1
  2573.     #   mode: box
  2574.     #   entity_category: config
  2575.  
  2576.     # - platform: modbus_controller
  2577.     #   modbus_controller_id: sprsun_pc
  2578.     #   name: ${friendly_name} A34 MV heat lower 5
  2579.     #   address: 0x0058
  2580.     #   skip_updates: 10    
  2581.     #   #unit_of_measurement: "S"
  2582.     #   id: a34_mv_heat_lower_5
  2583.     #   value_type: U_WORD
  2584.     #   min_value: 0
  2585.     #   max_value: 240
  2586.     #   lambda: "return x / 2.0;"
  2587.     #   write_lambda: "return x * 2.0;"
  2588.     #   step: 1
  2589.     #   mode: box
  2590.     #   entity_category: config
  2591.  
  2592.     # - platform: modbus_controller
  2593.     #   modbus_controller_id: sprsun_pc
  2594.     #   name: ${friendly_name} A34 MV heat lower 6
  2595.     #   address: 0x0059
  2596.     #   skip_updates: 10
  2597.     #   #unit_of_measurement: "S"
  2598.     #   id: a34_mv_heat_lower_6
  2599.     #   value_type: U_WORD
  2600.     #   min_value: 0
  2601.     #   max_value: 240
  2602.     #   lambda: "return x / 2.0;"
  2603.     #   write_lambda: "return x * 2.0;"
  2604.     #   step: 1
  2605.     #   mode: box
  2606.     #   entity_category: config
  2607.  
  2608.     # - platform: modbus_controller
  2609.     #   modbus_controller_id: sprsun_pc
  2610.     #   name: ${friendly_name} A34 MV heat lower 7
  2611.     #   address: 0x005A
  2612.     #   skip_updates: 10      
  2613.     #   #unit_of_measurement: "S"
  2614.     #   id: a34_mv_heat_lower_7
  2615.     #   value_type: U_WORD
  2616.     #   min_value: 0
  2617.     #   max_value: 240
  2618.     #   lambda: "return x / 2.0;"
  2619.     #   write_lambda: "return x * 2.0;"
  2620.     #   step: 1
  2621.     #   mode: box
  2622.     #   entity_category: config
  2623.  
  2624.     # - platform: modbus_controller
  2625.     #   modbus_controller_id: sprsun_pc
  2626.     #   name: ${friendly_name} A43 MV defrost open
  2627.     #   address: 0x005B
  2628.     #   skip_updates: 10      
  2629.     #   #unit_of_measurement: "S"
  2630.     #   id: a43_mv_defrost_open
  2631.     #   value_type: U_WORD
  2632.     #   min_value: 0
  2633.     #   max_value: 240
  2634.     #   lambda: "return x / 2.0;"
  2635.     #   write_lambda: "return x * 2.0;"
  2636.     #   step: 1
  2637.     #   mode: box
  2638.     #   entity_category: config
  2639.  
  2640.     # - platform: modbus_controller
  2641.     #   modbus_controller_id: sprsun_pc
  2642.     #   name: ${friendly_name} A44 MV water lower
  2643.     #   address: 0x005C
  2644.     #   skip_updates: 10      
  2645.     #   #unit_of_measurement: "S"
  2646.     #   id: a44_mv_water_lower
  2647.     #   value_type: U_WORD
  2648.     #   min_value: 25
  2649.     #   max_value: 75
  2650.     #   lambda: "return x / 2.0;"
  2651.     #   write_lambda: "return x * 2.0;"
  2652.     #   step: 1
  2653.     #   mode: box
  2654.     #   entity_category: config
  2655.  
  2656.     # - platform: modbus_controller
  2657.     #   modbus_controller_id: sprsun_pc
  2658.     #   name: ${friendly_name} A46 MV manual open
  2659.     #   address: 0x005D
  2660.     #   skip_updates: 10      
  2661.     #   #unit_of_measurement: "S"
  2662.     #   id: a46_mv_manual_open
  2663.     #   value_type: U_WORD
  2664.     #   min_value: 10
  2665.     #   max_value: 225
  2666.     #   lambda: "return x / 2.0;"
  2667.     #   write_lambda: "return x * 2.0;"
  2668.     #   step: 1
  2669.     #   mode: box
  2670.     #   entity_category: config
  2671.  
  2672.     # - platform: modbus_controller
  2673.     #   modbus_controller_id: sprsun_pc
  2674.     #   name: ${friendly_name} A47 MV SH ratio
  2675.     #   address: 0x005E
  2676.     #   skip_updates: 10      
  2677.     #   #unit_of_measurement: "S"
  2678.     #   id: a47_mv_sh_ratio
  2679.     #   value_type: U_WORD
  2680.     #   min_value: 1
  2681.     #   max_value: 6
  2682.     #   #lambda: "return x / 2.0;"
  2683.     #   #write_lambda: "return x * 2.0;"
  2684.     #   step: 1
  2685.     #   mode: box
  2686.     #   entity_category: config
  2687.  
  2688.     # - platform: modbus_controller
  2689.     #   modbus_controller_id: sprsun_pc
  2690.     #   name: ${friendly_name} A48 MV SH diff.
  2691.     #   address: 0x005F
  2692.     #   skip_updates: 10      
  2693.     #   #unit_of_measurement: "S"
  2694.     #   id: a48_mv_sh_diff
  2695.     #   value_type: U_WORD
  2696.     #   min_value: 1
  2697.     #   max_value: 180
  2698.     #   #lambda: "return x / 2.0;"
  2699.     #   #write_lambda: "return x * 2.0;"
  2700.     #   step: 1
  2701.     #   mode: box
  2702.     #   entity_category: config
  2703.  
  2704.     # - platform: modbus_controller
  2705.     #   modbus_controller_id: sprsun_pc
  2706.     #   name: ${friendly_name} A50 MV comp keep time
  2707.     #   address: 0x0060
  2708.     #   skip_updates: 10      
  2709.     #   unit_of_measurement: "S"
  2710.     #   id: a50_mv_comp_keep_time
  2711.     #   value_type: U_WORD
  2712.     #   min_value: 0
  2713.     #   max_value: 250
  2714.     #   lambda: "return x / 2.0;"
  2715.     #   write_lambda: "return x * 2.0;"
  2716.     #   step: 1
  2717.     #   mode: box
  2718.     #   entity_category: config
  2719.  
  2720.     # - platform: modbus_controller
  2721.     #   modbus_controller_id: sprsun_pc
  2722.     #   name: ${friendly_name} A51 MV defrost keep time
  2723.     #   address: 0x0061
  2724.     #   skip_updates: 10      
  2725.     #   unit_of_measurement: "S"
  2726.     #   id: a51_mv_defrost_keep_time
  2727.     #   value_type: U_WORD
  2728.     #   min_value: 0
  2729.     #   max_value: 250
  2730.     #   lambda: "return x / 2.0;"
  2731.     #   write_lambda: "return x * 2.0;"
  2732.     #   step: 1
  2733.     #   mode: box
  2734.     #   entity_category: config
  2735.  
  2736.     # - platform: modbus_controller
  2737.     #   modbus_controller_id: sprsun_pc
  2738.     #   name: ${friendly_name} B02 AV manual open
  2739.     #   address: 0x0062
  2740.     #   skip_updates: 10      
  2741.     #   #unit_of_measurement: "S"
  2742.     #   id: b02_av_manual_open
  2743.     #   value_type: U_WORD
  2744.     #   min_value: 10
  2745.     #   max_value: 225
  2746.     #   lambda: "return x / 2.0;"
  2747.     #   write_lambda: "return x * 2.0;"
  2748.     #   step: 1
  2749.     #   mode: box
  2750.     #   entity_category: config
  2751.  
  2752.     # - platform: modbus_controller
  2753.     #   modbus_controller_id: sprsun_pc
  2754.     #   name: ${friendly_name} B04 AV exhaust ratio
  2755.     #   address: 0x0063
  2756.     #   skip_updates: 10      
  2757.     #   #unit_of_measurement: "S"
  2758.     #   id: b04_av_exhaust_ratio
  2759.     #   value_type: U_WORD
  2760.     #   min_value: 1
  2761.     #   max_value: 6
  2762.     #   #lambda: "return x / 2.0;"
  2763.     #   #write_lambda: "return x * 2.0;"
  2764.     #   step: 1
  2765.     #   mode: box
  2766.     #   entity_category: config
  2767.  
  2768.     # - platform: modbus_controller
  2769.     #   modbus_controller_id: sprsun_pc
  2770.     #   skip_updates: 10      
  2771.     #   name: ${friendly_name} B05 AV exhaust diff
  2772.     #   address: 0x0064
  2773.     #   #unit_of_measurement: "S"
  2774.     #   id: b05_av_exhaust_diff
  2775.     #   value_type: U_WORD
  2776.     #   min_value: 0
  2777.     #   max_value: 180
  2778.     #   #lambda: "return x / 2.0;"
  2779.     #   #write_lambda: "return x * 2.0;"
  2780.     #   step: 1
  2781.     #   mode: box
  2782.     #   entity_category: config
  2783.  
  2784.     # - platform: modbus_controller
  2785.     #   modbus_controller_id: sprsun_pc
  2786.     #   name: ${friendly_name} B06 AV SH ratio
  2787.     #   address: 0x0065
  2788.     #   skip_updates: 10      
  2789.     #   #unit_of_measurement: "S"
  2790.     #   id: b06_av_sh_ratio
  2791.     #   value_type: U_WORD
  2792.     #   min_value: 1
  2793.     #   max_value: 6
  2794.     #   #lambda: "return x / 2.0;"
  2795.     #   #write_lambda: "return x * 2.0;"
  2796.     #   step: 1
  2797.     #   mode: box
  2798.     #   entity_category: config
  2799.  
  2800.     # - platform: modbus_controller
  2801.     #   modbus_controller_id: sprsun_pc
  2802.     #   name: ${friendly_name} B07 AV SH diff
  2803.     #   address: 0x0066
  2804.     #   skip_updates: 10      
  2805.     #   #unit_of_measurement: "S"
  2806.     #   id: b07_av_sh_diff
  2807.     #   value_type: U_WORD
  2808.     #   min_value: 0
  2809.     #   max_value: 180
  2810.     #   #lambda: "return x / 2.0;"
  2811.     #   #write_lambda: "return x * 2.0;"
  2812.     #   step: 1
  2813.     #   mode: box
  2814.     #   entity_category: config
  2815.  
  2816.     # - platform: modbus_controller
  2817.     #   modbus_controller_id: sprsun_pc
  2818.     #   name: ${friendly_name} B08 AV period
  2819.     #   address: 0x0067
  2820.     #   skip_updates: 10      
  2821.     #   unit_of_measurement: "S"
  2822.     #   id: b08_av_period
  2823.     #   value_type: U_WORD
  2824.     #   min_value: 10
  2825.     #   max_value: 20
  2826.     #   #lambda: "return x / 2.0;"
  2827.     #   #write_lambda: "return x * 2.0;"
  2828.     #   step: 1
  2829.     #   mode: box
  2830.     #   entity_category: config
  2831.  
  2832.     # - platform: modbus_controller
  2833.     #   modbus_controller_id: sprsun_pc
  2834.     #   name: ${friendly_name} B19 AV heat initial 0 (Outlet temp <= B93)
  2835.     #   address: 0x0068
  2836.     #   skip_updates: 10      
  2837.     #   #unit_of_measurement: "S"
  2838.     #   id: b19_av_heat_initial_0
  2839.     #   value_type: U_WORD
  2840.     #   min_value: 0
  2841.     #   max_value: 240
  2842.     #   lambda: "return x / 2.0;"
  2843.     #   write_lambda: "return x * 2.0;"
  2844.     #   step: 1
  2845.     #   mode: box
  2846.     #   entity_category: config
  2847.  
  2848.     # - platform: modbus_controller
  2849.     #   modbus_controller_id: sprsun_pc
  2850.     #   name: ${friendly_name} B20 AV heat initial 1
  2851.     #   address: 0x0069
  2852.     #   skip_updates: 10      
  2853.     #   #unit_of_measurement: "S"
  2854.     #   id: b20_av_heat_initial_1
  2855.     #   value_type: U_WORD
  2856.     #   min_value: 0
  2857.     #   max_value: 240
  2858.     #   lambda: "return x / 2.0;"
  2859.     #   write_lambda: "return x * 2.0;"
  2860.     #   step: 1
  2861.     #   mode: box
  2862.     #   entity_category: config
  2863.  
  2864.     # - platform: modbus_controller
  2865.     #   modbus_controller_id: sprsun_pc
  2866.     #   name: ${friendly_name} B27 AV water initial 0 (Outlet temp<=B93)
  2867.     #   address: 0x0070
  2868.     #   skip_updates: 10      
  2869.     #   #unit_of_measurement: "S"
  2870.     #   id: b27_av_water_initial_0
  2871.     #   value_type: U_WORD
  2872.     #   min_value: 0
  2873.     #   max_value: 240
  2874.     #   lambda: "return x / 2.0;"
  2875.     #   write_lambda: "return x * 2.0;"
  2876.     #   step: 1
  2877.     #   mode: box
  2878.     #   entity_category: config
  2879.  
  2880.     # - platform: modbus_controller
  2881.     #   modbus_controller_id: sprsun_pc
  2882.     #   name: ${friendly_name} B28 AV water initial 1
  2883.     #   address: 0x0071
  2884.     #   skip_updates: 10      
  2885.     #   #unit_of_measurement: "S"
  2886.     #   id: b28_water_initial_1
  2887.     #   value_type: U_WORD
  2888.     #   min_value: 0
  2889.     #   max_value: 240
  2890.     #   lambda: "return x / 2.0;"
  2891.     #   write_lambda: "return x * 2.0;"
  2892.     #   step: 1
  2893.     #   mode: box
  2894.     #   entity_category: config
  2895.  
  2896.     # - platform: modbus_controller
  2897.     #   modbus_controller_id: sprsun_pc
  2898.     #   name: ${friendly_name} B35 AV heat lower 0
  2899.     #   address: 0x0078
  2900.     #   skip_updates: 10      
  2901.     #   #unit_of_measurement: "S"
  2902.     #   id: b35_av_heat_lower_0
  2903.     #   value_type: U_WORD
  2904.     #   min_value: 0
  2905.     #   max_value: 240
  2906.     #   lambda: "return x / 2.0;"
  2907.     #   write_lambda: "return x * 2.0;"
  2908.     #   step: 1
  2909.     #   mode: box
  2910.     #   entity_category: config
  2911.  
  2912.     # - platform: modbus_controller
  2913.     #   modbus_controller_id: sprsun_pc
  2914.     #   name: ${friendly_name} B36 AV heat lower 1
  2915.     #   address: 0x0079
  2916.     #   skip_updates: 10      
  2917.     #   #unit_of_measurement: "S"
  2918.     #   id: b36_av_heat_lower_1
  2919.     #   value_type: U_WORD
  2920.     #   min_value: 0
  2921.     #   max_value: 240
  2922.     #   lambda: "return x / 2.0;"
  2923.     #   write_lambda: "return x * 2.0;"
  2924.     #   step: 1
  2925.     #   mode: box
  2926.     #   entity_category: config
  2927.  
  2928.     # - platform: modbus_controller
  2929.     #   modbus_controller_id: sprsun_pc
  2930.     #   name: ${friendly_name} B37 AV heat lower 2
  2931.     #   address: 0x007A
  2932.     #   skip_updates: 10      
  2933.     #   #unit_of_measurement: "S"
  2934.     #   id: b37_av_heat_lower_2
  2935.     #   value_type: U_WORD
  2936.     #   min_value: 0
  2937.     #   max_value: 240
  2938.     #   lambda: "return x / 2.0;"
  2939.     #   write_lambda: "return x * 2.0;"
  2940.     #   step: 1
  2941.     #   mode: box
  2942.     #   entity_category: config
  2943.  
  2944.     # - platform: modbus_controller
  2945.     #   modbus_controller_id: sprsun_pc
  2946.     #   name: ${friendly_name} B38 AV heat lower 3
  2947.     #   address: 0x007B
  2948.     #   skip_updates: 10      
  2949.     #   #unit_of_measurement: "S"
  2950.     #   id: b38_av_heat_lower_3
  2951.     #   value_type: U_WORD
  2952.     #   min_value: 0
  2953.     #   max_value: 240
  2954.     #   lambda: "return x / 2.0;"
  2955.     #   write_lambda: "return x * 2.0;"
  2956.     #   step: 1
  2957.     #   mode: box
  2958.     #   entity_category: config
  2959.  
  2960.     # - platform: modbus_controller
  2961.     #   modbus_controller_id: sprsun_pc
  2962.     #   name: ${friendly_name} B39 AV heat lower 4
  2963.     #   address: 0x007C
  2964.     #   skip_updates: 10      
  2965.     #   #unit_of_measurement: "S"
  2966.     #   id: b39_av_heat_lower_4
  2967.     #   value_type: U_WORD
  2968.     #   min_value: 0
  2969.     #   max_value: 240
  2970.     #   lambda: "return x / 2.0;"
  2971.     #   write_lambda: "return x * 2.0;"
  2972.     #   step: 1
  2973.     #   mode: box
  2974.     #   entity_category: config
  2975.  
  2976.     # - platform: modbus_controller
  2977.     #   modbus_controller_id: sprsun_pc
  2978.     #   name: ${friendly_name} B40 AV heat lower 5
  2979.     #   address: 0x007D
  2980.     #   skip_updates: 10      
  2981.     #   #unit_of_measurement: "S"
  2982.     #   id: b40_av_heat_lower_5
  2983.     #   value_type: U_WORD
  2984.     #   min_value: 0
  2985.     #   max_value: 240
  2986.     #   lambda: "return x / 2.0;"
  2987.     #   write_lambda: "return x * 2.0;"
  2988.     #   step: 1
  2989.     #   mode: box
  2990.     #   entity_category: config
  2991.  
  2992.     # - platform: modbus_controller
  2993.     #   modbus_controller_id: sprsun_pc
  2994.     #   name: ${friendly_name} B41 AV heat lower 6
  2995.     #   address: 0x007E
  2996.     #   skip_updates: 10      
  2997.     #   #unit_of_measurement: "S"
  2998.     #   id: b41_av_heat_lower_6
  2999.     #   value_type: U_WORD
  3000.     #   min_value: 0
  3001.     #   max_value: 240
  3002.     #   lambda: "return x / 2.0;"
  3003.     #   write_lambda: "return x * 2.0;"
  3004.     #   step: 1
  3005.     #   mode: box
  3006.     #   entity_category: config
  3007.  
  3008.     # - platform: modbus_controller
  3009.     #   modbus_controller_id: sprsun_pc
  3010.     #   name: ${friendly_name} B42 AV heat lower 7
  3011.     #   address: 0x007F
  3012.     #   skip_updates: 10      
  3013.     #   #unit_of_measurement: "S"
  3014.     #   id: b42_av_heat_lower_7
  3015.     #   value_type: U_WORD
  3016.     #   min_value: 0
  3017.     #   max_value: 240
  3018.     #   lambda: "return x / 2.0;"
  3019.     #   write_lambda: "return x * 2.0;"
  3020.     #   step: 1
  3021.     #   mode: box
  3022.     #   entity_category: config
  3023.  
  3024.     # - platform: modbus_controller
  3025.     #   modbus_controller_id: sprsun_pc
  3026.     #   name: ${friendly_name} B43 AV defrost open
  3027.     #   address: 0x0080
  3028.     #   skip_updates: 10      
  3029.     #   #unit_of_measurement: "S"
  3030.     #   id: b43_av_defrost_open
  3031.     #   value_type: U_WORD
  3032.     #   min_value: 0
  3033.     #   max_value: 240
  3034.     #   lambda: "return x / 2.0;"
  3035.     #   write_lambda: "return x * 2.0;"
  3036.     #   step: 1
  3037.     #   mode: box
  3038.     #   entity_category: config
  3039.  
  3040.     # - platform: modbus_controller
  3041.     #   modbus_controller_id: sprsun_pc
  3042.     #   name: ${friendly_name} B44 AV cool open
  3043.     #   address: 0x0081
  3044.     #   skip_updates: 10      
  3045.     #   #unit_of_measurement: "S"
  3046.     #   id: b44_av_cool_open
  3047.     #   value_type: U_WORD
  3048.     #   min_value: 0
  3049.     #   max_value: 240
  3050.     #   lambda: "return x / 2.0;"
  3051.     #   write_lambda: "return x * 2.0;"
  3052.     #   step: 1
  3053.     #   mode: box
  3054.     #   entity_category: config
  3055.  
  3056.     # - platform: modbus_controller
  3057.     #   modbus_controller_id: sprsun_pc
  3058.     #   name: ${friendly_name} F02 HP protect value
  3059.     #   address: 0x0082
  3060.     #   skip_updates: 10      
  3061.     #   unit_of_measurement: "bar"
  3062.     #   id: f02_hp_protect_value
  3063.     #   value_type: U_WORD
  3064.     #   min_value: 0
  3065.     #   max_value: 250
  3066.     #   lambda: "return (x + 250) * 0.1;"
  3067.     #   write_lambda: "return (x - 250) / 0.1;"
  3068.     #   step: 1
  3069.     #   mode: box
  3070.     #   entity_category: config
  3071.  
  3072.     # - platform: modbus_controller
  3073.     #   modbus_controller_id: sprsun_pc
  3074.     #   name: ${friendly_name} F03 HP recover value
  3075.     #   address: 0x0083
  3076.     #   skip_updates: 10      
  3077.     #   unit_of_measurement: "bar"
  3078.     #   id: f03_hp_recover_value
  3079.     #   value_type: U_WORD
  3080.     #   min_value: 0
  3081.     #   max_value: 250
  3082.     #   lambda: "return (x + 250) * 0.1;"
  3083.     #   write_lambda: "return (x - 250) / 0.1;"
  3084.     #   step: 1
  3085.     #   mode: box
  3086.     #   entity_category: config
  3087.  
  3088.     # - platform: modbus_controller
  3089.     #   modbus_controller_id: sprsun_pc
  3090.     #   name: ${friendly_name} F04 LP protect value
  3091.     #   address: 0x0084
  3092.     #   skip_updates: 10      
  3093.     #   unit_of_measurement: "bar"
  3094.     #   id: f04_lp_protect_value
  3095.     #   value_type: U_WORD
  3096.     #   min_value: 0
  3097.     #   max_value: 200
  3098.     #   lambda: "return x * 0.1;"
  3099.     #   write_lambda: "return x / 0.1;"
  3100.     #   step: 1
  3101.     #   mode: box
  3102.     #   entity_category: config
  3103.  
  3104.     # - platform: modbus_controller
  3105.     #   modbus_controller_id: sprsun_pc
  3106.     #   name: ${friendly_name} F05 LP recover value
  3107.     #   address: 0x0085
  3108.     #   skip_updates: 10      
  3109.     #   unit_of_measurement: "bar"
  3110.     #   id: f05_lp_recover_value
  3111.     #   value_type: U_WORD
  3112.     #   min_value: 0
  3113.     #   max_value: 200
  3114.     #   lambda: "return x * 0.1;"
  3115.     #   write_lambda: "return x / 0.1;"
  3116.     #   step: 1
  3117.     #   mode: box
  3118.     #   entity_category: config
  3119.  
  3120.     # - platform: modbus_controller
  3121.     #   modbus_controller_id: sprsun_pc
  3122.     #   name: ${friendly_name} D03 Cool dcfan max speed
  3123.     #   address: 0x0086
  3124.     #   skip_updates: 10      
  3125.     #   unit_of_measurement: "RPM"
  3126.     #   icon: "mdi:fan-speed-1"
  3127.     #   id: d03_cool_dcfan_max_speed
  3128.     #   value_type: U_WORD
  3129.     #   min_value: 0
  3130.     #   max_value: 100
  3131.     #   lambda: "return x / 10.0;"
  3132.     #   write_lambda: "return x * 10.0;"
  3133.     #   step: 1
  3134.     #   mode: box
  3135.     #   entity_category: config
  3136.  
  3137.     # - platform: modbus_controller
  3138.     #   modbus_controller_id: sprsun_pc
  3139.     #   name: ${friendly_name} D04 Cool dcfan min speed
  3140.     #   address: 0x0087
  3141.     #   skip_updates: 10      
  3142.     #   unit_of_measurement: "RPM"
  3143.     #   icon: "mdi:fan-speed-1"
  3144.     #   id: d04_cool_dcfan_min_speed
  3145.     #   value_type: U_WORD
  3146.     #   min_value: 0
  3147.     #   max_value: 100
  3148.     #   lambda: "return x / 10.0;"
  3149.     #   write_lambda: "return x * 10.0;"
  3150.     #   step: 1
  3151.     #   mode: box
  3152.     #   entity_category: config
  3153.  
  3154.     # - platform: modbus_controller
  3155.     #   modbus_controller_id: sprsun_pc
  3156.     #   name: ${friendly_name} D05 Cool dcfan high press
  3157.     #   address: 0x0088
  3158.     #   skip_updates: 10      
  3159.     #   #Sunit_of_measurement: "bar"
  3160.     #   icon: "mdi:fan-speed-1"
  3161.     #   id: d05_cool_dcfan_high_press
  3162.     #   value_type: U_WORD
  3163.     #   min_value: 10
  3164.     #   max_value: 40
  3165.     #   #lambda: "return x / 10.0;"
  3166.     #   #write_lambda: "return x * 10.0;"
  3167.     #   step: 1
  3168.     #   mode: box
  3169.     #   entity_category: config
  3170.  
  3171.     # - platform: modbus_controller
  3172.     #   modbus_controller_id: sprsun_pc
  3173.     #   name: ${friendly_name} D06 Cool dcfan open diff
  3174.     #   address: 0x0089
  3175.     #   skip_updates: 10      
  3176.     #   unit_of_measurement: "bar"
  3177.     #   icon: "mdi:fan-speed-1"
  3178.     #   id: d06_cool_dcfan_open_diff
  3179.     #   value_type: U_WORD
  3180.     #   min_value: 2
  3181.     #   max_value: 10
  3182.     #   lambda: "return x / 10.0;"
  3183.     #   write_lambda: "return x * 10.0;"
  3184.     #   step: 1
  3185.     #   mode: box
  3186.     #   entity_category: config
  3187.  
  3188.     # - platform: modbus_controller
  3189.     #   modbus_controller_id: sprsun_pc
  3190.     #   name: ${friendly_name} D07 Cool dcfan close diff
  3191.     #   address: 0x008A
  3192.     #   skip_updates: 10      
  3193.     #   unit_of_measurement: "bar"
  3194.     #   icon: "mdi:fan-speed-1"
  3195.     #   id: d07_cool_dcfan_close_diff
  3196.     #   value_type: U_WORD
  3197.     #   min_value: 2
  3198.     #   max_value: 10
  3199.     #   lambda: "return x / 10.0;"
  3200.     #   write_lambda: "return x * 10.0;"
  3201.     #   step: 1
  3202.     #   mode: box
  3203.     #   entity_category: config
  3204.  
  3205.     # - platform: modbus_controller
  3206.     #   modbus_controller_id: sprsun_pc
  3207.     #   name: ${friendly_name} D08 Cool dcfan init speed
  3208.     #   address: 0x008B
  3209.     #   skip_updates: 10      
  3210.     #   unit_of_measurement: "RPM"
  3211.     #   icon: "mdi:fan-speed-1"
  3212.     #   id: d08_cool_dcfan_init_speed
  3213.     #   value_type: U_WORD
  3214.     #   min_value: 0
  3215.     #   max_value: 100
  3216.     #   lambda: "return x / 10.0;"
  3217.     #   write_lambda: "return x * 10.0;"
  3218.     #   step: 1
  3219.     #   mode: box
  3220.     #   entity_category: config
  3221.  
  3222.     # - platform: modbus_controller
  3223.     #   modbus_controller_id: sprsun_pc
  3224.     #   name: ${friendly_name} D09 Heat dcfan max speed
  3225.     #   address: 0x008C
  3226.     #   skip_updates: 10      
  3227.     #   unit_of_measurement: "RPM"
  3228.     #   icon: "mdi:fan-speed-1"
  3229.     #   id: d09_heat_dcfan_max_speed
  3230.     #   value_type: U_WORD
  3231.     #   min_value: 0
  3232.     #   max_value: 100
  3233.     #   lambda: "return x / 10.0;"
  3234.     #   write_lambda: "return x * 10.0;"
  3235.     #   step: 1
  3236.     #   mode: box
  3237.     #   entity_category: config
  3238.  
  3239.     # - platform: modbus_controller
  3240.     #   modbus_controller_id: sprsun_pc
  3241.     #   name: ${friendly_name} D10 Heat dcfan min speed
  3242.     #   address: 0x008D
  3243.     #   skip_updates: 10      
  3244.     #   unit_of_measurement: "RPM"
  3245.     #   icon: "mdi:fan-speed-1"
  3246.     #   id: d10_heat_dcfan_min_speed
  3247.     #   value_type: U_WORD
  3248.     #   min_value: 0
  3249.     #   max_value: 100
  3250.     #   lambda: "return x / 10.0;"
  3251.     #   write_lambda: "return x * 10.0;"
  3252.     #   step: 1
  3253.     #   mode: box
  3254.     #   entity_category: config
  3255.  
  3256.     # - platform: modbus_controller
  3257.     #   modbus_controller_id: sprsun_pc
  3258.     #   name: ${friendly_name} D11 Heat dcfan low press
  3259.     #   address: 0x008E
  3260.     #   skip_updates: 10      
  3261.     #   unit_of_measurement: "bar"
  3262.     #   icon: "mdi:fan-speed-1"
  3263.     #   id: d11_heat_dcfan_low_press
  3264.     #   value_type: U_WORD
  3265.     #   min_value: 5
  3266.     #   max_value: 15
  3267.     #   lambda: "return x / 10.0;"
  3268.     #   write_lambda: "return x * 10.0;"
  3269.     #   step: 1
  3270.     #   mode: box
  3271.     #   entity_category: config
  3272.  
  3273.     # - platform: modbus_controller
  3274.     #   modbus_controller_id: sprsun_pc
  3275.     #   name: ${friendly_name} D12 Heat dcfan open diff
  3276.     #   address: 0x008F
  3277.     #   skip_updates: 10      
  3278.     #   unit_of_measurement: "bar"
  3279.     #   icon: "mdi:fan-speed-1"
  3280.     #   id: d12_heat_dcfan_open_diff
  3281.     #   value_type: U_WORD
  3282.     #   min_value: 2
  3283.     #   max_value: 10
  3284.     #   lambda: "return x / 10.0;"
  3285.     #   write_lambda: "return x * 10.0;"
  3286.     #   step: 1
  3287.     #   mode: box
  3288.     #   entity_category: config
  3289.  
  3290.     # - platform: modbus_controller
  3291.     #   modbus_controller_id: sprsun_pc
  3292.     #   name: ${friendly_name} D13 Heat dcfan close diff
  3293.     #   address: 0x0090
  3294.     #   skip_updates: 10      
  3295.     #   unit_of_measurement: "bar"
  3296.     #   icon: "mdi:fan-speed-1"
  3297.     #   id: d13_heat_dcfan_close_diff
  3298.     #   value_type: U_WORD
  3299.     #   min_value: 2
  3300.     #   max_value: 10
  3301.     #   lambda: "return x / 10.0;"
  3302.     #   write_lambda: "return x * 10.0;"
  3303.     #   step: 1
  3304.     #   mode: box
  3305.  
  3306.     # - platform: modbus_controller
  3307.     #   modbus_controller_id: sprsun_pc
  3308.     #   name: ${friendly_name} D14 Heat dcfan init speed
  3309.     #   address: 0x0091
  3310.     #   skip_updates: 10      
  3311.     #   unit_of_measurement: "RPM"
  3312.     #   icon: "mdi:fan-speed-1"
  3313.     #   id: d14_heat_dcfan_init_speed
  3314.     #   value_type: U_WORD
  3315.     #   min_value: 0
  3316.     #   max_value: 100
  3317.     #   lambda: "return x / 10.0;"
  3318.     #   write_lambda: "return x * 10.0;"
  3319.     #   step: 1
  3320.     #   mode: box
  3321.  
  3322.     # - platform: modbus_controller
  3323.     #   modbus_controller_id: sprsun_pc
  3324.     #   name: ${friendly_name} D15 DCfan adjust period
  3325.     #   address: 0x0092
  3326.     #   skip_updates: 10      
  3327.     #   unit_of_measurement: "RPM"
  3328.     #   icon: "mdi:fan-speed-1"
  3329.     #   id: d15_dcfan_adjust_period
  3330.     #   value_type: U_WORD
  3331.     #   min_value: 0
  3332.     #   max_value: 30
  3333.     #   #lambda: "return x / 10.0;"
  3334.     #   #write_lambda: "return x * 10.0;"
  3335.     #   step: 1
  3336.     #   mode: box
  3337.     #   entity_category: config
  3338.  
  3339.     # - platform: modbus_controller
  3340.     #   modbus_controller_id: sprsun_pc
  3341.     #   name: ${friendly_name} D16 DCfan adjust speed 1 (Speed difference >=200)
  3342.     #   address: 0x0093
  3343.     #   skip_updates: 10      
  3344.     #   unit_of_measurement: "RPM"
  3345.     #   icon: "mdi:fan-speed-1"
  3346.     #   id: d16_dcfun_adjust_speed_1
  3347.     #   value_type: U_WORD
  3348.     #   min_value: 0
  3349.     #   max_value: 100
  3350.     #   #lambda: "return x / 10.0;"
  3351.     #   #write_lambda: "return x * 10.0;"
  3352.     #   step: 1
  3353.     #   mode: box
  3354.     #   entity_category: config
  3355.  
  3356.     # - platform: modbus_controller
  3357.     #   modbus_controller_id: sprsun_pc
  3358.     #   name: ${friendly_name} D17 DCfan adjust speed 2 (200>Speed difference>100)
  3359.     #   address: 0x0094
  3360.     #   skip_updates: 10      
  3361.     #   unit_of_measurement: "RPM"
  3362.     #   icon: "mdi:fan-speed-1"
  3363.     #   id: d17_dcfun_adjust_speed_2
  3364.     #   value_type: U_WORD
  3365.     #   min_value: 0
  3366.     #   max_value: 100
  3367.     #   #lambda: "return x / 10.0;"
  3368.     #   #write_lambda: "return x * 10.0;"
  3369.     #   step: 1
  3370.     #   mode: box
  3371.     #   entity_category: config
  3372.  
  3373.     # - platform: modbus_controller
  3374.     #   modbus_controller_id: sprsun_pc
  3375.     #   name: ${friendly_name} D18 DCfan adjust speed 3 (100>Speed difference>50)
  3376.     #   address: 0x0095
  3377.     #   skip_updates: 10      
  3378.     #   unit_of_measurement: "RPM"
  3379.     #   icon: "mdi:fan-speed-1"
  3380.     #   id: d18_dcfun_adjust_speed_3
  3381.     #   value_type: U_WORD
  3382.     #   min_value: 0
  3383.     #   max_value: 100
  3384.     #   #lambda: "return x / 10.0;"
  3385.     #   #write_lambda: "return x * 10.0;"
  3386.     #   step: 1
  3387.     #   mode: box
  3388.     #   entity_category: config
  3389.  
  3390.     # - platform: modbus_controller
  3391.     #   modbus_controller_id: sprsun_pc
  3392.     #   name: ${friendly_name} D19 DCfan adjust speed 4 (50>Speed difference>20)
  3393.     #   address: 0x0096
  3394.     #   skip_updates: 10      
  3395.     #   unit_of_measurement: "RPM"
  3396.     #   icon: "mdi:fan-speed-1"
  3397.     #   id: d19_dcfun_adjust_speed_4
  3398.     #   value_type: U_WORD
  3399.     #   min_value: 0
  3400.     #   max_value: 100
  3401.     #   #lambda: "return x / 10.0;"
  3402.     #   #write_lambda: "return x * 10.0;"
  3403.     #   step: 1
  3404.     #   mode: box
  3405.     #   entity_category: config
  3406.  
  3407.     # - platform: modbus_controller
  3408.     #   modbus_controller_id: sprsun_pc
  3409.     #   name: ${friendly_name} D20 DCfan adjust speed 5 (20>Speed difference>5)
  3410.     #   address: 0x0097
  3411.     #   skip_updates: 10      
  3412.     #   unit_of_measurement: "RPM"
  3413.     #   icon: "mdi:fan-speed-1"
  3414.     #   id: d20_dcfun_adjust_speed_5
  3415.     #   value_type: U_WORD
  3416.     #   min_value: 0
  3417.     #   max_value: 100
  3418.     #   #lambda: "return x / 10.0;"
  3419.     #   #write_lambda: "return x * 10.0;"
  3420.     #   step: 1
  3421.     #   mode: box
  3422.     #   entity_category: config
  3423.  
  3424.     # - platform: modbus_controller
  3425.     #   modbus_controller_id: sprsun_pc
  3426.     #   name: ${friendly_name} B45 AV water lower 0
  3427.     #   address: 0x0098
  3428.     #   skip_updates: 10      
  3429.     #   #unit_of_measurement: "RPM"
  3430.     #   #icon: "mdi:fan-speed-1"
  3431.     #   id: b45_av_water_lower_0
  3432.     #   value_type: U_WORD
  3433.     #   min_value: 0
  3434.     #   max_value: 240
  3435.     #   lambda: "return x / 2.0;"
  3436.     #   write_lambda: "return x * 2.0;"
  3437.     #   step: 1
  3438.     #   mode: box
  3439.     #   entity_category: config
  3440.  
  3441.     # - platform: modbus_controller
  3442.     #   modbus_controller_id: sprsun_pc
  3443.     #   name: ${friendly_name} B46 AV water lower 1
  3444.     #   address: 0x0099
  3445.     #   skip_updates: 10      
  3446.     #   #unit_of_measurement: "RPM"
  3447.     #   #icon: "mdi:fan-speed-1"
  3448.     #   id: b46_av_water_lower_1
  3449.     #   value_type: U_WORD
  3450.     #   min_value: 0
  3451.     #   max_value: 240
  3452.     #   lambda: "return x / 2.0;"
  3453.     #   write_lambda: "return x * 2.0;"
  3454.     #   step: 1
  3455.     #   mode: box
  3456.     #   entity_category: config
  3457.  
  3458.     # - platform: modbus_controller
  3459.     #   modbus_controller_id: sprsun_pc
  3460.     #   name: ${friendly_name} B47 AV water lower 2
  3461.     #   address: 0x009A
  3462.     #   skip_updates: 10      
  3463.     #   #unit_of_measurement: "RPM"
  3464.     #   #icon: "mdi:fan-speed-1"
  3465.     #   id: b47_av_water_lower_2
  3466.     #   value_type: U_WORD
  3467.     #   min_value: 0
  3468.     #   max_value: 240
  3469.     #   lambda: "return x / 2.0;"
  3470.     #   write_lambda: "return x * 2.0;"
  3471.     #   step: 1
  3472.     #   mode: box
  3473.     #   entity_category: config
  3474.    
  3475.     # - platform: modbus_controller
  3476.     #   modbus_controller_id: sprsun_pc
  3477.     #   name: ${friendly_name} B48 AV water lower 3
  3478.     #   address: 0x009B
  3479.     #   skip_updates: 10      
  3480.     #   #unit_of_measurement: "RPM"
  3481.     #   #icon: "mdi:fan-speed-1"
  3482.     #   id: b48_av_water_lower_3
  3483.     #   value_type: U_WORD
  3484.     #   min_value: 0
  3485.     #   max_value: 240
  3486.     #   lambda: "return x / 2.0;"
  3487.     #   write_lambda: "return x * 2.0;"
  3488.     #   step: 1
  3489.     #   mode: box
  3490.     #   entity_category: config
  3491.  
  3492.     # - platform: modbus_controller
  3493.     #   modbus_controller_id: sprsun_pc
  3494.     #   name: ${friendly_name} B49 AV water lower 4
  3495.     #   address: 0x009C
  3496.     #   skip_updates: 10      
  3497.     #   #unit_of_measurement: "RPM"
  3498.     #   #icon: "mdi:fan-speed-1"
  3499.     #   id: b49_av_water_lower_4
  3500.     #   value_type: U_WORD
  3501.     #   min_value: 0
  3502.     #   max_value: 240
  3503.     #   lambda: "return x / 2.0;"
  3504.     #   write_lambda: "return x * 2.0;"
  3505.     #   step: 1
  3506.     #   mode: box
  3507.     #   entity_category: config
  3508.  
  3509.     # - platform: modbus_controller
  3510.     #   modbus_controller_id: sprsun_pc
  3511.     #   name: ${friendly_name} B50 AV water lower 5
  3512.     #   address: 0x009D
  3513.     #   skip_updates: 10      
  3514.     #   #unit_of_measurement: "RPM"
  3515.     #   #icon: "mdi:fan-speed-1"
  3516.     #   id: b50_av_water_lower_5
  3517.     #   value_type: U_WORD
  3518.     #   min_value: 0
  3519.     #   max_value: 240
  3520.     #   lambda: "return x / 2.0;"
  3521.     #   write_lambda: "return x * 2.0;"
  3522.     #   step: 1
  3523.     #   mode: box
  3524.     #   entity_category: config
  3525.  
  3526.     # - platform: modbus_controller
  3527.     #   modbus_controller_id: sprsun_pc
  3528.     #   name: ${friendly_name} B51 AV water lower 6
  3529.     #   address: 0x009E
  3530.     #   skip_updates: 10      
  3531.     #   #unit_of_measurement: "RPM"
  3532.     #   #icon: "mdi:fan-speed-1"
  3533.     #   id: b51_av_water_lower_6
  3534.     #   value_type: U_WORD
  3535.     #   min_value: 0
  3536.     #   max_value: 240
  3537.     #   lambda: "return x / 2.0;"
  3538.     #   write_lambda: "return x * 2.0;"
  3539.     #   step: 1
  3540.     #   mode: box
  3541.     #   entity_category: config
  3542.  
  3543.     # - platform: modbus_controller
  3544.     #   modbus_controller_id: sprsun_pc
  3545.     #   name: ${friendly_name} B52 AV water lower 7
  3546.     #   address: 0x009F
  3547.     #   skip_updates: 10      
  3548.     #   #unit_of_measurement: "RPM"
  3549.     #   #icon: "mdi:fan-speed-1"
  3550.     #   id: b52_av_water_lower_7
  3551.     #   value_type: U_WORD
  3552.     #   min_value: 0
  3553.     #   max_value: 240
  3554.     #   lambda: "return x / 2.0;"
  3555.     #   write_lambda: "return x * 2.0;"
  3556.     #   step: 1
  3557.     #   mode: box
  3558.     #   entity_category: config
  3559.  
  3560.  
  3561.     # - platform: modbus_controller
  3562.     #   modbus_controller_id: sprsun_pc
  3563.     #   name: ${friendly_name} B53 AV heat exhaust 0 (T >= 14 *C)
  3564.     #   address: 0x00A0
  3565.     #   skip_updates: 10      
  3566.     #   unit_of_measurement: "°C"
  3567.     #   #icon: "mdi:fan-speed-1"
  3568.     #   id: b53_av_heat_exhaust_0
  3569.     #   value_type: U_WORD
  3570.     #   min_value: 50
  3571.     #   max_value: 125
  3572.     #   #lambda: "return x / 10.0;"
  3573.     #   #write_lambda: "return x * 10.0;"
  3574.     #   step: 1
  3575.     #   mode: box
  3576.     #   entity_category: config
  3577.  
  3578.     # - platform: modbus_controller
  3579.     #   modbus_controller_id: sprsun_pc
  3580.     #   name: ${friendly_name} B54 AV heat exhaust 1 [9, 14 *C)
  3581.     #   address: 0x00A1
  3582.     #   skip_updates: 10      
  3583.     #   unit_of_measurement: "°C"
  3584.     #   #icon: "mdi:fan-speed-1"
  3585.     #   id: b54_av_heat_exhaust_1
  3586.     #   value_type: U_WORD
  3587.     #   min_value: 50
  3588.     #   max_value: 125
  3589.     #   #lambda: "return x / 10.0;"
  3590.     #   #write_lambda: "return x * 10.0;"
  3591.     #   step: 1
  3592.     #   mode: box
  3593.     #   entity_category: config
  3594.  
  3595.     # - platform: modbus_controller
  3596.     #   modbus_controller_id: sprsun_pc
  3597.     #   name: ${friendly_name} B55 AV heat exhaust 2 [4, 9 *C)
  3598.     #   address: 0x00A2
  3599.     #   skip_updates: 10      
  3600.     #   unit_of_measurement: "°C"
  3601.     #   #icon: "mdi:fan-speed-1"
  3602.     #   id: b55_av_heat_exhaust_2
  3603.     #   value_type: U_WORD
  3604.     #   min_value: 50
  3605.     #   max_value: 125
  3606.     #   #lambda: "return x / 10.0;"
  3607.     #   #write_lambda: "return x * 10.0;"
  3608.     #   step: 1
  3609.     #   mode: box
  3610.     #   entity_category: config
  3611.  
  3612.     # - platform: modbus_controller
  3613.     #   modbus_controller_id: sprsun_pc
  3614.     #   name: ${friendly_name} B56 AV heat exhaust 3 [-5, 4 *C)
  3615.     #   address: 0x00A3
  3616.     #   skip_updates: 10      
  3617.     #   unit_of_measurement: "°C"
  3618.     #   #icon: "mdi:fan-speed-1"
  3619.     #   id: b56_av_heat_exhaust_3
  3620.     #   value_type: U_WORD
  3621.     #   min_value: 50
  3622.     #   max_value: 125
  3623.     #   #lambda: "return x / 10.0;"
  3624.     #   #write_lambda: "return x * 10.0;"
  3625.     #   step: 1
  3626.     #   mode: box
  3627.     #   entity_category: config
  3628.  
  3629.     # - platform: modbus_controller
  3630.     #   modbus_controller_id: sprsun_pc
  3631.     #   name: ${friendly_name} B57 AV heat exhaust 4 [-10, -5 *C)
  3632.     #   address: 0x00A4
  3633.     #   skip_updates: 10      
  3634.     #   unit_of_measurement: "°C"
  3635.     #   #icon: "mdi:fan-speed-1"
  3636.     #   id: b57_av_heat_exhaust_4
  3637.     #   value_type: U_WORD
  3638.     #   min_value: 50
  3639.     #   max_value: 125
  3640.     #   #lambda: "return x / 10.0;"
  3641.     #   #write_lambda: "return x * 10.0;"
  3642.     #   step: 1
  3643.     #   mode: box
  3644.     #   entity_category: config
  3645.  
  3646.     # - platform: modbus_controller
  3647.     #   modbus_controller_id: sprsun_pc
  3648.     #   name: ${friendly_name} B58 AV heat exhaust 5 [-16, -10 *C)
  3649.     #   address: 0x00A5
  3650.     #   skip_updates: 10      
  3651.     #   unit_of_measurement: "°C"
  3652.     #   #icon: "mdi:fan-speed-1"
  3653.     #   id: b58_av_heat_exhaust_5
  3654.     #   value_type: U_WORD
  3655.     #   min_value: 50
  3656.     #   max_value: 125
  3657.     #   #lambda: "return x / 10.0;"
  3658.     #   #write_lambda: "return x * 10.0;"
  3659.     #   step: 1
  3660.     #   mode: box
  3661.     #   entity_category: config
  3662.  
  3663.     # - platform: modbus_controller
  3664.     #   modbus_controller_id: sprsun_pc
  3665.     #   name: ${friendly_name} B59 AV heat exhaust 6 [-23, -16 *C)
  3666.     #   address: 0x00A6
  3667.     #   skip_updates: 10      
  3668.     #   unit_of_measurement: "°C"
  3669.     #   #icon: "mdi:fan-speed-1"
  3670.     #   id: b59_av_heat_exhaust_6
  3671.     #   value_type: U_WORD
  3672.     #   min_value: 50
  3673.     #   max_value: 125
  3674.     #   #lambda: "return x / 10.0;"
  3675.     #   #write_lambda: "return x * 10.0;"
  3676.     #   step: 1
  3677.     #   mode: box
  3678.     #   entity_category: config
  3679.  
  3680.     # - platform: modbus_controller
  3681.     #   modbus_controller_id: sprsun_pc
  3682.     #   name: ${friendly_name} B60 AV heat exhaust 7 (T < -23 *C)
  3683.     #   address: 0x00A7
  3684.     #   skip_updates: 10      
  3685.     #   unit_of_measurement: "°C"
  3686.     #   #icon: "mdi:fan-speed-1"
  3687.     #   id: b60_av_heat_exhaust_7
  3688.     #   value_type: U_WORD
  3689.     #   min_value: 50
  3690.     #   max_value: 125
  3691.     #   #lambda: "return x / 10.0;"
  3692.     #   #write_lambda: "return x * 10.0;"
  3693.     #   step: 1
  3694.     #   mode: box
  3695.     #   entity_category: config
  3696.  
  3697.     # - platform: modbus_controller
  3698.     #   modbus_controller_id: sprsun_pc
  3699.     #   name: ${friendly_name} B61 AV water exhaust 0 (T >= 14 *C)
  3700.     #   address: 0x00A8
  3701.     #   skip_updates: 10      
  3702.     #   unit_of_measurement: "°C"
  3703.     #   #icon: "mdi:fan-speed-1"
  3704.     #   id: b61_av_water_exhaust_0
  3705.     #   value_type: U_WORD
  3706.     #   min_value: 50
  3707.     #   max_value: 125
  3708.     #   #lambda: "return x / 10.0;"
  3709.     #   #write_lambda: "return x * 10.0;"
  3710.     #   step: 1
  3711.     #   mode: box
  3712.     #   entity_category: config
  3713.  
  3714.     # - platform: modbus_controller
  3715.     #   modbus_controller_id: sprsun_pc
  3716.     #   name: ${friendly_name} B62 AV water exhaust 1 [9, 14 *C)
  3717.     #   address: 0x00A9
  3718.     #   skip_updates: 10      
  3719.     #   unit_of_measurement: "°C"
  3720.     #   #icon: "mdi:fan-speed-1"
  3721.     #   id: b62_av_water_exhaust_1
  3722.     #   value_type: U_WORD
  3723.     #   min_value: 50
  3724.     #   max_value: 125
  3725.     #   #lambda: "return x / 10.0;"
  3726.     #   #write_lambda: "return x * 10.0;"
  3727.     #   step: 1
  3728.     #   mode: box
  3729.     #   entity_category: config
  3730.  
  3731.     # - platform: modbus_controller
  3732.     #   modbus_controller_id: sprsun_pc
  3733.     #   name: ${friendly_name} B63 AV water exhaust 2 [4, 9 *C)
  3734.     #   address: 0x00AA
  3735.     #   skip_updates: 10      
  3736.     #   unit_of_measurement: "°C"
  3737.     #   #icon: "mdi:fan-speed-1"
  3738.     #   id: b62_av_water_exhaust_2
  3739.     #   value_type: U_WORD
  3740.     #   min_value: 50
  3741.     #   max_value: 125
  3742.     #   #lambda: "return x / 10.0;"
  3743.     #   #write_lambda: "return x * 10.0;"
  3744.     #   step: 1
  3745.     #   mode: box
  3746.     #   entity_category: config
  3747.  
  3748.     # - platform: modbus_controller
  3749.     #   modbus_controller_id: sprsun_pc
  3750.     #   name: ${friendly_name} B64 AV water exhaust 3 [-5, 4 *C)
  3751.     #   address: 0x00AB
  3752.     #   skip_updates: 10      
  3753.     #   unit_of_measurement: "°C"
  3754.     #   #icon: "mdi:fan-speed-1"
  3755.     #   id: b64_av_water_exhaust_3
  3756.     #   value_type: U_WORD
  3757.     #   min_value: 50
  3758.     #   max_value: 125
  3759.     #   #lambda: "return x / 10.0;"
  3760.     #   #write_lambda: "return x * 10.0;"
  3761.     #   step: 1
  3762.     #   mode: box
  3763.     #   entity_category: config
  3764.  
  3765.     # - platform: modbus_controller
  3766.     #   modbus_controller_id: sprsun_pc
  3767.     #   name: ${friendly_name} B65 AV water exhaust 4 [-10, -5 *C)
  3768.     #   address: 0x00AC
  3769.     #   skip_updates: 10      
  3770.     #   unit_of_measurement: "°C"
  3771.     #   #icon: "mdi:fan-speed-1"
  3772.     #   id: b65_av_water_exhaust_4
  3773.     #   value_type: U_WORD
  3774.     #   min_value: 50
  3775.     #   max_value: 125
  3776.     #   #lambda: "return x / 10.0;"
  3777.     #   #write_lambda: "return x * 10.0;"
  3778.     #   step: 1
  3779.     #   mode: box
  3780.     #   entity_category: config
  3781.  
  3782.     # - platform: modbus_controller
  3783.     #   modbus_controller_id: sprsun_pc
  3784.     #   name: ${friendly_name} B66 AV water exhaust 5 [-16, -10 *C)
  3785.     #   address: 0x00AD
  3786.     #   skip_updates: 10      
  3787.     #   unit_of_measurement: "°C"
  3788.     #   #icon: "mdi:fan-speed-1"
  3789.     #   id: b66_av_water_exhaust_5
  3790.     #   value_type: U_WORD
  3791.     #   min_value: 50
  3792.     #   max_value: 125
  3793.     #   #lambda: "return x / 10.0;"
  3794.     #   #write_lambda: "return x * 10.0;"
  3795.     #   step: 1
  3796.     #   mode: box
  3797.     #   entity_category: config
  3798.  
  3799.     # - platform: modbus_controller
  3800.     #   modbus_controller_id: sprsun_pc
  3801.     #   name: ${friendly_name} B67 AV water exhaust 6 [-23, -16 *C)
  3802.     #   address: 0x00AE  
  3803.     #   unit_of_measurement: "°C"
  3804.     #   #icon: "mdi:fan-speed-1"
  3805.     #   id: b67_av_water_exhaust_6
  3806.     #   value_type: U_WORD
  3807.     #   min_value: 50
  3808.     #   max_value: 125
  3809.     #   #lambda: "return x / 10.0;"
  3810.     #   #write_lambda: "return x * 10.0;"
  3811.     #   step: 1
  3812.     #   mode: box
  3813.     #   entity_category: config
  3814.     #   skip_updates: 10
  3815.  
  3816.     # - platform: modbus_controller
  3817.     #   modbus_controller_id: sprsun_pc
  3818.     #   name: ${friendly_name} B68 AV water exhaust 7 (T < -23 *C)
  3819.     #   address: 0x00AF
  3820.     #   unit_of_measurement: "°C"
  3821.     #   #icon: "mdi:fan-speed-1"
  3822.     #   id: b68_av_water_exhaust_7
  3823.     #   value_type: U_WORD
  3824.     #   min_value: 50
  3825.     #   max_value: 125
  3826.     #   #lambda: "return x / 10.0;"
  3827.     #   #write_lambda: "return x * 10.0;"
  3828.     #   step: 1
  3829.     #   mode: box
  3830.     #   entity_category: config
  3831.     #   skip_updates: 10
  3832.  
  3833.     # - platform: modbus_controller
  3834.     #   modbus_controller_id: sprsun_pc
  3835.     #   name: ${friendly_name} B69 AV cool exhaust 0 (T >= 38 *C)
  3836.     #   address: 0x00B0
  3837.     #   unit_of_measurement: "°C"
  3838.     #   #icon: "mdi:fan-speed-1"
  3839.     #   id: b69_av_cool_exhaust_0
  3840.     #   value_type: U_WORD
  3841.     #   min_value: 50
  3842.     #   max_value: 125
  3843.     #   #lambda: "return x / 10.0;"
  3844.     #   #write_lambda: "return x * 10.0;"
  3845.     #   step: 1
  3846.     #   mode: box
  3847.     #   entity_category: config
  3848.     #   skip_updates: 10
  3849.  
  3850.     # - platform: modbus_controller
  3851.     #   modbus_controller_id: sprsun_pc
  3852.     #   name: ${friendly_name} B70 AV cool exhaust 1 [30, 38 *C)
  3853.     #   address: 0x00B1
  3854.     #   unit_of_measurement: "°C"
  3855.     #   #icon: "mdi:fan-speed-1"
  3856.     #   id: b70_av_cool_exhaust_1
  3857.     #   value_type: U_WORD
  3858.     #   min_value: 50
  3859.     #   max_value: 125
  3860.     #   #lambda: "return x / 10.0;"
  3861.     #   #write_lambda: "return x * 10.0;"
  3862.     #   step: 1
  3863.     #   mode: box
  3864.     #   entity_category: config
  3865.     #   skip_updates: 10
  3866.  
  3867.     # - platform: modbus_controller
  3868.     #   modbus_controller_id: sprsun_pc
  3869.     #   name: ${friendly_name} B71 AV cool exhaust 2 [25, 30 *C)
  3870.     #   address: 0x00B2
  3871.     #   unit_of_measurement: "°C"
  3872.     #   #icon: "mdi:fan-speed-1"
  3873.     #   id: b71_av_cool_exhaust_2
  3874.     #   value_type: U_WORD
  3875.     #   min_value: 50
  3876.     #   max_value: 125
  3877.     #   #lambda: "return x / 10.0;"
  3878.     #   #write_lambda: "return x * 10.0;"
  3879.     #   step: 1
  3880.     #   mode: box
  3881.     #   entity_category: config
  3882.     #   skip_updates: 10
  3883.  
  3884.     # - platform: modbus_controller
  3885.     #   modbus_controller_id: sprsun_pc
  3886.     #   name: ${friendly_name} B72 AV cool exhaust 3 (T < 25 *C)
  3887.     #   address: 0x00B3
  3888.     #   unit_of_measurement: "°C"
  3889.     #   #icon: "mdi:fan-speed-1"
  3890.     #   id: b72_av_cool_exhaust_3
  3891.     #   value_type: U_WORD
  3892.     #   min_value: 50
  3893.     #   max_value: 125
  3894.     #   #lambda: "return x / 10.0;"
  3895.     #   #write_lambda: "return x * 10.0;"
  3896.     #   step: 1
  3897.     #   mode: box
  3898.     #   entity_category: config
  3899.     #   skip_updates: 10
  3900.  
  3901.     # - platform: modbus_controller
  3902.     #   modbus_controller_id: sprsun_pc
  3903.     #   name: ${friendly_name} B73 AV open delay
  3904.     #   address: 0x00B4
  3905.     #   unit_of_measurement: "S"
  3906.     #   #icon: "mdi:fan-speed-1"
  3907.     #   id: b74_av_open_delay
  3908.     #   value_type: U_WORD
  3909.     #   min_value: 0
  3910.     #   max_value: 180
  3911.     #   #lambda: "return x / 10.0;"
  3912.     #   #write_lambda: "return x * 10.0;"
  3913.     #   step: 1
  3914.     #   mode: box
  3915.     #   entity_category: config
  3916.     #   skip_updates: 10
  3917.  
  3918.     # - platform: modbus_controller
  3919.     #   modbus_controller_id: sprsun_pc
  3920.     #   name: ${friendly_name} B75 AV off exh diff
  3921.     #   address: 0x00B5
  3922.     #   #unit_of_measurement: "S"
  3923.     #   #icon: "mdi:fan-speed-1"
  3924.     #   id: b75_av_off_exh_diff
  3925.     #   value_type: U_WORD
  3926.     #   min_value: 0
  3927.     #   max_value: 30
  3928.     #   #lambda: "return x / 10.0;"
  3929.     #   #write_lambda: "return x * 10.0;"
  3930.     #   step: 1
  3931.     #   mode: box
  3932.     #   entity_category: config
  3933.     #   skip_updates: 10
  3934.  
  3935.     # - platform: modbus_controller
  3936.     #   modbus_controller_id: sprsun_pc
  3937.     #   name: ${friendly_name} B76 AV heat exh diff 0  (T >= 14 *C)
  3938.     #   address: 0x00B6
  3939.     #   unit_of_measurement: "°C"
  3940.     #   #icon: "mdi:fan-speed-1"
  3941.     #   id: b76_av_heat_exh_diff_0
  3942.     #   value_type: U_WORD
  3943.     #   min_value: 0
  3944.     #   max_value: 125
  3945.     #   #lambda: "return x / 10.0;"
  3946.     #   #write_lambda: "return x * 10.0;"
  3947.     #   step: 1
  3948.     #   mode: box
  3949.     #   entity_category: config
  3950.     #   skip_updates: 10
  3951.  
  3952.     # - platform: modbus_controller
  3953.     #   modbus_controller_id: sprsun_pc
  3954.     #   name: ${friendly_name} B77 AV heat exh diff 1 [9, 14 *C)
  3955.     #   address: 0x00B7
  3956.     #   unit_of_measurement: "°C"
  3957.     #   #icon: "mdi:fan-speed-1"
  3958.     #   id: b77_av_heat_exh_diff_1
  3959.     #   value_type: U_WORD
  3960.     #   min_value: 0
  3961.     #   max_value: 125
  3962.     #   #lambda: "return x / 10.0;"
  3963.     #   #write_lambda: "return x * 10.0;"
  3964.     #   step: 1
  3965.     #   mode: box
  3966.     #   entity_category: config
  3967.     #   skip_updates: 10
  3968.  
  3969.     # - platform: modbus_controller
  3970.     #   modbus_controller_id: sprsun_pc
  3971.     #   name: ${friendly_name} B78 AV heat exh diff 2 [4, 9 *C)
  3972.     #   address: 0x00B8
  3973.     #   unit_of_measurement: "°C"
  3974.     #   #icon: "mdi:fan-speed-1"
  3975.     #   id: b78_av_heat_exh_diff_2
  3976.     #   value_type: U_WORD
  3977.     #   min_value: 0
  3978.     #   max_value: 125
  3979.     #   #lambda: "return x / 10.0;"
  3980.     #   #write_lambda: "return x * 10.0;"
  3981.     #   step: 1
  3982.     #   mode: box
  3983.     #   entity_category: config
  3984.     #   skip_updates: 10
  3985.  
  3986.     # - platform: modbus_controller
  3987.     #   modbus_controller_id: sprsun_pc
  3988.     #   name: ${friendly_name} B79 AV heat exh diff 3 [-5, 4 *C)
  3989.     #   address: 0x00B9
  3990.     #   unit_of_measurement: "°C"
  3991.     #   #icon: "mdi:fan-speed-1"
  3992.     #   id: b79_av_heat_exh_diff_3
  3993.     #   value_type: U_WORD
  3994.     #   min_value: 0
  3995.     #   max_value: 125
  3996.     #   #lambda: "return x / 10.0;"
  3997.     #   #write_lambda: "return x * 10.0;"
  3998.     #   step: 1
  3999.     #   mode: box
  4000.     #   entity_category: config
  4001.     #   skip_updates: 10
  4002.  
  4003.     # - platform: modbus_controller
  4004.     #   modbus_controller_id: sprsun_pc
  4005.     #   name: ${friendly_name} B80 AV heat exh diff 4 [-10, -5 *C)
  4006.     #   address: 0x00BA
  4007.     #   unit_of_measurement: "°C"
  4008.     #   #icon: "mdi:fan-speed-1"
  4009.     #   id: b80_av_heat_exh_diff_4
  4010.     #   value_type: U_WORD
  4011.     #   min_value: 0
  4012.     #   max_value: 125
  4013.     #   #lambda: "return x / 10.0;"
  4014.     #   #write_lambda: "return x * 10.0;"
  4015.     #   step: 1
  4016.     #   mode: box
  4017.     #   entity_category: config
  4018.     #   skip_updates: 10
  4019.  
  4020.     # - platform: modbus_controller
  4021.     #   modbus_controller_id: sprsun_pc
  4022.     #   name: ${friendly_name} B81 AV heat exh diff 5 [-16, -10 *C)
  4023.     #   address: 0x00BB
  4024.     #   unit_of_measurement: "°C"
  4025.     #   #icon: "mdi:fan-speed-1"
  4026.     #   id: b81_av_heat_exh_diff_5
  4027.     #   value_type: U_WORD
  4028.     #   min_value: 0
  4029.     #   max_value: 125
  4030.     #   #lambda: "return x / 10.0;"
  4031.     #   #write_lambda: "return x * 10.0;"
  4032.     #   step: 1
  4033.     #   mode: box
  4034.     #   entity_category: config
  4035.     #   skip_updates: 10
  4036.  
  4037.     # - platform: modbus_controller
  4038.     #   modbus_controller_id: sprsun_pc
  4039.     #   name: ${friendly_name} B82 AV heat exh diff 6 [-23, -16 *C)
  4040.     #   address: 0x00BC
  4041.     #   unit_of_measurement: "°C"
  4042.     #   #icon: "mdi:fan-speed-1"
  4043.     #   id: b82_av_heat_exh_diff_6
  4044.     #   value_type: U_WORD
  4045.     #   min_value: 0
  4046.     #   max_value: 125
  4047.     #   #lambda: "return x / 10.0;"
  4048.     #   #write_lambda: "return x * 10.0;"
  4049.     #   step: 1
  4050.     #   mode: box
  4051.     #   entity_category: config
  4052.     #   skip_updates: 10
  4053.  
  4054.     # - platform: modbus_controller
  4055.     #   modbus_controller_id: sprsun_pc
  4056.     #   name: ${friendly_name} B83 AV heat exh diff 7 (T < -23 *C)
  4057.     #   address: 0x00BD
  4058.     #   unit_of_measurement: "°C"
  4059.     #   #icon: "mdi:fan-speed-1"
  4060.     #   id: b83_av_heat_exh_diff_7
  4061.     #   value_type: U_WORD
  4062.     #   min_value: 0
  4063.     #   max_value: 125
  4064.     #   #lambda: "return x / 10.0;"
  4065.     #   #write_lambda: "return x * 10.0;"
  4066.     #   step: 1
  4067.     #   mode: box
  4068.     #   entity_category: config
  4069.     #   skip_updates: 10
  4070.  
  4071.     # - platform: modbus_controller
  4072.     #   modbus_controller_id: sprsun_pc
  4073.     #   name: ${friendly_name} B84 AV water exh diff 0  (T >= 14 *C)
  4074.     #   address: 0x00BE
  4075.     #   unit_of_measurement: "°C"
  4076.     #   #icon: "mdi:fan-speed-1"
  4077.     #   id: b84_av_water_exh_diff_0
  4078.     #   value_type: U_WORD
  4079.     #   min_value: 0
  4080.     #   max_value: 125
  4081.     #   #lambda: "return x / 10.0;"
  4082.     #   #write_lambda: "return x * 10.0;"
  4083.     #   step: 1
  4084.     #   mode: box
  4085.     #   entity_category: config
  4086.     #   skip_updates: 10
  4087.  
  4088.     # - platform: modbus_controller
  4089.     #   modbus_controller_id: sprsun_pc
  4090.     #   name: ${friendly_name} B85 AV water exh diff 1 [9, 14 *C)
  4091.     #   address: 0x00BF
  4092.     #   unit_of_measurement: "°C"
  4093.     #   #icon: "mdi:fan-speed-1"
  4094.     #   id: b85_av_water_exh_diff_1
  4095.     #   value_type: U_WORD
  4096.     #   min_value: 0
  4097.     #   max_value: 125
  4098.     #   #lambda: "return x / 10.0;"
  4099.     #   #write_lambda: "return x * 10.0;"
  4100.     #   step: 1
  4101.     #   mode: box
  4102.     #   entity_category: config
  4103.     #   skip_updates: 10
  4104.  
  4105.     # - platform: modbus_controller
  4106.     #   modbus_controller_id: sprsun_pc
  4107.     #   name: ${friendly_name} B86 AV water exh diff 2 [4, 9 *C)
  4108.     #   address: 0x00C0
  4109.     #   unit_of_measurement: "°C"
  4110.     #   #icon: "mdi:fan-speed-1"
  4111.     #   id: b86_av_water_exh_diff_2
  4112.     #   value_type: U_WORD
  4113.     #   min_value: 0
  4114.     #   max_value: 125
  4115.     #   #lambda: "return x / 10.0;"
  4116.     #   #write_lambda: "return x * 10.0;"
  4117.     #   step: 1
  4118.     #   mode: box
  4119.     #   entity_category: config
  4120.     #   skip_updates: 10
  4121.  
  4122.     # - platform: modbus_controller
  4123.     #   modbus_controller_id: sprsun_pc
  4124.     #   name: ${friendly_name} B87 AV water exh diff 3 [-5, 4 *C)
  4125.     #   address: 0x00C1
  4126.     #   unit_of_measurement: "°C"
  4127.     #   #icon: "mdi:fan-speed-1"
  4128.     #   id: b87_av_water_exh_diff_3
  4129.     #   value_type: U_WORD
  4130.     #   min_value: 0
  4131.     #   max_value: 125
  4132.     #   #lambda: "return x / 10.0;"
  4133.     #   #write_lambda: "return x * 10.0;"
  4134.     #   step: 1
  4135.     #   mode: box
  4136.     #   entity_category: config
  4137.     #   skip_updates: 10
  4138.  
  4139.     # - platform: modbus_controller
  4140.     #   modbus_controller_id: sprsun_pc
  4141.     #   name: ${friendly_name} B88 AV water exh diff 4 [-10, -5 *C)
  4142.     #   address: 0x00C2
  4143.     #   unit_of_measurement: "°C"
  4144.     #   #icon: "mdi:fan-speed-1"
  4145.     #   id: b88_av_water_exh_diff_4
  4146.     #   value_type: U_WORD
  4147.     #   min_value: 0
  4148.     #   max_value: 125
  4149.     #   #lambda: "return x / 10.0;"
  4150.     #   #write_lambda: "return x * 10.0;"
  4151.     #   step: 1
  4152.     #   mode: box
  4153.     #   entity_category: config
  4154.     #   skip_updates: 10
  4155.  
  4156.     # - platform: modbus_controller
  4157.     #   modbus_controller_id: sprsun_pc
  4158.     #   name: ${friendly_name} B89 AV water exh diff 5 [-16, -10 *C)
  4159.     #   address: 0x00C3
  4160.     #   unit_of_measurement: "°C"
  4161.     #   #icon: "mdi:fan-speed-1"
  4162.     #   id: b89_av_water_exh_diff_5
  4163.     #   value_type: U_WORD
  4164.     #   min_value: 0
  4165.     #   max_value: 125
  4166.     #   #lambda: "return x / 10.0;"
  4167.     #   #write_lambda: "return x * 10.0;"
  4168.     #   step: 1
  4169.     #   mode: box
  4170.     #   entity_category: config
  4171.     #   skip_updates: 10
  4172.  
  4173.     # - platform: modbus_controller
  4174.     #   modbus_controller_id: sprsun_pc
  4175.     #   name: ${friendly_name} B90 AV water exh diff 6 [-23, -16 *C)
  4176.     #   address: 0x00C4
  4177.     #   unit_of_measurement: "°C"
  4178.     #   #icon: "mdi:fan-speed-1"
  4179.     #   id: b90_av_water_exh_diff_6
  4180.     #   value_type: U_WORD
  4181.     #   min_value: 0
  4182.     #   max_value: 125
  4183.     #   #lambda: "return x / 10.0;"
  4184.     #   #write_lambda: "return x * 10.0;"
  4185.     #   step: 1
  4186.     #   mode: box
  4187.     #   entity_category: config
  4188.     #   skip_updates: 10
  4189.  
  4190.     # - platform: modbus_controller
  4191.     #   modbus_controller_id: sprsun_pc
  4192.     #   name: ${friendly_name} B91 AV water exh diff 7 (T < -23 *C)
  4193.     #   address: 0x00C5
  4194.     #   unit_of_measurement: "°C"
  4195.     #   #icon: "mdi:fan-speed-1"
  4196.     #   id: b91_av_water_exh_diff_7
  4197.     #   value_type: U_WORD
  4198.     #   min_value: 0
  4199.     #   max_value: 125
  4200.     #   #lambda: "return x / 10.0;"
  4201.     #   #write_lambda: "return x * 10.0;"
  4202.     #   step: 1
  4203.     #   mode: box
  4204.     #   entity_category: config
  4205.     #   skip_updates: 10
  4206.  
  4207. #########################################################
  4208. ###   STOP DELTA TEMP GRZANIE: 4, DELTA TEMP GRZANIE (HISTEREZA): 5 (CZASAMI 6-7)
  4209.  
  4210.     - platform: modbus_controller
  4211.       modbus_controller_id: sprsun_pc
  4212.       name: ${friendly_name} P03 Histereza CO
  4213.       address: 0x00C6
  4214.       unit_of_measurement: "°C"
  4215.       #icon: "mdi:fan-speed-1"
  4216.       id: p03_temp_diff_co
  4217.       value_type: U_WORD
  4218.       min_value: 2
  4219.       max_value: 18
  4220.       #lambda: "return x / 10.0;"
  4221.       #write_lambda: "return x * 10.0;"
  4222.       step: 1
  4223.       mode: box
  4224.       entity_category: config
  4225.       skip_updates: 10
  4226.  
  4227.     - platform: modbus_controller
  4228.       modbus_controller_id: sprsun_pc
  4229.       name: ${friendly_name} F39 Stop delta temp grzanie CO
  4230.       address: 0x00C7
  4231.       unit_of_measurement: "°C"
  4232.       #icon: "mdi:fan-speed-1"
  4233.       id: f39_ac_constant_temp_diff
  4234.       value_type: U_WORD
  4235.       min_value: 1
  4236.       max_value: 10
  4237.       #lambda: "return x / 10.0;"
  4238.       #write_lambda: "return x * 10.0;"
  4239.       step: 1
  4240.       mode: box
  4241.       entity_category: config
  4242.       skip_updates: 10
  4243.  
  4244.     - platform: modbus_controller
  4245.       modbus_controller_id: sprsun_pc
  4246.       name: ${friendly_name} P05 Histereza CWU
  4247.       address: 0x00C8
  4248.       unit_of_measurement: "°C"
  4249.       #icon: "mdi:fan-speed-1"
  4250.       id: p05_temp_diff_cwu
  4251.       value_type: U_WORD
  4252.       min_value: 2
  4253.       max_value: 18
  4254.       #lambda: "return x / 10.0;"
  4255.       #write_lambda: "return x * 10.0;"
  4256.       step: 1
  4257.       mode: box
  4258.       entity_category: config
  4259.       skip_updates: 10
  4260.  
  4261.     - platform: modbus_controller
  4262.       modbus_controller_id: sprsun_pc
  4263.       name: ${friendly_name} F40 Stop delta temp grzanie CWU
  4264.       address: 0x00C9
  4265.       unit_of_measurement: "°C"
  4266.       #icon: "mdi:fan-speed-1"
  4267.       id: f40_wt_constant_temp_diff
  4268.       value_type: U_WORD
  4269.       min_value: 1
  4270.       max_value: 10
  4271.       #lambda: "return x / 10.0;"
  4272.       #write_lambda: "return x * 10.0;"
  4273.       step: 1
  4274.       mode: box
  4275.       entity_category: config
  4276.       skip_updates: 10
  4277.  
  4278.     - platform: modbus_controller
  4279.       modbus_controller_id: sprsun_pc
  4280.       name: ${friendly_name} P04 Nastawa CWU
  4281.       address: 0x00CA
  4282.       unit_of_measurement: "°C"
  4283.       #icon: "mdi:fan-speed-1"
  4284.       id: p04_hotwater_setpoint
  4285.       value_type: U_WORD
  4286.       min_value: 10
  4287.       max_value: 55
  4288.       lambda: "return x * 0.5;"
  4289.       write_lambda: "return x / 0.5;"
  4290.       step: 1
  4291.       mode: box
  4292.       entity_category: config
  4293.       skip_updates: 6
  4294.       #(Read only lower 8 bits)
  4295.       bitmask: 0x00FF
  4296.  
  4297.     - platform: modbus_controller
  4298.       modbus_controller_id: sprsun_pc
  4299.       name: ${friendly_name} P02 Nastawa chłodzenie
  4300.       address: 0x00CB
  4301.       unit_of_measurement: "°C"
  4302.       #icon: "mdi:fan-speed-1"
  4303.       id: p02_cooling_setpoint
  4304.       value_type: U_WORD
  4305.       min_value: 12
  4306.       max_value: 30
  4307.       lambda: "return x * 0.5;"
  4308.       write_lambda: "return x / 0.5;"
  4309.       step: 1
  4310.       mode: box
  4311.       entity_category: config
  4312.       skip_updates: 6
  4313.       #(Read only lower 8 bits)
  4314.       bitmask: 0x00FF
  4315.  
  4316.     - platform: modbus_controller
  4317.       modbus_controller_id: sprsun_pc
  4318.       name: ${friendly_name} P01 Nastawa CO
  4319.       address: 0x00CC
  4320.       unit_of_measurement: "°C"
  4321.       #icon: "mdi:fan-speed-1"
  4322.       id: p01_heating_setpoint
  4323.       value_type: U_WORD
  4324.       min_value: 10
  4325.       max_value: 55
  4326.       lambda: "return x * 0.5;"
  4327.       write_lambda: "return x / 0.5;"
  4328.       step: 1
  4329.       mode: box
  4330.       entity_category: config
  4331.       skip_updates: 6
  4332.       #(Read only lower 8 bits)
  4333.       bitmask: 0x00FF
  4334.  
  4335.     - platform: modbus_controller
  4336.       modbus_controller_id: sprsun_pc
  4337.       name: ${friendly_name} F44 Water (CWU) temp calibration
  4338.       address: 0x00CD
  4339.       unit_of_measurement: "°C"
  4340.       #icon: "mdi:fan-speed-1"
  4341.       id: f44_wt_temp_calibration
  4342.       value_type: S_WORD
  4343.       min_value: -30
  4344.       max_value: 30
  4345.       #lambda: "return x * 0.5;"
  4346.       #write_lambda: "return x / 0.5;"
  4347.       step: 1
  4348.       mode: box
  4349.       entity_category: config
  4350.       skip_updates: 10
  4351.  
  4352.     - platform: modbus_controller
  4353.       modbus_controller_id: sprsun_pc
  4354.       name: ${friendly_name} F45 Inlet temp calibration
  4355.       address: 0x00CE
  4356.       unit_of_measurement: "°C"
  4357.       #icon: "mdi:fan-speed-1"
  4358.       id: f45_inlet_temp_calibration
  4359.       value_type: S_WORD
  4360.       min_value: -30
  4361.       max_value: 30
  4362.       #lambda: "return x * 0.5;"
  4363.       #write_lambda: "return x / 0.5;"
  4364.       step: 1
  4365.       mode: box
  4366.       entity_category: config
  4367.       skip_updates: 10
  4368.  
  4369.     - platform: modbus_controller
  4370.       modbus_controller_id: sprsun_pc
  4371.       name: ${friendly_name} F46 Outlet temp calibration
  4372.       address: 0x00CF
  4373.       unit_of_measurement: "°C"
  4374.       #icon: "mdi:fan-speed-1"
  4375.       id: f46_outlet_temp_calibration
  4376.       value_type: S_WORD
  4377.       min_value: -30
  4378.       max_value: 30
  4379.       #lambda: "return x * 0.5;"
  4380.       #write_lambda: "return x / 0.5;"
  4381.       step: 1
  4382.       mode: box
  4383.       entity_category: config
  4384.       skip_updates: 10
  4385.  
  4386.     - platform: modbus_controller
  4387.       modbus_controller_id: sprsun_pc
  4388.       name: ${friendly_name} F49 Water temp offset stp.
  4389.       address: 0x00D0
  4390.       unit_of_measurement: "°C"
  4391.       #icon: "mdi:fan-speed-1"
  4392.       id: f49_wt_temp_offset_stp
  4393.       value_type: U_WORD
  4394.       min_value: 30
  4395.       max_value: 55
  4396.       #lambda: "return x * 0.5;"
  4397.       #write_lambda: "return x / 0.5;"
  4398.       step: 1
  4399.       mode: box
  4400.       entity_category: config
  4401.       skip_updates: 10
  4402.  
  4403.     - platform: modbus_controller
  4404.       modbus_controller_id: sprsun_pc
  4405.       name: ${friendly_name} F50 Inlet temp offset stp.
  4406.       address: 0x00D1
  4407.       unit_of_measurement: "°C"
  4408.       #icon: "mdi:fan-speed-1"
  4409.       id: f50_inlet_temp_offset_stp
  4410.       value_type: U_WORD
  4411.       min_value: 30
  4412.       max_value: 55
  4413.       #lambda: "return x * 0.5;"
  4414.       #write_lambda: "return x / 0.5;"
  4415.       step: 1
  4416.       mode: box
  4417.       entity_category: config
  4418.       skip_updates: 10
  4419.  
  4420.     - platform: modbus_controller
  4421.       modbus_controller_id: sprsun_pc
  4422.       name: ${friendly_name} F42 Water temp offset
  4423.       address: 0x00D2
  4424.       unit_of_measurement: "°C"
  4425.       #icon: "mdi:fan-speed-1"
  4426.       id: f42_water_temp_offset
  4427.       value_type: U_WORD
  4428.       min_value: 0
  4429.       max_value: 50
  4430.       #lambda: "return x * 0.5;"
  4431.       #write_lambda: "return x / 0.5;"
  4432.       step: 1
  4433.       mode: box
  4434.       entity_category: config
  4435.       skip_updates: 10
  4436.  
  4437.     - platform: modbus_controller
  4438.       modbus_controller_id: sprsun_pc
  4439.       name: ${friendly_name} F43 inlet temp offset
  4440.       address: 0x00D3
  4441.       unit_of_measurement: "°C"
  4442.       #icon: "mdi:fan-speed-1"
  4443.       id: f43_inlet_temp_offset
  4444.       value_type: U_WORD
  4445.       min_value: 0
  4446.       max_value: 50
  4447.       #lambda: "return x * 0.5;"
  4448.       #write_lambda: "return x / 0.5;"
  4449.       step: 1
  4450.       mode: box
  4451.       entity_category: config
  4452.       skip_updates: 10
  4453.  
  4454.     - platform: modbus_controller
  4455.       modbus_controller_id: sprsun_pc
  4456.       name: ${friendly_name} H03 Defrost in stp.
  4457.       address: 0x00D4
  4458.       unit_of_measurement: "°C"
  4459.       #icon: "mdi:fan-speed-1"
  4460.       id: h03_defrost_in_stp
  4461.       value_type: S_WORD
  4462.       min_value: -15
  4463.       max_value: -1
  4464.       #lambda: "return x * 0.5;"
  4465.       #write_lambda: "return x / 0.5;"
  4466.       step: 1
  4467.       mode: box
  4468.       entity_category: config
  4469.       skip_updates: 10
  4470.  
  4471.     - platform: modbus_controller
  4472.       modbus_controller_id: sprsun_pc
  4473.       name: ${friendly_name} H04 Defrost exit stp.
  4474.       address: 0x00D5
  4475.       unit_of_measurement: "°C"
  4476.       #icon: "mdi:fan-speed-1"
  4477.       id: h04_defrost_exit_stp
  4478.       value_type: U_WORD
  4479.       min_value: 1
  4480.       max_value: 40
  4481.       #lambda: "return x * 0.5;"
  4482.       #write_lambda: "return x / 0.5;"
  4483.       step: 1
  4484.       mode: box
  4485.       entity_category: config
  4486.       skip_updates: 10
  4487.  
  4488.     - platform: modbus_controller
  4489.       modbus_controller_id: sprsun_pc
  4490.       name: ${friendly_name} H07 Def ambi coil 1
  4491.       address: 0x00D6
  4492.       unit_of_measurement: "°C"
  4493.       #icon: "mdi:fan-speed-1"
  4494.       id: h07_def_ambi_coil_1
  4495.       value_type: U_WORD
  4496.       min_value: 0
  4497.       max_value: 30
  4498.       #lambda: "return x * 0.5;"
  4499.       #write_lambda: "return x / 0.5;"
  4500.       step: 1
  4501.       mode: box
  4502.       entity_category: config
  4503.       skip_updates: 10
  4504.  
  4505.     - platform: modbus_controller
  4506.       modbus_controller_id: sprsun_pc
  4507.       name: ${friendly_name} H10 Def ambi coil 2
  4508.       address: 0x00D7
  4509.       unit_of_measurement: "°C"
  4510.       #icon: "mdi:fan-speed-1"
  4511.       id: h10_def_ambi_coil_2
  4512.       value_type: U_WORD
  4513.       min_value: 0
  4514.       max_value: 30
  4515.       #lambda: "return x * 0.5;"
  4516.       #write_lambda: "return x / 0.5;"
  4517.       step: 1
  4518.       mode: box
  4519.       entity_category: config
  4520.       skip_updates: 10
  4521.  
  4522.     - platform: modbus_controller
  4523.       modbus_controller_id: sprsun_pc
  4524.       name: ${friendly_name} H13 Def ambi coil 3
  4525.       address: 0x00D8
  4526.       unit_of_measurement: "°C"
  4527.       #icon: "mdi:fan-speed-1"
  4528.       id: h13_def_ambi_coil_3
  4529.       value_type: U_WORD
  4530.       min_value: 0
  4531.       max_value: 30
  4532.       #lambda: "return x * 0.5;"
  4533.       #write_lambda: "return x / 0.5;"
  4534.       step: 1
  4535.       mode: box
  4536.       entity_category: config
  4537.       skip_updates: 10
  4538.  
  4539.     - platform: modbus_controller
  4540.       modbus_controller_id: sprsun_pc
  4541.       name: ${friendly_name} H09 Defrost ambient stp. 1
  4542.       address: 0x00D9
  4543.       unit_of_measurement: "°C"
  4544.       #icon: "mdi:fan-speed-1"
  4545.       id: h09_defrost_ambi_stp_1
  4546.       value_type: S_WORD
  4547.       min_value: -30
  4548.       max_value: 30
  4549.       #lambda: "return x * 0.5;"
  4550.       #write_lambda: "return x / 0.5;"
  4551.       step: 1
  4552.       mode: box
  4553.       entity_category: config
  4554.       skip_updates: 10
  4555.  
  4556.     - platform: modbus_controller
  4557.       modbus_controller_id: sprsun_pc
  4558.       name: ${friendly_name} H12 Defrost ambient stp. 2
  4559.       address: 0x00DA
  4560.       unit_of_measurement: "°C"
  4561.       #icon: "mdi:fan-speed-1"
  4562.       id: h12_defrost_ambi_stp_2
  4563.       value_type: S_WORD
  4564.       min_value: -30
  4565.       max_value: 30
  4566.       #lambda: "return x * 0.5;"
  4567.       #write_lambda: "return x / 0.5;"
  4568.       step: 1
  4569.       mode: box
  4570.       entity_category: config
  4571.       skip_updates: 10
  4572.  
  4573.     - platform: modbus_controller
  4574.       modbus_controller_id: sprsun_pc
  4575.       name: ${friendly_name} H04 Defrost ambient stp. 3
  4576.       address: 0x00DB
  4577.       unit_of_measurement: "°C"
  4578.       #icon: "mdi:fan-speed-1"
  4579.       id: h04_defrost_ambi_stp_3
  4580.       value_type: S_WORD
  4581.       min_value: -30
  4582.       max_value: 30
  4583.       #lambda: "return x * 0.5;"
  4584.       #write_lambda: "return x / 0.5;"
  4585.       step: 1
  4586.       mode: box
  4587.       entity_category: config
  4588.       skip_updates: 10
  4589.  
  4590.     - platform: modbus_controller
  4591.       modbus_controller_id: sprsun_pc
  4592.       name: ${friendly_name} A02 MV heating SH 1 (T => 14 °C)
  4593.       address: 0x00DC
  4594.       unit_of_measurement: "°C"
  4595.       #icon: "mdi:fan-speed-1"
  4596.       id: a02_mv_heating_sh_1
  4597.       value_type: S_WORD
  4598.       min_value: -5
  4599.       max_value: 10
  4600.       #lambda: "return x * 0.5;"
  4601.       #write_lambda: "return x / 0.5;"
  4602.       step: 1
  4603.       mode: box
  4604.       entity_category: config
  4605.       skip_updates: 10
  4606.  
  4607.     - platform: modbus_controller
  4608.       modbus_controller_id: sprsun_pc
  4609.       name: ${friendly_name} A03 MV heating SH 2 [9, 14)
  4610.       address: 0x00DD
  4611.       unit_of_measurement: "°C"
  4612.       #icon: "mdi:fan-speed-1"
  4613.       id: a03_mv_heating_sh_2
  4614.       value_type: S_WORD
  4615.       min_value: -5
  4616.       max_value: 10
  4617.       #lambda: "return x * 0.5;"
  4618.       #write_lambda: "return x / 0.5;"
  4619.       step: 1
  4620.       mode: box
  4621.       entity_category: config
  4622.       skip_updates: 10
  4623.  
  4624.     - platform: modbus_controller
  4625.       modbus_controller_id: sprsun_pc
  4626.       name: ${friendly_name} A04 MV heating SH 3 [4, 9)
  4627.       address: 0x00DE
  4628.       unit_of_measurement: "°C"
  4629.       #icon: "mdi:fan-speed-1"
  4630.       id: a04_mv_heating_sh_3
  4631.       value_type: S_WORD
  4632.       min_value: -5
  4633.       max_value: 10
  4634.       #lambda: "return x * 0.5;"
  4635.       #write_lambda: "return x / 0.5;"
  4636.       step: 1
  4637.       mode: box
  4638.       entity_category: config
  4639.       skip_updates: 10
  4640.  
  4641.     - platform: modbus_controller
  4642.       modbus_controller_id: sprsun_pc
  4643.       name: ${friendly_name} A05 MV heating SH 4 [-5, 4)
  4644.       address: 0x00DF
  4645.       unit_of_measurement: "°C"
  4646.       #icon: "mdi:fan-speed-1"
  4647.       id: a05_mv_heating_sh_4
  4648.       value_type: S_WORD
  4649.       min_value: -5
  4650.       max_value: 10
  4651.       #lambda: "return x * 0.5;"
  4652.       #write_lambda: "return x / 0.5;"
  4653.       step: 1
  4654.       mode: box
  4655.       entity_category: config
  4656.       skip_updates: 10
  4657.  
  4658.     - platform: modbus_controller
  4659.       modbus_controller_id: sprsun_pc
  4660.       name: ${friendly_name} A06 MV heating SH 5 [-10, -5)
  4661.       address: 0x00E0
  4662.       unit_of_measurement: "°C"
  4663.       #icon: "mdi:fan-speed-1"
  4664.       id: a06_mv_heating_sh_5
  4665.       value_type: S_WORD
  4666.       min_value: -5
  4667.       max_value: 10
  4668.       #lambda: "return x * 0.5;"
  4669.       #write_lambda: "return x / 0.5;"
  4670.       step: 1
  4671.       mode: box
  4672.       entity_category: config
  4673.       skip_updates: 10
  4674.  
  4675.     - platform: modbus_controller
  4676.       modbus_controller_id: sprsun_pc
  4677.       name: ${friendly_name} A07 MV heating SH 6 [-16, -10)
  4678.       address: 0x00E1
  4679.       unit_of_measurement: "°C"
  4680.       #icon: "mdi:fan-speed-1"
  4681.       id: a07_mv_heating_sh_6
  4682.       value_type: S_WORD
  4683.       min_value: -5
  4684.       max_value: 10
  4685.       #lambda: "return x * 0.5;"
  4686.       #write_lambda: "return x / 0.5;"
  4687.       step: 1
  4688.       mode: box
  4689.       entity_category: config
  4690.       skip_updates: 10
  4691.  
  4692.     - platform: modbus_controller
  4693.       modbus_controller_id: sprsun_pc
  4694.       name: ${friendly_name} A08 MV heating SH 7 [-23, -16)
  4695.       address: 0x00E2
  4696.       unit_of_measurement: "°C"
  4697.       #icon: "mdi:fan-speed-1"
  4698.       id: a08_mv_heating_sh_7
  4699.       value_type: S_WORD
  4700.       min_value: -5
  4701.       max_value: 10
  4702.       #lambda: "return x * 0.5;"
  4703.       #write_lambda: "return x / 0.5;"
  4704.       step: 1
  4705.       mode: box
  4706.       entity_category: config
  4707.       skip_updates: 10
  4708.  
  4709.     - platform: modbus_controller
  4710.       modbus_controller_id: sprsun_pc
  4711.       name: ${friendly_name} A09 MV heating SH 8 (T < -23 °C)
  4712.       address: 0x00E3
  4713.       unit_of_measurement: "°C"
  4714.       #icon: "mdi:fan-speed-1"
  4715.       id: a00_mv_heating_sh_8
  4716.       value_type: S_WORD
  4717.       min_value: -5
  4718.       max_value: 10
  4719.       #lambda: "return x * 0.5;"
  4720.       #write_lambda: "return x / 0.5;"
  4721.       step: 1
  4722.       mode: box
  4723.       entity_category: config
  4724.       skip_updates: 10
  4725.  
  4726.     - platform: modbus_controller
  4727.       modbus_controller_id: sprsun_pc
  4728.       name: ${friendly_name} A10 MV cooling SH 1 (T >=  38 °C)
  4729.       address: 0x00E4
  4730.       unit_of_measurement: "°C"
  4731.       #icon: "mdi:fan-speed-1"
  4732.       id: a10_mv_cooling_sh_1
  4733.       value_type: S_WORD
  4734.       min_value: -5
  4735.       max_value: 10
  4736.       #lambda: "return x * 0.5;"
  4737.       #write_lambda: "return x / 0.5;"
  4738.       step: 1
  4739.       mode: box
  4740.       entity_category: config
  4741.       skip_updates: 10
  4742.  
  4743.     - platform: modbus_controller
  4744.       modbus_controller_id: sprsun_pc
  4745.       name: ${friendly_name} A11 MV cooling SH 2 [30, 38 °C)
  4746.       address: 0x00E5
  4747.       unit_of_measurement: "°C"
  4748.       #icon: "mdi:fan-speed-1"
  4749.       id: a11_mv_cooling_sh_2
  4750.       value_type: S_WORD
  4751.       min_value: -5
  4752.       max_value: 10
  4753.       #lambda: "return x * 0.5;"
  4754.       #write_lambda: "return x / 0.5;"
  4755.       step: 1
  4756.       mode: box
  4757.       entity_category: config
  4758.       skip_updates: 10
  4759.  
  4760.     - platform: modbus_controller
  4761.       modbus_controller_id: sprsun_pc
  4762.       name: ${friendly_name} A12 MV cooling SH 3 [25, 30 °C)
  4763.       address: 0x00E6
  4764.       unit_of_measurement: "°C"
  4765.       #icon: "mdi:fan-speed-1"
  4766.       id: a12_mv_cooling_sh_3
  4767.       value_type: S_WORD
  4768.       min_value: -5
  4769.       max_value: 10
  4770.       #lambda: "return x * 0.5;"
  4771.       #write_lambda: "return x / 0.5;"
  4772.       step: 1
  4773.       mode: box
  4774.       entity_category: config
  4775.       skip_updates: 10
  4776.  
  4777.     - platform: modbus_controller
  4778.       modbus_controller_id: sprsun_pc
  4779.       name: ${friendly_name} A13 MV cooling SH 4 (T < 25 °C)
  4780.       address: 0x00E7
  4781.       unit_of_measurement: "°C"
  4782.       #icon: "mdi:fan-speed-1"
  4783.       id: a13_mv_cooling_sh_4
  4784.       value_type: S_WORD
  4785.       min_value: -5
  4786.       max_value: 10
  4787.       #lambda: "return x * 0.5;"
  4788.       #write_lambda: "return x / 0.5;"
  4789.       step: 1
  4790.       mode: box
  4791.       entity_category: config
  4792.       skip_updates: 10
  4793.  
  4794.     - platform: modbus_controller
  4795.       modbus_controller_id: sprsun_pc
  4796.       name: ${friendly_name} A42 MV exhaust stp.
  4797.       address: 0x00E8
  4798.       unit_of_measurement: "°C"
  4799.       #icon: "mdi:fan-speed-1"
  4800.       id: a42_mv_exhaust_stp
  4801.       value_type: U_WORD
  4802.       min_value: 70
  4803.       max_value: 125
  4804.       #lambda: "return x * 0.5;"
  4805.       #write_lambda: "return x / 0.5;"
  4806.       step: 1
  4807.       mode: box
  4808.       entity_category: config
  4809.       skip_updates: 10
  4810.  
  4811.     - platform: modbus_controller
  4812.       modbus_controller_id: sprsun_pc
  4813.       name: ${friendly_name} B03 AV start ambient
  4814.       address: 0x00E9
  4815.       unit_of_measurement: "°C"
  4816.       #icon: "mdi:fan-speed-1"
  4817.       id: b03_av_start_ambi
  4818.       value_type: U_WORD
  4819.       min_value: 11
  4820.       max_value: 45
  4821.       #lambda: "return x * 0.5;"
  4822.       #write_lambda: "return x / 0.5;"
  4823.       step: 1
  4824.       mode: box
  4825.       entity_category: config
  4826.       skip_updates: 10
  4827.  
  4828.     - platform: modbus_controller
  4829.       modbus_controller_id: sprsun_pc
  4830.       name: ${friendly_name} B09 AV exhaust stp.
  4831.       address: 0x00EA
  4832.       unit_of_measurement: "°C"
  4833.       #icon: "mdi:fan-speed-1"
  4834.       id: b03_av_exhaust_ambi
  4835.       value_type: U_WORD
  4836.       min_value: 70
  4837.       max_value: 120
  4838.       #lambda: "return x * 0.5;"
  4839.       #write_lambda: "return x / 0.5;"
  4840.       step: 1
  4841.       mode: box
  4842.       entity_category: config
  4843.       skip_updates: 10
  4844.  
  4845.     - platform: modbus_controller
  4846.       modbus_controller_id: sprsun_pc
  4847.       name: ${friendly_name} B10 AV off exhaust stp.
  4848.       address: 0x00EB
  4849.       unit_of_measurement: "°C"
  4850.       #icon: "mdi:fan-speed-1"
  4851.       id: b10_av_off_exh_stp
  4852.       value_type: U_WORD
  4853.       min_value: 40
  4854.       max_value: 70
  4855.       #lambda: "return x * 0.5;"
  4856.       #write_lambda: "return x / 0.5;"
  4857.       step: 1
  4858.       mode: box
  4859.       entity_category: config
  4860.       skip_updates: 10
  4861.  
  4862.     - platform: modbus_controller
  4863.       modbus_controller_id: sprsun_pc
  4864.       name: ${friendly_name} B11 AV heating SH 1 (T >= 14 °C)
  4865.       address: 0x00EC
  4866.       unit_of_measurement: "°C"
  4867.       #icon: "mdi:fan-speed-1"
  4868.       id: b11_av_heating_sh_1
  4869.       value_type: S_WORD
  4870.       min_value: -10
  4871.       max_value: 10
  4872.       #lambda: "return x * 0.5;"
  4873.       #write_lambda: "return x / 0.5;"
  4874.       step: 1
  4875.       mode: box
  4876.       entity_category: config
  4877.       skip_updates: 10
  4878.  
  4879.     - platform: modbus_controller
  4880.       modbus_controller_id: sprsun_pc
  4881.       name: ${friendly_name} B12 AV heating SH 2 [9, 14 °C)
  4882.       address: 0x00ED
  4883.       unit_of_measurement: "°C"
  4884.       #icon: "mdi:fan-speed-1"
  4885.       id: b12_av_heating_sh_2
  4886.       value_type: S_WORD
  4887.       min_value: -10
  4888.       max_value: 10
  4889.       #lambda: "return x * 0.5;"
  4890.       #write_lambda: "return x / 0.5;"
  4891.       step: 1
  4892.       mode: box
  4893.       entity_category: config
  4894.       skip_updates: 10
  4895.  
  4896.     - platform: modbus_controller
  4897.       modbus_controller_id: sprsun_pc
  4898.       name: ${friendly_name} B13 AV heating SH 3 [4, 9 °C)
  4899.       address: 0x00EE
  4900.       unit_of_measurement: "°C"
  4901.       #icon: "mdi:fan-speed-1"
  4902.       id: b13_av_heating_sh_3
  4903.       value_type: S_WORD
  4904.       min_value: -10
  4905.       max_value: 10
  4906.       #lambda: "return x * 0.5;"
  4907.       #write_lambda: "return x / 0.5;"
  4908.       step: 1
  4909.       mode: box
  4910.       entity_category: config
  4911.       skip_updates: 10
  4912.      
  4913.     - platform: modbus_controller
  4914.       modbus_controller_id: sprsun_pc
  4915.       name: ${friendly_name} B14 AV heating SH 4 [-5, 4 °C)
  4916.       address: 0x00EF
  4917.       unit_of_measurement: "°C"
  4918.       #icon: "mdi:fan-speed-1"
  4919.       id: b14_av_heating_sh_4
  4920.       value_type: S_WORD
  4921.       min_value: -10
  4922.       max_value: 10
  4923.       #lambda: "return x * 0.5;"
  4924.       #write_lambda: "return x / 0.5;"
  4925.       step: 1
  4926.       mode: box
  4927.       entity_category: config
  4928.       skip_updates: 10
  4929.  
  4930.     - platform: modbus_controller
  4931.       modbus_controller_id: sprsun_pc
  4932.       name: ${friendly_name} B15 AV heating SH 5 [-10, -5 °C)
  4933.       address: 0x00F0
  4934.       unit_of_measurement: "°C"
  4935.       #icon: "mdi:fan-speed-1"
  4936.       id: b15_av_heating_sh_5
  4937.       value_type: S_WORD
  4938.       min_value: -10
  4939.       max_value: 10
  4940.       #lambda: "return x * 0.5;"
  4941.       #write_lambda: "return x / 0.5;"
  4942.       step: 1
  4943.       mode: box
  4944.       entity_category: config
  4945.       skip_updates: 10
  4946.  
  4947.     - platform: modbus_controller
  4948.       modbus_controller_id: sprsun_pc
  4949.       name: ${friendly_name} B16 AV heating SH 6 [-16, -10 °C)
  4950.       address: 0x00F1
  4951.       unit_of_measurement: "°C"
  4952.       #icon: "mdi:fan-speed-1"
  4953.       id: b16_av_heating_sh_6
  4954.       value_type: S_WORD
  4955.       min_value: -10
  4956.       max_value: 10
  4957.       #lambda: "return x * 0.5;"
  4958.       #write_lambda: "return x / 0.5;"
  4959.       step: 1
  4960.       mode: box
  4961.       entity_category: config
  4962.       skip_updates: 10
  4963.  
  4964.     - platform: modbus_controller
  4965.       modbus_controller_id: sprsun_pc
  4966.       name: ${friendly_name} B17 AV heating SH 7 [-23, -16 °C)
  4967.       address: 0x00F2
  4968.       unit_of_measurement: "°C"
  4969.       #icon: "mdi:fan-speed-1"
  4970.       id: b17_av_heating_sh_7
  4971.       value_type: S_WORD
  4972.       min_value: -10
  4973.       max_value: 10
  4974.       #lambda: "return x * 0.5;"
  4975.       #write_lambda: "return x / 0.5;"
  4976.       step: 1
  4977.       mode: box
  4978.       entity_category: config
  4979.       skip_updates: 10
  4980.  
  4981.     - platform: modbus_controller
  4982.       modbus_controller_id: sprsun_pc
  4983.       name: ${friendly_name} B18 AV heating SH 8 (T < -23 °C)
  4984.       address: 0x00F3
  4985.       unit_of_measurement: "°C"
  4986.       #icon: "mdi:fan-speed-1"
  4987.       id: b18_av_heating_sh_8
  4988.       value_type: S_WORD
  4989.       min_value: -10
  4990.       max_value: 10
  4991.       #lambda: "return x * 0.5;"
  4992.       #write_lambda: "return x / 0.5;"
  4993.       step: 1
  4994.       mode: box
  4995.       entity_category: config
  4996.       skip_updates: 10
  4997.  
  4998.     - platform: modbus_controller
  4999.       modbus_controller_id: sprsun_pc
  5000.       name: ${friendly_name} D21 AC fan switch ambi. 1
  5001.       address: 0x00F4
  5002.       unit_of_measurement: "°C"
  5003.       #icon: "mdi:fan-speed-1"
  5004.       id: d21_ac_fan_switch_ambi_1
  5005.       value_type: S_WORD
  5006.       min_value: -10
  5007.       max_value: 50
  5008.       #lambda: "return x * 0.5;"
  5009.       #write_lambda: "return x / 0.5;"
  5010.       step: 1
  5011.       mode: box
  5012.       entity_category: config
  5013.       skip_updates: 10
  5014.  
  5015.     - platform: modbus_controller
  5016.       modbus_controller_id: sprsun_pc
  5017.       name: ${friendly_name} D22 AC fan switch ambi. 2
  5018.       address: 0x00F5
  5019.       unit_of_measurement: "°C"
  5020.       #icon: "mdi:fan-speed-1"
  5021.       id: d22_ac_fan_switch_ambi_2
  5022.       value_type: S_WORD
  5023.       min_value: -10
  5024.       max_value: 50
  5025.       #lambda: "return x * 0.5;"
  5026.       #write_lambda: "return x / 0.5;"
  5027.       step: 1
  5028.       mode: box
  5029.       entity_category: config
  5030.       skip_updates: 10
  5031.  
  5032.     - platform: modbus_controller
  5033.       modbus_controller_id: sprsun_pc
  5034.       name: ${friendly_name} R16 Exhaust high TP0
  5035.       address: 0x00F6
  5036.       unit_of_measurement: "°C"
  5037.       #icon: "mdi:fan-speed-1"
  5038.       id: r16_exhaust_high_tp0
  5039.       value_type: U_WORD
  5040.       min_value: 50
  5041.       max_value: 125
  5042.       #lambda: "return x * 0.5;"
  5043.       #write_lambda: "return x / 0.5;"
  5044.       step: 1
  5045.       mode: box
  5046.       entity_category: config
  5047.       skip_updates: 10
  5048.  
  5049.     - platform: modbus_controller
  5050.       modbus_controller_id: sprsun_pc
  5051.       name: ${friendly_name} R17 Exhaust high TP1
  5052.       address: 0x00F7
  5053.       unit_of_measurement: "°C"
  5054.       #icon: "mdi:fan-speed-1"
  5055.       id: r17_exhaust_high_tp1
  5056.       value_type: U_WORD
  5057.       min_value: 50
  5058.       max_value: 125
  5059.       #lambda: "return x * 0.5;"
  5060.       #write_lambda: "return x / 0.5;"
  5061.       step: 1
  5062.       mode: box
  5063.       entity_category: config
  5064.       skip_updates: 10
  5065.  
  5066.     - platform: modbus_controller
  5067.       modbus_controller_id: sprsun_pc
  5068.       name: ${friendly_name} R18 Exhaust high TP2
  5069.       address: 0x00F8
  5070.       unit_of_measurement: "°C"
  5071.       #icon: "mdi:fan-speed-1"
  5072.       id: r18_exhaust_high_tp2
  5073.       value_type: U_WORD
  5074.       min_value: 50
  5075.       max_value: 125
  5076.       #lambda: "return x * 0.5;"
  5077.       #write_lambda: "return x / 0.5;"
  5078.       step: 1
  5079.       mode: box
  5080.       entity_category: config
  5081.       skip_updates: 10
  5082.  
  5083.     - platform: modbus_controller
  5084.       modbus_controller_id: sprsun_pc
  5085.       name: ${friendly_name} R19 Exhaust high TP3
  5086.       address: 0x00F9
  5087.       unit_of_measurement: "°C"
  5088.       #icon: "mdi:fan-speed-1"
  5089.       id: r19_exhaust_high_tp3
  5090.       value_type: U_WORD
  5091.       min_value: 50
  5092.       max_value: 125
  5093.       #lambda: "return x * 0.5;"
  5094.       #write_lambda: "return x / 0.5;"
  5095.       step: 1
  5096.       mode: box
  5097.       entity_category: config
  5098.       skip_updates: 10
  5099.  
  5100.     - platform: modbus_controller
  5101.       modbus_controller_id: sprsun_pc
  5102.       name: ${friendly_name} R19 Exhaust high TP4
  5103.       address: 0x00FA
  5104.       unit_of_measurement: "°C"
  5105.       #icon: "mdi:fan-speed-1"
  5106.       id: r20_exhaust_high_tp4
  5107.       value_type: U_WORD
  5108.       min_value: 50
  5109.       max_value: 125
  5110.       #lambda: "return x * 0.5;"
  5111.       #write_lambda: "return x / 0.5;"
  5112.       step: 1
  5113.       mode: box
  5114.       entity_category: config
  5115.       skip_updates: 10
  5116.  
  5117.     - platform: modbus_controller
  5118.       modbus_controller_id: sprsun_pc
  5119.       name: ${friendly_name} Manual frequency setting
  5120.       address: 0x00FB
  5121.       unit_of_measurement: "Hz"
  5122.       #icon: "mdi:fan-speed-1"
  5123.       id: manual_frequency_setting
  5124.       value_type: U_WORD
  5125.       min_value: 30
  5126.       max_value: 120
  5127.       #lambda: "return x * 0.5;"
  5128.       #write_lambda: "return x / 0.5;"
  5129.       step: 1
  5130.       mode: box
  5131.       entity_category: config
  5132.       skip_updates: 10
  5133.  
  5134.     - platform: modbus_controller
  5135.       modbus_controller_id: sprsun_pc
  5136.       name: ${friendly_name} Freq of water R00 (T >= 14 °C)
  5137.       address: 0x00FC
  5138.       unit_of_measurement: "Hz"
  5139.       #icon: "mdi:fan-speed-1"
  5140.       id: freq_of_water_r00
  5141.       value_type: U_WORD
  5142.       min_value: 30
  5143.       max_value: 120
  5144.       #lambda: "return x * 0.5;"
  5145.       #write_lambda: "return x / 0.5;"
  5146.       step: 1
  5147.       mode: box
  5148.       entity_category: config
  5149.       skip_updates: 10
  5150.  
  5151.     - platform: modbus_controller
  5152.       modbus_controller_id: sprsun_pc
  5153.       name: ${friendly_name} Freq of water R01 [9, 14 °C)
  5154.       address: 0x00FD
  5155.       unit_of_measurement: "Hz"
  5156.       #icon: "mdi:fan-speed-1"
  5157.       id: freq_of_water_r01
  5158.       value_type: U_WORD
  5159.       min_value: 30
  5160.       max_value: 120
  5161.       #lambda: "return x * 0.5;"
  5162.       #write_lambda: "return x / 0.5;"
  5163.       step: 1
  5164.       mode: box
  5165.       entity_category: config
  5166.       skip_updates: 10
  5167.  
  5168.     - platform: modbus_controller
  5169.       modbus_controller_id: sprsun_pc
  5170.       name: ${friendly_name} Freq of water R02 [4, 9 °C)
  5171.       address: 0x00FE
  5172.       unit_of_measurement: "Hz"
  5173.       #icon: "mdi:fan-speed-1"
  5174.       id: freq_of_water_r02
  5175.       value_type: U_WORD
  5176.       min_value: 30
  5177.       max_value: 120
  5178.       #lambda: "return x * 0.5;"
  5179.       #write_lambda: "return x / 0.5;"
  5180.       step: 1
  5181.       mode: box
  5182.       entity_category: config
  5183.       skip_updates: 10
  5184.  
  5185.     - platform: modbus_controller
  5186.       modbus_controller_id: sprsun_pc
  5187.       name: ${friendly_name} Freq of water R03 [-5, 4 °C)
  5188.       address: 0x00FF
  5189.       unit_of_measurement: "Hz"
  5190.       #icon: "mdi:fan-speed-1"
  5191.       id: freq_of_water_r03
  5192.       value_type: U_WORD
  5193.       min_value: 30
  5194.       max_value: 120
  5195.       #lambda: "return x * 0.5;"
  5196.       #write_lambda: "return x / 0.5;"
  5197.       step: 1
  5198.       mode: box
  5199.       entity_category: config
  5200.       skip_updates: 10
  5201.  
  5202.     - platform: modbus_controller
  5203.       modbus_controller_id: sprsun_pc
  5204.       name: ${friendly_name} Freq of water R30 [-10, -5 °C)
  5205.       address: 0x0100
  5206.       unit_of_measurement: "Hz"
  5207.       #icon: "mdi:fan-speed-1"
  5208.       id: freq_of_water_r30
  5209.       value_type: U_WORD
  5210.       min_value: 30
  5211.       max_value: 120
  5212.       #lambda: "return x * 0.5;"
  5213.       #write_lambda: "return x / 0.5;"
  5214.       step: 1
  5215.       mode: box
  5216.       entity_category: config
  5217.       skip_updates: 10
  5218.  
  5219.     - platform: modbus_controller
  5220.       modbus_controller_id: sprsun_pc
  5221.       name: ${friendly_name} Freq of water R31 [-16, -10 °C)
  5222.       address: 0x0101
  5223.       unit_of_measurement: "Hz"
  5224.       #icon: "mdi:fan-speed-1"
  5225.       id: freq_of_water_r31
  5226.       value_type: U_WORD
  5227.       min_value: 30
  5228.       max_value: 120
  5229.       #lambda: "return x * 0.5;"
  5230.       #write_lambda: "return x / 0.5;"
  5231.       step: 1
  5232.       mode: box
  5233.       entity_category: config
  5234.       skip_updates: 10
  5235.  
  5236.     - platform: modbus_controller
  5237.       modbus_controller_id: sprsun_pc
  5238.       name: ${friendly_name} Freq of water R32 [-23, -16 °C)
  5239.       address: 0x0102
  5240.       unit_of_measurement: "Hz"
  5241.       #icon: "mdi:fan-speed-1"
  5242.       id: freq_of_water_r32
  5243.       value_type: U_WORD
  5244.       min_value: 30
  5245.       max_value: 120
  5246.       #lambda: "return x * 0.5;"
  5247.       #write_lambda: "return x / 0.5;"
  5248.       step: 1
  5249.       mode: box
  5250.       entity_category: config
  5251.       skip_updates: 10
  5252.  
  5253.     - platform: modbus_controller
  5254.       modbus_controller_id: sprsun_pc
  5255.       name: ${friendly_name} Freq of water R33 (T < -23 °C)
  5256.       address: 0x0103
  5257.       unit_of_measurement: "Hz"
  5258.       #icon: "mdi:fan-speed-1"
  5259.       id: freq_of_water_r33
  5260.       value_type: U_WORD
  5261.       min_value: 30
  5262.       max_value: 120
  5263.       #lambda: "return x * 0.5;"
  5264.       #write_lambda: "return x / 0.5;"
  5265.       step: 1
  5266.       mode: box
  5267.       entity_category: config
  5268.       skip_updates: 10
  5269.  
  5270. #############
  5271.     - platform: modbus_controller
  5272.       modbus_controller_id: sprsun_pc
  5273.       name: ${friendly_name} Freq of heat R04 (T >= 14 °C)
  5274.       address: 0x0104
  5275.       unit_of_measurement: "Hz"
  5276.       #icon: "mdi:fan-speed-1"
  5277.       id: freq_of_heat_r04
  5278.       value_type: U_WORD
  5279.       min_value: 30
  5280.       max_value: 120
  5281.       #lambda: "return x * 0.5;"
  5282.       #write_lambda: "return x / 0.5;"
  5283.       step: 1
  5284.       mode: box
  5285.       entity_category: config
  5286.       skip_updates: 10
  5287.  
  5288.     - platform: modbus_controller
  5289.       modbus_controller_id: sprsun_pc
  5290.       name: ${friendly_name} Freq of heat R05 [9, 14 °C)
  5291.       address: 0x0105
  5292.       unit_of_measurement: "Hz"
  5293.       #icon: "mdi:fan-speed-1"
  5294.       id: freq_of_heat_r05
  5295.       value_type: U_WORD
  5296.       min_value: 30
  5297.       max_value: 120
  5298.       #lambda: "return x * 0.5;"
  5299.       #write_lambda: "return x / 0.5;"
  5300.       step: 1
  5301.       mode: box
  5302.       entity_category: config
  5303.       skip_updates: 10
  5304.  
  5305.     - platform: modbus_controller
  5306.       modbus_controller_id: sprsun_pc
  5307.       name: ${friendly_name} Freq of heat R06 [4, 9 °C)
  5308.       address: 0x0106
  5309.       unit_of_measurement: "Hz"
  5310.       #icon: "mdi:fan-speed-1"
  5311.       id: freq_of_heat_r06
  5312.       value_type: U_WORD
  5313.       min_value: 30
  5314.       max_value: 120
  5315.       #lambda: "return x * 0.5;"
  5316.       #write_lambda: "return x / 0.5;"
  5317.       step: 1
  5318.       mode: box
  5319.       entity_category: config
  5320.       skip_updates: 10
  5321.  
  5322.     - platform: modbus_controller
  5323.       modbus_controller_id: sprsun_pc
  5324.       name: ${friendly_name} Freq of heat R07 [-5, 4 °C)
  5325.       address: 0x0107
  5326.       unit_of_measurement: "Hz"
  5327.       #icon: "mdi:fan-speed-1"
  5328.       id: freq_of_heat_r07
  5329.       value_type: U_WORD
  5330.       min_value: 30
  5331.       max_value: 120
  5332.       #lambda: "return x * 0.5;"
  5333.       #write_lambda: "return x / 0.5;"
  5334.       step: 1
  5335.       mode: box
  5336.       entity_category: config
  5337.       skip_updates: 10
  5338.  
  5339.     - platform: modbus_controller
  5340.       modbus_controller_id: sprsun_pc
  5341.       name: ${friendly_name} Freq of heat R08 [-10, -5 °C)
  5342.       address: 0x0108
  5343.       unit_of_measurement: "Hz"
  5344.       #icon: "mdi:fan-speed-1"
  5345.       id: freq_of_heat_r08
  5346.       value_type: U_WORD
  5347.       min_value: 30
  5348.       max_value: 120
  5349.       #lambda: "return x * 0.5;"
  5350.       #write_lambda: "return x / 0.5;"
  5351.       step: 1
  5352.       mode: box
  5353.       entity_category: config
  5354.       skip_updates: 10
  5355.  
  5356.     - platform: modbus_controller
  5357.       modbus_controller_id: sprsun_pc
  5358.       name: ${friendly_name} Freq of heat R09 [-16, -10 °C)
  5359.       address: 0x0109
  5360.       unit_of_measurement: "Hz"
  5361.       #icon: "mdi:fan-speed-1"
  5362.       id: freq_of_heat_r09
  5363.       value_type: U_WORD
  5364.       min_value: 30
  5365.       max_value: 120
  5366.       #lambda: "return x * 0.5;"
  5367.       #write_lambda: "return x / 0.5;"
  5368.       step: 1
  5369.       mode: box
  5370.       entity_category: config
  5371.       skip_updates: 10
  5372.  
  5373.     - platform: modbus_controller
  5374.       modbus_controller_id: sprsun_pc
  5375.       name: ${friendly_name} Freq of heat R10 [-23, -16 °C)
  5376.       address: 0x010A
  5377.       unit_of_measurement: "Hz"
  5378.       #icon: "mdi:fan-speed-1"
  5379.       id: freq_of_heat_r10
  5380.       value_type: U_WORD
  5381.       min_value: 30
  5382.       max_value: 120
  5383.       #lambda: "return x * 0.5;"
  5384.       #write_lambda: "return x / 0.5;"
  5385.       step: 1
  5386.       mode: box
  5387.       entity_category: config
  5388.       skip_updates: 10
  5389.  
  5390.     - platform: modbus_controller
  5391.       modbus_controller_id: sprsun_pc
  5392.       name: ${friendly_name} Freq of heat R11 (T < -23 °C)
  5393.       address: 0x010B
  5394.       unit_of_measurement: "Hz"
  5395.       #icon: "mdi:fan-speed-1"
  5396.       id: freq_of_heat_r11
  5397.       value_type: U_WORD
  5398.       min_value: 30
  5399.       max_value: 120
  5400.       #lambda: "return x * 0.5;"
  5401.       #write_lambda: "return x / 0.5;"
  5402.       step: 1
  5403.       mode: box
  5404.       entity_category: config
  5405.       skip_updates: 10
  5406.  
  5407. ####################
  5408.  
  5409.     - platform: modbus_controller
  5410.       modbus_controller_id: sprsun_pc
  5411.       name: ${friendly_name} Freq of cool R12 (T >= 38 °C)
  5412.       address: 0x010C
  5413.       unit_of_measurement: "Hz"
  5414.       #icon: "mdi:fan-speed-1"
  5415.       id: freq_of_cool_r12
  5416.       value_type: U_WORD
  5417.       min_value: 30
  5418.       max_value: 120
  5419.       #lambda: "return x * 0.5;"
  5420.       #write_lambda: "return x / 0.5;"
  5421.       step: 1
  5422.       mode: box
  5423.       entity_category: config
  5424.       skip_updates: 10
  5425.  
  5426.     - platform: modbus_controller
  5427.       modbus_controller_id: sprsun_pc
  5428.       name: ${friendly_name} Freq of cool R13 [30, 38 °C)
  5429.       address: 0x010D
  5430.       unit_of_measurement: "Hz"
  5431.       #icon: "mdi:fan-speed-1"
  5432.       id: freq_of_cool_r13
  5433.       value_type: U_WORD
  5434.       min_value: 30
  5435.       max_value: 120
  5436.       #lambda: "return x * 0.5;"
  5437.       #write_lambda: "return x / 0.5;"
  5438.       step: 1
  5439.       mode: box
  5440.       entity_category: config
  5441.       skip_updates: 10
  5442.  
  5443.     - platform: modbus_controller
  5444.       modbus_controller_id: sprsun_pc
  5445.       name: ${friendly_name} Freq of cool R14 [25, 30 °C)
  5446.       address: 0x010E
  5447.       unit_of_measurement: "Hz"
  5448.       #icon: "mdi:fan-speed-1"
  5449.       id: freq_of_cool_r14
  5450.       value_type: U_WORD
  5451.       min_value: 30
  5452.       max_value: 120
  5453.       #lambda: "return x * 0.5;"
  5454.       #write_lambda: "return x / 0.5;"
  5455.       step: 1
  5456.       mode: box
  5457.       entity_category: config
  5458.       skip_updates: 10
  5459.  
  5460.     - platform: modbus_controller
  5461.       modbus_controller_id: sprsun_pc
  5462.       name: ${friendly_name} Freq of cool R15 (T < 25 °C)
  5463.       address: 0x010F
  5464.       unit_of_measurement: "Hz"
  5465.       #icon: "mdi:fan-speed-1"
  5466.       id: freq_of_cool_r15
  5467.       value_type: U_WORD
  5468.       min_value: 30
  5469.       max_value: 120
  5470.       #lambda: "return x * 0.5;"
  5471.       #write_lambda: "return x / 0.5;"
  5472.       step: 1
  5473.       mode: box
  5474.       entity_category: config
  5475.       skip_updates: 10
  5476.  
  5477. ##################################################
  5478.  
  5479.     - platform: modbus_controller
  5480.       modbus_controller_id: sprsun_pc
  5481.       name: ${friendly_name} Freq adj lower limit R21
  5482.       address: 0x0110
  5483.       unit_of_measurement: "Hz"
  5484.       #icon: "mdi:fan-speed-1"
  5485.       id: freq_adj_lower_limit_r21
  5486.       value_type: U_WORD
  5487.       min_value: 0
  5488.       max_value: 125
  5489.       #lambda: "return x * 0.5;"
  5490.       #write_lambda: "return x / 0.5;"
  5491.       step: 1
  5492.       mode: box
  5493.       entity_category: config
  5494.       skip_updates: 10
  5495.  
  5496.     - platform: modbus_controller
  5497.       modbus_controller_id: sprsun_pc
  5498.       name: ${friendly_name} Freq adj lower limit R22
  5499.       address: 0x0111
  5500.       unit_of_measurement: "Hz"
  5501.       #icon: "mdi:fan-speed-1"
  5502.       id: freq_adj_lower_limit_r22
  5503.       value_type: U_WORD
  5504.       min_value: 0
  5505.       max_value: 125
  5506.       #lambda: "return x * 0.5;"
  5507.       #write_lambda: "return x / 0.5;"
  5508.       step: 1
  5509.       mode: box
  5510.       entity_category: config
  5511.       skip_updates: 10
  5512.  
  5513.     - platform: modbus_controller
  5514.       modbus_controller_id: sprsun_pc
  5515.       name: ${friendly_name} Freq adj lower limit R23
  5516.       address: 0x0112
  5517.       unit_of_measurement: "Hz"
  5518.       #icon: "mdi:fan-speed-1"
  5519.       id: freq_adj_lower_limit_r23
  5520.       value_type: U_WORD
  5521.       min_value: 0
  5522.       max_value: 125
  5523.       #lambda: "return x * 0.5;"
  5524.       #write_lambda: "return x / 0.5;"
  5525.       step: 1
  5526.       mode: box
  5527.       entity_category: config
  5528.       skip_updates: 10
  5529.  
  5530.     - platform: modbus_controller
  5531.       modbus_controller_id: sprsun_pc
  5532.       name: ${friendly_name} Freq adj lower limit R24
  5533.       address: 0x0113
  5534.       unit_of_measurement: "Hz"
  5535.       #icon: "mdi:fan-speed-1"
  5536.       id: freq_adj_lower_limit_r24
  5537.       value_type: U_WORD
  5538.       min_value: 0
  5539.       max_value: 125
  5540.       #lambda: "return x * 0.5;"
  5541.       #write_lambda: "return x / 0.5;"
  5542.       step: 1
  5543.       mode: box
  5544.       entity_category: config
  5545.       skip_updates: 10
  5546.  
  5547.     - platform: modbus_controller
  5548.       modbus_controller_id: sprsun_pc
  5549.       name: ${friendly_name} Freq adj upper limit R25
  5550.       address: 0x0114
  5551.       unit_of_measurement: "Hz"
  5552.       #icon: "mdi:fan-speed-1"
  5553.       id: freq_adj_upper_limit_r25
  5554.       value_type: U_WORD
  5555.       min_value: 0
  5556.       max_value: 125
  5557.       #lambda: "return x * 0.5;"
  5558.       #write_lambda: "return x / 0.5;"
  5559.       step: 1
  5560.       mode: box
  5561.       entity_category: config
  5562.       skip_updates: 10
  5563.  
  5564.     - platform: modbus_controller
  5565.       modbus_controller_id: sprsun_pc
  5566.       name: ${friendly_name} Freq adj upper limit R26
  5567.       address: 0x0115
  5568.       unit_of_measurement: "Hz"
  5569.       #icon: "mdi:fan-speed-1"
  5570.       id: freq_adj_upper_limit_r26
  5571.       value_type: U_WORD
  5572.       min_value: 0
  5573.       max_value: 125
  5574.       #lambda: "return x * 0.5;"
  5575.       #write_lambda: "return x / 0.5;"
  5576.       step: 1
  5577.       mode: box
  5578.       entity_category: config
  5579.       skip_updates: 10
  5580.  
  5581.     - platform: modbus_controller
  5582.       modbus_controller_id: sprsun_pc
  5583.       name: ${friendly_name} Freq adj upper limit R27
  5584.       address: 0x0116
  5585.       unit_of_measurement: "Hz"
  5586.       #icon: "mdi:fan-speed-1"
  5587.       id: freq_adj_upper_limit_r27
  5588.       value_type: U_WORD
  5589.       min_value: 0
  5590.       max_value: 125
  5591.       #lambda: "return x * 0.5;"
  5592.       #write_lambda: "return x / 0.5;"
  5593.       step: 1
  5594.       mode: box
  5595.       entity_category: config
  5596.       skip_updates: 10
  5597.  
  5598.     - platform: modbus_controller
  5599.       modbus_controller_id: sprsun_pc
  5600.       name: ${friendly_name} Freq adj upper limit R28
  5601.       address: 0x0117
  5602.       unit_of_measurement: "Hz"
  5603.       #icon: "mdi:fan-speed-1"
  5604.       id: freq_adj_upper_limit_r28
  5605.       value_type: U_WORD
  5606.       min_value: 0
  5607.       max_value: 125
  5608.       #lambda: "return x * 0.5;"
  5609.       #write_lambda: "return x / 0.5;"
  5610.       step: 1
  5611.       mode: box
  5612.       entity_category: config
  5613.       skip_updates: 10
  5614. ############################################
  5615.  
  5616. ###Timeband 1 czas
  5617.     - platform: modbus_controller
  5618.       modbus_controller_id: sprsun_pc
  5619.       name: ${friendly_name} Timeband 1 ON hour
  5620.       address: 0x0119
  5621.       unit_of_measurement: "H"
  5622.       #icon: "mdi:fan-speed-1"
  5623.       id: timeband_1_on_hour
  5624.       value_type: U_WORD
  5625.       min_value: 0
  5626.       max_value: 23
  5627.       #lambda: "return x * 0.5;"S
  5628.       #write_lambda: "return x / 0.5;"
  5629.       step: 1
  5630.       mode: box
  5631.       entity_category: config
  5632.       skip_updates: 10      
  5633.  
  5634.     - platform: modbus_controller
  5635.       modbus_controller_id: sprsun_pc
  5636.       name: ${friendly_name} Timeband 1 ON minutes
  5637.       address: 0x011A
  5638.       unit_of_measurement: "M"
  5639.       #icon: "mdi:fan-speed-1"
  5640.       id: timeband_1_on_minutes
  5641.       value_type: U_WORD
  5642.       min_value: 0
  5643.       max_value: 59
  5644.       #lambda: "return x * 0.5;"
  5645.       #write_lambda: "return x / 0.5;"
  5646.       step: 1
  5647.       mode: box
  5648.       entity_category: config
  5649.       skip_updates: 10
  5650.  
  5651.     - platform: modbus_controller
  5652.       modbus_controller_id: sprsun_pc
  5653.       name: ${friendly_name} Timeband 1 OFF hour
  5654.       address: 0x011B
  5655.       unit_of_measurement: "H"
  5656.       #icon: "mdi:fan-speed-1"
  5657.       id: timeband_1_off_hour
  5658.       value_type: U_WORD
  5659.       min_value: 0
  5660.       max_value: 23
  5661.       #lambda: "return x * 0.5;"
  5662.       #write_lambda: "return x / 0.5;"
  5663.       step: 1
  5664.       mode: box
  5665.       entity_category: config
  5666.       skip_updates: 10
  5667.  
  5668.     - platform: modbus_controller
  5669.       modbus_controller_id: sprsun_pc
  5670.       name: ${friendly_name} Timeband 1 OFF minutes
  5671.       address: 0x011C
  5672.       unit_of_measurement: "M"
  5673.       #icon: "mdi:fan-speed-1"
  5674.       id: timeband_1_off_minutes
  5675.       value_type: U_WORD
  5676.       min_value: 0
  5677.       max_value: 59
  5678.       #lambda: "return x * 0.5;"
  5679.       #write_lambda: "return x / 0.5;"
  5680.       step: 1
  5681.       mode: box
  5682.       entity_category: config
  5683.       skip_updates: 10
  5684.  
  5685.  
  5686. ###Timeband 2 czas
  5687.     - platform: modbus_controller
  5688.       modbus_controller_id: sprsun_pc
  5689.       name: ${friendly_name} Timeband 2 ON hour
  5690.       address: 0x011D
  5691.       unit_of_measurement: "H"
  5692.       #icon: "mdi:fan-speed-1"
  5693.       id: timeband_2_on_hour
  5694.       value_type: U_WORD
  5695.       min_value: 0
  5696.       max_value: 23
  5697.       #lambda: "return x * 0.5;"S
  5698.       #write_lambda: "return x / 0.5;"
  5699.       step: 1
  5700.       mode: box
  5701.       entity_category: config
  5702.       skip_updates: 10
  5703.  
  5704.     - platform: modbus_controller
  5705.       modbus_controller_id: sprsun_pc
  5706.       name: ${friendly_name} Timeband 2 ON minutes
  5707.       address: 0x011E
  5708.       unit_of_measurement: "M"
  5709.       #icon: "mdi:fan-speed-1"
  5710.       id: timeband_2_on_minutes
  5711.       value_type: U_WORD
  5712.       min_value: 0
  5713.       max_value: 59
  5714.       #lambda: "return x * 0.5;"
  5715.       #write_lambda: "return x / 0.5;"
  5716.       step: 1
  5717.       mode: box
  5718.       entity_category: config
  5719.       skip_updates: 10
  5720.  
  5721.     - platform: modbus_controller
  5722.       modbus_controller_id: sprsun_pc
  5723.       name: ${friendly_name} Timeband 2 OFF hour
  5724.       address: 0x011F
  5725.       unit_of_measurement: "H"
  5726.       #icon: "mdi:fan-speed-1"
  5727.       id: timeband_2_off_hour
  5728.       value_type: U_WORD
  5729.       min_value: 0
  5730.       max_value: 23
  5731.       #lambda: "return x * 0.5;"
  5732.       #write_lambda: "return x / 0.5;"
  5733.       step: 1
  5734.       mode: box
  5735.       entity_category: config
  5736.       skip_updates: 10
  5737.  
  5738.     - platform: modbus_controller
  5739.       modbus_controller_id: sprsun_pc
  5740.       name: ${friendly_name} Timeband 2 OFF minutes
  5741.       address: 0x0120
  5742.       unit_of_measurement: "M"
  5743.       #icon: "mdi:fan-speed-1"
  5744.       id: timeband_2_off_minutes
  5745.       value_type: U_WORD
  5746.       min_value: 0
  5747.       max_value: 59
  5748.       #lambda: "return x * 0.5;"
  5749.       #write_lambda: "return x / 0.5;"
  5750.       step: 1
  5751.       mode: box
  5752.       entity_category: config
  5753.       skip_updates: 10
  5754.  
  5755.  
  5756. ###Timeband 3 czas
  5757.     - platform: modbus_controller
  5758.       modbus_controller_id: sprsun_pc
  5759.       name: ${friendly_name} Timeband 3 ON hour
  5760.       address: 0x0121
  5761.       unit_of_measurement: "H"
  5762.       #icon: "mdi:fan-speed-1"
  5763.       id: timeband_3_on_hour
  5764.       value_type: U_WORD
  5765.       min_value: 0
  5766.       max_value: 23
  5767.       #lambda: "return x * 0.5;"S
  5768.       #write_lambda: "return x / 0.5;"
  5769.       step: 1
  5770.       mode: box
  5771.       entity_category: config
  5772.       skip_updates: 10
  5773.  
  5774.     - platform: modbus_controller
  5775.       modbus_controller_id: sprsun_pc
  5776.       name: ${friendly_name} Timeband 3 ON minutes
  5777.       address: 0x0122
  5778.       unit_of_measurement: "M"
  5779.       #icon: "mdi:fan-speed-1"
  5780.       id: timeband_3_on_minutes
  5781.       value_type: U_WORD
  5782.       min_value: 0
  5783.       max_value: 59
  5784.       #lambda: "return x * 0.5;"
  5785.       #write_lambda: "return x / 0.5;"
  5786.       step: 1
  5787.       mode: box
  5788.       entity_category: config
  5789.       skip_updates: 10
  5790.  
  5791.     - platform: modbus_controller
  5792.       modbus_controller_id: sprsun_pc
  5793.       name: ${friendly_name} Timeband 3 OFF hour
  5794.       address: 0x0123
  5795.       unit_of_measurement: "H"
  5796.       #icon: "mdi:fan-speed-1"
  5797.       id: timeband_3_off_hour
  5798.       value_type: U_WORD
  5799.       min_value: 0
  5800.       max_value: 23
  5801.       #lambda: "return x * 0.5;"
  5802.       #write_lambda: "return x / 0.5;"
  5803.       step: 1
  5804.       mode: box
  5805.       entity_category: config
  5806.       skip_updates: 10
  5807.  
  5808.     - platform: modbus_controller
  5809.       modbus_controller_id: sprsun_pc
  5810.       name: ${friendly_name} Timeband 3 OFF minutes
  5811.       address: 0x0124
  5812.       unit_of_measurement: "M"
  5813.       #icon: "mdi:fan-speed-1"
  5814.       id: timeband_3_off_minutes
  5815.       value_type: U_WORD
  5816.       min_value: 0
  5817.       max_value: 59
  5818.       #lambda: "return x * 0.5;"
  5819.       #write_lambda: "return x / 0.5;"
  5820.       step: 1
  5821.       mode: box
  5822.       entity_category: config
  5823.       skip_updates: 10
  5824.      
  5825. #################################################################
  5826.  
  5827. #Częstotliwość w trybie ECO dla CWU
  5828.     - platform: modbus_controller
  5829.       modbus_controller_id: sprsun_pc
  5830.       name: ${friendly_name} ECO freq of water R34
  5831.       address: 0x012D
  5832.       unit_of_measurement: "Hz"
  5833.       #icon: "mdi:fan-speed-1"
  5834.       id: eco_freq_of_water_r34
  5835.       value_type: U_WORD
  5836.       min_value: 30
  5837.       max_value: 120
  5838.       #lambda: "return x * 0.5;"
  5839.       #write_lambda: "return x / 0.5;"
  5840.       step: 1
  5841.       mode: box
  5842.       entity_category: config
  5843.       skip_updates: 10
  5844.  
  5845.     - platform: modbus_controller
  5846.       modbus_controller_id: sprsun_pc
  5847.       name: ${friendly_name} ECO freq of water R35
  5848.       address: 0x012E
  5849.       unit_of_measurement: "Hz"
  5850.       #icon: "mdi:fan-speed-1"
  5851.       id: eco_freq_of_water_r35
  5852.       value_type: U_WORD
  5853.       min_value: 30
  5854.       max_value: 120
  5855.       #lambda: "return x * 0.5;"
  5856.       #write_lambda: "return x / 0.5;"
  5857.       step: 1
  5858.       mode: box
  5859.       entity_category: config
  5860.       skip_updates: 10
  5861.  
  5862.     - platform: modbus_controller
  5863.       modbus_controller_id: sprsun_pc
  5864.       name: ${friendly_name} ECO freq of water R36
  5865.       address: 0x012F
  5866.       unit_of_measurement: "Hz"
  5867.       #icon: "mdi:fan-speed-1"
  5868.       id: eco_freq_of_water_r36
  5869.       value_type: U_WORD
  5870.       min_value: 30
  5871.       max_value: 120
  5872.       #lambda: "return x * 0.5;"
  5873.       #write_lambda: "return x / 0.5;"
  5874.       step: 1
  5875.       mode: box
  5876.       entity_category: config
  5877.       skip_updates: 10
  5878.  
  5879.     - platform: modbus_controller
  5880.       modbus_controller_id: sprsun_pc
  5881.       name: ${friendly_name} ECO freq of water R37
  5882.       address: 0x0130
  5883.       unit_of_measurement: "Hz"
  5884.       #icon: "mdi:fan-speed-1"
  5885.       id: eco_freq_of_water_r37
  5886.       value_type: U_WORD
  5887.       min_value: 30
  5888.       max_value: 120
  5889.       #lambda: "return x * 0.5;"
  5890.       #write_lambda: "return x / 0.5;"
  5891.       step: 1
  5892.       mode: box
  5893.       entity_category: config
  5894.       skip_updates: 10
  5895.  
  5896.     - platform: modbus_controller
  5897.       modbus_controller_id: sprsun_pc
  5898.       name: ${friendly_name} ECO freq of water R38
  5899.       address: 0x0131
  5900.       unit_of_measurement: "Hz"
  5901.       #icon: "mdi:fan-speed-1"
  5902.       id: eco_freq_of_water_r38
  5903.       value_type: U_WORD
  5904.       min_value: 30
  5905.       max_value: 120
  5906.       #lambda: "return x * 0.5;"
  5907.       #write_lambda: "return x / 0.5;"
  5908.       step: 1
  5909.       mode: box
  5910.       entity_category: config
  5911.       skip_updates: 10
  5912.  
  5913.     - platform: modbus_controller
  5914.       modbus_controller_id: sprsun_pc
  5915.       name: ${friendly_name} ECO freq of water R39
  5916.       address: 0x0132
  5917.       unit_of_measurement: "Hz"
  5918.       #icon: "mdi:fan-speed-1"
  5919.       id: eco_freq_of_water_r39
  5920.       value_type: U_WORD
  5921.       min_value: 30
  5922.       max_value: 120
  5923.       #lambda: "return x * 0.5;"
  5924.       #write_lambda: "return x / 0.5;"
  5925.       step: 1
  5926.       mode: box
  5927.       entity_category: config
  5928.       skip_updates: 10
  5929.  
  5930.     - platform: modbus_controller
  5931.       modbus_controller_id: sprsun_pc
  5932.       name: ${friendly_name} ECO freq of water R40
  5933.       address: 0x0133
  5934.       unit_of_measurement: "Hz"
  5935.       #icon: "mdi:fan-speed-1"
  5936.       id: eco_freq_of_water_r40
  5937.       value_type: U_WORD
  5938.       min_value: 30
  5939.       max_value: 120
  5940.       #lambda: "return x * 0.5;"
  5941.       #write_lambda: "return x / 0.5;"
  5942.       step: 1
  5943.       mode: box
  5944.       entity_category: config
  5945.       skip_updates: 10
  5946.  
  5947.     - platform: modbus_controller
  5948.       modbus_controller_id: sprsun_pc
  5949.       name: ${friendly_name} ECO freq of water R41
  5950.       address: 0x0134
  5951.       unit_of_measurement: "Hz"
  5952.       #icon: "mdi:fan-speed-1"
  5953.       id: eco_freq_of_water_r41
  5954.       value_type: U_WORD
  5955.       min_value: 30
  5956.       max_value: 120
  5957.       #lambda: "return x * 0.5;"
  5958.       #write_lambda: "return x / 0.5;"
  5959.       step: 1
  5960.       mode: box
  5961.       entity_category: config
  5962.       skip_updates: 10
  5963.  
  5964. #################################################################
  5965.  
  5966. #Częstotliwość w trybie ECO dla CO
  5967.     - platform: modbus_controller
  5968.       modbus_controller_id: sprsun_pc
  5969.       name: ${friendly_name} ECO freq of heat R42
  5970.       address: 0x0135
  5971.       unit_of_measurement: "Hz"
  5972.       #icon: "mdi:fan-speed-1"
  5973.       id: eco_freq_of_heat_r42
  5974.       value_type: U_WORD
  5975.       min_value: 30
  5976.       max_value: 120
  5977.       #lambda: "return x * 0.5;"
  5978.       #write_lambda: "return x / 0.5;"
  5979.       step: 1
  5980.       mode: box
  5981.       entity_category: config
  5982.       skip_updates: 10
  5983.  
  5984.     - platform: modbus_controller
  5985.       modbus_controller_id: sprsun_pc
  5986.       name: ${friendly_name} ECO freq of heat R43
  5987.       address: 0x0136
  5988.       unit_of_measurement: "Hz"
  5989.       #icon: "mdi:fan-speed-1"
  5990.       id: eco_freq_of_heat_r43
  5991.       value_type: U_WORD
  5992.       min_value: 30
  5993.       max_value: 120
  5994.       #lambda: "return x * 0.5;"
  5995.       #write_lambda: "return x / 0.5;"
  5996.       step: 1
  5997.       mode: box
  5998.       entity_category: config
  5999.       skip_updates: 10
  6000.  
  6001.     - platform: modbus_controller
  6002.       modbus_controller_id: sprsun_pc
  6003.       name: ${friendly_name} ECO freq of heat R44
  6004.       address: 0x0137
  6005.       unit_of_measurement: "Hz"
  6006.       #icon: "mdi:fan-speed-1"
  6007.       id: eco_freq_of_heat_r44
  6008.       value_type: U_WORD
  6009.       min_value: 30
  6010.       max_value: 120
  6011.       #lambda: "return x * 0.5;"
  6012.       #write_lambda: "return x / 0.5;"
  6013.       step: 1
  6014.       mode: box
  6015.       entity_category: config
  6016.       skip_updates: 10
  6017.  
  6018.     - platform: modbus_controller
  6019.       modbus_controller_id: sprsun_pc
  6020.       name: ${friendly_name} ECO freq of heat R45
  6021.       address: 0x0138
  6022.       unit_of_measurement: "Hz"
  6023.       #icon: "mdi:fan-speed-1"
  6024.       id: eco_freq_of_heat_r45
  6025.       value_type: U_WORD
  6026.       min_value: 30
  6027.       max_value: 120
  6028.       #lambda: "return x * 0.5;"
  6029.       #write_lambda: "return x / 0.5;"
  6030.       step: 1
  6031.       mode: box
  6032.       entity_category: config
  6033.       skip_updates: 10
  6034.  
  6035.     - platform: modbus_controller
  6036.       modbus_controller_id: sprsun_pc
  6037.       name: ${friendly_name} ECO freq of heat R46
  6038.       address: 0x0139
  6039.       unit_of_measurement: "Hz"
  6040.       #icon: "mdi:fan-speed-1"
  6041.       id: eco_freq_of_heat_r46
  6042.       value_type: U_WORD
  6043.       min_value: 30
  6044.       max_value: 120
  6045.       #lambda: "return x * 0.5;"
  6046.       #write_lambda: "return x / 0.5;"
  6047.       step: 1
  6048.       mode: box
  6049.       entity_category: config
  6050.       skip_updates: 10
  6051.  
  6052.     - platform: modbus_controller
  6053.       modbus_controller_id: sprsun_pc
  6054.       name: ${friendly_name} ECO freq of heat R47
  6055.       address: 0x013A
  6056.       unit_of_measurement: "Hz"
  6057.       #icon: "mdi:fan-speed-1"
  6058.       id: eco_freq_of_heat_r47
  6059.       value_type: U_WORD
  6060.       min_value: 30
  6061.       max_value: 120
  6062.       #lambda: "return x * 0.5;"
  6063.       #write_lambda: "return x / 0.5;"
  6064.       step: 1
  6065.       mode: box
  6066.       entity_category: config
  6067.       skip_updates: 10
  6068.  
  6069.     - platform: modbus_controller
  6070.       modbus_controller_id: sprsun_pc
  6071.       name: ${friendly_name} ECO freq of heat R48
  6072.       address: 0x013B
  6073.       unit_of_measurement: "Hz"
  6074.       #icon: "mdi:fan-speed-1"
  6075.       id: eco_freq_of_heat_r48
  6076.       value_type: U_WORD
  6077.       min_value: 30
  6078.       max_value: 120
  6079.       #lambda: "return x * 0.5;"
  6080.       #write_lambda: "return x / 0.5;"
  6081.       step: 1
  6082.       mode: box
  6083.       entity_category: config
  6084.       skip_updates: 10
  6085.  
  6086.     - platform: modbus_controller
  6087.       modbus_controller_id: sprsun_pc
  6088.       name: ${friendly_name} ECO freq of heat R49
  6089.       address: 0x013C
  6090.       unit_of_measurement: "Hz"
  6091.       #icon: "mdi:fan-speed-1"
  6092.       id: eco_freq_of_heat_r49
  6093.       value_type: U_WORD
  6094.       min_value: 30
  6095.       max_value: 120
  6096.       #lambda: "return x * 0.5;"
  6097.       #write_lambda: "return x / 0.5;"
  6098.       step: 1
  6099.       mode: box
  6100.       entity_category: config
  6101.       skip_updates: 10
  6102.  
  6103.  
  6104. #################################################################
  6105.  
  6106. #Częstotliwość w trybie ECO dla chłodzenia
  6107.     - platform: modbus_controller
  6108.       modbus_controller_id: sprsun_pc
  6109.       name: ${friendly_name} ECO freq of cool R50
  6110.       address: 0x013D
  6111.       unit_of_measurement: "Hz"
  6112.       #icon: "mdi:fan-speed-1"
  6113.       id: eco_freq_of_cool_r50
  6114.       value_type: U_WORD
  6115.       min_value: 30
  6116.       max_value: 120
  6117.       #lambda: "return x * 0.5;"
  6118.       #write_lambda: "return x / 0.5;"
  6119.       step: 1
  6120.       mode: box
  6121.       entity_category: config
  6122.       skip_updates: 10
  6123.  
  6124.     - platform: modbus_controller
  6125.       modbus_controller_id: sprsun_pc
  6126.       name: ${friendly_name} ECO freq of cool R51
  6127.       address: 0x013E
  6128.       unit_of_measurement: "Hz"
  6129.       #icon: "mdi:fan-speed-1"
  6130.       id: eco_freq_of_cool_r51
  6131.       value_type: U_WORD
  6132.       min_value: 30
  6133.       max_value: 120
  6134.       #lambda: "return x * 0.5;"
  6135.       #write_lambda: "return x / 0.5;"
  6136.       step: 1
  6137.       mode: box
  6138.       entity_category: config
  6139.       skip_updates: 10
  6140.  
  6141.     - platform: modbus_controller
  6142.       modbus_controller_id: sprsun_pc
  6143.       name: ${friendly_name} ECO freq of cool R52
  6144.       address: 0x013F
  6145.       unit_of_measurement: "Hz"
  6146.       #icon: "mdi:fan-speed-1"
  6147.       id: eco_freq_of_cool_r52
  6148.       value_type: U_WORD
  6149.       min_value: 30
  6150.       max_value: 120
  6151.       #lambda: "return x * 0.5;"
  6152.       #write_lambda: "return x / 0.5;"
  6153.       step: 1
  6154.       mode: box
  6155.       entity_category: config
  6156.       skip_updates: 10
  6157.  
  6158.     - platform: modbus_controller
  6159.       modbus_controller_id: sprsun_pc
  6160.       name: ${friendly_name} ECO freq of cool R53
  6161.       address: 0x0140
  6162.       unit_of_measurement: "Hz"
  6163.       #icon: "mdi:fan-speed-1"
  6164.       id: eco_freq_of_cool_r53
  6165.       value_type: U_WORD
  6166.       min_value: 30
  6167.       max_value: 120
  6168.       #lambda: "return x * 0.5;"
  6169.       #write_lambda: "return x / 0.5;"
  6170.       step: 1
  6171.       mode: box
  6172.       entity_category: config
  6173.       skip_updates: 10
  6174.  
  6175. #################################################################
  6176.  
  6177. #Częstotliwość w trybie nocnym dla CWU
  6178.     - platform: modbus_controller
  6179.       modbus_controller_id: sprsun_pc
  6180.       name: ${friendly_name} Night freq of water R54
  6181.       address: 0x0141
  6182.       unit_of_measurement: "Hz"
  6183.       #icon: "mdi:fan-speed-1"
  6184.       id: night_freq_of_water_r54
  6185.       value_type: U_WORD
  6186.       min_value: 30
  6187.       max_value: 120
  6188.       #lambda: "return x * 0.5;"
  6189.       #write_lambda: "return x / 0.5;"
  6190.       step: 1
  6191.       mode: box
  6192.       entity_category: config
  6193.       skip_updates: 10
  6194.  
  6195.     - platform: modbus_controller
  6196.       modbus_controller_id: sprsun_pc
  6197.       name: ${friendly_name} Night freq of water R55
  6198.       address: 0x0142
  6199.       unit_of_measurement: "Hz"
  6200.       #icon: "mdi:fan-speed-1"
  6201.       id: night_freq_of_water_r55
  6202.       value_type: U_WORD
  6203.       min_value: 30
  6204.       max_value: 120
  6205.       #lambda: "return x * 0.5;"
  6206.       #write_lambda: "return x / 0.5;"
  6207.       step: 1
  6208.       mode: box
  6209.       entity_category: config
  6210.       skip_updates: 10
  6211.  
  6212.     - platform: modbus_controller
  6213.       modbus_controller_id: sprsun_pc
  6214.       name: ${friendly_name} Night freq of water R56
  6215.       address: 0x0143
  6216.       unit_of_measurement: "Hz"
  6217.       #icon: "mdi:fan-speed-1"
  6218.       id: night_freq_of_water_r56
  6219.       value_type: U_WORD
  6220.       min_value: 30
  6221.       max_value: 120
  6222.       #lambda: "return x * 0.5;"
  6223.       #write_lambda: "return x / 0.5;"
  6224.       step: 1
  6225.       mode: box
  6226.       entity_category: config
  6227.       skip_updates: 10
  6228.  
  6229.     - platform: modbus_controller
  6230.       modbus_controller_id: sprsun_pc
  6231.       name: ${friendly_name} Night freq of water R57
  6232.       address: 0x0144
  6233.       unit_of_measurement: "Hz"
  6234.       #icon: "mdi:fan-speed-1"
  6235.       id: night_freq_of_water_r57
  6236.       value_type: U_WORD
  6237.       min_value: 30
  6238.       max_value: 120
  6239.       #lambda: "return x * 0.5;"
  6240.       #write_lambda: "return x / 0.5;"
  6241.       step: 1
  6242.       mode: box
  6243.       entity_category: config
  6244.       skip_updates: 10
  6245.  
  6246.     - platform: modbus_controller
  6247.       modbus_controller_id: sprsun_pc
  6248.       name: ${friendly_name} Night freq of water R58
  6249.       address: 0x0145
  6250.       unit_of_measurement: "Hz"
  6251.       #icon: "mdi:fan-speed-1"
  6252.       id: night_freq_of_water_r58
  6253.       value_type: U_WORD
  6254.       min_value: 30
  6255.       max_value: 120
  6256.       #lambda: "return x * 0.5;"
  6257.       #write_lambda: "return x / 0.5;"
  6258.       step: 1
  6259.       mode: box
  6260.       entity_category: config
  6261.       skip_updates: 10
  6262.  
  6263.     - platform: modbus_controller
  6264.       modbus_controller_id: sprsun_pc
  6265.       name: ${friendly_name} Night freq of water R59
  6266.       address: 0x0146
  6267.       unit_of_measurement: "Hz"
  6268.       #icon: "mdi:fan-speed-1"
  6269.       id: night_freq_of_water_r59
  6270.       value_type: U_WORD
  6271.       min_value: 30
  6272.       max_value: 120
  6273.       #lambda: "return x * 0.5;"
  6274.       #write_lambda: "return x / 0.5;"
  6275.       step: 1
  6276.       mode: box
  6277.       entity_category: config
  6278.       skip_updates: 10
  6279.  
  6280.     - platform: modbus_controller
  6281.       modbus_controller_id: sprsun_pc
  6282.       name: ${friendly_name} Night freq of water R60
  6283.       address: 0x0147
  6284.       unit_of_measurement: "Hz"
  6285.       #icon: "mdi:fan-speed-1"
  6286.       id: night_freq_of_water_r60
  6287.       value_type: U_WORD
  6288.       min_value: 30
  6289.       max_value: 120
  6290.       #lambda: "return x * 0.5;"
  6291.       #write_lambda: "return x / 0.5;"
  6292.       step: 1
  6293.       mode: box
  6294.       entity_category: config
  6295.       skip_updates: 10
  6296.  
  6297.     - platform: modbus_controller
  6298.       modbus_controller_id: sprsun_pc
  6299.       name: ${friendly_name} Night freq of water R61
  6300.       address: 0x0148
  6301.       unit_of_measurement: "Hz"
  6302.       #icon: "mdi:fan-speed-1"
  6303.       id: night_freq_of_water_r61
  6304.       value_type: U_WORD
  6305.       min_value: 30
  6306.       max_value: 120
  6307.       #lambda: "return x * 0.5;"
  6308.       #write_lambda: "return x / 0.5;"
  6309.       step: 1
  6310.       mode: box
  6311.       entity_category: config
  6312.       skip_updates: 10
  6313.  
  6314. #################################################################
  6315.  
  6316. #Częstotliwość w trybie nocnym dla CO
  6317.     - platform: modbus_controller
  6318.       modbus_controller_id: sprsun_pc
  6319.       name: ${friendly_name} Night freq of heat R62
  6320.       address: 0x0149
  6321.       unit_of_measurement: "Hz"
  6322.       #icon: "mdi:fan-speed-1"
  6323.       id: night_freq_of_heat_r62
  6324.       value_type: U_WORD
  6325.       min_value: 30
  6326.       max_value: 120
  6327.       #lambda: "return x * 0.5;"
  6328.       #write_lambda: "return x / 0.5;"
  6329.       step: 1
  6330.       mode: box
  6331.       entity_category: config
  6332.       skip_updates: 10
  6333.  
  6334.     - platform: modbus_controller
  6335.       modbus_controller_id: sprsun_pc
  6336.       name: ${friendly_name} Night freq of heat R63
  6337.       address: 0x014A
  6338.       unit_of_measurement: "Hz"
  6339.       #icon: "mdi:fan-speed-1"
  6340.       id: night_freq_of_heat_r63
  6341.       value_type: U_WORD
  6342.       min_value: 30
  6343.       max_value: 120
  6344.       #lambda: "return x * 0.5;"
  6345.       #write_lambda: "return x / 0.5;"
  6346.       step: 1
  6347.       mode: box
  6348.       entity_category: config
  6349.       skip_updates: 10
  6350.  
  6351.     - platform: modbus_controller
  6352.       modbus_controller_id: sprsun_pc
  6353.       name: ${friendly_name} Night freq of heat R64
  6354.       address: 0x014B
  6355.       unit_of_measurement: "Hz"
  6356.       #icon: "mdi:fan-speed-1"
  6357.       id: night_freq_of_heat_r64
  6358.       value_type: U_WORD
  6359.       min_value: 30
  6360.       max_value: 120
  6361.       #lambda: "return x * 0.5;"
  6362.       #write_lambda: "return x / 0.5;"
  6363.       step: 1
  6364.       mode: box
  6365.       entity_category: config
  6366.       skip_updates: 10
  6367.  
  6368.     - platform: modbus_controller
  6369.       modbus_controller_id: sprsun_pc
  6370.       name: ${friendly_name} Night freq of heat R65
  6371.       address: 0x014C
  6372.       unit_of_measurement: "Hz"
  6373.       #icon: "mdi:fan-speed-1"
  6374.       id: night_freq_of_heat_r65
  6375.       value_type: U_WORD
  6376.       min_value: 30
  6377.       max_value: 120
  6378.       #lambda: "return x * 0.5;"
  6379.       #write_lambda: "return x / 0.5;"
  6380.       step: 1
  6381.       mode: box
  6382.       entity_category: config
  6383.       skip_updates: 10
  6384.  
  6385.     - platform: modbus_controller
  6386.       modbus_controller_id: sprsun_pc
  6387.       name: ${friendly_name} Night freq of heat R66
  6388.       address: 0x014D
  6389.       unit_of_measurement: "Hz"
  6390.       #icon: "mdi:fan-speed-1"
  6391.       id: night_freq_of_heat_r66
  6392.       value_type: U_WORD
  6393.       min_value: 30
  6394.       max_value: 120
  6395.       #lambda: "return x * 0.5;"
  6396.       #write_lambda: "return x / 0.5;"
  6397.       step: 1
  6398.       mode: box
  6399.       entity_category: config
  6400.       skip_updates: 10
  6401.  
  6402.     - platform: modbus_controller
  6403.       modbus_controller_id: sprsun_pc
  6404.       name: ${friendly_name} Night freq of heat R67
  6405.       address: 0x014E
  6406.       unit_of_measurement: "Hz"
  6407.       #icon: "mdi:fan-speed-1"
  6408.       id: night_freq_of_heat_r67
  6409.       value_type: U_WORD
  6410.       min_value: 30
  6411.       max_value: 120
  6412.       #lambda: "return x * 0.5;"
  6413.       #write_lambda: "return x / 0.5;"
  6414.       step: 1
  6415.       mode: box
  6416.       entity_category: config
  6417.       skip_updates: 10
  6418.  
  6419.     - platform: modbus_controller
  6420.       modbus_controller_id: sprsun_pc
  6421.       name: ${friendly_name} Night freq of heat R68
  6422.       address: 0x014F
  6423.       unit_of_measurement: "Hz"
  6424.       #icon: "mdi:fan-speed-1"
  6425.       id: night_freq_of_heat_r68
  6426.       value_type: U_WORD
  6427.       min_value: 30
  6428.       max_value: 120
  6429.       #lambda: "return x * 0.5;"
  6430.       #write_lambda: "return x / 0.5;"
  6431.       step: 1
  6432.       mode: box
  6433.       entity_category: config
  6434.       skip_updates: 10
  6435.  
  6436.     - platform: modbus_controller
  6437.       modbus_controller_id: sprsun_pc
  6438.       name: ${friendly_name} Night freq of heat R69
  6439.       address: 0x0150
  6440.       unit_of_measurement: "Hz"
  6441.       #icon: "mdi:fan-speed-1"
  6442.       id: night_freq_of_heat_r69
  6443.       value_type: U_WORD
  6444.       min_value: 30
  6445.       max_value: 120
  6446.       #lambda: "return x * 0.5;"
  6447.       #write_lambda: "return x / 0.5;"
  6448.       step: 1
  6449.       mode: box
  6450.       entity_category: config
  6451.       skip_updates: 10
  6452.  
  6453. #################################################################
  6454.  
  6455. #Częstotliwość w trybie nocnym dla chłodzenia
  6456.     - platform: modbus_controller
  6457.       modbus_controller_id: sprsun_pc
  6458.       name: ${friendly_name} Night freq of cool R70
  6459.       address: 0x0151
  6460.       unit_of_measurement: "Hz"
  6461.       #icon: "mdi:fan-speed-1"
  6462.       id: night_freq_of_cool_r70
  6463.       value_type: U_WORD
  6464.       min_value: 30
  6465.       max_value: 120
  6466.       #lambda: "return x * 0.5;"
  6467.       #write_lambda: "return x / 0.5;"
  6468.       step: 1
  6469.       mode: box
  6470.       entity_category: config
  6471.       skip_updates: 10
  6472.  
  6473.     - platform: modbus_controller
  6474.       modbus_controller_id: sprsun_pc
  6475.       name: ${friendly_name} Night freq of cool R71
  6476.       address: 0x0152
  6477.       unit_of_measurement: "Hz"
  6478.       #icon: "mdi:fan-speed-1"
  6479.       id: night_freq_of_cool_r71
  6480.       value_type: U_WORD
  6481.       min_value: 30
  6482.       max_value: 120
  6483.       #lambda: "return x * 0.5;"
  6484.       #write_lambda: "return x / 0.5;"
  6485.       step: 1
  6486.       mode: box
  6487.       entity_category: config
  6488.       skip_updates: 10
  6489.  
  6490.     - platform: modbus_controller
  6491.       modbus_controller_id: sprsun_pc
  6492.       name: ${friendly_name} Night freq of cool R72
  6493.       address: 0x0153
  6494.       unit_of_measurement: "Hz"
  6495.       #icon: "mdi:fan-speed-1"
  6496.       id: night_freq_of_cool_r72
  6497.       value_type: U_WORD
  6498.       min_value: 30
  6499.       max_value: 120
  6500.       #lambda: "return x * 0.5;"
  6501.       #write_lambda: "return x / 0.5;"
  6502.       step: 1
  6503.       mode: box
  6504.       entity_category: config
  6505.       skip_updates: 10
  6506.  
  6507.     - platform: modbus_controller
  6508.       modbus_controller_id: sprsun_pc
  6509.       name: ${friendly_name} Night freq of cool R73
  6510.       address: 0x0154
  6511.       unit_of_measurement: "Hz"
  6512.       #icon: "mdi:fan-speed-1"
  6513.       id: night_freq_of_cool_r73
  6514.       value_type: U_WORD
  6515.       min_value: 30
  6516.       max_value: 120
  6517.       #lambda: "return x * 0.5;"
  6518.       #write_lambda: "return x / 0.5;"
  6519.       step: 1
  6520.       mode: box
  6521.       entity_category: config
  6522.       skip_updates: 10
  6523.  
  6524. #################################################################
  6525.  
  6526. #Częstotliwość w trybie testowym dla CWU
  6527.     - platform: modbus_controller
  6528.       modbus_controller_id: sprsun_pc
  6529.       name: ${friendly_name} Test freq of water R74
  6530.       address: 0x0155
  6531.       unit_of_measurement: "Hz"
  6532.       #icon: "mdi:fan-speed-1"
  6533.       id: test_freq_of_water_r74
  6534.       value_type: U_WORD
  6535.       min_value: 30
  6536.       max_value: 120
  6537.       #lambda: "return x * 0.5;"
  6538.       #write_lambda: "return x / 0.5;"
  6539.       step: 1
  6540.       mode: box
  6541.       entity_category: config
  6542.       skip_updates: 10
  6543.  
  6544.     - platform: modbus_controller
  6545.       modbus_controller_id: sprsun_pc
  6546.       name: ${friendly_name} Test freq of water R75
  6547.       address: 0x0156
  6548.       unit_of_measurement: "Hz"
  6549.       #icon: "mdi:fan-speed-1"
  6550.       id: test_freq_of_water_r75
  6551.       value_type: U_WORD
  6552.       min_value: 30
  6553.       max_value: 120
  6554.       #lambda: "return x * 0.5;"
  6555.       #write_lambda: "return x / 0.5;"
  6556.       step: 1
  6557.       mode: box
  6558.       entity_category: config
  6559.       skip_updates: 10
  6560.  
  6561.     - platform: modbus_controller
  6562.       modbus_controller_id: sprsun_pc
  6563.       name: ${friendly_name} Test freq of water R76
  6564.       address: 0x0157
  6565.       unit_of_measurement: "Hz"
  6566.       #icon: "mdi:fan-speed-1"
  6567.       id: test_freq_of_water_r76
  6568.       value_type: U_WORD
  6569.       min_value: 30
  6570.       max_value: 120
  6571.       #lambda: "return x * 0.5;"
  6572.       #write_lambda: "return x / 0.5;"
  6573.       step: 1
  6574.       mode: box
  6575.       entity_category: config
  6576.       skip_updates: 10
  6577.  
  6578.     - platform: modbus_controller
  6579.       modbus_controller_id: sprsun_pc
  6580.       name: ${friendly_name} Test freq of water R77
  6581.       address: 0x0158
  6582.       unit_of_measurement: "Hz"
  6583.       #icon: "mdi:fan-speed-1"
  6584.       id: test_freq_of_water_r77
  6585.       value_type: U_WORD
  6586.       min_value: 30
  6587.       max_value: 120
  6588.       #lambda: "return x * 0.5;"
  6589.       #write_lambda: "return x / 0.5;"
  6590.       step: 1
  6591.       mode: box
  6592.       entity_category: config
  6593.       skip_updates: 10
  6594.  
  6595.     - platform: modbus_controller
  6596.       modbus_controller_id: sprsun_pc
  6597.       name: ${friendly_name} Test freq of water R78
  6598.       address: 0x0159
  6599.       unit_of_measurement: "Hz"
  6600.       #icon: "mdi:fan-speed-1"
  6601.       id: test_freq_of_water_r78
  6602.       value_type: U_WORD
  6603.       min_value: 30
  6604.       max_value: 120
  6605.       #lambda: "return x * 0.5;"
  6606.       #write_lambda: "return x / 0.5;"
  6607.       step: 1
  6608.       mode: box
  6609.       entity_category: config
  6610.       skip_updates: 10
  6611.  
  6612.     - platform: modbus_controller
  6613.       modbus_controller_id: sprsun_pc
  6614.       name: ${friendly_name} Test freq of water R79
  6615.       address: 0x015A
  6616.       unit_of_measurement: "Hz"
  6617.       #icon: "mdi:fan-speed-1"
  6618.       id: test_freq_of_water_r79
  6619.       value_type: U_WORD
  6620.       min_value: 30
  6621.       max_value: 120
  6622.       #lambda: "return x * 0.5;"
  6623.       #write_lambda: "return x / 0.5;"
  6624.       step: 1
  6625.       mode: box
  6626.       entity_category: config
  6627.       skip_updates: 10
  6628.  
  6629.     - platform: modbus_controller
  6630.       modbus_controller_id: sprsun_pc
  6631.       name: ${friendly_name} Test freq of water R80
  6632.       address: 0x015B
  6633.       unit_of_measurement: "Hz"
  6634.       #icon: "mdi:fan-speed-1"
  6635.       id: test_freq_of_water_r80
  6636.       value_type: U_WORD
  6637.       min_value: 30
  6638.       max_value: 120
  6639.       #lambda: "return x * 0.5;"
  6640.       #write_lambda: "return x / 0.5;"
  6641.       step: 1
  6642.       mode: box
  6643.       entity_category: config
  6644.       skip_updates: 10
  6645.  
  6646.     - platform: modbus_controller
  6647.       modbus_controller_id: sprsun_pc
  6648.       name: ${friendly_name} Test freq of water R81
  6649.       address: 0x015C
  6650.       unit_of_measurement: "Hz"
  6651.       #icon: "mdi:fan-speed-1"
  6652.       id: test_freq_of_water_r81
  6653.       value_type: U_WORD
  6654.       min_value: 30
  6655.       max_value: 120
  6656.       #lambda: "return x * 0.5;"
  6657.       #write_lambda: "return x / 0.5;"
  6658.       step: 1
  6659.       mode: box
  6660.       entity_category: config
  6661.       skip_updates: 10
  6662.  
  6663. #################################################################
  6664.  
  6665. #Częstotliwość w trybie testowym dla CO
  6666.     - platform: modbus_controller
  6667.       modbus_controller_id: sprsun_pc
  6668.       name: ${friendly_name} Test freq of heat R82
  6669.       address: 0x015D
  6670.       unit_of_measurement: "Hz"
  6671.       #icon: "mdi:fan-speed-1"
  6672.       id: test_freq_of_heat_r82
  6673.       value_type: U_WORD
  6674.       min_value: 30
  6675.       max_value: 120
  6676.       #lambda: "return x * 0.5;"
  6677.       #write_lambda: "return x / 0.5;"
  6678.       step: 1
  6679.       mode: box
  6680.       entity_category: config
  6681.       skip_updates: 10
  6682.  
  6683.     - platform: modbus_controller
  6684.       modbus_controller_id: sprsun_pc
  6685.       name: ${friendly_name} Test freq of heat R83
  6686.       address: 0x015E
  6687.       unit_of_measurement: "Hz"
  6688.       #icon: "mdi:fan-speed-1"
  6689.       id: test_freq_of_heat_r83
  6690.       value_type: U_WORD
  6691.       min_value: 30
  6692.       max_value: 120
  6693.       #lambda: "return x * 0.5;"
  6694.       #write_lambda: "return x / 0.5;"
  6695.       step: 1
  6696.       mode: box
  6697.       entity_category: config
  6698.       skip_updates: 10
  6699.  
  6700.     - platform: modbus_controller
  6701.       modbus_controller_id: sprsun_pc
  6702.       name: ${friendly_name} Test freq of heat R84
  6703.       address: 0x015F
  6704.       unit_of_measurement: "Hz"
  6705.       #icon: "mdi:fan-speed-1"
  6706.       id: test_freq_of_heat_r84
  6707.       value_type: U_WORD
  6708.       min_value: 30
  6709.       max_value: 120
  6710.       #lambda: "return x * 0.5;"
  6711.       #write_lambda: "return x / 0.5;"
  6712.       step: 1
  6713.       mode: box
  6714.       entity_category: config
  6715.       skip_updates: 10
  6716.  
  6717.     - platform: modbus_controller
  6718.       modbus_controller_id: sprsun_pc
  6719.       name: ${friendly_name} Test freq of heat R85
  6720.       address: 0x0160
  6721.       unit_of_measurement: "Hz"
  6722.       #icon: "mdi:fan-speed-1"
  6723.       id: test_freq_of_heat_r85
  6724.       value_type: U_WORD
  6725.       min_value: 30
  6726.       max_value: 120
  6727.       #lambda: "return x * 0.5;"
  6728.       #write_lambda: "return x / 0.5;"
  6729.       step: 1
  6730.       mode: box
  6731.       entity_category: config
  6732.       skip_updates: 10
  6733.  
  6734.     - platform: modbus_controller
  6735.       modbus_controller_id: sprsun_pc
  6736.       name: ${friendly_name} Test freq of heat R86
  6737.       address: 0x0161
  6738.       unit_of_measurement: "Hz"
  6739.       #icon: "mdi:fan-speed-1"
  6740.       id: test_freq_of_heat_r86
  6741.       value_type: U_WORD
  6742.       min_value: 30
  6743.       max_value: 120
  6744.       #lambda: "return x * 0.5;"
  6745.       #write_lambda: "return x / 0.5;"
  6746.       step: 1
  6747.       mode: box
  6748.       entity_category: config
  6749.       skip_updates: 10
  6750.  
  6751.     - platform: modbus_controller
  6752.       modbus_controller_id: sprsun_pc
  6753.       name: ${friendly_name} Test freq of heat R87
  6754.       address: 0x0162
  6755.       unit_of_measurement: "Hz"
  6756.       #icon: "mdi:fan-speed-1"
  6757.       id: test_freq_of_heat_r87
  6758.       value_type: U_WORD
  6759.       min_value: 30
  6760.       max_value: 120
  6761.       #lambda: "return x * 0.5;"
  6762.       #write_lambda: "return x / 0.5;"
  6763.       step: 1
  6764.       mode: box
  6765.       entity_category: config
  6766.       skip_updates: 10
  6767.  
  6768.     - platform: modbus_controller
  6769.       modbus_controller_id: sprsun_pc
  6770.       name: ${friendly_name} Test freq of heat R88
  6771.       address: 0x0163
  6772.       unit_of_measurement: "Hz"
  6773.       #icon: "mdi:fan-speed-1"
  6774.       id: test_freq_of_heat_r88
  6775.       value_type: U_WORD
  6776.       min_value: 30
  6777.       max_value: 120
  6778.       #lambda: "return x * 0.5;"
  6779.       #write_lambda: "return x / 0.5;"
  6780.       step: 1
  6781.       mode: box
  6782.       entity_category: config
  6783.       skip_updates: 10
  6784.  
  6785.     - platform: modbus_controller
  6786.       modbus_controller_id: sprsun_pc
  6787.       name: ${friendly_name} Test freq of heat R89
  6788.       address: 0x0164
  6789.       unit_of_measurement: "Hz"
  6790.       #icon: "mdi:fan-speed-1"
  6791.       id: test_freq_of_heat_r89
  6792.       value_type: U_WORD
  6793.       min_value: 30
  6794.       max_value: 120
  6795.       #lambda: "return x * 0.5;"
  6796.       #write_lambda: "return x / 0.5;"
  6797.       step: 1
  6798.       mode: box
  6799.       entity_category: config
  6800.       skip_updates: 10
  6801.  
  6802. #################################################################
  6803.  
  6804. #Częstotliwość w trybie testowym dla chłodzenia
  6805.     # - platform: modbus_controller
  6806.     #   modbus_controller_id: sprsun_pc
  6807.     #   name: ${friendly_name} Test freq of cool R90
  6808.     #   address: 0x0165
  6809.     #   unit_of_measurement: "Hz"
  6810.     #   #icon: "mdi:fan-speed-1"
  6811.     #   id: test_freq_of_cool_r90
  6812.     #   value_type: U_WORD
  6813.     #   min_value: 30
  6814.     #   max_value: 120
  6815.     #   #lambda: "return x * 0.5;"
  6816.     #   #write_lambda: "return x / 0.5;"
  6817.     #   step: 1
  6818.     #   mode: box
  6819.     #   entity_category: config
  6820.     #   skip_updates: 10
  6821.  
  6822.     # - platform: modbus_controller
  6823.     #   modbus_controller_id: sprsun_pc
  6824.     #   name: ${friendly_name} Test freq of cool R91
  6825.     #   address: 0x0166
  6826.     #   unit_of_measurement: "Hz"
  6827.     #   #icon: "mdi:fan-speed-1"
  6828.     #   id: test_freq_of_cool_r91
  6829.     #   value_type: U_WORD
  6830.     #   min_value: 30
  6831.     #   max_value: 120
  6832.     #   #lambda: "return x * 0.5;"
  6833.     #   #write_lambda: "return x / 0.5;"
  6834.     #   step: 1
  6835.     #   mode: box
  6836.     #   entity_category: config
  6837.     #   skip_updates: 10
  6838.  
  6839.     # - platform: modbus_controller
  6840.     #   modbus_controller_id: sprsun_pc
  6841.     #   name: ${friendly_name} Test freq of cool R92
  6842.     #   address: 0x0167
  6843.     #   unit_of_measurement: "Hz"
  6844.     #   #icon: "mdi:fan-speed-1"
  6845.     #   id: test_freq_of_cool_r92
  6846.     #   value_type: U_WORD
  6847.     #   min_value: 30
  6848.     #   max_value: 120
  6849.     #   #lambda: "return x * 0.5;"
  6850.     #   #write_lambda: "return x / 0.5;"
  6851.     #   step: 1
  6852.     #   mode: box
  6853.     #   entity_category: config
  6854.     #   skip_updates: 10
  6855.  
  6856.     # - platform: modbus_controller
  6857.     #   modbus_controller_id: sprsun_pc
  6858.     #   name: ${friendly_name} Test freq of cool R93
  6859.     #   address: 0x0168
  6860.     #   unit_of_measurement: "Hz"
  6861.     #   #icon: "mdi:fan-speed-1"
  6862.     #   id: test_freq_of_cool_r93
  6863.     #   value_type: U_WORD
  6864.     #   min_value: 30
  6865.     #   max_value: 120
  6866.     #   #lambda: "return x * 0.5;"
  6867.     #   #write_lambda: "return x / 0.5;"
  6868.     #   step: 1
  6869.     #   mode: box
  6870.     #   entity_category: config
  6871.     #   skip_updates: 10
  6872.  
  6873. #################################################################
  6874.  
  6875. #Temperatura zewnętrzna w trybie ECO dla CO
  6876.     - platform: modbus_controller
  6877.       modbus_controller_id: sprsun_pc
  6878.       name: ${friendly_name} E01 Economic heat ambi 1
  6879.       address: 0x0169
  6880.       unit_of_measurement: "°C"
  6881.       #icon: "mdi:fan-speed-1"
  6882.       id: e01_economic_heat_ambi_1
  6883.       value_type: S_WORD
  6884.       min_value: -30
  6885.       max_value: 50
  6886.       #lambda: "return x * 0.5;"
  6887.       #write_lambda: "return x / 0.5;"
  6888.       step: 1
  6889.       mode: box
  6890.       entity_category: config
  6891.       skip_updates: 10
  6892.  
  6893.     - platform: modbus_controller
  6894.       modbus_controller_id: sprsun_pc
  6895.       name: ${friendly_name} E02 Economic heat ambi 2
  6896.       address: 0x016A
  6897.       unit_of_measurement: "°C"
  6898.       #icon: "mdi:fan-speed-1"
  6899.       id: e02_economic_heat_ambi_2
  6900.       value_type: S_WORD
  6901.       min_value: -30
  6902.       max_value: 50
  6903.       #lambda: "return x * 0.5;"
  6904.       #write_lambda: "return x / 0.5;"
  6905.       step: 1
  6906.       mode: box
  6907.       entity_category: config
  6908.       skip_updates: 10
  6909.  
  6910.     - platform: modbus_controller
  6911.       modbus_controller_id: sprsun_pc
  6912.       name: ${friendly_name} E03 Economic heat ambi 3
  6913.       address: 0x016B
  6914.       unit_of_measurement: "°C"
  6915.       #icon: "mdi:fan-speed-1"
  6916.       id: e03_economic_heat_ambi_3
  6917.       value_type: S_WORD
  6918.       min_value: -30
  6919.       max_value: 50
  6920.       #lambda: "return x * 0.5;"
  6921.       #write_lambda: "return x / 0.5;"
  6922.       step: 1
  6923.       mode: box
  6924.       entity_category: config
  6925.       skip_updates: 10
  6926.  
  6927.     - platform: modbus_controller
  6928.       modbus_controller_id: sprsun_pc
  6929.       name: ${friendly_name} E04 Economic heat ambi 4
  6930.       address: 0x016C
  6931.       unit_of_measurement: "°C"
  6932.       #icon: "mdi:fan-speed-1"
  6933.       id: e04_economic_heat_ambi_4
  6934.       value_type: S_WORD
  6935.       min_value: -30
  6936.       max_value: 50
  6937.       #lambda: "return x * 0.5;"
  6938.       #write_lambda: "return x / 0.5;"
  6939.       step: 1
  6940.       mode: box
  6941.       entity_category: config
  6942.       skip_updates: 10
  6943.  
  6944. #################################################################
  6945.  
  6946. #Temperatura zewnętrzna w trybie ECO dla CWU
  6947.     - platform: modbus_controller
  6948.       modbus_controller_id: sprsun_pc
  6949.       name: ${friendly_name} E05 Economic water ambi 1
  6950.       address: 0x016D
  6951.       unit_of_measurement: "°C"
  6952.       #icon: "mdi:fan-speed-1"
  6953.       id: e05_economic_water_ambi_1
  6954.       value_type: S_WORD
  6955.       min_value: -30
  6956.       max_value: 50
  6957.       #lambda: "return x * 0.5;"
  6958.       #write_lambda: "return x / 0.5;"
  6959.       step: 1
  6960.       mode: box
  6961.       entity_category: config
  6962.       skip_updates: 10
  6963.  
  6964.     - platform: modbus_controller
  6965.       modbus_controller_id: sprsun_pc
  6966.       name: ${friendly_name} E06 Economic water ambi 2
  6967.       address: 0x016E
  6968.       unit_of_measurement: "°C"
  6969.       #icon: "mdi:fan-speed-1"
  6970.       id: e06_economic_water_ambi_2
  6971.       value_type: S_WORD
  6972.       min_value: -30
  6973.       max_value: 50
  6974.       #lambda: "return x * 0.5;"
  6975.       #write_lambda: "return x / 0.5;"
  6976.       step: 1
  6977.       mode: box
  6978.       entity_category: config
  6979.       skip_updates: 10
  6980.  
  6981.     - platform: modbus_controller
  6982.       modbus_controller_id: sprsun_pc
  6983.       name: ${friendly_name} E07 Economic water ambi 3
  6984.       address: 0x016F
  6985.       unit_of_measurement: "°C"
  6986.       #icon: "mdi:fan-speed-1"
  6987.       id: e07_economic_water_ambi_3
  6988.       value_type: S_WORD
  6989.       min_value: -30
  6990.       max_value: 50
  6991.       #lambda: "return x * 0.5;"
  6992.       #write_lambda: "return x / 0.5;"
  6993.       step: 1
  6994.       mode: box
  6995.       entity_category: config
  6996.       skip_updates: 10
  6997.  
  6998.     - platform: modbus_controller
  6999.       modbus_controller_id: sprsun_pc
  7000.       name: ${friendly_name} E08 Economic water ambi 4
  7001.       address: 0x0170
  7002.       unit_of_measurement: "°C"
  7003.       #icon: "mdi:fan-speed-1"
  7004.       id: e08_economic_water_ambi_4
  7005.       value_type: S_WORD
  7006.       min_value: -30
  7007.       max_value: 50
  7008.       #lambda: "return x * 0.5;"
  7009.       #write_lambda: "return x / 0.5;"
  7010.       step: 1
  7011.       mode: box
  7012.       entity_category: config
  7013.       skip_updates: 10
  7014.  
  7015. #################################################################
  7016.  
  7017. #Temperatura zewnętrzna w trybie ECO dla chłodzenia
  7018.     - platform: modbus_controller
  7019.       modbus_controller_id: sprsun_pc
  7020.       name: ${friendly_name} E09 Economic cool ambi 1
  7021.       address: 0x0171
  7022.       unit_of_measurement: "°C"
  7023.       #icon: "mdi:fan-speed-1"
  7024.       id: e09_economic_cool_ambi_1
  7025.       value_type: S_WORD
  7026.       min_value: -30
  7027.       max_value: 50
  7028.       #lambda: "return x * 0.5;"
  7029.       #write_lambda: "return x / 0.5;"
  7030.       step: 1
  7031.       mode: box
  7032.       entity_category: config
  7033.       skip_updates: 10
  7034.  
  7035.     - platform: modbus_controller
  7036.       modbus_controller_id: sprsun_pc
  7037.       name: ${friendly_name} E10 Economic cool ambi 2
  7038.       address: 0x0172
  7039.       unit_of_measurement: "°C"
  7040.       #icon: "mdi:fan-speed-1"
  7041.       id: e10_economic_cool_ambi_2
  7042.       value_type: S_WORD
  7043.       min_value: -30
  7044.       max_value: 50
  7045.       #lambda: "return x * 0.5;"
  7046.       #write_lambda: "return x / 0.5;"
  7047.       step: 1
  7048.       mode: box
  7049.       entity_category: config
  7050.       skip_updates: 10
  7051.  
  7052.     - platform: modbus_controller
  7053.       modbus_controller_id: sprsun_pc
  7054.       name: ${friendly_name} E11 Economic cool ambi 3
  7055.       address: 0x0173
  7056.       unit_of_measurement: "°C"
  7057.       #icon: "mdi:fan-speed-1"
  7058.       id: e11_economic_cool_ambi_3
  7059.       value_type: S_WORD
  7060.       min_value: -30
  7061.       max_value: 50
  7062.       #lambda: "return x * 0.5;"
  7063.       #write_lambda: "return x / 0.5;"
  7064.       step: 1
  7065.       mode: box
  7066.       entity_category: config
  7067.       skip_updates: 10
  7068.  
  7069.     - platform: modbus_controller
  7070.       modbus_controller_id: sprsun_pc
  7071.       name: ${friendly_name} E12 Economic cool ambi 4
  7072.       address: 0x0174
  7073.       unit_of_measurement: "°C"
  7074.       #icon: "mdi:fan-speed-1"
  7075.       id: e12_economic_cool_ambi_4
  7076.       value_type: S_WORD
  7077.       min_value: -30
  7078.       max_value: 50
  7079.       #lambda: "return x * 0.5;"
  7080.       #write_lambda: "return x / 0.5;"
  7081.       step: 1
  7082.       mode: box
  7083.       entity_category: config
  7084.       skip_updates: 10
  7085.  
  7086. #################################################################
  7087.  
  7088. #Temperatura w trybie ECO dla CO
  7089.     - platform: modbus_controller
  7090.       modbus_controller_id: sprsun_pc
  7091.       name: ${friendly_name} E13 Economic heat temp 1
  7092.       address: 0x0175
  7093.       unit_of_measurement: "°C"
  7094.       #icon: "mdi:fan-speed-1"
  7095.       id: e13_economic_heat_temp_1
  7096.       value_type: U_WORD
  7097.       min_value: 10
  7098.       max_value: 55
  7099.       lambda: "return x * 0.5;"
  7100.       write_lambda: "return x / 0.5;"
  7101.       step: 1
  7102.       mode: box
  7103.       entity_category: config
  7104.       skip_updates: 10
  7105.       #(Read only lower 8 bits)
  7106.       bitmask: 0x00FF
  7107.  
  7108.     - platform: modbus_controller
  7109.       modbus_controller_id: sprsun_pc
  7110.       name: ${friendly_name} E14 Economic heat temp 2
  7111.       address: 0x0176
  7112.       unit_of_measurement: "°C"
  7113.       #icon: "mdi:fan-speed-1"
  7114.       id: e14_economic_heat_temp_2
  7115.       value_type: U_WORD
  7116.       min_value: 10
  7117.       max_value: 55
  7118.       lambda: "return x * 0.5;"
  7119.       write_lambda: "return x / 0.5;"
  7120.       step: 1
  7121.       mode: box
  7122.       entity_category: config
  7123.       skip_updates: 10
  7124.       #(Read only lower 8 bits)
  7125.       bitmask: 0x00FF
  7126.  
  7127.     - platform: modbus_controller
  7128.       modbus_controller_id: sprsun_pc
  7129.       name: ${friendly_name} E15 Economic heat temp 3
  7130.       address: 0x0177
  7131.       unit_of_measurement: "°C"
  7132.       #icon: "mdi:fan-speed-1"
  7133.       id: e15_economic_heat_temp_3
  7134.       value_type: U_WORD
  7135.       min_value: 10
  7136.       max_value: 55
  7137.       lambda: "return x * 0.5;"
  7138.       write_lambda: "return x / 0.5;"
  7139.       step: 1
  7140.       mode: box
  7141.       entity_category: config
  7142.       skip_updates: 10
  7143.       #(Read only lower 8 bits)
  7144.       bitmask: 0x00FF
  7145.  
  7146.     - platform: modbus_controller
  7147.       modbus_controller_id: sprsun_pc
  7148.       name: ${friendly_name} E16 Economic heat temp 4
  7149.       address: 0x0178
  7150.       unit_of_measurement: "°C"
  7151.       #icon: "mdi:fan-speed-1"
  7152.       id: e16_economic_heat_temp_4
  7153.       value_type: U_WORD
  7154.       min_value: 10
  7155.       max_value: 55
  7156.       lambda: "return x * 0.5;"
  7157.       write_lambda: "return x / 0.5;"
  7158.       step: 1
  7159.       mode: box
  7160.       entity_category: config
  7161.       skip_updates: 10
  7162.       #(Read only lower 8 bits)
  7163.       bitmask: 0x00FF
  7164.  
  7165. #################################################################
  7166.  
  7167. #Temperatura w trybie ECO dla CWU
  7168.     - platform: modbus_controller
  7169.       modbus_controller_id: sprsun_pc
  7170.       name: ${friendly_name} E17 Economic water temp 1
  7171.       address: 0x0179
  7172.       unit_of_measurement: "°C"
  7173.       #icon: "mdi:fan-speed-1"
  7174.       id: e17_economic_water_temp_1
  7175.       value_type: U_WORD
  7176.       min_value: 10
  7177.       max_value: 55
  7178.       lambda: "return x * 0.5;"
  7179.       write_lambda: "return x / 0.5;"
  7180.       step: 1
  7181.       mode: box
  7182.       entity_category: config
  7183.       skip_updates: 10
  7184.       #(Read only lower 8 bits)
  7185.       bitmask: 0x00FF
  7186.  
  7187.     - platform: modbus_controller
  7188.       modbus_controller_id: sprsun_pc
  7189.       name: ${friendly_name} E18 Economic water temp 2
  7190.       address: 0x017A
  7191.       unit_of_measurement: "°C"
  7192.       #icon: "mdi:fan-speed-1"
  7193.       id: e18_economic_water_temp_2
  7194.       value_type: U_WORD
  7195.       min_value: 10
  7196.       max_value: 55
  7197.       lambda: "return x * 0.5;"
  7198.       write_lambda: "return x / 0.5;"
  7199.       step: 1
  7200.       mode: box
  7201.       entity_category: config
  7202.       skip_updates: 10
  7203.       #(Read only lower 8 bits)
  7204.       bitmask: 0x00FF
  7205.  
  7206.     - platform: modbus_controller
  7207.       modbus_controller_id: sprsun_pc
  7208.       name: ${friendly_name} E19 Economic water temp 3
  7209.       address: 0x017B
  7210.       unit_of_measurement: "°C"
  7211.       #icon: "mdi:fan-speed-1"
  7212.       id: e19_economic_water_temp_3
  7213.       value_type: U_WORD
  7214.       min_value: 10
  7215.       max_value: 55
  7216.       lambda: "return x * 0.5;"
  7217.       write_lambda: "return x / 0.5;"
  7218.       step: 1
  7219.       mode: box
  7220.       entity_category: config
  7221.       skip_updates: 10
  7222.       #(Read only lower 8 bits)
  7223.       bitmask: 0x00FF
  7224.  
  7225.     - platform: modbus_controller
  7226.       modbus_controller_id: sprsun_pc
  7227.       name: ${friendly_name} E20 Economic water temp 4
  7228.       address: 0x017C
  7229.       unit_of_measurement: "°C"
  7230.       #icon: "mdi:fan-speed-1"
  7231.       id: e20_economic_water_temp_4
  7232.       value_type: U_WORD
  7233.       min_value: 10
  7234.       max_value: 55
  7235.       lambda: "return x * 0.5;"
  7236.       write_lambda: "return x / 0.5;"
  7237.       step: 1
  7238.       mode: box
  7239.       entity_category: config
  7240.       skip_updates: 10
  7241.       #(Read only lower 8 bits)
  7242.       bitmask: 0x00FF
  7243.  
  7244. #################################################################
  7245.  
  7246. #Temperatura w trybie ECO dla chłodzenia
  7247.     - platform: modbus_controller
  7248.       modbus_controller_id: sprsun_pc
  7249.       name: ${friendly_name} E21 Economic cool temp 1
  7250.       address: 0x017D
  7251.       unit_of_measurement: "°C"
  7252.       #icon: "mdi:fan-speed-1"
  7253.       id: e21_economic_cool_temp_1
  7254.       value_type: U_WORD
  7255.       min_value: 12
  7256.       max_value: 30
  7257.       lambda: "return x * 0.5;"
  7258.       write_lambda: "return x / 0.5;"
  7259.       step: 1
  7260.       mode: box
  7261.       entity_category: config
  7262.       skip_updates: 10
  7263.       #(Read only lower 8 bits)
  7264.       bitmask: 0x00FF
  7265.  
  7266.     - platform: modbus_controller
  7267.       modbus_controller_id: sprsun_pc
  7268.       name: ${friendly_name} E22 Economic cool temp 2
  7269.       address: 0x017E
  7270.       unit_of_measurement: "°C"
  7271.       #icon: "mdi:fan-speed-1"
  7272.       id: e22_economic_cool_temp_2
  7273.       value_type: U_WORD
  7274.       min_value: 12
  7275.       max_value: 30
  7276.       lambda: "return x * 0.5;"
  7277.       write_lambda: "return x / 0.5;"
  7278.       step: 1
  7279.       mode: box
  7280.       entity_category: config
  7281.       skip_updates: 10
  7282.       #(Read only lower 8 bits)
  7283.       bitmask: 0x00FF
  7284.  
  7285.     - platform: modbus_controller
  7286.       modbus_controller_id: sprsun_pc
  7287.       name: ${friendly_name} E23 Economic cool temp 3
  7288.       address: 0x017F
  7289.       unit_of_measurement: "°C"
  7290.       #icon: "mdi:fan-speed-1"
  7291.       id: e23_economic_cool_temp_3
  7292.       value_type: U_WORD
  7293.       min_value: 12
  7294.       max_value: 30
  7295.       lambda: "return x * 0.5;"
  7296.       write_lambda: "return x / 0.5;"
  7297.       step: 1
  7298.       mode: box
  7299.       entity_category: config
  7300.       skip_updates: 10
  7301.       #(Read only lower 8 bits)
  7302.       bitmask: 0x00FF
  7303.  
  7304.     - platform: modbus_controller
  7305.       modbus_controller_id: sprsun_pc
  7306.       name: ${friendly_name} E24 Economic cool temp 4
  7307.       address: 0x0180
  7308.       unit_of_measurement: "°C"
  7309.       #icon: "mdi:fan-speed-1"
  7310.       id: e24_economic_cool_temp_4
  7311.       value_type: U_WORD
  7312.       min_value: 12
  7313.       max_value: 30
  7314.       lambda: "return x * 0.5;"
  7315.       write_lambda: "return x / 0.5;"
  7316.       step: 1
  7317.       mode: box
  7318.       entity_category: config
  7319.       skip_updates: 10
  7320.       #(Read only lower 8 bits)
  7321.       bitmask: 0x00FF
  7322. ###########################################################################
  7323.  
  7324.     - platform: modbus_controller
  7325.       modbus_controller_id: sprsun_pc
  7326.       name: ${friendly_name} G08 Delay nagrzewnicy CWU
  7327.       address: 0x0181
  7328.       unit_of_measurement: "min"
  7329.       #icon: "mdi:fan-speed-1"
  7330.       id: g08_comp_delay
  7331.       value_type: U_WORD
  7332.       min_value: 1
  7333.       max_value: 60
  7334.       #lambda: "return x * 0.5;"
  7335.       #write_lambda: "return x / 0.5;"
  7336.       step: 1
  7337.       mode: box
  7338.       entity_category: config
  7339.       skip_updates: 10
  7340.  
  7341.     - platform: modbus_controller
  7342.       modbus_controller_id: sprsun_pc
  7343.       name: ${friendly_name} G06 Delay nagrzewnicy CO
  7344.       address: 0x0182
  7345.       unit_of_measurement: "min"
  7346.       #icon: "mdi:fan-speed-1"
  7347.       id: g06_comp_delay
  7348.       value_type: U_WORD
  7349.       min_value: 1
  7350.       max_value: 60
  7351.       #lambda: "return x * 0.5;"
  7352.       #write_lambda: "return x / 0.5;"
  7353.       step: 1
  7354.       mode: box
  7355.       entity_category: config
  7356.       skip_updates: 10
  7357.  
  7358.     - platform: modbus_controller
  7359.       modbus_controller_id: sprsun_pc
  7360.       name: ${friendly_name} G07 temperatura zew włączenia grzałki CWU
  7361.       address: 0x0183
  7362.       unit_of_measurement: "°C"
  7363.       #icon: "mdi:fan-speed-1"
  7364.       id: g07_hotwater_heater_ext
  7365.       value_type: S_WORD
  7366.       min_value: -30
  7367.       max_value: 30
  7368.       #lambda: "return x * 0.5;"
  7369.       #write_lambda: "return x / 0.5;"
  7370.       step: 1
  7371.       mode: box
  7372.       entity_category: config
  7373.       skip_updates: 10
  7374.  
  7375.     - platform: modbus_controller
  7376.       modbus_controller_id: sprsun_pc
  7377.       name: ${friendly_name} G05 temperatura zew włączenia grzałki CO
  7378.       address: 0x0184
  7379.       unit_of_measurement: "°C"
  7380.       #icon: "mdi:fan-speed-1"
  7381.       id: g05_heating_heater_ext
  7382.       value_type: S_WORD
  7383.       min_value: -30
  7384.       max_value: 30
  7385.       #lambda: "return x * 0.5;"
  7386.       #write_lambda: "return x / 0.5;"
  7387.       step: 1
  7388.       mode: box
  7389.       entity_category: config
  7390.       skip_updates: 10
  7391.  
  7392.     - platform: modbus_controller
  7393.       modbus_controller_id: sprsun_pc
  7394.       name: ${friendly_name} G03 Czas pracy pompy obiegowej w trybie Interwał
  7395.       address: 0x0185
  7396.       unit_of_measurement: "min"
  7397.       #icon: "mdi:fan-speed-1"
  7398.       id: g03_start_internal
  7399.       value_type: U_WORD
  7400.       min_value: 1
  7401.       max_value: 120
  7402.       #lambda: "return x * 0.5;"
  7403.       #write_lambda: "return x / 0.5;"
  7404.       step: 1
  7405.       mode: box
  7406.       entity_category: config
  7407.       skip_updates: 10
  7408.  
  7409.     - platform: modbus_controller
  7410.       modbus_controller_id: sprsun_pc
  7411.       name: ${friendly_name} F14 DC pump cycle
  7412.       address: 0x0187
  7413.       unit_of_measurement: "s"
  7414.       #icon: "mdi:fan-speed-1"
  7415.       id: f14_dc_pump_cycle
  7416.       value_type: U_WORD
  7417.       min_value: 10
  7418.       max_value: 120
  7419.       #lambda: "return x * 0.5;"
  7420.       #write_lambda: "return x / 0.5;"
  7421.       step: 1
  7422.       mode: box
  7423.       entity_category: config
  7424.       skip_updates: 10
  7425.  
  7426.     - platform: modbus_controller
  7427.       modbus_controller_id: sprsun_pc
  7428.       name: ${friendly_name} F15 DC pump freq set
  7429.       address: 0x0188
  7430.       unit_of_measurement: "%"
  7431.       #icon: "mdi:fan-speed-1"
  7432.       id: f15_dc_pump_freq_set
  7433.       value_type: U_WORD
  7434.       min_value: 10
  7435.       max_value: 100
  7436.       #lambda: "return x * 0.5;"
  7437.       #write_lambda: "return x / 0.5;"
  7438.       step: 1
  7439.       mode: box
  7440.       entity_category: config
  7441.       skip_updates: 10
  7442.  
  7443.     - platform: modbus_controller
  7444.       modbus_controller_id: sprsun_pc
  7445.       name: ${friendly_name} F16 DC pump max freq
  7446.       address: 0x0189
  7447.       unit_of_measurement: "%"
  7448.       #icon: "mdi:fan-speed-1"
  7449.       id: f16_dc_pump_max_freq
  7450.       value_type: U_WORD
  7451.       min_value: 10
  7452.       max_value: 100
  7453.       #lambda: "return x * 0.5;"
  7454.       #write_lambda: "return x / 0.5;"
  7455.       step: 1
  7456.       mode: box
  7457.       entity_category: config
  7458.       skip_updates: 10
  7459.  
  7460.     - platform: modbus_controller
  7461.       modbus_controller_id: sprsun_pc
  7462.       name: ${friendly_name} F17 DC pump min freq
  7463.       address: 0x018A
  7464.       unit_of_measurement: "%"
  7465.       #icon: "mdi:fan-speed-1"
  7466.       id: f17_dc_pump_min_freq
  7467.       value_type: U_WORD
  7468.       min_value: 10
  7469.       max_value: 100
  7470.       #lambda: "return x * 0.5;"
  7471.       #write_lambda: "return x / 0.5;"
  7472.       step: 1
  7473.       mode: box
  7474.       entity_category: config
  7475.       skip_updates: 10
  7476.  
  7477.     - platform: modbus_controller
  7478.       modbus_controller_id: sprsun_pc
  7479.       name: ${friendly_name} F18 DC pump scale factor
  7480.       address: 0x018B
  7481.       #unit_of_measurement: "%"
  7482.       #icon: "mdi:fan-speed-1"
  7483.       id: f18_dc_pump_scale_factor
  7484.       value_type: U_WORD
  7485.       min_value: 1
  7486.       max_value: 10
  7487.       #lambda: "return x * 0.5;"
  7488.       #write_lambda: "return x / 0.5;"
  7489.       step: 1
  7490.       mode: box
  7491.       entity_category: config
  7492.       skip_updates: 10
  7493.  
  7494.     - platform: modbus_controller
  7495.       modbus_controller_id: sprsun_pc
  7496.       name: ${friendly_name} F19 DC pump diff
  7497.       address: 0x018C
  7498.       #unit_of_measurement: "%"
  7499.       #icon: "mdi:fan-speed-1"
  7500.       id: f19_dc_pump_diff
  7501.       value_type: U_WORD
  7502.       min_value: 0
  7503.       max_value: 100
  7504.       #lambda: "return x * 0.5;"
  7505.       #write_lambda: "return x / 0.5;"
  7506.       step: 1
  7507.       mode: box
  7508.       entity_category: config
  7509.       skip_updates: 10
  7510.  
  7511.     - platform: modbus_controller
  7512.       modbus_controller_id: sprsun_pc
  7513.       name: ${friendly_name} G04 Delta pompy obiegowej
  7514.       address: 0x018D
  7515.       unit_of_measurement: "°C"
  7516.       #icon: "mdi:fan-speed-1"
  7517.       id: g04_delta_temp_set
  7518.       value_type: U_WORD
  7519.       min_value: 5
  7520.       max_value: 30
  7521.       #lambda: "return x * 0.5;"
  7522.       #write_lambda: "return x / 0.5;"
  7523.       step: 1
  7524.       mode: box
  7525.       entity_category: config
  7526.       skip_updates: 10
  7527. ####################################################
  7528.  
  7529.     # - platform: modbus_controller
  7530.     #   modbus_controller_id: sprsun_pc
  7531.     #   name: ${friendly_name} F21 Comp freq scale factor
  7532.     #   address: 0x018E
  7533.     #   #unit_of_measurement: "%"
  7534.     #   #icon: "mdi:fan-speed-1"
  7535.     #   id: f21_comp_freq_scale_factor
  7536.     #   value_type: U_WORD
  7537.     #   min_value: 1
  7538.     #   max_value: 10
  7539.     #   #lambda: "return x * 0.5;"
  7540.     #   #write_lambda: "return x / 0.5;"
  7541.     #   step: 1
  7542.     #   mode: box
  7543.     #   entity_category: config
  7544.     #   skip_updates: 10
  7545.  
  7546.     # - platform: modbus_controller
  7547.     #   modbus_controller_id: sprsun_pc
  7548.     #   name: ${friendly_name} F22 Comp freq diff
  7549.     #   address: 0x018F
  7550.     #   #unit_of_measurement: "%"
  7551.     #   #icon: "mdi:fan-speed-1"
  7552.     #   id: f22_comp_freq_diff
  7553.     #   value_type: U_WORD
  7554.     #   min_value: 0
  7555.     #   max_value: 100
  7556.     #   #lambda: "return x * 0.5;"
  7557.     #   #write_lambda: "return x / 0.5;"
  7558.     #   step: 1
  7559.     #   mode: box
  7560.     #   entity_category: config
  7561.     #   skip_updates: 10
  7562.  
  7563.     - platform: modbus_controller
  7564.       modbus_controller_id: sprsun_pc
  7565.       name: ${friendly_name} G10 Temperatura przełączenia grzanie/chłodzenie
  7566.       address: 0x0192
  7567.       unit_of_measurement: "°C"
  7568.       #icon: "mdi:fan-speed-1"
  7569.       id: g10_ambtemp_switch_setp
  7570.       value_type: S_WORD
  7571.       min_value: -20
  7572.       max_value: 30
  7573.       #lambda: "return x * 0.5;"
  7574.       #write_lambda: "return x / 0.5;"
  7575.       step: 1
  7576.       mode: box
  7577.       entity_category: config
  7578.       skip_updates: 10
  7579.  
  7580.     - platform: modbus_controller
  7581.       modbus_controller_id: sprsun_pc
  7582.       name: ${friendly_name} G11 Histereza przełączenia grzanie/chłodzenie
  7583.       address: 0x0193
  7584.       unit_of_measurement: "°C"
  7585.       #icon: "mdi:fan-speed-1"
  7586.       id: g11_ambtemp_diff
  7587.       value_type: U_WORD
  7588.       min_value: 1
  7589.       max_value: 10
  7590.       #lambda: "return x * 0.5;"
  7591.       #write_lambda: "return x / 0.5;"
  7592.       step: 1
  7593.       mode: box
  7594.       entity_category: config
  7595.       skip_updates: 10
  7596.  
  7597.     - platform: modbus_controller
  7598.       modbus_controller_id: sprsun_pc
  7599.       name: ${friendly_name} F27 Limit freq temp diff
  7600.       address: 0x0194
  7601.       unit_of_measurement: "°C"
  7602.       #icon: "mdi:fan-speed-1"
  7603.       id: f27_limit_freq_temp_diff
  7604.       value_type: U_WORD
  7605.       min_value: 5
  7606.       max_value: 20
  7607.       #lambda: "return x * 0.5;"
  7608.       #write_lambda: "return x / 0.5;"
  7609.       step: 1
  7610.       mode: box
  7611.       entity_category: config
  7612.       skip_updates: 10
  7613.  
  7614.     - platform: modbus_controller
  7615.       modbus_controller_id: sprsun_pc
  7616.       name: ${friendly_name} F28 Dec freq temp diff
  7617.       address: 0x0195
  7618.       unit_of_measurement: "°C"
  7619.       #icon: "mdi:fan-speed-1"
  7620.       id: f28_dec_freq_temp_diff
  7621.       value_type: U_WORD
  7622.       min_value: 5
  7623.       max_value: 20
  7624.       #lambda: "return x * 0.5;"
  7625.       #write_lambda: "return x / 0.5;"
  7626.       step: 1
  7627.       mode: box
  7628.       entity_category: config
  7629.       skip_updates: 10
  7630.  
  7631.     - platform: modbus_controller
  7632.       modbus_controller_id: sprsun_pc
  7633.       name: ${friendly_name} F29 Limit freq outlet low
  7634.       address: 0x0196
  7635.       unit_of_measurement: "°C"
  7636.       #icon: "mdi:fan-speed-1"
  7637.       id: f29_limit_freq_outlet_low
  7638.       value_type: U_WORD
  7639.       min_value: 0
  7640.       max_value: 20
  7641.       #lambda: "return x * 0.5;"
  7642.       #write_lambda: "return x / 0.5;"
  7643.       step: 1
  7644.       mode: box
  7645.       entity_category: config
  7646.       skip_updates: 10
  7647.  
  7648.     - platform: modbus_controller
  7649.       modbus_controller_id: sprsun_pc
  7650.       name: ${friendly_name} F30 Dec freq outlet low
  7651.       address: 0x0197
  7652.       unit_of_measurement: "°C"
  7653.       #icon: "mdi:fan-speed-1"
  7654.       id: f30_dec_freq_outlet_low
  7655.       value_type: U_WORD
  7656.       min_value: 0
  7657.       max_value: 20
  7658.       #lambda: "return x * 0.5;"
  7659.       #write_lambda: "return x / 0.5;"
  7660.       step: 1
  7661.       mode: box
  7662.       entity_category: config
  7663.       skip_updates: 10
  7664.  
  7665.     - platform: modbus_controller
  7666.       modbus_controller_id: sprsun_pc
  7667.       name: ${friendly_name} F31 Limit freq outlet high
  7668.       address: 0x0198
  7669.       unit_of_measurement: "°C"
  7670.       #icon: "mdi:fan-speed-1"
  7671.       id: f31_limit_freq_outlet_high
  7672.       value_type: U_WORD
  7673.       min_value: 30
  7674.       max_value: 80
  7675.       #lambda: "return x * 0.5;"
  7676.       #write_lambda: "return x / 0.5;"
  7677.       step: 1
  7678.       mode: box
  7679.       entity_category: config
  7680.       skip_updates: 10
  7681.  
  7682.     - platform: modbus_controller
  7683.       modbus_controller_id: sprsun_pc
  7684.       name: ${friendly_name} F32 Dec freq outlet high
  7685.       address: 0x0199
  7686.       unit_of_measurement: "°C"
  7687.       #icon: "mdi:fan-speed-1"
  7688.       id: f32_dec_freq_outlet_low
  7689.       value_type: U_WORD
  7690.       min_value: 30
  7691.       max_value: 80
  7692.       #lambda: "return x * 0.5;"
  7693.       #write_lambda: "return x / 0.5;"
  7694.       step: 1
  7695.       mode: box
  7696.       entity_category: config
  7697.       skip_updates: 10
  7698.  
  7699.     - platform: modbus_controller
  7700.       modbus_controller_id: sprsun_pc
  7701.       name: ${friendly_name} Nastawa temp tryb antilegionella
  7702.       address: 0x019A
  7703.       unit_of_measurement: "°C"
  7704.       #icon: "mdi:fan-speed-1"
  7705.       id: temp_setpoint_of_antilegionella
  7706.       value_type: U_WORD
  7707.       min_value: 30
  7708.       max_value: 70
  7709.       #lambda: "return x * 0.5;"
  7710.       #write_lambda: "return x / 0.5;"
  7711.       step: 1
  7712.       mode: box
  7713.       entity_category: config
  7714.       skip_updates: 10
  7715.  
  7716.     - platform: modbus_controller
  7717.       modbus_controller_id: sprsun_pc
  7718.       name: ${friendly_name} Start tryb antilegionella
  7719.       address: 0x019C
  7720.       unit_of_measurement: "hour"
  7721.       #icon: "mdi:fan-speed-1"
  7722.       id: start_timer_of_antilegionella
  7723.       value_type: U_WORD
  7724.       min_value: 0
  7725.       max_value: 23
  7726.       #lambda: "return x * 0.5;"
  7727.       #write_lambda: "return x / 0.5;"
  7728.       step: 1
  7729.       mode: box
  7730.       entity_category: config
  7731.       skip_updates: 10
  7732.  
  7733.     - platform: modbus_controller
  7734.       modbus_controller_id: sprsun_pc
  7735.       name: ${friendly_name} Stop tryb antilegionella
  7736.       address: 0x019D
  7737.       unit_of_measurement: "hour"
  7738.       #icon: "mdi:fan-speed-1"
  7739.       id: stop_timer_of_antilegionella
  7740.       value_type: U_WORD
  7741.       min_value: 0
  7742.       max_value: 23
  7743.       #lambda: "return x * 0.5;"
  7744.       #write_lambda: "return x / 0.5;"
  7745.       step: 1
  7746.       mode: box
  7747.       entity_category: config
  7748.       skip_updates: 10
  7749.  
  7750.     - platform: modbus_controller
  7751.       modbus_controller_id: sprsun_pc
  7752.       name: ${friendly_name} F35 Antifreeze cycle
  7753.       address: 0x019F
  7754.       unit_of_measurement: "min"
  7755.       #icon: "mdi:fan-speed-1"
  7756.       id: f35_antifreeze_cycle
  7757.       value_type: U_WORD
  7758.       min_value: 1
  7759.       max_value: 60
  7760.       #lambda: "return x * 0.5;"
  7761.       #write_lambda: "return x / 0.5;"
  7762.       step: 1
  7763.       mode: box
  7764.       entity_category: config
  7765.       skip_updates: 10
  7766.  
  7767.     - platform: modbus_controller
  7768.       modbus_controller_id: sprsun_pc
  7769.       name: ${friendly_name} F36 Three-way valve cycle
  7770.       address: 0x01A0
  7771.       unit_of_measurement: "hour"
  7772.       #icon: "mdi:fan-speed-1"
  7773.       id: f36_threeway_valve_cycle
  7774.       value_type: U_WORD
  7775.       min_value: 1
  7776.       max_value: 60
  7777.       #lambda: "return x * 0.5;"
  7778.       #write_lambda: "return x / 0.5;"
  7779.       step: 1
  7780.       mode: box
  7781.       entity_category: config
  7782.       skip_updates: 10
  7783.  
  7784.     - platform: modbus_controller
  7785.       modbus_controller_id: sprsun_pc
  7786.       name: ${friendly_name} F37 Pump cycle in error
  7787.       address: 0x01A1
  7788.       unit_of_measurement: "min"
  7789.       #icon: "mdi:fan-speed-1"
  7790.       id: f37_pump_cycle_in_error
  7791.       value_type: U_WORD
  7792.       min_value: 1
  7793.       max_value: 120
  7794.       #lambda: "return x * 0.5;"
  7795.       #write_lambda: "return x / 0.5;"
  7796.       step: 1
  7797.       mode: box
  7798.       entity_category: config
  7799.       skip_updates: 10
  7800.  
  7801.     - platform: modbus_controller
  7802.       modbus_controller_id: sprsun_pc
  7803.       name: ${friendly_name} F38 Comp freq cycle
  7804.       address: 0x01A2
  7805.       unit_of_measurement: "s"
  7806.       #icon: "mdi:fan-speed-1"
  7807.       id: f38_comp_freq_cycle
  7808.       value_type: U_WORD
  7809.       min_value: 20
  7810.       max_value: 60
  7811.       #lambda: "return x * 0.5;"
  7812.       #write_lambda: "return x / 0.5;"
  7813.       step: 1
  7814.       mode: box
  7815.       entity_category: config
  7816.       skip_updates: 10
  7817.  
  7818.     - platform: modbus_controller
  7819.       modbus_controller_id: sprsun_pc
  7820.       name: ${friendly_name} F41 Air too low stp.
  7821.       address: 0x01A3
  7822.       unit_of_measurement: "°C"
  7823.       #icon: "mdi:fan-speed-1"
  7824.       id: f41_air_too_low_stp
  7825.       value_type: S_WORD
  7826.       min_value: -40
  7827.       max_value: 0
  7828.       #lambda: "return x * 0.5;"
  7829.       #write_lambda: "return x / 0.5;"
  7830.       step: 1
  7831.       mode: box
  7832.       entity_category: config
  7833.       skip_updates: 10
  7834.  
  7835. #######################################################
  7836. #############   Nastawy Timeband
  7837. #### Timeband 1
  7838.     - platform: modbus_controller
  7839.       modbus_controller_id: sprsun_pc
  7840.       name: ${friendly_name} Nastawa CWU Timeband 1
  7841.       address: 0x01A4
  7842.       unit_of_measurement: "°C"
  7843.       #icon: "mdi:fan-speed-1"
  7844.       id: hotwater_set_temp_of_timeband_1
  7845.       value_type: U_WORD
  7846.       min_value: 28
  7847.       max_value: 60
  7848.       lambda: "return x * 0.5;"
  7849.       write_lambda: "return x / 0.5;"
  7850.       step: 1
  7851.       mode: box
  7852.       entity_category: config
  7853.       skip_updates: 10
  7854.       #(Read only lower 8 bits)
  7855.       bitmask: 0x00FF
  7856.  
  7857.     - platform: modbus_controller
  7858.       modbus_controller_id: sprsun_pc
  7859.       name: ${friendly_name} Nastawa CO Timeband 1
  7860.       address: 0x01A5
  7861.       unit_of_measurement: "°C"
  7862.       #icon: "mdi:fan-speed-1"
  7863.       id: heat_setpoint_of_timeband_1
  7864.       value_type: U_WORD
  7865.       min_value: 15
  7866.       max_value: 50
  7867.       lambda: "return x * 0.5;"
  7868.       write_lambda: "return x / 0.5;"
  7869.       step: 1
  7870.       mode: box
  7871.       entity_category: config
  7872.       skip_updates: 10
  7873.       #(Read only lower 8 bits)
  7874.       bitmask: 0x00FF
  7875.  
  7876.     - platform: modbus_controller
  7877.       modbus_controller_id: sprsun_pc
  7878.       name: ${friendly_name} Nastawa chłodzenie Timeband 1
  7879.       address: 0x01A6
  7880.       unit_of_measurement: "°C"
  7881.       #icon: "mdi:fan-speed-1"
  7882.       id: cool_setpoint_of_timeband_1
  7883.       value_type: U_WORD
  7884.       min_value: 7
  7885.       max_value: 30
  7886.       lambda: "return x * 0.5;"
  7887.       write_lambda: "return x / 0.5;"
  7888.       step: 1
  7889.       mode: box
  7890.       entity_category: config
  7891.       skip_updates: 10
  7892.       #(Read only lower 8 bits)
  7893.       bitmask: 0x00FF
  7894.  
  7895. ####Timeband 2
  7896.     - platform: modbus_controller
  7897.       modbus_controller_id: sprsun_pc
  7898.       name: ${friendly_name} Nastawa CWU Timeband 2
  7899.       address: 0x01A7
  7900.       unit_of_measurement: "°C"
  7901.       #icon: "mdi:fan-speed-1"
  7902.       id: hotwater_set_temp_of_timeband_2
  7903.       value_type: U_WORD
  7904.       min_value: 28
  7905.       max_value: 60
  7906.       lambda: "return x * 0.5;"
  7907.       write_lambda: "return x / 0.5;"
  7908.       step: 1
  7909.       mode: box
  7910.       entity_category: config
  7911.       skip_updates: 10
  7912.       #(Read only lower 8 bits)
  7913.       bitmask: 0x00FF
  7914.  
  7915.     - platform: modbus_controller
  7916.       modbus_controller_id: sprsun_pc
  7917.       name: ${friendly_name} Nastawa CO Timeband 2
  7918.       address: 0x01A8
  7919.       unit_of_measurement: "°C"
  7920.       #icon: "mdi:fan-speed-1"
  7921.       id: heat_setpoint_of_timeband_2
  7922.       value_type: U_WORD
  7923.       min_value: 15
  7924.       max_value: 50
  7925.       lambda: "return x * 0.5;"
  7926.       write_lambda: "return x / 0.5;"
  7927.       step: 1
  7928.       mode: box
  7929.       entity_category: config
  7930.       skip_updates: 10
  7931.       #(Read only lower 8 bits)
  7932.       bitmask: 0x00FF
  7933.  
  7934.     - platform: modbus_controller
  7935.       modbus_controller_id: sprsun_pc
  7936.       name: ${friendly_name} Nastawa chłodzenie Timeband 2
  7937.       address: 0x01A9
  7938.       unit_of_measurement: "°C"
  7939.       #icon: "mdi:fan-speed-1"
  7940.       id: cool_setpoint_of_timeband_2
  7941.       value_type: U_WORD
  7942.       min_value: 7
  7943.       max_value: 30
  7944.       lambda: "return x * 0.5;"
  7945.       write_lambda: "return x / 0.5;"
  7946.       step: 1
  7947.       mode: box
  7948.       entity_category: config
  7949.       skip_updates: 10
  7950.       #(Read only lower 8 bits)
  7951.       bitmask: 0x00FF
  7952.  
  7953. ####Timeband 3
  7954.     - platform: modbus_controller
  7955.       modbus_controller_id: sprsun_pc
  7956.       name: ${friendly_name} Nastawa CWU Timeband 3
  7957.       address: 0x01AA
  7958.       unit_of_measurement: "°C"
  7959.       #icon: "mdi:fan-speed-1"
  7960.       id: hotwater_set_temp_of_timeband_3
  7961.       value_type: U_WORD
  7962.       min_value: 28
  7963.       max_value: 60
  7964.       lambda: "return x * 0.5;"
  7965.       write_lambda: "return x / 0.5;"
  7966.       step: 1
  7967.       mode: box
  7968.       entity_category: config
  7969.       skip_updates: 10
  7970.       #(Read only lower 8 bits)
  7971.       bitmask: 0x00FF
  7972.  
  7973.     - platform: modbus_controller
  7974.       modbus_controller_id: sprsun_pc
  7975.       name: ${friendly_name} Nastawa CO Timeband 3
  7976.       address: 0x01AB
  7977.       unit_of_measurement: "°C"
  7978.       #icon: "mdi:fan-speed-1"
  7979.       id: heat_setpoint_of_timeband_3
  7980.       value_type: U_WORD
  7981.       min_value: 15
  7982.       max_value: 50
  7983.       lambda: "return x * 0.5;"
  7984.       write_lambda: "return x / 0.5;"
  7985.       step: 1
  7986.       mode: box
  7987.       entity_category: config
  7988.       skip_updates: 10
  7989.       #(Read only lower 8 bits)
  7990.       bitmask: 0x00FF
  7991.  
  7992.     - platform: modbus_controller
  7993.       modbus_controller_id: sprsun_pc
  7994.       name: ${friendly_name} Nastawa chłodzenie Timeband 3
  7995.       address: 0x01AC
  7996.       unit_of_measurement: "°C"
  7997.       #icon: "mdi:fan-speed-1"
  7998.       id: cool_setpoint_of_timeband_3
  7999.       value_type: U_WORD
  8000.       min_value: 7
  8001.       max_value: 30
  8002.       lambda: "return x * 0.5;"
  8003.       write_lambda: "return x / 0.5;"
  8004.       step: 1
  8005.       mode: box
  8006.       entity_category: config
  8007.       skip_updates: 10
  8008. ########################################################
  8009.  
  8010.     # - platform: modbus_controller
  8011.     #   modbus_controller_id: sprsun_pc
  8012.     #   name: ${friendly_name} H17 Def fan high press
  8013.     #   address: 0x01B0
  8014.     #   unit_of_measurement: "bar"
  8015.     #   #icon: "mdi:fan-speed-1"
  8016.     #   id: h17_def_fan_high_press
  8017.     #   value_type: U_WORD
  8018.     #   min_value: 20
  8019.     #   max_value: 40
  8020.     #   #lambda: "return x * 0.5;"
  8021.     #   #write_lambda: "return x / 0.5;"
  8022.     #   step: 1
  8023.     #   mode: box
  8024.     #   entity_category: config
  8025.     #   skip_updates: 10
  8026.  
  8027.     # - platform: modbus_controller
  8028.     #   modbus_controller_id: sprsun_pc
  8029.     #   name: ${friendly_name} H18 Def fan speed
  8030.     #   address: 0x01B1
  8031.     #   unit_of_measurement: "rpm"
  8032.     #   #icon: "mdi:fan-speed-1"
  8033.     #   id: h18_def_fan_speed
  8034.     #   value_type: U_WORD
  8035.     #   min_value: 20
  8036.     #   max_value: 100
  8037.     #   lambda: "return x / 10.0;"
  8038.     #   write_lambda: "return x * 10.0;"
  8039.     #   step: 1
  8040.     #   mode: box
  8041.     #   entity_category: config
  8042.     #   skip_updates: 10
  8043.  
  8044.     # - platform: modbus_controller
  8045.     #   modbus_controller_id: sprsun_pc
  8046.     #   name: ${friendly_name} F47 High press adjust
  8047.     #   address: 0x01B2
  8048.     #   unit_of_measurement: "bar"
  8049.     #   #icon: "mdi:fan-speed-1"
  8050.     #   id: f47_high_press_adjust
  8051.     #   value_type: S_WORD
  8052.     #   min_value: -50
  8053.     #   max_value: 50
  8054.     #   #lambda: "return x / 10.0;"
  8055.     #   #write_lambda: "return x * 10.0;"
  8056.     #   step: 1
  8057.     #   mode: box
  8058.     #   entity_category: config
  8059.     #   skip_updates: 10
  8060.  
  8061.     # - platform: modbus_controller
  8062.     #   modbus_controller_id: sprsun_pc
  8063.     #   name: ${friendly_name} F48 Low press adjust
  8064.     #   address: 0x01B3
  8065.     #   unit_of_measurement: "bar"
  8066.     #   #icon: "mdi:fan-speed-1"
  8067.     #   id: f48_low_press_adjust
  8068.     #   value_type: S_WORD
  8069.     #   min_value: -50
  8070.     #   max_value: 50
  8071.     #   #lambda: "return x / 10.0;"
  8072.     #   #write_lambda: "return x * 10.0;"
  8073.     #   step: 1
  8074.     #   mode: box
  8075.     #   entity_category: config
  8076.     #   skip_updates: 10
  8077.  
  8078.     # - platform: modbus_controller
  8079.     #   modbus_controller_id: sprsun_pc
  8080.     #   name: ${friendly_name} F51 Air too low diff
  8081.     #   address: 0x01B4
  8082.     #   unit_of_measurement: "°C"
  8083.     #   #icon: "mdi:fan-speed-1"
  8084.     #   id: f51_air_too_low_diff
  8085.     #   value_type: U_WORD
  8086.     #   min_value: 1
  8087.     #   max_value: 10
  8088.     #   #lambda: "return x / 10.0;"
  8089.     #   #write_lambda: "return x * 10.0;"
  8090.     #   step: 1
  8091.     #   mode: box
  8092.     #   entity_category: config
  8093.     #   skip_updates: 10
  8094.  
  8095.     # - platform: modbus_controller
  8096.     #   modbus_controller_id: sprsun_pc
  8097.     #   name: ${friendly_name} B93 AV init outlet stp
  8098.     #   address: 0x01B5
  8099.     #   unit_of_measurement: "°C"
  8100.     #   #icon: "mdi:fan-speed-1"
  8101.     #   id: b93_av_init_outlet_stp
  8102.     #   value_type: U_WORD
  8103.     #   min_value: 20
  8104.     #   max_value: 60
  8105.     #   #lambda: "return x / 10.0;"
  8106.     #   #write_lambda: "return x * 10.0;"
  8107.     #   step: 1
  8108.     #   mode: box
  8109.     #   entity_category: config
  8110.     #   skip_updates: 10
  8111.  
  8112.     # - platform: modbus_controller
  8113.     #   modbus_controller_id: sprsun_pc
  8114.     #   name: ${friendly_name} F53 Outlet temp offset stp
  8115.     #   address: 0x01B6
  8116.     #   unit_of_measurement: "°C"
  8117.     #   #icon: "mdi:fan-speed-1"
  8118.     #   id: f53_outlet_temp_offset_stp
  8119.     #   value_type: U_WORD
  8120.     #   min_value: 30
  8121.     #   max_value: 55
  8122.     #   #lambda: "return x / 10.0;"
  8123.     #   #write_lambda: "return x * 10.0;"
  8124.     #   step: 1
  8125.     #   mode: box
  8126.     #   entity_category: config
  8127.     #   skip_updates: 10
  8128.  
  8129.     # - platform: modbus_controller
  8130.     #   modbus_controller_id: sprsun_pc
  8131.     #   name: ${friendly_name} F52 Outlet temp offset stp
  8132.     #   address: 0x01B7
  8133.     #   unit_of_measurement: "°C"
  8134.     #   #icon: "mdi:fan-speed-1"
  8135.     #   id: f52_outlet_temp_offset_stp
  8136.     #   value_type: U_WORD
  8137.     #   min_value: 0
  8138.     #   max_value: 50
  8139.     #   #lambda: "return x / 10.0;"
  8140.     #   #write_lambda: "return x * 10.0;"
  8141.     #   step: 1
  8142.     #   mode: box
  8143.     #   entity_category: config
  8144.     #   skip_updates: 10
  8145.  
  8146.     # - platform: modbus_controller
  8147.     #   modbus_controller_id: sprsun_pc
  8148.     #   name: ${friendly_name} F54 Heat upper limit stp
  8149.     #   address: 0x01B8
  8150.     #   unit_of_measurement: "°C"
  8151.     #   #icon: "mdi:fan-speed-1"
  8152.     #   id: f54_heat_upper_limit_stp
  8153.     #   value_type: U_WORD
  8154.     #   min_value: 10
  8155.     #   max_value: 80
  8156.     #   #lambda: "return x / 10.0;"
  8157.     #   #write_lambda: "return x * 10.0;"
  8158.     #   step: 1
  8159.     #   mode: box
  8160.     #   entity_category: config
  8161.     #   skip_updates: 10
  8162.  
  8163.     # - platform: modbus_controller
  8164.     #   modbus_controller_id: sprsun_pc
  8165.     #   name: ${friendly_name} F55 Cool lower limit stp
  8166.     #   address: 0x01B9
  8167.     #   unit_of_measurement: "°C"
  8168.     #   #icon: "mdi:fan-speed-1"
  8169.     #   id: f55_cool_lower_limit_stp
  8170.     #   value_type: U_WORD
  8171.     #   min_value: 7
  8172.     #   max_value: 30
  8173.     #   #lambda: "return x / 10.0;"
  8174.     #   #write_lambda: "return x * 10.0;"
  8175.     #   step: 1
  8176.     #   mode: box
  8177.     #   entity_category: config
  8178.     #   skip_updates: 10
  8179.  
  8180.     - platform: modbus_controller
  8181.       modbus_controller_id: sprsun_pc
  8182.       name: ${friendly_name} R94 Oil return freq.
  8183.       address: 0x01BB
  8184.       unit_of_measurement: "Hz"
  8185.       #icon: "mdi:fan-speed-1"
  8186.       id: r94_oil_return_freq
  8187.       value_type: U_WORD
  8188.       min_value: 10
  8189.       max_value: 70
  8190.       #lambda: "return x / 10.0;"
  8191.       #write_lambda: "return x * 10.0;"
  8192.       step: 1
  8193.       mode: box
  8194.       entity_category: config
  8195.       skip_updates: 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement