Skip to content

Commit 0830f23

Browse files
committed
refactor: BREAKING CHANGE rename engines for better understanding
1 parent ef44aa2 commit 0830f23

30 files changed

+62
-56
lines changed

docs/en/compile_coverage.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* common.yaml
55
* power_meter_fronius.yaml
66
* regulator_triac.yaml
7-
* engine_progressive.yaml
7+
* engine_1dimmer.yaml
88
* energy_counter_theorical.yaml
99
* temperature_limiter_DS18B20.yaml
1010

@@ -13,11 +13,11 @@
1313

1414
## esp8266-standalone_on_off
1515
* power_meter_home_assistant.yaml
16-
* engine_on_off.yaml
16+
* engine_1switch.yaml
1717
* regulator_mecanical_relay.yaml
1818
* temperature_limiter_home_assistant.yaml
1919

2020
## esp8266-proxy-client
2121
* power_meter_proxy_client.yaml
22-
* engine_progressive_with_bypass.yaml
22+
* engine_1dimmer_1bypass.yaml
2323
* regulator_solid_state_relay.yaml

docs/en/engine.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
# Solar router engine
1+
# Solar router engines
22

33
An engine is designed to define how many and when energy has to be diverted.
44

5-
Different kind of engine exists whach can progressively divert energy to a load and manage an ON/OFF switch.
5+
Different kind of engine exists whach can progressively divert energy to a load and manage an ON/OFF switch. See details into engine's dedicated pages.
6+
7+
!!! note "Engine naming"
8+
The name of engine is reflecting how energy divertion is performed:
9+
**Example** : `engine_1dimmer_1bypass` will manage 1 dimmer managing a progressive regulation associated with a bypass relay.
610

711

812
### User feedback LEDS

docs/en/engine_progressive.md renamed to docs/en/engine_1dimmer.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

2-
# Progressive Engine
2+
# engine_1dimmer
33

44
This package is implementing the engine of the solar router which determines when and how many energy has to be diverted to the load.
55

6-
**Progressive engine** calls every second the power meter to get the actual energy exchanged with the grid. If energy produce is greater than energy consummed and exceed the define echange target, the engine will determine the **percentage of the regulator "opening"** and adjusts it dynamically to reach the target.
6+
**engine_1dimmer** calls every second the power meter to get the actual energy exchanged with the grid. If energy produce is greater than energy consummed and exceed the define echange target, the engine will determine the **percentage of the regulator "opening"** and adjusts it dynamically to reach the target.
77

88
Engine's automatic regulation can be activated or deactivated with the activation switch.
99

@@ -27,6 +27,6 @@ To use this package, add the following lines to your configuration file:
2727
packages:
2828
engine:
2929
url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
30-
file: solar_router/engine_progressive.yaml
30+
file: solar_router/engine_1dimmer.yaml
3131
```
3232

docs/en/engine_progressive_with_bypass.md renamed to docs/en/engine_1dimmer_1bypass.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Regulator with Bypass Engine
1+
# engine_1dimmer_1bypass
22

33
This package implements the engine of the solar router which determines when and how much energy has to be diverted to the load, with a bypass function for maximum efficiency.
44

55
When the regulator is intensively used for an extended period, the regulator will tends to overheat. This engine is designed to avoid this issue by activating a bypass relay and turning off the regulator when the regulator is opened at 100% for an extended period. To avoid flickering, the bypass relay is activated only when the regulator is opened at 100% for a number of consecutive regulation.
66

7-
**Regulator with Bypass engine** calls every second the power meter to get the actual energy exchanged with the grid. If energy produced is greater than energy consumed and exceeds the defined exchange target, the engine will determine the **percentage of regulator opening** and adjusts it dynamically to reach the target. When the regulator reaches 100% for an extended period, the bypass relay is activated for maximum efficiency.
7+
**engine_1dimmer_1bypass** calls every second the power meter to get the actual energy exchanged with the grid. If energy produced is greater than energy consumed and exceeds the defined exchange target, the engine will determine the **percentage of regulator opening** and adjusts it dynamically to reach the target. When the regulator reaches 100% for an extended period, the bypass relay is activated for maximum efficiency.
88

99
Engine's automatic regulation can be activated or deactivated with the activation switch.
1010

@@ -34,9 +34,9 @@ To use this package, add the following lines to your configuration file:
3434

3535
```yaml linenums="1"
3636
packages:
37-
engine_regulator_with_bypass:
37+
engine_regulator_1bypass:
3838
url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
39-
file: solar_router/engine_regulator_with_bypass.yaml
39+
file: solar_router/engine_regulator_1bypass.yaml
4040
```
4141
4242
!!! tip "Adjusting Bypass Tempo"

docs/en/engine_on_off.md renamed to docs/en/engine_1switch.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11

2-
# ON/OFF Engine
2+
# engine_1switch
33

44
This package is implementing the engine of the solar router which determines energy can be diverted to a local load or not.
55

6-
**ON/OFF engine** calls every second the power meter to get the actual power consumed. If energy sent to the grid is greater than the divertion start level (in W) during start tempo (in s), the relay is closed to use the energy locally. When the energy sent to the grid reach the level (in W) defined to stop the divertion during stop tempo (in s), the relay is openned and local consomption is stopped.
6+
**engine_1switch** calls every second the power meter to get the actual power consumed. If energy sent to the grid is greater than the divertion start level (in W) during start tempo (in s), the relay is closed to use the energy locally. When the energy sent to the grid reach the level (in W) defined to stop the divertion during stop tempo (in s), the relay is openned and local consomption is stopped.
77

8-
ON/OFF engine's automatic regulation can be activated or deactivated with the activation switch.
8+
engine_1switch's automatic regulation can be activated or deactivated with the activation switch.
99

1010
The following schema is representing the consumption with this engine activated:
1111

12-
![engine_on_off](images/engine_on_off.png)
12+
![engine_1switch](images/engine_1switch.png)
1313

1414
**Legend:**
1515

@@ -36,7 +36,7 @@ To use this package, add the following lines to your configuration file:
3636
packages:
3737
engine:
3838
url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
39-
file: solar_router/engine_on_off.yaml
39+
file: solar_router/engine_1switch.yaml
4040
```
4141
4242
When this package is used it is required to define the following paramater is `substitution` section as show in the example bellow:

docs/en/example_proxy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The configuration of the **Proxy client** is only using a [Home Assistant power
66
--8<-- "esp8285-power-meter-proxy.yaml"
77
```
88

9-
This configuration the **Solar Router** is using [Proxy client power meter](power_meter_proxy_client.md), [Triac regulator](regulator_triac.md) and [Solar router engine](engine_progressive.md).
9+
This configuration the **Solar Router** is using [Proxy client power meter](power_meter_proxy_client.md), [Triac regulator](regulator_triac.md) and [Solar router engine](engine_1dimmer.md).
1010

1111
GPIO pins have been defined to match hardware configuration described [here](hardware.md)
1212

docs/en/example_standalone.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Standalone Solar Router
22

3-
This configuration implements a **Solar Router** with a progressive regulation. It uses [Fronuis power meter](power_meter_fronius.md), [Triac regulator](regulator_triac.md), [Progressive engine](engine_progressive.md).
3+
This configuration implements a **Solar Router** with a progressive regulation. It uses [Fronuis power meter](power_meter_fronius.md), [Triac regulator](regulator_triac.md), [Progressive engine](engine_1dimmer.md).
44

55
GPIO pins have been defined to match hardware configuration described [here](hardware.md)
66

docs/en/hardware.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ Bill of material:
4545
* 1 x ESP8266 (or equivalent)
4646

4747
!!! Note "This router has some limitation"
48-
* It has to be used with ON/OFF regulation (engine_on_off.yaml) and is not compatible with variable engine
48+
* It has to be used with ON/OFF regulation (engine_1switch.yaml) and is not compatible with variable engine
4949
* Due to the small space of memory, it doesn't support OTA update

docs/en/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ A **proxy** just need 1 **power meter** package
5151

5252
#### Step 2.3: Add an Engine
5353

54-
* [Progressive Engine](engine_progressive.md)
54+
* [Progressive Engine](engine_1dimmer.md)
5555
Read power exchange with the grid, determine and apply the percentage of router level.
5656

57-
* [ON/OFF Engine](engine_on_off.md)
57+
* [ON/OFF Engine](engine_1switch.md)
5858
Read power exchange with the grid, and start to divert energy if a threshold is reached and stop if another threshold is reached.
5959

6060
#### Step 2.4: Add an Energy Counter (*Optional*)

docs/en/regulator_mecanical_relay.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The following schematic is representing the wiring of the relay:
1212

1313
!!! Warning "Be carefull during wiring and use the Normally Open (NO) pin."
1414

15-
!!! Danger "WARNING : This kind of relay is not compatible with progressive engine. Only use it [engine ON/OFF](engine_on_off.md)"
15+
!!! Danger "WARNING : This kind of relay is not compatible with progressive engine. Only use it [engine ON/OFF](engine_1switch.md)"
1616

1717
To use this package, add the following lines to your configuration file:
1818

docs/fr/engine.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22

33
Un moteur est conçu pour définir la quantité et le moment où l'énergie doit être détournée.
44

5-
Différents types de moteurs existent, qui peuvent progressivement détourner l'énergie vers une charge et gérer un interrupteur ON/OFF.
5+
Différents types de moteurs existent, qui peuvent progressivement détourner l'énergie vers une charge et gérer un interrupteur ON/OFF.
6+
Pour plus de détails, référez vous aux pages dédiées des moteurs.
7+
8+
!!! note "Nommage des moteurs"
9+
Le nom du moteur reflète la façon dont le détournement d'énergie est effectué :
10+
**Exemple** : `engine_1dimmer_1bypass` gérera 1 gradateur assurant une régulation progressive associée à un relais de dérivation.
11+
612

713
### LEDs de retour utilisateur
814

docs/fr/engine_progressive.md renamed to docs/fr/engine_1dimmer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Progressive Engine
1+
# engine_1dimmer
22

33
Ce package implémente le moteur du routeur solaire qui détermine quand et quelle quantité d'énergie doit être déviée vers la charge.
44

5-
Le **progressive engine** appelle toutes les secondes le compteur d'énergie pour obtenir l'énergie réelle échangée avec le réseau. Si l'énergie produite est supérieure à l'énergie consommée et dépasse la cible d'échange définie, le moteur déterminera le **pourcentage d'ouverture du régulateur** et l'ajustera dynamiquement pour atteindre la cible.
5+
Le **engine_1dimmer** appelle toutes les secondes le compteur d'énergie pour obtenir l'énergie réelle échangée avec le réseau. Si l'énergie produite est supérieure à l'énergie consommée et dépasse la cible d'échange définie, le moteur déterminera le **pourcentage d'ouverture du régulateur** et l'ajustera dynamiquement pour atteindre la cible.
66

77
La régulation automatique du moteur peut être activée ou désactivée avec l'interrupteur d'activation.
88

docs/fr/engine_progressive_with_bypass.md renamed to docs/fr/engine_1dimmer_1bypass.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Régulation progressive avec Bypass
1+
# engine_1dimmer_1bypass
22

33
Ce package implémente le moteur du routeur solaire qui détermine quand et quelle quantité d'énergie doit être déviée vers la charge, avec une fonction de bypass pour une efficacité maximale.
44

55
Lorsque le régulateur est utilisé intensivement pendant une période prolongée, il aura tendance à surchauffer. Ce moteur est conçu pour éviter ce problème en activant un relais de bypass et en éteignant le régulateur lorsque celui-ci est ouvert à 100% pendant une période prolongée. Pour éviter le scintillement, le relais de bypass n'est activé que lorsque le régulateur est ouvert à 100% pendant un nombre consécutif de régulations.
66

7-
Le **régulateur avec bypass** interroge chaque seconde le compteur d'énergie pour obtenir l'énergie réelle échangée avec le réseau. Si l'énergie produite est supérieure à l'énergie consommée et dépasse l'objectif d'échange défini, le moteur déterminera le **pourcentage d'ouverture du régulateur** et l'ajustera dynamiquement pour atteindre l'objectif. Lorsque le régulateur atteint 100% pendant une période prolongée, le relais de bypass est activé pour une efficacité maximale.
7+
Le **engine_1dimmer_1bypass** interroge chaque seconde le compteur d'énergie pour obtenir l'énergie réelle échangée avec le réseau. Si l'énergie produite est supérieure à l'énergie consommée et dépasse l'objectif d'échange défini, le moteur déterminera le **pourcentage d'ouverture du régulateur** et l'ajustera dynamiquement pour atteindre l'objectif. Lorsque le régulateur atteint 100% pendant une période prolongée, le relais de bypass est activé pour une efficacité maximale.
88

99
La régulation automatique du moteur peut être activée ou désactivée avec l'interrupteur d'activation.
1010

@@ -35,9 +35,9 @@ Pour utiliser ce package, ajoutez les lignes suivantes à votre fichier de confi
3535

3636
```yaml linenums="1"
3737
packages:
38-
engine_regulator_with_bypass:
38+
engine_regulator_1bypass:
3939
url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
40-
file: solar_router/engine_regulator_with_bypass.yaml
40+
file: solar_router/engine_regulator_1bypass.yaml
4141
```
4242
4343
!!! tip "Ajustement du Bypass tempo"

docs/fr/engine_on_off.md renamed to docs/fr/engine_1switch.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# ON/OFF Engine
1+
# engine_1switch
22

33
Ce package implémente le moteur du routeur solaire qui détermine si l'énergie peut être détournée vers une charge locale ou non.
44

5-
Le ***ON/OFF engine*** appelle chaque seconde le compteur d'énergie pour obtenir la puissance réelle consommée. Si l'énergie envoyée au réseau est supérieure au niveau de démarrage du détournement (en W) pendant le temps de démarrage (en s), le relais est fermé pour utiliser l'énergie localement. Lorsque l'énergie envoyée au réseau atteint le niveau défini (en W) pour arrêter le détournement pendant le temps d'arrêt (en s), le relais est ouvert et la consommation locale est arrêtée.
5+
Le ***engine_1switch*** appelle chaque seconde le compteur d'énergie pour obtenir la puissance réelle consommée. Si l'énergie envoyée au réseau est supérieure au niveau de démarrage du détournement (en W) pendant le temps de démarrage (en s), le relais est fermé pour utiliser l'énergie localement. Lorsque l'énergie envoyée au réseau atteint le niveau défini (en W) pour arrêter le détournement pendant le temps d'arrêt (en s), le relais est ouvert et la consommation locale est arrêtée.
66

7-
La régulation automatique du *ON/OFF engine* peut être activée ou désactivée avec l'interrupteur d'activation.
7+
La régulation automatique du *engine_1switch* peut être activée ou désactivée avec l'interrupteur d'activation.
88

99
Le schéma suivant représente la consommation avec ce moteur activé :
1010

11-
![engine_on_off](images/engine_on_off.png)
11+
![engine_1switch](images/engine_1switch.png)
1212

1313
**Légende :**
1414

@@ -35,6 +35,6 @@ Pour utiliser ce package, ajoutez les lignes suivantes à votre fichier de confi
3535
packages:
3636
engine:
3737
url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
38-
file: solar_router/engine_on_off.yaml
38+
file: solar_router/engine_1switch.yaml
3939
```
4040

docs/fr/example_proxy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ La configuration du **client Proxy** utilise uniquement un [compteur de puissanc
77
--8<-- "esp8285-power-meter-proxy.yaml"
88
```
99

10-
Cette configuration du **Routeur Solaire** utilise un [compteur de puissance client Proxy](power_meter_proxy_client.md), un [régulateur Triac](regulator_triac.md) et un [moteur de routeur solaire](engine_progressive.md).
10+
Cette configuration du **Routeur Solaire** utilise un [compteur de puissance client Proxy](power_meter_proxy_client.md), un [régulateur Triac](regulator_triac.md) et un [moteur de routeur solaire](engine_1dimmer.md).
1111

1212
Les broches GPIO ont été définies pour correspondre à la configuration matérielle décrite [ici](hardware.md)
1313

docs/fr/example_standalone.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Routeur Solaire Autonome
22

3-
Cette configuration implement un **Routeur Solaire** avec une régulation profressive. Il utilise le [powermeter Fronius](power_meter_fronius.md), le [regulator Triac](regulator_triac.md), et le [progressive engine](engine_progressive.md).
3+
Cette configuration implement un **Routeur Solaire** avec une régulation profressive. Il utilise le [powermeter Fronius](power_meter_fronius.md), le [regulator Triac](regulator_triac.md), et le [progressive engine](engine_1dimmer.md).
44

55
Les broches GPIO ont été définies pour correspondre à la configuration matérielle décrite [ici](hardware.md)
66

docs/fr/hardware.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ Liste des composants :
4545
* 1 x ESP8266 (ou équivalent)
4646

4747
!!! Note "Ce routeur a quelques limitations"
48-
* Il doit être utilisé avec une regulation Tout ou Rien (engine_on_off.yaml) et n'est pas compatible avec une régulation progressive
48+
* Il doit être utilisé avec une regulation Tout ou Rien (engine_1switch.yaml) et n'est pas compatible avec une régulation progressive
4949
* En raison de l'espace mémoire limité, il ne prend pas en charge la mise à jour OTA

docs/fr/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ Un **proxy** n'a besoin que d'un package **power meter**
4949

5050
#### Étape 2.3 : Ajouter un engine
5151

52-
* [Régulation progressive](engine_progressive.md)
52+
* [Régulation progressive](engine_1dimmer.md)
5353
Lit l'échange de puissance avec le réseau, déterminer et appliquer le pourcentage d'ouverture du regulator.
5454

55-
* [Régulation tout ou rien](engine_on_off.md)
55+
* [Régulation tout ou rien](engine_1switch.md)
5656
Lit l'échange de puissance avec le réseau, et commencer à détourner l'énergie si un seuil est atteint et arrêter si un autre seuil est atteint.
5757

5858
#### Étape 2.4 : Ajouter un Compteur d'Énergie (*Optionnel*)

docs/fr/regulator_mecanical_relay.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Le schéma suivant représente le câblage du relais :
1212

1313
!!! Attention "Soyez prudent lors du câblage et utilisez la broche Normalement Ouverte (NO)."
1414

15-
!!! Danger "AVERTISSEMENT : Ce type de relais n'est pas compatible avec les moteurs à vitesse progressive. Utilisez-le uniquement pour [moteur ON/OFF](engine_on_off.md)"
15+
!!! Danger "AVERTISSEMENT : Ce type de relais n'est pas compatible avec les moteurs à vitesse progressive. Utilisez-le uniquement pour [moteur ON/OFF](engine_1switch.md)"
1616

1717
Pour utiliser ce package, ajoutez les lignes suivantes à votre fichier de configuration :
1818

File renamed without changes.

esp32-standalone.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,6 @@ packages:
9191
refresh: 1d
9292
engine:
9393
url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
94-
file: solar_router/engine_progressive.yaml
94+
file: solar_router/engine_1dimmer.yaml
9595
refresh: 1d
9696

esp32-standalone_DS18B20.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ substitutions:
6060
# Define ip address of Power Meter (Fronius Inverter)
6161
power_meter_ip_address: "192.168.1.21"
6262

63-
64-
# Regulator --------------------------------------------------------------------
65-
regulator: "ac_dimmer"
66-
6763
# Regulator configuration
6864
# Define GPIO pin connected to AC Dimmer for gate and zero crossing detection.
6965
regulator_gate_pin: GPIO22
@@ -93,15 +89,15 @@ packages:
9389
url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
9490
file: solar_router/regulator_triac.yaml
9591
refresh: 1d
96-
solar_router:
92+
engine:
9793
url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
98-
file: solar_router/engine_progressive.yaml
94+
file: solar_router/engine_1dimmer.yaml
9995
refresh: 1d
10096
energy_counter:
10197
url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
10298
file: solar_router/energy_counter_theorical.yaml
10399
refresh: 1d
104-
temperature_limmiter:
100+
temperature_limiter:
105101
url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
106102
file: solar_router/temperature_limiter_DS18B20.yaml
107103
refresh: 1d

esp8266-proxy-client.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ packages:
6060
refresh: 1d
6161
engine:
6262
url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
63-
file: solar_router/engine_progressive_with_bypass.yaml
63+
file: solar_router/engine_1dimmer_1bypass.yaml
6464
refresh: 1d
6565
regulator:
6666
url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/

esp8266-standalone_on_off.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ packages:
6666
refresh: 1d
6767
engine:
6868
url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
69-
file: solar_router/engine_on_off.yaml
69+
file: solar_router/engine_1switch.yaml
7070
refresh: 1d
7171
temperature_limiter:
7272
url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/

0 commit comments

Comments
 (0)