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

Feature Request: Access to utility rate plan (tariff) data via API? #219

Open
jbanyer opened this issue Mar 25, 2024 · 1 comment
Open
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@jbanyer
Copy link

jbanyer commented Mar 25, 2024

Does Fleet API provide access to get/set rate plan data? AKA electricity tariff settings?

I'm referring to the rate plan which the owner can configure in the Charging Costs area of the app.

image

@purcell-lab
Copy link

purcell-lab commented Apr 2, 2024

There is an undocumented endpoint tariff_rate and others with the FleetAPI.

The question is the providence of these undocumented end points.

Would Tesla prefer we didn't use these undocumented end points or are they planning to document them as supported endpoints at some stage?

$ curl --header 'Content-Type: application/json'   --header "Authorization: Bearer $TESLA_API_TOKEN"   'https://fleet-api.prd.na.vn.cloud.tesla.com/api/1/energy_sites/XXXXX/tariff_rate' | jq .
{
  "response": {
    "name": "Jones",
    "utility": "Amber",
    "daily_charges": [
      {
        "amount": 0,
        "name": "Charge"
      }
    ],
    "demand_charges": {
      "ALL": {
        "ALL": 0
      },
      "Summer": {},
      "Winter": {}
    },
    "energy_charges": {
      "ALL": {
        "ALL": 0
      },
      "Summer": {
        "OFF_PEAK": 0.1,
        "ON_PEAK": 0.55
      },
      "Winter": {}
    },
    "seasons": {
      "Summer": {
        "fromDay": 1,
        "toDay": 31,
        "fromMonth": 1,
        "toMonth": 12,
        "tou_periods": {
          "OFF_PEAK": [
            {
              "fromDayOfWeek": 0,
              "toDayOfWeek": 6,
              "fromHour": 0,
              "fromMinute": 0,
              "toHour": 1,
              "toMinute": 0
            }
          ],
          "ON_PEAK": [
            {
              "fromDayOfWeek": 0,
              "toDayOfWeek": 6,
              "fromHour": 1,
              "fromMinute": 0,
              "toHour": 0,
              "toMinute": 0
            }
          ]
        }
      },

@thefireblade thefireblade added documentation Improvements or additions to documentation enhancement New feature or request labels Jan 23, 2025
@thefireblade thefireblade changed the title Access to utility rate plan (tariff) data via API? Feature Request: Access to utility rate plan (tariff) data via API? Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants