tesla-0.7.4.0: Tesla API client.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Tesla.Car.Command.Climate

Synopsis

Documentation

hvacOn :: forall {m}. MonadIO m => Car m CommandResponse Source #

hvacOff :: forall {m}. MonadIO m => Car m CommandResponse Source #

climateKeeper :: MonadIO m => ClimateKeeper -> Car m CommandResponse Source #

Configure the climate keeper.

seatClimate :: MonadIO m => Seat -> Maybe SeatClimate -> Car m CommandResponse Source #

Adjust the climate control settings for a seat.

data Seat Source #

Which seat to control.

Instances

Instances details
Bounded Seat Source # 
Instance details

Defined in Tesla.Car.Command.Climate

Enum Seat Source # 
Instance details

Defined in Tesla.Car.Command.Climate

Methods

succ :: Seat -> Seat #

pred :: Seat -> Seat #

toEnum :: Int -> Seat #

fromEnum :: Seat -> Int #

enumFrom :: Seat -> [Seat] #

enumFromThen :: Seat -> Seat -> [Seat] #

enumFromTo :: Seat -> Seat -> [Seat] #

enumFromThenTo :: Seat -> Seat -> Seat -> [Seat] #

Show Seat Source # 
Instance details

Defined in Tesla.Car.Command.Climate

Methods

showsPrec :: Int -> Seat -> ShowS #

show :: Seat -> String #

showList :: [Seat] -> ShowS #

Eq Seat Source # 
Instance details

Defined in Tesla.Car.Command.Climate

Methods

(==) :: Seat -> Seat -> Bool #

(/=) :: Seat -> Seat -> Bool #

data SeatLevel Source #

For seat climate control, how much heating or cooling to apply.

Constructors

SeatLeast 
SeatMedium 
SeatMost 

data SeatClimate Source #

Instances

Instances details
Show SeatClimate Source # 
Instance details

Defined in Tesla.Car.Command.Climate

Eq SeatClimate Source # 
Instance details

Defined in Tesla.Car.Command.Climate

data SeatMode Source #

For seat climate control, whether to heat or cool.

Constructors

SeatHeat 
SeatCool 

setTemps :: MonadIO m => (Double, Double) -> Car m CommandResponse Source #

Set the main HVAC temperatures (driver and passenger).

wheelHeater :: MonadIO m => Bool -> Car m CommandResponse Source #

Turn on the steering wheel heater

bioweaponMode :: MonadIO m => Bool -> Car m CommandResponse Source #

Turn on or off bioweapon defense mode.

If HVAC is off, turning on bioweapon defense mode will also turn on HVAC.

data Sometimes Source #

When configuring scheduled departure, preconditioning and off-peak charging both have weekday only options.

Constructors

Never 
Always 
WeekdaysOnly 

data OffPeakConfig Source #

Configuration for off-peak charging for a schedule departure.

type Preconditioning = Sometimes Source #

Type alias to make scheduleDeparture more readable.

scheduleDeparture :: MonadIO m => Time -> Preconditioning -> Maybe OffPeakConfig -> Car m CommandResponse Source #

Schedule a departure.

For this to do anything useful, you need to specify at least one of Preconditioning and/or OffPeakConfig.