Skip to content

Commit

Permalink
Update Register 2, 4, 6 values min_max with checking Register 2 min/m…
Browse files Browse the repository at this point in the history
…ax which depends on emmission type installed (#60)

* Update heatpump.yaml min max temp register 2, 4, 6

Register 2 with checks for min and max allowed temp depends for emmission types -unfortunatelly it is impossible to set min_value and max_value in lambda ;(

* Update CHANGELOG.md

* Update heatpump.yaml Update Register 210 -move R/O sensor to binary_sensor

I'm sorry -i was missed some Register 210 bits that is ReadOnly -this move these back to binary sensors ;)

* Update heatpump.yaml Update Register 272

Changed in lambda  mapping array position to if condition check to avoid error in array select ;)

* Update heatpump.yaml

Commented in lambda ESP_LOG

* Update heatpump.yaml

restoring extracting 4-bit values

* Update heatpump.yaml

corrections of zones decode

* Update heatpump.yaml

remove reg:272 bit 12-15 mapping global from x ;)

* Update heatpump.yaml

removed extra line

* Update heatpump.yaml reduced to max 60deg setting t1s

* Update heatpump.yaml reverted lambda and write_lambda changes register 2

Rebverted in write lmabda:
      // Apply minmax for standard temp
      auto operation_state = id(${devicename}_operational_mode).state;
      auto end_heating_unit = id(${devicename}_zone_2_end_heating_mode_emission_type).state;
      auto end_cooling_unit = id(${devicename}_zone_2_end_cooling_mode_emission_type).state;
      if (operation_state == "Cool") {
        if (x < 5 and end_cooling_unit == "Fan Coil Unit") value_byte = 5;
        if (x < 18 and end_cooling_unit != "Fan Coil Unit") value_byte = 18;
        if (x >25) value_byte = 25;
      } else if (operation_state == "Heat") {
        if (x < 25 and end_heating_unit == "Underfloor Heating") value_byte = 25;
        if (x > 55 and end_heating_unit == "Underfloor Heating") value_byte = 55;
        if (x < 35 and end_heating_unit == "Radiator") value_byte = 35;
        if (x > 60 and end_heating_unit == "Radiator") value_byte = 60;
      }

* Update heatpump.yaml

Removed spaces in globals registers 210
  • Loading branch information
rysiulg authored Nov 2, 2024
1 parent 8d9eb83 commit 939b8e7
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 202 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Update Register 2 min max value with verifing depending emmision type settings
- Update Regioster 3 and 4 min, max value range
- Add COP -Heat pump efficiency factor
- Update Register: 103 -Convert valve open position to percent representation
- Update Register: 101 is moved to text sensor with status
Expand Down
Loading

0 comments on commit 939b8e7

Please sign in to comment.