Advertisement
blackscreener

Sprsun Heat Pump esphome logger

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