Skip to content

Events#

The following events are raised by the integration. These events power various entities and can also be used within automations.

Rates#

Electricity Current Day Rates#

edf_energy_electricity_current_day_rates

This is fired when the current day rates are updated.

Attribute Type Description
rates array The list of rates applicable for the current day
tariff_code string The tariff code associated with current day's rates
mpan string The mpan of the meter associated with these rates
serial_number string The serial number of the meter associated with these rates
min_rate float The minimum/lowest rate in the discovered rates collection
max_rate float The maximum/highest rate in the discovered rates collection
average_rate float The average rate in the discovered rates collection

Automation Example#

- trigger:
  - platform: event
    event_type: edf_energy_electricity_current_day_rates
  condition: []
  action:
  - service: persistent_notification.create
    data:
      title: "Rates Updated"
      message: >
        New rates available for {{ trigger.event.data.mpan }}. Starting value is {{ trigger.event.data.rates[0]["value_inc_vat"] }}

Electricity Previous Day Rates#

edf_energy_electricity_previous_day_rates

This is fired when the previous day rates are updated.

Attribute Type Description
rates array The list of rates applicable for the previous day
tariff_code string The tariff code associated with previous day's rates
mpan string The mpan of the meter associated with these rates
serial_number string The serial number of the meter associated with these rates
min_rate float The minimum/lowest rate in the discovered rates collection
max_rate float The maximum/highest rate in the discovered rates collection
average_rate float The average rate in the discovered rates collection

Automation Example#

- trigger:
  - platform: event
    event_type: edf_energy_electricity_previous_day_rates
  condition: []
  action:
  - service: persistent_notification.create
    data:
      title: "Rates Updated"
      message: >
        New rates available for {{ trigger.event.data.mpan }}. Starting value is {{ trigger.event.data.rates[0]["value_inc_vat"] }}

Electricity Next Day Rates#

edf_energy_electricity_next_day_rates

This is fired when the next day rates are updated.

Attribute Type Description
rates array The list of rates applicable for the next day
tariff_code string The tariff code associated with next day's rates
mpan string The mpan of the meter associated with these rates
serial_number string The serial number of the meter associated with these rates
min_rate float The minimum/lowest rate in the discovered rates collection
max_rate float The maximum/highest rate in the discovered rates collection
average_rate float The average rate in the discovered rates collection

Automation Example#

- trigger:
  - platform: event
    event_type: edf_energy_electricity_next_day_rates
  condition: []
  action:
  - service: persistent_notification.create
    data:
      title: "Rates Updated"
      message: >
        New rates available for {{ trigger.event.data.mpan }}. Starting value is {{ trigger.event.data.rates[0]["value_inc_vat"] }}

Electricity Previous Consumption Rates#

edf_energy_electricity_previous_consumption_rates

This is fired when the previous consumption's rates are updated.

Attribute Type Description
rates array The list of rates applicable for the previous consumption
tariff_code string The tariff code associated with previous consumption's rates
mpan string The mpan of the meter associated with these rates
serial_number string The serial number of the meter associated with these rates
min_rate float The minimum/lowest rate in the discovered rates collection
max_rate float The maximum/highest rate in the discovered rates collection
average_rate float The average rate in the discovered rates collection

Automation Example#

- trigger:
  - platform: event
    event_type: edf_energy_electricity_previous_consumption_rates
  condition: []
  action:
  - service: persistent_notification.create
    data:
      title: "Rates Updated"
      message: >
        New rates available for {{ trigger.event.data.mpan }}. Starting value is {{ trigger.event.data.rates[0]["value_inc_vat"] }}

Gas Current Day Rates#

edf_energy_gas_current_day_rates

This is fired when the current day rates are updated.

Attribute Type Description
rates array The list of rates applicable for the current day
tariff_code string The tariff code associated with current day's rates
mprn string The mprn of the meter associated with these rates
serial_number string The serial number of the meter associated with these rates
min_rate float The minimum/lowest rate in the discovered rates collection
max_rate float The maximum/highest rate in the discovered rates collection
average_rate float The average rate in the discovered rates collection

Automation Example#

- trigger:
  - platform: event
    event_type: edf_energy_gas_current_day_rates
  condition: []
  action:
  - service: persistent_notification.create
    data:
      title: "Rates Updated"
      message: >
        New rates available for {{ trigger.event.data.mprn }}. Starting value is {{ trigger.event.data.rates[0]["value_inc_vat"] }}

Gas Previous Day Rates#

edf_energy_gas_previous_day_rates

This is fired when the previous day rates are updated.

Attribute Type Description
rates array The list of rates applicable for the previous day
tariff_code string The tariff code associated with previous day's rates
mprn string The mprn of the meter associated with these rates
serial_number string The serial number of the meter associated with these rates
min_rate float The minimum/lowest rate in the discovered rates collection
max_rate float The maximum/highest rate in the discovered rates collection
average_rate float The average rate in the discovered rates collection

Automation Example#

- trigger:
  - platform: event
    event_type: edf_energy_gas_previous_day_rates
  condition: []
  action:
  - service: persistent_notification.create
    data:
      title: "Rates Updated"
      message: >
        New rates available for {{ trigger.event.data.mprn }}. Starting value is {{ trigger.event.data.rates[0]["value_inc_vat"] }}

Gas Next Day Rates#

edf_energy_gas_next_day_rates

This is fired when the next day rates are updated.

Attribute Type Description
rates array The list of rates applicable for the next day
tariff_code string The tariff code associated with next day's rates
mprn string The mprn of the meter associated with these rates
serial_number string The serial number of the meter associated with these rates
min_rate float The minimum/lowest rate in the discovered rates collection
max_rate float The maximum/highest rate in the discovered rates collection
average_rate float The average rate in the discovered rates collection

Automation Example#

- trigger:
  - platform: event
    event_type: edf_energy_gas_next_day_rates
  condition: []
  action:
  - service: persistent_notification.create
    data:
      title: "Rates Updated"
      message: >
        New rates available for {{ trigger.event.data.mprn }}. Starting value is {{ trigger.event.data.rates[0]["value_inc_vat"] }}

Gas Previous Consumption Rates#

edf_energy_gas_previous_consumption_rates

This is fired when the previous consumption's rates are updated.

Attribute Type Description
rates array The list of rates applicable for the previous consumption
tariff_code string The tariff code associated with previous consumption's rates
mprn string The mprn of the meter associated with these rates
serial_number string The serial number of the meter associated with these rates
min_rate float The minimum/lowest rate in the discovered rates collection
max_rate float The maximum/highest rate in the discovered rates collection
average_rate float The average rate in the discovered rates collection

Automation Example#

- trigger:
  - platform: event
    event_type: edf_energy_gas_previous_consumption_rates
  condition: []
  action:
  - service: persistent_notification.create
    data:
      title: "Rates Updated"
      message: >
        New rates available for {{ trigger.event.data.mprn }}. Starting value is {{ trigger.event.data.rates[0]["value_inc_vat"] }}

Tariff Comparisons#

Electricity Previous Consumption Tariff Comparison Rates#

edf_energy_elec_previous_consumption_tariff_comparison_rates

This is fired when the tariff comparison rates are updated.

Attribute Type Description
rates array The list of rates applicable for the previous consumption tariff comparison
product_code string The product code associated with previous consumption tariff comparison rates
tariff_code string The tariff code associated with previous consumption tariff comparison rates
mprn string The mprn of the meter associated with these rates
serial_number string The serial number of the meter associated with these rates

Automation Example#

- trigger:
  - platform: event
    event_type: edf_energy_elec_previous_consumption_tariff_comparison_rates
  condition: []
  action:
  - service: persistent_notification.create
    data:
      title: "Rates Updated"
      message: >
        New rates available for {{ trigger.event.data.mprn }}. Starting value is {{ trigger.event.data.rates[0]["value_inc_vat"] }}

Gas Previous Consumption Tariff Comparison Rates#

edf_energy_gas_previous_consumption_tariff_comparison_rates

This is fired when the tariff comparison rates are updated.

Attribute Type Description
rates array The list of rates applicable for the previous consumption tariff comparison
product_code string The product code associated with previous consumption tariff comparison rates
tariff_code string The tariff code associated with previous consumption tariff comparison rates
mprn string The mprn of the meter associated with these rates
serial_number string The serial number of the meter associated with these rates

Automation Example#

- trigger:
  - platform: event
    event_type: edf_energy_gas_previous_consumption_tariff_comparison_rates
  condition: []
  action:
  - service: persistent_notification.create
    data:
      title: "Rates Updated"
      message: >
        New rates available for {{ trigger.event.data.mprn }}. Starting value is {{ trigger.event.data.rates[0]["value_inc_vat"] }}