Custom integration to get the current electricity price and other data for many California electric bills from the California energy regulator's electricity price API MIDAS.
If your electric bill has a RIN QR Code on it, you can use this integration to get your current electricity price.
To install this integration, add this GitHub Repo to the HACS Custom Repositories, or click the badge above.
Configuration is done in the UI, please follow the steps below for guidance.
- Add the integration in the
Devices & services
section or click this add link:
- Choose whether you have a MIDAS account or not.
- If you don't have a MIDAS account the integration will help you create one.
Once complete, click the link sent to your email to activate your account.
- Enter your MIDAS account information.
- Enter one or more Rate IDs to monitor, obtained from the QR code on your electric bill.
- A device will be created for each Rate ID entered.
These entities can be used in the Energy dashboard to set prices, in automations to help conserve energy when prices will increase soon, and more!
I recommend placing the MIDAS price entities inside a "Combine the state of several sensors" helper. This can help resolve the following issues and make your steup more resilient:
- If you're a Community Choice Aggregation (CCA) customer you have 2 RINs. Combine them with a Sum type to get a single entity that has your true per-kWh cost.
- If you ever change your electricity plan, like moving from one time-of-use plan to another or buying an electric vehicle or solar panels, placing your price sensors inside a helper will let you keep your energy dashboard history and replace the source sensor when your plan updates.
- Your electricity company can update your RIN at any time even if the amount you actually pay stays the same. If that happens, you'll need to update which RINs this integration provides which may cause the loss of the old rate's data.
While there is no website for creating an account, there appears to be pages for a forgotten username and for resetting your password. These pages seem to be from the internal MIDAS portal, so if they get disabled or stop working please raise an issue.
- Forgot Username: https://midasweb.energy.ca.gov/Pages/AccountMaint/ForgotUsername
- Forgot Password: https://midasweb.energy.ca.gov/Pages/AccountMaint/ForgotPassword
If you want to contribute to this please read the Contribution guidelines