Skip to content
EN | DE

Home Assistant Switch

Home Assistant instances in your network will be auto-discovered and suitable entities (e.g. switch.*, sensor.*) will be suggested.

Parameters

NameDescriptionValueLevel
uriHome Assistant URI
Example: http://homeassistant.local:8123
optional
switchEntity ID of the switch device
Example: switch.smartsocket
optional
powerEntity ID for power measurement
Example: sensor.smartsocket_power
optional
standbypower [W]Standby power

Power values above this value will be considered as charging power and hence status "charging". Negative values deactivate status detection.

Default: 15
optional
integrateddeviceIntegrated device

Integrated device. No charging sessions

advanced
heatingHeating device

Shows °C instead of %

advanced
iconIcon

Will be displayed in the user interface

advanced
Configuration example for evcc.yaml

If you don't want to configure via the UI, you can alternatively use this YAML block.

chargers:
- name: my_smartswitch
type: template
template: homeassistant-switch
uri: http://homeassistant.local:8123 # Home Assistant URI
switch: switch.smartsocket # Entity ID of the switch device
power: sensor.smartsocket_power # Entity ID for power measurement, 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)