-
Notifications
You must be signed in to change notification settings - Fork 101
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
Powerwall Operation Mode does not sync with cloud in either direction - non functional #708
Comments
I'm not involved in this project other than as a user, but just wanted to point out that "3.15.1 - latest available via HACS" isn't true for me. HACS has installed 3.16.1 for me. |
FWIW, I am seeing the same issue as you. It was working this morning as I can see it successfully switched operation mode at 4am UTC about 7.5 hours ago. |
Regarding it not retrieving the initial value after a restart, this ticket appears related - #618 |
Ok. So the Powerwall app on my phone is being extremely slow to reflect the changes in operation mode for some reason, but if I go look at the Summary section of the powerwall website over my LAN, then it is updating immediately whenever I change the mode. So don't know what is going on here. |
Okay, so I see that HACS shows the latest version as 13.16.1 but it is not offering me an update and does not provide any obvious method to force it to install 13.16.1. The absence of an offered update is what led me to believe that I had the latest. However, looking at the changelog it doesn't seem like the version between 13.15.1 and 13.16.1 are relevant to this issue. Yes, ticket #618 does seem to be related and maybe there is the same underlying cause (I don't know). I see the same as @mikecardwell in that changes initiated via HA seem to cause the Powerwalls' local mode to change (as displayed by the gateway's web UI) but for some reason this is not reflected in the Tesla app or via the API (I assume). The problem here is that my automations always check the current operational mode before changing it (to avoid unnecessary mode changes) and so the incorrect feedback via the Tesla API (for the HA integration) and its failure to properly pick up the actual current mode on (re)start is highly problematic. This is a big problem for me as my Powerwall control regime relies on regularly changing the mode via HA... |
FYI 13.15.3 addressed a HA deprecation change so it will not appear to those without the latest HA. No further updates are planned to support older HA versions. That said, I don't have a powerwall so cannot solve this but happy to take a PR. I cannot tell if this is a dupe so will leave it open. |
I have 13.17.1 installed and have the same issue. Non functional with both Energy exports and Operation mode |
This looks to be resolved with: Can someone else confirm? |
Version of the custom_component
3.15.1 - latest available via HACS
Configuration
I'm not sure what is expected here. There is no obvious 'configuration' for this integration in any of the yaml files that I can see.
Describe the bug
For a while I have noticed that after a HA restart the 'Operation Mode' setting (Self Powered, Time Based Control, Reserve) is not populated and does not get populated even after a long while.
Today I discovered that changes made to the value of this setting via HA also do not get actioned by Tesla and do not get reflected in the Tesla app, thus completely breaking my custom Powerwall control functionality. This aspect seems to only have started within the last day or so, as far as I can tell. All other Powerewall query and control functions seem to be operating as expected.
Debug log
This log covers the following:
2023-09-03 10:24:26.149 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2023-09-03 10:24:26.149 DEBUG (MainThread) [teslajsonpy.controller] Updating BATTERY_DATA for energysite: 264032220815
2023-09-03 10:24:26.150 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 7:34:51
2023-09-03 10:24:26.151 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/powerwalls/STE20211212-00019 {}
2023-09-03 10:24:26.151 DEBUG (MainThread) [teslajsonpy.controller] Updating BATTERY_SUMMARY for energysite: 264032220815
2023-09-03 10:24:26.151 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 7:34:51
2023-09-03 10:24:26.151 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/powerwalls/STE20211212-00019/status {}
2023-09-03 10:24:26.605 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"site_name":"Jenkins Family","id":"1152100-13-J--CN321257G3J8UU","energy_left":7575,"total_pack_energy":28395,"percentage_charged":26.677231907025885,"battery_power":1100}}
2023-09-03 10:24:27.081 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"site_name":"Jenkins Family","energy_left":7575,"total_pack_energy":28395,"grid_status":"Active","backup":{"backup_reserve_percent":20,"events":[{"timestamp":"2023-07-17T05:38:47+01:00","duration":21314},{"timestamp":"2023-05-04T12:48:03+01:00","duration":211103},{"timestamp":"2023-02-15T12:24:24Z","duration":152555},{"timestamp":"2022-09-01T14:21:50+01:00","duration":2027259},{"timestamp":"2022-08-18T10:04:59+01:00","duration":104335},{"timestamp":"2022-08-18T10:03:33+01:00","duration":79147},{"timestamp":"2022-05-09T18:24:03+01:00","duration":2426},{"timestamp":"2021-12-12T15:12:12Z","duration":456226},{"timestamp":"2021-12-12T15:09:58Z","duration":63810},{"timestamp":"2021-12-12T15:01:36Z","duration":207230}],"events_count":0,"total_events":0},"user_settings":{"storm_mode_enabled":false,"powerwall_onboarding_settings_set":true,"powerwall_tesla_electric_interested_in":false,"sync_grid_alert_enabled":false,"breaker_alert_enabled":false},"components":{"solar":true,"solar_type":"pv_panel","battery":true,"grid":true,"backup":true,"gateway":"teg","load_meter":true,"tou_capable":true,"storm_mode_capable":true,"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":true,"solar_value_enabled":true,"energy_value_header":"Energy Value","energy_value_subheader":"Estimated Value","show_grid_import_battery_source_cards":true,"backup_time_remaining_enabled":true,"battery_type":"ac_powerwall","configurable":false,"grid_services_enabled":false,"customer_preferred_export_rule":"pv_only"},"installation_date":"2021-12-12T14:41:51Z","power_reading":[{"timestamp":"2023-09-03T09:58:24+01:00","load_power":3657,"solar_power":366,"grid_power":2191,"battery_power":1100,"generator_power":0}],"battery_count":2}}
2023-09-03 10:24:27.081 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.932 seconds (success: True)
2023-09-03 10:24:37.152 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2023-09-03 10:24:37.152 DEBUG (MainThread) [teslajsonpy.controller] Updating BATTERY_DATA for energysite: 264032220815
2023-09-03 10:24:37.152 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 7:34:40
2023-09-03 10:24:37.152 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/powerwalls/STE20211212-00019 {}
2023-09-03 10:24:37.153 DEBUG (MainThread) [teslajsonpy.controller] Updating BATTERY_SUMMARY for energysite: 264032220815
2023-09-03 10:24:37.153 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 7:34:40
2023-09-03 10:24:37.154 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/powerwalls/STE20211212-00019/status {}
2023-09-03 10:24:37.564 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"site_name":"Jenkins Family","id":"1152100-13-J--CN321257G3J8UU","energy_left":7575,"total_pack_energy":28395,"percentage_charged":26.677231907025885,"battery_power":1100}}
2023-09-03 10:24:37.591 DEBUG (MainThread) [teslajsonpy.energy] Sending command: BATTERY_OPERATION_MODE
2023-09-03 10:24:37.591 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 7:34:40
2023-09-03 10:24:37.591 DEBUG (MainThread) [teslajsonpy.connection] post: https://owner-api.teslamotors.com/api/1/powerwalls/STE20211212-00019/operation {'default_real_mode': 'self_consumption'}
2023-09-03 10:24:37.995 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"site_name":"Jenkins Family","energy_left":7575,"total_pack_energy":28395,"grid_status":"Active","backup":{"backup_reserve_percent":20,"events":[{"timestamp":"2023-07-17T05:38:47+01:00","duration":21314},{"timestamp":"2023-05-04T12:48:03+01:00","duration":211103},{"timestamp":"2023-02-15T12:24:24Z","duration":152555},{"timestamp":"2022-09-01T14:21:50+01:00","duration":2027259},{"timestamp":"2022-08-18T10:04:59+01:00","duration":104335},{"timestamp":"2022-08-18T10:03:33+01:00","duration":79147},{"timestamp":"2022-05-09T18:24:03+01:00","duration":2426},{"timestamp":"2021-12-12T15:12:12Z","duration":456226},{"timestamp":"2021-12-12T15:09:58Z","duration":63810},{"timestamp":"2021-12-12T15:01:36Z","duration":207230}],"events_count":0,"total_events":0},"user_settings":{"storm_mode_enabled":false,"powerwall_onboarding_settings_set":true,"powerwall_tesla_electric_interested_in":false,"sync_grid_alert_enabled":false,"breaker_alert_enabled":false},"components":{"solar":true,"solar_type":"pv_panel","battery":true,"grid":true,"backup":true,"gateway":"teg","load_meter":true,"tou_capable":true,"storm_mode_capable":true,"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":true,"solar_value_enabled":true,"energy_value_header":"Energy Value","energy_value_subheader":"Estimated Value","show_grid_import_battery_source_cards":true,"backup_time_remaining_enabled":true,"battery_type":"ac_powerwall","configurable":false,"grid_services_enabled":false,"customer_preferred_export_rule":"pv_only"},"installation_date":"2021-12-12T14:41:51Z","power_reading":[{"timestamp":"2023-09-03T10:06:50+01:00","load_power":3657,"solar_power":366,"grid_power":2191,"battery_power":1100,"generator_power":0}],"battery_count":2}}
2023-09-03 10:24:37.995 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.843 seconds (success: True)
2023-09-03 10:24:37.998 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"code":201,"message":"Updated"}}
2023-09-03 10:24:37.998 DEBUG (MainThread) [teslajsonpy.energy] Response from command BATTERY_OPERATION_MODE: {'response': {'code': 201, 'message': 'Updated'}}
2023-09-03 10:24:47.151 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2023-09-03 10:24:47.151 DEBUG (MainThread) [teslajsonpy.controller] Updating BATTERY_DATA for energysite: 264032220815
2023-09-03 10:24:47.151 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 7:34:30
2023-09-03 10:24:47.151 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/powerwalls/STE20211212-00019 {}
2023-09-03 10:24:47.152 DEBUG (MainThread) [teslajsonpy.controller] Updating BATTERY_SUMMARY for energysite: 264032220815
2023-09-03 10:24:47.152 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 7:34:30
2023-09-03 10:24:47.152 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/powerwalls/STE20211212-00019/status {}
2023-09-03 10:24:47.434 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"site_name":"Jenkins Family","id":"1152100-13-J--CN321257G3J8UU","energy_left":7575,"total_pack_energy":28395,"percentage_charged":26.677231907025885,"battery_power":880}}
2023-09-03 10:24:47.709 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"site_name":"Jenkins Family","energy_left":7575,"total_pack_energy":28395,"grid_status":"Active","backup":{"backup_reserve_percent":20,"events":[{"timestamp":"2023-07-17T05:38:47+01:00","duration":21314},{"timestamp":"2023-05-04T12:48:03+01:00","duration":211103},{"timestamp":"2023-02-15T12:24:24Z","duration":152555},{"timestamp":"2022-09-01T14:21:50+01:00","duration":2027259},{"timestamp":"2022-08-18T10:04:59+01:00","duration":104335},{"timestamp":"2022-08-18T10:03:33+01:00","duration":79147},{"timestamp":"2022-05-09T18:24:03+01:00","duration":2426},{"timestamp":"2021-12-12T15:12:12Z","duration":456226},{"timestamp":"2021-12-12T15:09:58Z","duration":63810},{"timestamp":"2021-12-12T15:01:36Z","duration":207230}],"events_count":0,"total_events":0},"user_settings":{"storm_mode_enabled":false,"powerwall_onboarding_settings_set":true,"powerwall_tesla_electric_interested_in":false,"sync_grid_alert_enabled":false,"breaker_alert_enabled":false},"components":{"solar":true,"solar_type":"pv_panel","battery":true,"grid":true,"backup":true,"gateway":"teg","load_meter":true,"tou_capable":true,"storm_mode_capable":true,"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":true,"solar_value_enabled":true,"energy_value_header":"Energy Value","energy_value_subheader":"Estimated Value","show_grid_import_battery_source_cards":true,"backup_time_remaining_enabled":true,"battery_type":"ac_powerwall","configurable":false,"grid_services_enabled":false,"customer_preferred_export_rule":"pv_only"},"installation_date":"2021-12-12T14:41:51Z","power_reading":[{"timestamp":"2023-09-03T10:04:46+01:00","load_power":1231,"solar_power":358,"grid_power":-7,"battery_power":880,"generator_power":0}],"battery_count":2}}
2023-09-03 10:24:47.711 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.560 seconds (success: True)
2023-09-03 10:24:57.144 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2023-09-03 10:24:57.144 DEBUG (MainThread) [teslajsonpy.controller] Updating BATTERY_DATA for energysite: 264032220815
2023-09-03 10:24:57.145 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 7:34:20
2023-09-03 10:24:57.145 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/powerwalls/STE20211212-00019 {}
2023-09-03 10:24:57.146 DEBUG (MainThread) [teslajsonpy.controller] Updating BATTERY_SUMMARY for energysite: 264032220815
2023-09-03 10:24:57.146 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 7:34:20
2023-09-03 10:24:57.146 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/powerwalls/STE20211212-00019/status {}
2023-09-03 10:24:57.453 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"site_name":"Jenkins Family","id":"1152100-13-J--CN321257G3J8UU","energy_left":7575,"total_pack_energy":28395,"percentage_charged":26.677231907025885,"battery_power":880}}
2023-09-03 10:24:57.827 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"site_name":"Jenkins Family","energy_left":7575,"total_pack_energy":28395,"grid_status":"Active","backup":{"backup_reserve_percent":20,"events":[{"timestamp":"2023-07-17T05:38:47+01:00","duration":21314},{"timestamp":"2023-05-04T12:48:03+01:00","duration":211103},{"timestamp":"2023-02-15T12:24:24Z","duration":152555},{"timestamp":"2022-09-01T14:21:50+01:00","duration":2027259},{"timestamp":"2022-08-18T10:04:59+01:00","duration":104335},{"timestamp":"2022-08-18T10:03:33+01:00","duration":79147},{"timestamp":"2022-05-09T18:24:03+01:00","duration":2426},{"timestamp":"2021-12-12T15:12:12Z","duration":456226},{"timestamp":"2021-12-12T15:09:58Z","duration":63810},{"timestamp":"2021-12-12T15:01:36Z","duration":207230}],"events_count":0,"total_events":0},"user_settings":{"storm_mode_enabled":false,"powerwall_onboarding_settings_set":true,"powerwall_tesla_electric_interested_in":false,"sync_grid_alert_enabled":false,"breaker_alert_enabled":false},"components":{"solar":true,"solar_type":"pv_panel","battery":true,"grid":true,"backup":true,"gateway":"teg","load_meter":true,"tou_capable":true,"storm_mode_capable":true,"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":true,"solar_value_enabled":true,"energy_value_header":"Energy Value","energy_value_subheader":"Estimated Value","show_grid_import_battery_source_cards":true,"backup_time_remaining_enabled":true,"battery_type":"ac_powerwall","configurable":false,"grid_services_enabled":false,"customer_preferred_export_rule":"pv_only"},"installation_date":"2021-12-12T14:41:51Z","power_reading":[{"timestamp":"2023-09-03T10:10:00+01:00","load_power":1231,"solar_power":358,"grid_power":-7,"battery_power":880,"generator_power":0}],"battery_count":2}}
2023-09-03 10:24:57.827 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.683 seconds (success: True)
2023-09-03 10:25:07.149 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2023-09-03 10:25:07.149 DEBUG (MainThread) [teslajsonpy.controller] Updating BATTERY_DATA for energysite: 264032220815
2023-09-03 10:25:07.149 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 7:34:10
2023-09-03 10:25:07.149 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/powerwalls/STE20211212-00019 {}
2023-09-03 10:25:07.150 DEBUG (MainThread) [teslajsonpy.controller] Updating BATTERY_SUMMARY for energysite: 264032220815
2023-09-03 10:25:07.150 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 7:34:10
2023-09-03 10:25:07.151 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/powerwalls/STE20211212-00019/status {}
2023-09-03 10:25:07.684 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"site_name":"Jenkins Family","id":"1152100-13-J--CN321257G3J8UU","energy_left":7369.736842105262,"total_pack_energy":28395,"percentage_charged":25.954347040342533,"battery_power":880}}
2023-09-03 10:25:08.416 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"site_name":"Jenkins Family","energy_left":7369.736842105262,"total_pack_energy":28395,"grid_status":"Active","backup":{"backup_reserve_percent":20,"events":[{"timestamp":"2023-07-17T05:38:47+01:00","duration":21314},{"timestamp":"2023-05-04T12:48:03+01:00","duration":211103},{"timestamp":"2023-02-15T12:24:24Z","duration":152555},{"timestamp":"2022-09-01T14:21:50+01:00","duration":2027259},{"timestamp":"2022-08-18T10:04:59+01:00","duration":104335},{"timestamp":"2022-08-18T10:03:33+01:00","duration":79147},{"timestamp":"2022-05-09T18:24:03+01:00","duration":2426},{"timestamp":"2021-12-12T15:12:12Z","duration":456226},{"timestamp":"2021-12-12T15:09:58Z","duration":63810},{"timestamp":"2021-12-12T15:01:36Z","duration":207230}],"events_count":0,"total_events":0},"user_settings":{"storm_mode_enabled":false,"powerwall_onboarding_settings_set":true,"powerwall_tesla_electric_interested_in":false,"sync_grid_alert_enabled":false,"breaker_alert_enabled":false},"components":{"solar":true,"solar_type":"pv_panel","battery":true,"grid":true,"backup":true,"gateway":"teg","load_meter":true,"tou_capable":true,"storm_mode_capable":true,"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":true,"solar_value_enabled":true,"energy_value_header":"Energy Value","energy_value_subheader":"Estimated Value","show_grid_import_battery_source_cards":true,"backup_time_remaining_enabled":true,"battery_type":"ac_powerwall","configurable":false,"grid_services_enabled":false,"customer_preferred_export_rule":"pv_only"},"installation_date":"2021-12-12T14:41:51Z","power_reading":[{"timestamp":"2023-09-03T09:58:39+01:00","load_power":1231,"solar_power":358,"grid_power":-7,"battery_power":880,"generator_power":0}],"battery_count":2}}
2023-09-03 10:25:08.416 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 1.268 seconds (success: True)
2023-09-03 10:25:18.148 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2023-09-03 10:25:18.150 DEBUG (MainThread) [teslajsonpy.controller] Updating BATTERY_DATA for energysite: 264032220815
2023-09-03 10:25:18.150 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 7:33:59
2023-09-03 10:25:18.150 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/powerwalls/STE20211212-00019 {}
2023-09-03 10:25:18.151 DEBUG (MainThread) [teslajsonpy.controller] Updating BATTERY_SUMMARY for energysite: 264032220815
2023-09-03 10:25:18.151 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 7:33:59
2023-09-03 10:25:18.151 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/powerwalls/STE20211212-00019/status {}
2023-09-03 10:25:19.274 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"site_name":"Jenkins Family","id":"1152100-13-J--CN321257G3J8UU","energy_left":7369.736842105262,"total_pack_energy":28395,"percentage_charged":25.954347040342533,"battery_power":880}}
2023-09-03 10:25:20.323 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"site_name":"Jenkins Family","energy_left":7369.736842105262,"total_pack_energy":28395,"grid_status":"Active","backup":{"backup_reserve_percent":20,"events":[{"timestamp":"2023-07-17T05:38:47+01:00","duration":21314},{"timestamp":"2023-05-04T12:48:03+01:00","duration":211103},{"timestamp":"2023-02-15T12:24:24Z","duration":152555},{"timestamp":"2022-09-01T14:21:50+01:00","duration":2027259},{"timestamp":"2022-08-18T10:04:59+01:00","duration":104335},{"timestamp":"2022-08-18T10:03:33+01:00","duration":79147},{"timestamp":"2022-05-09T18:24:03+01:00","duration":2426},{"timestamp":"2021-12-12T15:12:12Z","duration":456226},{"timestamp":"2021-12-12T15:09:58Z","duration":63810},{"timestamp":"2021-12-12T15:01:36Z","duration":207230}],"events_count":0,"total_events":0},"user_settings":{"storm_mode_enabled":false,"powerwall_onboarding_settings_set":true,"powerwall_tesla_electric_interested_in":false,"sync_grid_alert_enabled":false,"breaker_alert_enabled":false},"components":{"solar":true,"solar_type":"pv_panel","battery":true,"grid":true,"backup":true,"gateway":"teg","load_meter":true,"tou_capable":true,"storm_mode_capable":true,"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":true,"solar_value_enabled":true,"energy_value_header":"Energy Value","energy_value_subheader":"Estimated Value","show_grid_import_battery_source_cards":true,"backup_time_remaining_enabled":true,"battery_type":"ac_powerwall","configurable":false,"grid_services_enabled":false,"customer_preferred_export_rule":"pv_only"},"installation_date":"2021-12-12T14:41:51Z","power_reading":[{"timestamp":"2023-09-03T10:08:48+01:00","load_power":1231,"solar_power":358,"grid_power":-7,"battery_power":880,"generator_power":0}],"battery_count":2}}
2023-09-03 10:25:20.324 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 2.176 seconds (success: True)
2023-09-03 10:25:30.147 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2023-09-03 10:25:30.147 DEBUG (MainThread) [teslajsonpy.controller] Updating BATTERY_DATA for energysite: 264032220815
2023-09-03 10:25:30.148 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 7:33:47
2023-09-03 10:25:30.148 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/powerwalls/STE20211212-00019 {}
2023-09-03 10:25:30.149 DEBUG (MainThread) [teslajsonpy.controller] Updating BATTERY_SUMMARY for energysite: 264032220815
2023-09-03 10:25:30.149 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 7:33:47
2023-09-03 10:25:30.149 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/powerwalls/STE20211212-00019/status {}
2023-09-03 10:25:30.736 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"site_name":"Jenkins Family","id":"1152100-13-J--CN321257G3J8UU","energy_left":7369.736842105262,"total_pack_energy":28395,"percentage_charged":25.954347040342533,"battery_power":790}}
2023-09-03 10:25:31.101 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"site_name":"Jenkins Family","energy_left":7369.736842105262,"total_pack_energy":28395,"grid_status":"Active","backup":{"backup_reserve_percent":20,"events":[{"timestamp":"2023-07-17T05:38:47+01:00","duration":21314},{"timestamp":"2023-05-04T12:48:03+01:00","duration":211103},{"timestamp":"2023-02-15T12:24:24Z","duration":152555},{"timestamp":"2022-09-01T14:21:50+01:00","duration":2027259},{"timestamp":"2022-08-18T10:04:59+01:00","duration":104335},{"timestamp":"2022-08-18T10:03:33+01:00","duration":79147},{"timestamp":"2022-05-09T18:24:03+01:00","duration":2426},{"timestamp":"2021-12-12T15:12:12Z","duration":456226},{"timestamp":"2021-12-12T15:09:58Z","duration":63810},{"timestamp":"2021-12-12T15:01:36Z","duration":207230}],"events_count":0,"total_events":0},"user_settings":{"storm_mode_enabled":false,"powerwall_onboarding_settings_set":true,"powerwall_tesla_electric_interested_in":false,"sync_grid_alert_enabled":false,"breaker_alert_enabled":false},"components":{"solar":true,"solar_type":"pv_panel","battery":true,"grid":true,"backup":true,"gateway":"teg","load_meter":true,"tou_capable":true,"storm_mode_capable":true,"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":true,"solar_value_enabled":true,"energy_value_header":"Energy Value","energy_value_subheader":"Estimated Value","show_grid_import_battery_source_cards":true,"backup_time_remaining_enabled":true,"battery_type":"ac_powerwall","configurable":false,"grid_services_enabled":false,"customer_preferred_export_rule":"pv_only"},"installation_date":"2021-12-12T14:41:51Z","power_reading":[{"timestamp":"2023-09-03T10:13:30+01:00","load_power":1183,"solar_power":358,"grid_power":35,"battery_power":790,"generator_power":0}],"battery_count":2}}
2023-09-03 10:25:31.102 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 0.955 seconds (success: True)
2023-09-03 10:25:40.369 INFO (MainThread) [gql.transport.aiohttp] >>> {"query": "query getCombinedData($accountNumber: String!) {\n vehicleChargingPreferences(accountNumber: $accountNumber) {\n weekdayTargetTime\n weekdayTargetSoc\n weekendTargetTime\n weekendTargetSoc\n }\n registeredKrakenflexDevice(accountNumber: $accountNumber) {\n krakenflexDeviceId\n provider\n vehicleMake\n vehicleModel\n vehicleBatterySizeInKwh\n chargePointMake\n chargePointModel\n chargePointPowerInKw\n status\n suspended\n hasToken\n createdAt\n }\n plannedDispatches(accountNumber: $accountNumber) {\n startDtUtc: startDt\n endDtUtc: endDt\n chargeKwh: delta\n meta {\n source\n location\n }\n }\n completedDispatches(accountNumber: $accountNumber) {\n startDtUtc: startDt\n endDtUtc: endDt\n chargeKwh: delta\n meta {\n source\n location\n }\n }\n}", "operationName": "getCombinedData", "variables": {"accountNumber": "A-D062EAAF"}}
2023-09-03 10:25:41.144 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2023-09-03 10:25:41.144 DEBUG (MainThread) [teslajsonpy.controller] Updating BATTERY_DATA for energysite: 264032220815
2023-09-03 10:25:41.144 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 7:33:36
2023-09-03 10:25:41.144 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/powerwalls/STE20211212-00019 {}
2023-09-03 10:25:41.146 DEBUG (MainThread) [teslajsonpy.controller] Updating BATTERY_SUMMARY for energysite: 264032220815
2023-09-03 10:25:41.146 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 7:33:36
2023-09-03 10:25:41.146 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/powerwalls/STE20211212-00019/status {}
2023-09-03 10:25:41.169 INFO (MainThread) [gql.transport.aiohttp] <<< {"data":{"vehicleChargingPreferences":{"weekdayTargetTime":"05:30","weekdayTargetSoc":80,"weekendTargetTime":"05:30","weekendTargetSoc":80},"registeredKrakenflexDevice":{"krakenflexDeviceId":"00000000-0002-4000-8020-000000020ad2","provider":"ENODE","vehicleMake":"CUPRA","vehicleModel":"Born 77 kWh e-Boost","vehicleBatterySizeInKwh":"77.00","chargePointMake":"Andersen A2","chargePointModel":"ANDERSEN A2","chargePointPowerInKw":"7.000","status":"Live","suspended":false,"hasToken":true,"createdAt":"2023-07-21T14:53:28.989592+00:00"},"plannedDispatches":[],"completedDispatches":[]}}
2023-09-03 10:25:41.496 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"site_name":"Jenkins Family","id":"1152100-13-J--CN321257G3J8UU","energy_left":7369.736842105262,"total_pack_energy":28395,"percentage_charged":25.954347040342533,"battery_power":790}}
2023-09-03 10:25:42.360 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"site_name":"Jenkins Family","energy_left":7369.736842105262,"total_pack_energy":28395,"grid_status":"Active","backup":{"backup_reserve_percent":20,"events":[{"timestamp":"2023-07-17T05:38:47+01:00","duration":21314},{"timestamp":"2023-05-04T12:48:03+01:00","duration":211103},{"timestamp":"2023-02-15T12:24:24Z","duration":152555},{"timestamp":"2022-09-01T14:21:50+01:00","duration":2027259},{"timestamp":"2022-08-18T10:04:59+01:00","duration":104335},{"timestamp":"2022-08-18T10:03:33+01:00","duration":79147},{"timestamp":"2022-05-09T18:24:03+01:00","duration":2426},{"timestamp":"2021-12-12T15:12:12Z","duration":456226},{"timestamp":"2021-12-12T15:09:58Z","duration":63810},{"timestamp":"2021-12-12T15:01:36Z","duration":207230}],"events_count":0,"total_events":0},"user_settings":{"storm_mode_enabled":false,"powerwall_onboarding_settings_set":true,"powerwall_tesla_electric_interested_in":false,"sync_grid_alert_enabled":false,"breaker_alert_enabled":false},"components":{"solar":true,"solar_type":"pv_panel","battery":true,"grid":true,"backup":true,"gateway":"teg","load_meter":true,"tou_capable":true,"storm_mode_capable":true,"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":true,"solar_value_enabled":true,"energy_value_header":"Energy Value","energy_value_subheader":"Estimated Value","show_grid_import_battery_source_cards":true,"backup_time_remaining_enabled":true,"battery_type":"ac_powerwall","configurable":false,"grid_services_enabled":false,"customer_preferred_export_rule":"pv_only"},"installation_date":"2021-12-12T14:41:51Z","power_reading":[{"timestamp":"2023-09-03T10:16:27+01:00","load_power":1183,"solar_power":358,"grid_power":35,"battery_power":790,"generator_power":0}],"battery_count":2}}
2023-09-03 10:25:42.360 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 1.217 seconds (success: True)
2023-09-03 10:25:44.437 DEBUG (MainThread) [teslajsonpy.energy] Sending command: BATTERY_OPERATION_MODE
2023-09-03 10:25:44.437 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 7:33:33
2023-09-03 10:25:44.437 DEBUG (MainThread) [teslajsonpy.connection] post: https://owner-api.teslamotors.com/api/1/powerwalls/STE20211212-00019/operation {'default_real_mode': 'autonomous'}
2023-09-03 10:25:44.821 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"code":201,"message":"Updated"}}
2023-09-03 10:25:44.822 DEBUG (MainThread) [teslajsonpy.energy] Response from command BATTERY_OPERATION_MODE: {'response': {'code': 201, 'message': 'Updated'}}
2023-09-03 10:25:52.151 DEBUG (MainThread) [custom_components.tesla_custom] Running controller.update()
2023-09-03 10:25:52.151 DEBUG (MainThread) [teslajsonpy.controller] Updating BATTERY_DATA for energysite: 264032220815
2023-09-03 10:25:52.151 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 7:33:25
2023-09-03 10:25:52.151 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/powerwalls/STE20211212-00019 {}
2023-09-03 10:25:52.152 DEBUG (MainThread) [teslajsonpy.controller] Updating BATTERY_SUMMARY for energysite: 264032220815
2023-09-03 10:25:52.152 DEBUG (MainThread) [teslajsonpy.connection] Token expiration in 7:33:25
2023-09-03 10:25:52.152 DEBUG (MainThread) [teslajsonpy.connection] get: https://owner-api.teslamotors.com/api/1/powerwalls/STE20211212-00019/status {}
2023-09-03 10:25:52.471 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"site_name":"Jenkins Family","id":"1152100-13-J--CN321257G3J8UU","energy_left":7369.736842105262,"total_pack_energy":28395,"percentage_charged":25.954347040342533,"battery_power":790}}
2023-09-03 10:25:53.164 DEBUG (MainThread) [teslajsonpy.connection] 200: {"response":{"site_name":"Jenkins Family","energy_left":7369.736842105262,"total_pack_energy":28395,"grid_status":"Active","backup":{"backup_reserve_percent":20,"events":[{"timestamp":"2023-07-17T05:38:47+01:00","duration":21314},{"timestamp":"2023-05-04T12:48:03+01:00","duration":211103},{"timestamp":"2023-02-15T12:24:24Z","duration":152555},{"timestamp":"2022-09-01T14:21:50+01:00","duration":2027259},{"timestamp":"2022-08-18T10:04:59+01:00","duration":104335},{"timestamp":"2022-08-18T10:03:33+01:00","duration":79147},{"timestamp":"2022-05-09T18:24:03+01:00","duration":2426},{"timestamp":"2021-12-12T15:12:12Z","duration":456226},{"timestamp":"2021-12-12T15:09:58Z","duration":63810},{"timestamp":"2021-12-12T15:01:36Z","duration":207230}],"events_count":0,"total_events":0},"user_settings":{"storm_mode_enabled":false,"powerwall_onboarding_settings_set":true,"powerwall_tesla_electric_interested_in":false,"sync_grid_alert_enabled":false,"breaker_alert_enabled":false},"components":{"solar":true,"solar_type":"pv_panel","battery":true,"grid":true,"backup":true,"gateway":"teg","load_meter":true,"tou_capable":true,"storm_mode_capable":true,"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":true,"solar_value_enabled":true,"energy_value_header":"Energy Value","energy_value_subheader":"Estimated Value","show_grid_import_battery_source_cards":true,"backup_time_remaining_enabled":true,"battery_type":"ac_powerwall","configurable":false,"grid_services_enabled":false,"customer_preferred_export_rule":"pv_only"},"installation_date":"2021-12-12T14:41:51Z","power_reading":[{"timestamp":"2023-09-03T09:58:04+01:00","load_power":1183,"solar_power":358,"grid_power":35,"battery_power":790,"generator_power":0}],"battery_count":2}}
2023-09-03 10:25:53.165 DEBUG (MainThread) [custom_components.tesla_custom] Finished fetching tesla_custom data in 1.014 seconds (success: True)
The text was updated successfully, but these errors were encountered: