Skip to content
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

EnergySiteInfo: add tarrif v2 and remove tou settings #175

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

KevM
Copy link

@KevM KevM commented May 13, 2024

Energy Site Info was missing tariff content. This change adds codable classes for the new tariff_content_v2 payload.

  • tou_settings is no longer present in energy site info payloads.
  • tariff_content_v2 encodes details of time of use details for powerwall sites.

Closes #174

I tested this manually against my credentials.

…ger populated

* `tou_settings` is no longer present at energy sites.
* `tariff_content_v2` encodes details of time of use details for powerwall sites.

Closes jonasman#174
Sources/TeslaSwift/Model/EnergySiteInfo.swift Outdated Show resolved Hide resolved
Sources/TeslaSwift/Model/EnergySiteInfo.swift Outdated Show resolved Hide resolved
Sources/TeslaSwift/Model/EnergySiteInfo.swift Outdated Show resolved Hide resolved
Sources/TeslaSwift/Model/EnergySiteInfo.swift Outdated Show resolved Hide resolved
Sources/TeslaSwift/Model/EnergySiteInfo.swift Outdated Show resolved Hide resolved
Sources/TeslaSwift/Model/EnergySiteInfo.swift Outdated Show resolved Hide resolved
Sources/TeslaSwift/Model/EnergySiteInfo.swift Outdated Show resolved Hide resolved
@@ -23,8 +23,8 @@ open class EnergySiteInfo: Codable {
open var offGridVehicleChargingReservePercent: Double?

open var userSettings: UserSettings
open var touSettings: TOUSettings?
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

touSettings arent there anymore?
what about for WallConnector?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add EnergySite Tariff Support
3 participants