-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help collect Tesla energy JSON responses #342
Comments
Setup:
SITE_CONFIGNormal response:
Response when
|
Setup
PRODUCT_LIST
|
Setup: Solar panels Product 0: Product 0:
} 2022-09-14 12:16:08,527 - root - INFO - 1 product(s), 1 selected 2022-09-14 12:16:29,269 - root - INFO - 1 product(s), 1 selected |
I had to make a small adjustment to the commands you wrote. First run Setup:
PRODUCT_LIST {
"response": [
{
"id": xxx,
"user_id": xxx,
"vehicle_id": xxx,
"vin": xxx,
"display_name": xxx,
"option_codes": "AD15,AF00,APFB,APH4,AU3P,BC3B,BT42,CDM0,CH16,COUS,DRLH,DV4W,FC02,FG31,FM3B,GLFR,HL32,HM30,ID3A,IL31,LT03,MDL3,MR31,PPSW,PC30,RENA,RF3G,RS3H,S3PW,SA3P,SC04,STCP,SU3C,T3MA,TM00,TW00,UT3P,W40B,WR00,ZINV,MI02,PL30,SLR0,ST33,BG31,I36M,USSB,AUF1,RSF1,ILF1,FGF1,CPF1,P3WS,HP31,PT01,RL31,FD00,RD01,SWF1,RA00",
"color": null,
"access_type": "OWNER",
"tokens": [
xxx,
xxx
],
"state": "asleep",
"in_service": false,
"id_s": xxx,
"calendar_enabled": true,
"api_version": 44,
"backseat_token": null,
"backseat_token_updated_at": null,
"vehicle_config": {
"aux_park_lamps": "NaPremium",
"badge_version": 0,
"can_accept_navigation_requests": true,
"can_actuate_trunks": true,
"car_special_type": "base",
"car_type": "model3",
"charge_port_type": "US",
"dashcam_clip_save_supported": true,
"default_charge_to_max": false,
"driver_assist": "TeslaAP3",
"ece_restrictions": false,
"efficiency_package": "M32021",
"eu_vehicle": false,
"exterior_color": "PearlWhite",
"exterior_trim": "Black",
"exterior_trim_override": "",
"has_air_suspension": false,
"has_ludicrous_mode": false,
"has_seat_cooling": false,
"headlamp_type": "Global",
"interior_trim_type": "White2",
"key_version": 2,
"motorized_charge_port": true,
"paint_color_override": "20,20,20,0.01,0.04",
"performance_package": "Base",
"plg": true,
"pws": true,
"rear_drive_unit": "PM216MOSFET",
"rear_seat_heaters": 1,
"rear_seat_type": 0,
"rhd": false,
"roof_color": "RoofColorGlass",
"seat_type": null,
"spoiler_type": "None",
"sun_roof_installed": null,
"supports_qr_pairing": false,
"third_row_seats": "None",
"timestamp": 1664433544725,
"trim_badging": "74d",
"use_range_badging": true,
"utc_offset": -25200,
"webcam_supported": false,
"wheel_type": "PinwheelRefresh18"
},
"command_signing": "allowed"
},
{
"energy_site_id": xxx,
"resource_type": "solar",
"id": xxx,
"asset_site_id": xxx,
"solar_power": 0,
"solar_type": "pv_panel",
"storm_mode_enabled": null,
"powerwall_onboarding_settings_set": null,
"sync_grid_alert_enabled": false,
"breaker_alert_enabled": false,
"components": {
"battery": false,
"solar": true,
"solar_type": "pv_panel",
"grid": true,
"load_meter": true,
"market_type": "residential"
}
}
],
"count": 2
} SITE_CONFIG {
"response": {
"id": xxx,
"site_number": xxx,
"installation_date": "2021-03-02T17:00:00-07:00",
"user_settings": {
"storm_mode_enabled": null,
"powerwall_onboarding_settings_set": null,
"sync_grid_alert_enabled": false,
"breaker_alert_enabled": false
},
"components": {
"solar": true,
"solar_type": "pv_panel",
"battery": false,
"grid": true,
"backup": false,
"gateway": "neo",
"load_meter": true,
"tou_capable": false,
"storm_mode_capable": false,
"flex_energy_request_capable": false,
"car_charging_data_supported": false,
"off_grid_vehicle_charging_reserve_supported": false,
"vehicle_charging_performance_view_enabled": false,
"vehicle_charging_solar_offset_view_enabled": false,
"battery_solar_offset_view_enabled": false,
"energy_service_self_scheduling_enabled": true,
"rate_plan_manager_supported": true,
"configurable": false,
"grid_services_enabled": false
},
"time_zone_offset": -420,
"geolocation": {
"latitude": xxx,
"longitude": xxx
},
"address": {
"address_line1": xxx,
"city": xxx,
"state": xxx,
"zip": xxx,
"country": "US"
}
}
} SITE_DATA {
"response": {
"solar_power": 0,
"load_power": 145,
"grid_status": "Active",
"grid_services_active": false,
"grid_power": 145,
"grid_services_power": 0,
"timestamp": "2022-09-28T23:54:34-07:00",
"wall_connectors": null
}
} SITE_SUMMARY {
"response": {
"resource_type": "solar",
"asset_site_id": xxx,
"solar_power": 0,
"solar_type": "pv_panel",
"storm_mode_enabled": null,
"powerwall_onboarding_settings_set": null,
"sync_grid_alert_enabled": false,
"breaker_alert_enabled": false
}
} |
Setup:
Note there has been an API change between Feb and May where the SITE_CONFIG now contains PRODUCT_LIST
SITE_CONFIG
SITE_SUMMARY
SITE_DATA
BATTERY_SUMMARY
BATTERY_DATA
|
With Tesla app 4.24 the Gen 3 Wall Connector can be configured to appear in the app: Interestingly the home/ load is displayed reduced by the about being serviced by the wall connector. and sure enough wall_connectors values also now appear in the API: SITE_DATA {
"response": {
"solar_power": 0,
"energy_left": 28046.94736842105,
"total_pack_energy": 42288,
"percentage_charged": 66.32365533584243,
"backup_capable": true,
"battery_power": 920,
"load_power": 920,
"grid_status": "Active",
"grid_services_active": false,
"grid_power": 0,
"grid_services_power": 0,
"generator_power": 0,
"island_status": "on_grid",
"storm_mode_active": false,
"timestamp": "2023-08-26T20:14:40+10:00",
"wall_connectors": [
{
"din": "XXXXX",
"vin": "XXXX",
"wall_connector_state": 1,
"wall_connector_fault_state": 8,
"wall_connector_power": 419.1045
}
]
}
} |
Setup: Solaredge Panels & Inverter I couldn't get BATTERY_DATA or BATTERY_SUMMARY to execute? PRODUCT_LIST
Site Config
Site Data
Site Summary
|
In an effort to better develop the solar and powerwall functionality of this library (teslajsonpy) to support the Tesla Custom Integration, I need help collecting different JSON responses from various setups. This does require using a Python CLI tool but the process is pretty straight forward.
-z
argument option. The original TeslaPy combines multiple responses so it's impossible to see what a specific endpoint is returning.energy_site_id
,id
,address
, etc. and post the JSON response here.CLI commands: Solar only setups
python3 -e your@email.com -z PRODUCT_LIST
python3 -e your@email.com -z SITE_CONFIG
python3 -e your@email.com -z SITE_DATA
python3 -e your@email.com -z SITE_SUMMARY
CLI commands: Powerwall setups (with or without solar)
python3 -e your@email.com -z PRODUCT_LIST
python3 -e your@email.com -z SITE_CONFIG
(likely will return nothing)python3 -e your@email.com -z SITE_DATA
(likely will return nothing)python3 -e your@email.com -z SITE_SUMMARY
(likely will return nothing)python3 -e your@email.com -z BATTERY_DATA
python3 -e your@email.com -z BATTERY_SUMMARY
Example
Setup:
PRODUCT_LIST
SITE_CONFIG
SITE_DATA
SITE_SUMMARY
The text was updated successfully, but these errors were encountered: