# SONOFF MINI-1GSP

Zdroj: https://docs.evcc.io/cs/smartswitches/sonoff-mini-1gsp

Requires a device with SONOFF RPC API. The password is set in the eWeLink app.

Podporované funkce: meter

## Parametry

| Název | Popis | Výchozí / příklad | |
| --- | --- | --- | --- |
| host | IP address or hostname | 192.0.2.2 |  |
| user | Username e.g. email address, user id, etc. | admin |  |
| password | Password Service account password |  |  |
| channel | Relay channel | 1 |  |
| standbypower | Standby power Power values above this value will be considered as charging power and hence status "charging". Negative values deactivate status detection. | 15 W |  |
| integrateddevice | Integrated device Integrated device. No charging sessions |  | pokročilé |
| heating | Heating device Shows °C instead of % |  | pokročilé |
| icon | Icon Will be displayed in the user interface (car, bike, bus, moped, motorcycle, rocket, scooter, taxi, tractor, rickshaw, shuttle, van, airpurifier, battery, bulb, climate, coffeemaker, compute, cooking, cooler, desktop, device, dishwasher, dryer, floorlamp, generic, heater, heatexchange, heatpump, kettle, laundry, laundry2, machine, meter, microwave, pump, smartconsumer, tool, waterheater) |  | pokročilé |

## Příklad konfigurace pro evcc.yaml

```yaml
chargers:
    - name: my_smartswitch
      type: template
      template: sonoff
      host: 192.0.2.2 # IP address or hostname
      user: admin # Username, e.g. email address, user id, etc. (optional)
      password: # Password, Service account password (optional)
      channel: 1 # Relay channel, optional
      standbypower: 15 # Standby power (W), Power values above this value will be considered as charging power and hence status "charging". Negative values deactivate status detection. (optional)
      integrateddevice: # Integrated device, Integrated device. No charging sessions (optional)
      heating: # Heating device, Shows °C instead of % (optional)
      icon: # Icon, Will be displayed in the user interface [car, bike, bus, moped, motorcycle, rocket, scooter, taxi, tractor, rickshaw, shuttle, van, airpurifier, battery, bulb, climate, coffeemaker, compute, cooking, cooler, desktop, device, dishwasher, dryer, floorlamp, generic, heater, heatexchange, heatpump, kettle, laundry, laundry2, machine, meter, microwave, pump, smartconsumer, tool, waterheater] (optional)
```
