I’ve looked at lots of topics, but really struggling to get this added.
Using the excellent guides from https://www.speaktothegeek.co.uk I have already set up the Energy Dashboard with off-peak/peak tariffs and gas.
I’ve looked at lots of topics, but really struggling to get this added.
Using the excellent guides from https://www.speaktothegeek.co.uk I have already set up the Energy Dashboard with off-peak/peak tariffs and gas.
There is currently no provision for this. You can vote here:
There are also a couple of work-arounds listed in the comments.
Hi @tom_l following your advice I’ve added the following to templates.yaml, but the sensors don’t show up in the Energy Dashboard?
Also previous sensors that I have been testing with still do even though I have removed them, checked developer tools->statistics and rebooted HA many times. These often are shown with the same name and the previous entity with a _2 or _3 suffix? How do I remove these?
- trigger: # rate-limit the template a bit, which would otherwise re-calculate every minute
- platform: time_pattern
hours: "*" # calculate hourly should be fine
sensor:
# Increases every day by 1W to fake a daily supply charge in energy dashboard.
- name: "Energy standing charge"
state: >-
{{ 0.001 * (now() - "2023-03-03" | as_datetime | as_local).days }}
unit_of_measurement: kWh
state_class: total_increasing
device_class: energy
unique_id: octupus_energy_daily_standing_charge
- name: "Gas standing charge"
state: >-
{{ 0.001 * (now() - "2023-03-03" | as_datetime | as_local).days }}
unit_of_measurement: kWh
state_class: total_increasing
device_class: energy
unique_id: octopus_gas_daily_standing_charge
You would have to ask the person that designed the template. I don’t use it.
As for deleting entities, go to Settings → Devices & Services-> Entities tab and try deleting them there.
Thanks for the quick reply. What I meant to say was that they don’t show up anywhere - developer tools or in the entities view? Any idea?
The enclosed is screen shot of some of the ghost sensors - not showing in the entities tab?
If they are not showing up here:
Where are you seeing them?
The screenshot is the drop-down on the grid consumption area of the energy dashboard - better screenshot enclosed…
I have managed to find a few in the entities view - not sure why they weren’t showing before. I’ve deleted some, but some are as per the enclosed - delete option is greyed out?
Also, any idea why the “octopus_gas_daily_standing_charge” and “octopus_energy_daily_standing_charge” sensors aren’t showing anywhere?
Appreciate your help.
Is the reason that they are not showing because I have two “-trigger”?
- trigger:
- platform: time
at: "18:00"
- id: "yes"
platform: event
event_type: alexa_actionable_notification
event_data:
event_id: actionable_notification_bins_out
event_response_type: ResponseYes
binary_sensor:
- name: Bins need taking out
state: >-
{{ 'off' if trigger.id == 'yes' or now().weekday() != 0 else 'on' }}
- trigger: # rate-limit the template a bit, which would otherwise re-calculate every minute
- platform: time_pattern
hours: "*" # calculate hourly should be fine
sensor:
# Increases every day by 1W to fake a daily supply charge in energy dashboard.
- name: "Energy standing charge"
state: >-
{{ 0.001 * (now() - "2023-03-03" | as_datetime | as_local).days }}
unit_of_measurement: kWh
state_class: total_increasing
device_class: energy
unique_id: octupus_energy_daily_standing_charge
- name: "Gas standing charge"
state: >-
{{ 0.001 * (now() - "2023-03-03" | as_datetime | as_local).days }}
unit_of_measurement: kWh
state_class: total_increasing
device_class: energy
unique_id: octopus_gas_daily_standing_charge
No. That is how you create two seperate sensors.
Thanks. Just to double check, is this format correct?
- trigger:
- platform: time
at: "18:00"
- id: "yes"
platform: event
event_type: alexa_actionable_notification
event_data:
event_id: actionable_notification_bins_out
event_response_type: ResponseYes
binary_sensor:
- name: Bins need taking out
state: >-
{{ 'off' if trigger.id == 'yes' or now().weekday() != 0 else 'on' }}
- trigger: # rate-limit the template a bit, which would otherwise re-calculate every minute
- platform: time_pattern
hours: "*" # calculate hourly should be fine
sensor:
# Increases every day by 1W to fake a daily supply charge in energy dashboard.
- name: "Energy daily charge"
unit_of_measurement: "kWh"
state: >-
{{ 0.001 * (now() - "2023-03-03" | as_datetime | as_local).days }}
state_class: total_increasing
device_class: energy
unique_id: octopus_energy_daily_standing_charge
- name: "Gas daily charge"
unit_of_measurement: "kWh"
state: >-
{{ 0.001 * (now() - "2023-03-03" | as_datetime | as_local).days }}
state_class: total_increasing
device_class: energy
unique_id: octopus_gas_daily_standing_charge
All seems to be working now - appreciate your help.