Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 17 additions & 8 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,29 @@ Currently supported commands are:
- `Get-Tesla` commands:
- `climate_state`
- `charge_state`
- `gui_settings`
- `drive_state`
- `gui_settings`
- `mobile_enabled`
- `nearby_charging_sites`
- `vehicle_state`
- `vehicle_config`
- `vehicles`
- `Set-Tesla` commands:
- `mobile_enabled`
- `Set-Tesla` commands:
- `auto_conditioning_start`
- `auto_conditioning_stop`
- `charge_max_range`
- `charge_port_door_open`
- `charge_port_door_close`
- `charge_standard`
- `charge_start`
- `charge_stop`
- `door_lock`
- `door_unlock`
- `sun_roof_control?state=close`
- `sun_roof_control?state=comfort`
- `sun_roof_control?state=vent`
- `charge_stop`
- `charge_start`
- `flash_lights`
- `honk_horn`
- `reset_valet_pin`
- `upcoming_calendar_entries`
- `wake_up`

## Example Usage

Expand Down Expand Up @@ -78,5 +85,7 @@ PS> `Set-Tesla -Command auto_conditioning_start`

The syntax for specific commands could be improved a bit, and this should eventually have proper installer / package manager package.

Support for parameterized commands is currently under work. This would be stuff like `set_charge_limit?percent=:limit_value` or `set_valet_mode?on=:on&password=:password`.

Fixes, suggestions, improvements etc. are all welcome via the GitHub repository.
[https://github.com/JonnMsft/TeslaPSModule](https://github.com/JonnMsft/TeslaPSModule)
13 changes: 9 additions & 4 deletions Tesla.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,8 @@ Set-Tesla
'climate_state',
'drive_state',
'gui_settings',
'mobile_enabled',
'nearby_charging_sites',
'vehicle_state',
'vehicle_config',
'vehicles'
Expand Down Expand Up @@ -364,15 +366,18 @@ Get-Tesla
[parameter(Mandatory=$true,Position=0)]
[ValidateSet('auto_conditioning_start',
'auto_conditioning_stop',
'door_lock',
'door_unlock',
'charge_port_door_open',
'charge_max_range',
'charge_port_door_open',
'charge_port_door_close',
'charge_standard',
'charge_start',
'charge_stop',
'door_lock',
'door_unlock',
'flash_lights',
'honk_horn',
'reset_valet_pin',
'upcoming_calendar_entries',
'wake_up'
)]
[string]$Command
Expand All @@ -385,4 +390,4 @@ Get-Tesla
Write-Progress -Activity $activity -Status 'Completed' -Completed
}

Export-ModuleMember Connect-Tesla,Get-Tesla,Set-Tesla
Export-ModuleMember Connect-Tesla,Get-Tesla,Set-Tesla