Skip to content

Commit

Permalink
Add new sensors sunroof and chargeFlapDCStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneNulschDE committed Mar 4, 2024
1 parent d86b97b commit 1cdf004
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
1 change: 1 addition & 0 deletions custom_components/mbapi2020/car.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
"rooftopstatus",
"sunroofstatus",
"engineHoodStatus",
"chargeFlapDCStatus",
]

ELECTRIC_OPTIONS = [
Expand Down
34 changes: 32 additions & 2 deletions custom_components/mbapi2020/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@
X_APPLICATIONNAME_US = "mycar-store-us"
X_APPLICATIONNAME_AP = "mycar-store-ap"

USE_PROXY = False
VERIFY_SSL = True
USE_PROXY = True
VERIFY_SSL = False
SYSTEM_PROXY: str | None = None if not USE_PROXY else "http://0.0.0.0:8080"


Expand Down Expand Up @@ -1081,6 +1081,36 @@
None,
None,
],
"sunroofstatus": [
"Sunroof Status",
None, # Deprecated: DO NOT USE
"doors",
"sunroofstatus",
"value",
None,
{},
None,
None,
False,
None,
None,
None,
],
"chargeflapdcstatus": [
"Charge Flap DC Status",
None, # Deprecated: DO NOT USE
"doors",
"chargeFlapDCStatus",
"value",
None,
{},
None,
None,
False,
None,
None,
None,
],
}

LOCKS = {
Expand Down

0 comments on commit 1cdf004

Please sign in to comment.