Skip to content

Commit

Permalink
feat: Adds steeringWheel option separate from options.heating relates…
Browse files Browse the repository at this point in the history
  • Loading branch information
nolteerik committed Jan 12, 2025
1 parent 3a672ef commit 12c21b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions hyundai_kia_connect_api/ApiImpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class ClimateRequestOptions:
front_right_seat: int = None
rear_left_seat: int = None
rear_right_seat: int = None
steeringWheel: int = None


@dataclass
Expand Down
6 changes: 4 additions & 2 deletions hyundai_kia_connect_api/KiaUvoApiUSA.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,8 @@ def start_climate(
options.defrost = False
if options.duration is None:
options.duration = 5
if options.steeringWheel is None:
options.steeringWheel = 0

body = {
"remoteClimate": {
Expand All @@ -703,8 +705,8 @@ def start_climate(
"heatingAccessory": {
"rearWindow": 1 if options.heating in [1, 2, 4] else 0,
"sideMirror": 1 if options.heating in [1, 4] else 0,
"steeringWheel": 1 if options.heating in [1, 3, 4] else 0,
"steeringWheelStep": 2 if options.heating in [1, 3, 4] else 0,
"steeringWheel": 1 if options.steeringWheel in [1, 2] else 0,
"steeringWheelStep": options.steeringWheel,
},
"ignitionOnDuration": {
"unit": 4,
Expand Down

0 comments on commit 12c21b9

Please sign in to comment.