diff --git a/README.md b/README.md index 27eb1d5..bf4c908 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,14 @@ _Component developed by using the amazing development template [blueprint][blueprint]._ -This custom component for Home Assistant is an upgrade and complete rewrite of the component "Awesome thermostat" (see [Github](https://github.com/dadge/awesome_thermostat)) with addition of features. +This custom component for Home Assistant is an upgrade and is a complete rewrite of the component "Awesome thermostat" (see [Github](https://github.com/dadge/awesome_thermostat)) with addition of features. + +## When to use / not use +This thermostat aims to command a heater which works only in on/off mode. This thermostat is not suitable for heaters with a pilot wire. The minimal needed configuration to use this thermostat is: +1. an equipement like a heater (a switch), +2. a temperature sensor (or an input_number) + +Because this integration aims to command the heater considering the preset configured and the room temperature, those informations are mandatory. ## Why another thermostat implementation ? For my personnal usage, I needed to add a couple of features and also to update the behavior that I implemented in my previous component "Awesome thermostat". @@ -129,6 +136,12 @@ Depending of your area and heater, the convergente temperature can be under the A function parameter is available. Set it to "Linear" to have a linéar growth of temperature or set it to "Atan" to have a more aggressive curve to target temperature depending of your need. +Some results: +Convergence of temperature to target configured by preset: +![image](https://github.com/jmcollin78/versatile_thermostat/blob/dev/images/results-1.png?raw=true) + +Cycle of on/off calculated by the integration: +![image](https://github.com/jmcollin78/versatile_thermostat/blob/dev/images/results-2.png?raw=true) Enjoy ! @@ -158,6 +171,35 @@ In this example I set ECO mode during the night and the day when nobody's at hom I hope this example helps you, don't hesitate to give me your feedbacks ! +## Even / even better with custom:simple-thermostat front integration +The custom:simple-thermostat (see https://home.clouderial.fr/hacs/repository/158654878) is a great integration which allow some customisation which fits well with this thermostat. +You can have something like that very easily ![image](https://github.com/jmcollin78/versatile_thermostat/blob/dev/images/simple-thermostat.png?raw=true) +Example configuration: + +``` + type: custom:simple-thermostat + entity: climate.thermostat_sam2 + layout: + step: row + label: + temperature: T° + state: Etat + hide: + state: false + control: + hvac: + _name: Mode + preset: + _name: Preset + sensors: + - entity: sensor.total_puissance_radiateur_sam2 + icon: mdi:lightning-bolt-outline + header: + toggle: + entity: input_boolean.etat_ouverture_porte_sam + name: Porte sam +``` + ## Contributions are welcome! If you want to contribute to this please read the [Contribution guidelines](CONTRIBUTING.md) diff --git a/custom_components/versatile_thermostat/climate.py b/custom_components/versatile_thermostat/climate.py index d1a08b1..8dca82f 100644 --- a/custom_components/versatile_thermostat/climate.py +++ b/custom_components/versatile_thermostat/climate.py @@ -842,6 +842,10 @@ class VersatileThermostat(ClimateEntity, RestoreEntity): """Check the overpowering condition Turn the preset_mode of the heater to 'power' if power conditions are exceeded """ + + if not self._pmax_on: + return + _LOGGER.debug( "%s - overpowering check: power=%.3f, max_power=%.3f heater power=%.3f", self, diff --git a/images/results-1.png b/images/results-1.png new file mode 100644 index 0000000..34592a5 Binary files /dev/null and b/images/results-1.png differ diff --git a/images/results-2.png b/images/results-2.png new file mode 100644 index 0000000..448b796 Binary files /dev/null and b/images/results-2.png differ diff --git a/images/simple-thermostat.png b/images/simple-thermostat.png new file mode 100644 index 0000000..06b25b5 Binary files /dev/null and b/images/simple-thermostat.png differ