MeterConsents

The user “consents” their meter with the Glowmarkt API. This authorises Hildebrand to supply energy data to us by supplying proof of ownership. It will consent both their electricity meter and their gas meter, if they have a smart gas meter.

All meters at a property will be consented.

The user can register their property by entering their In-Home Display EUI number. This may also be refered to as the IHD MAC, GUID, UID or EUI-64.

The consent is stored as a MeterConsent object in the Hub database, representing a consenting of a particular MPAN by a particular user at a particular time. It records the date at which the consent was granted, the version of the T&Cs that applied when the user signed up, and, if access has been subsequently revoked, the time and reason for revocation.

Possible reasons for deconsenting are:

  • MOVED_HOUSE : Notified of house move (not currently implemented)

  • SUBSCRIPTION_EXPIRED : Subscription went unpaid in Stripe

  • REQUESTED : User cancelled via Settings page

  • N3RGY: De-consented by n3rgy or through their customer portal

  • ADMIN: De-consented by CC admin

  • UNPAID: De-consented automatically due to a subscription going unpaid.

  • MEMBERSHIP_EXPIRED: Meter was a free member meter but the owner is no longer a member

  • NODATA: No data was received for the meter so the subscription was automatically cancelled

  • OTHER: Other reason (not currently implemented)

With Hildebrand, by default the consent will be revoked at the end of the day the request is made.

Each MeterConsent is owned by a single User. Upon initial consent the meter will be interrogated to find out if gas records and export data are present.

There are four different ways by which access to a meter is conferred (stored on the MeterConsent model as conferred_by):

  • Carbon Co-op members may have one consented meter as a benefit of their membership.

  • An administrator may grant a free meter to a user

  • Participants in Carbon Co-op projects such as Manchester City Council tenants.

  • Participants in PowerShaper Flex Meters may consent a meter as part of the DSR enrolment process

The meters_signup app provides for the first three scenarios, and the dsr_enrolment performs the last. A separate signup process is used for MCC tenants which can be found at /meters/mcc/.

A user can sign up and pay for as many subscriptions as they like to access different meters. Multiple users can have separate MeterConsents for the same MPAN, and indeed the same user could conceviably have multiple MeterConsents for the same MPAN, if for example the meter was deconsented by virute of an expiring membership.

Issues

There is currently no way to trigger a recheck for the presence of gas or export data for an MPAN through the PowerShaper Monitor admin system - however this can be done through the Django admin system.