Actions
Home Assistant actions (formely services) allow you to call vehicle and energy commands from within Home Assistant, which is useful for automations and scripts.
Target Entity or Device?
A common mistake when using actions is to use the device, rather than the entity.
When calling a generic action like switch.turn_on
while targeting a device, it will turn all of that devices switches on, rather than the specific entity you want.
Targets are additive, so targeting both the device and entity will turn on all switches on the device, and the specific entity.
Waking your vehicle
If the integrations knows your vehicle is asleep, it will attempt to wake it up before sending a command. Calling the wake up button action before making another command will not help, as it is effectively the same as calling the command directly.
Failures
A command may fail for a number of reasons, as such you should build your automations to continue on error, or handle the error in some way.
Known Issues
These are some issues you may encounter when using actions:
- Commands are unreliable if your vehicle or powerwall has an unstable connection. You can confirm this by attempting to perform the same action in the Tesla app.
- Calling any command frequently (set charge amps for example) will result in Tesla blocking your requests for a period of time. For frequent local control, use bluetooth.