A charging station starts and stops charging, sets how much current to draw, and reports what it is doing. Home Assistant and Alexa integration through Node-RED adds voice control on top, so charging can follow a schedule, a tariff or the output of your solar array.
The following is a sample Node-RED output for this device using default component values:
{
"id": "{--Charging station Device ID--}",
"name": "{--Charging station Device Name--}",
"type": "charging_station",
"components": {
"PowerController": {
"powerState": "OFF"
},
"ModeController:Charger.Mode": {
"mode": "Mode.Manual"
},
"RangeController:Charger.Current": {
"rangeValue": 6
},
"ModeController:Charger.State": {
"mode": "State.Idle"
}
},
"metadata": {
"previous": {
"components": {
...
}
}
}
}This device reports values that Alexa can only be asked about. Send them to the hub node from your flow, and Alexa reads back whatever arrived last:
{
"id": "{--Charging station Device ID--}",
"components": {
"ModeController:Charger.State": {
"mode": "State.Idle"
}
}
}The following components enable various features and controls for this device. Each component offers specific capabilities, commands, and configurations to enhance your Node-RED Alexa integration.
The PowerController starts and stops charging.
Commands:
“Alexa, turn on the EV Station.”
“Alexa, turn off the EV Station.”
Specification:
| Property | Description | Allowed Values | Default |
|---|---|---|---|
| powerState | Indicates the device’s power state. | ON, OFF | OFF |
The Charger.Mode instance switches the charger between manual, automatic and scheduled charging.
Commands:
“Alexa, set the EV station mode to manual.”
“Alexa, what's the charging mode on the EV station?”
Specification:
| Property | Description | Allowed Values | Default |
|---|---|---|---|
| mode | Sets the operational mode of the device (e.g., garage door position). | Mode.Manual, Mode.Auto, Mode.Scheduled | Mode.Manual |
The Charger.Current instance sets how much current the charger draws, in amperes. Alexa has no unit for current, so it answers with the bare number.
Commands:
“Alexa, set the EV station charge current to 16.”
“Alexa, set the charge current on the EV station to 32.”
“Alexa, what's the EV station charge current?”
Specification:
| Property | Description | Allowed Values | Default |
|---|---|---|---|
| rangeValue | Specifies the range value for the device (e.g., fan speed or lift height). | 6 - 32 | 6 |
The Charger.State instance reports whether the charger is idle, charging, finished or unplugged.
Alexa can only ask about this value, never set it. Your flow keeps it up to date by sending it to the hub node.
Commands:
“Alexa, what's the EV station charging state?”
“Alexa, what's the charging state on the EV station?”
Specification:
| Property | Description | Allowed Values | Default |
|---|---|---|---|
| mode | Sets the operational mode of the device (e.g., garage door position). | State.Idle, State.Charging, State.Complete, State.Unplugged | State.Idle |