# Shelly i4 Gen3

Source: https://docs.evcc.io/fr/external-limit/shelly-i4-gen3

Connect the relay contacts of the control box to the inputs SW1 to SW4. All used inputs must be configured as input type "switch" in the Shelly app or web interface, not as "button".

## Paramètres

| Nom | Description | Par défaut / exemple | |
| --- | --- | --- | --- |
| host | IP address or hostname | 192.0.2.2 |  |
| maxconsumptionpower | Guaranteed minimum power (Pmin) Power limit applied to the root circuit while the limit is active. |  W |  |
| w4input | W4 input Input number for the W4 signal (Dimmer for controllable loads), 1 to 4 (SW1 = 1) | 1 |  |
| w3input | W3 input Input number for the W3 signal (Zero export, 0%), 1 to 4 (SW1 = 1) | 2 |  |
| password | Password Only required if authentication is enabled on the device (user is always admin) |  |  |
| productionnominalmax | Installed generator power Rated generator/module power of the installation (reference value according to § 9 EEG). |  Wp |  |
| s1input | S1 input Input number for the S1 signal (60% export power limit), 1 to 4 (SW1 = 1) | 3 |  |
| s2input | S2 input Input number for the S2 signal (30% export power limit), 1 to 4 (SW1 = 1) | 4 |  |

## Exemple de configuration pour evcc.yaml

```yaml
hems:
  type: template
  template: fnn-shelly-i4
  host: 192.0.2.2 # IP address or hostname
  maxconsumptionpower: # Guaranteed minimum power (Pmin) (W), Power limit applied to the root circuit while the limit is active.
  w4input: 1 # W4 input, Input number for the W4 signal (Dimmer for controllable loads), 1 to 4 (SW1 = 1)
  w3input: 2 # W3 input, Input number for the W3 signal (Zero export, 0%), 1 to 4 (SW1 = 1)
  password: # Password, Only required if authentication is enabled on the device (user is always admin) (optional)
  productionnominalmax: # Installed generator power (Wp), Rated generator/module power of the installation (reference value according to § 9 EEG). (optional)
  s1input: 3 # S1 input, Input number for the S1 signal (60% export power limit), 1 to 4 (SW1 = 1) (optional)
  s2input: 4 # S2 input, Input number for the S2 signal (30% export power limit), 1 to 4 (SW1 = 1) (optional)
```
