# Bosch SG Ready

Source: https://docs.evcc.io/en/heating/bosch-sg-ready

Integrated via [emsesp.org](https://emsesp.org/)

Supported features: meter, dim

## Parameters

| Name | Description | Default / example | |
| --- | --- | --- | --- |
| host | IP address or hostname | 192.0.2.2 |  |
| token | Token |  |  |
| powersource | Power source (hpcurrpower, hppower) | hpcurrpower |  |
| tempsource | Temperature source (warmwater) |  |  |
| sg1 | SG1 input (hpin1opt, hpin2opt, hpin3opt, hpin4opt) | hpin1opt | advanced |
| sg4 | SG4 input (hpin1opt, hpin2opt, hpin3opt, hpin4opt) | hpin4opt | advanced |
| powercontrol | Power limitation EMS-ESP entity to limit the maximum compressor power (kW) at PV surplus. (pvmaxcomp) |  | advanced |
| value_normal_sg4 | Bitmask for SG4 in normal mode | 0xxxxxxxxxxx | advanced |
| value_normal_sg1 | Bitmask for SG1 in normal mode | 0xxxxxxxxxxxxxx | advanced |
| value_boost_sg4 | Bitmask for SG4 in boost mode | 1xxxxxxxxxxx | advanced |
| value_boost_sg1 | Bitmask for SG1 in boost mode |  | advanced |
| value_dim_sg1 | Bitmask for SG1 in dim mode | 1xxxxxxxxxxxxxx | advanced |
| value_dim_sg4 | Bitmask for SG4 in dim mode | 0xxxxxxxxxxx | advanced |
| cache | Cache Time interval for data refresh | 1s | advanced |

## Configuration example for evcc.yaml

```yaml
chargers:
    - name: my_heating
      type: template
      template: emsesp
      host: 192.0.2.2 # IP address or hostname
      token: # Token, optional
      powersource: hpcurrpower # Power source, [hpcurrpower, hppower] (optional)
      tempsource: # Temperature source, [warmwater] (optional)
      sg1: hpin1opt # SG1 input, [hpin1opt, hpin2opt, hpin3opt, hpin4opt] (optional)
      sg4: hpin4opt # SG4 input, [hpin1opt, hpin2opt, hpin3opt, hpin4opt] (optional)
      powercontrol: # Power limitation, EMS-ESP entity to limit the maximum compressor power (kW) at PV surplus. [pvmaxcomp] (optional)
      value_normal_sg4: 0xxxxxxxxxxx # Bitmask for SG4 in normal mode, optional
      value_normal_sg1: 0xxxxxxxxxxxxxx # Bitmask for SG1 in normal mode, optional
      value_boost_sg4: 1xxxxxxxxxxx # Bitmask for SG4 in boost mode, optional
      value_boost_sg1: # Bitmask for SG1 in boost mode, optional
      value_dim_sg1: 1xxxxxxxxxxxxxx # Bitmask for SG1 in dim mode, optional
      value_dim_sg4: 0xxxxxxxxxxx # Bitmask for SG4 in dim mode, optional
      cache: 1s # Cache, Time interval for data refresh (optional)
```
