EFERGY POWER METER 2021.8 Energy Config - No matching statistics found

Hi

Sorry, very new to HA! I’m running version OS 7.2 and have three Efergy CT sensors (Whole House, ASHP & Solar). None of these Entities appear in the drop-down within the Energy set-up.

If I add your code to my config.yaml, HA boots into Safe Mode. Is this still a valid approach with this version of the OS? Am I completely missing something? Any help, is greatly appreciated but please don’t assume that I have a great level of technical knowledge!

There are two separate files you need to look at to implement the code you quoted…

The third line in the quoted code ( customize: !include customize.yaml) is telling the config to look for customizations in a separate file called customize.yaml (create it in the same folder you have the configuration.yaml file in)
Then in this customize.yaml file place the rest of the code you have quoted. Save the file(s), reboot and you should be good to go :+1:t2:

you can read more about splitting your config files here

1 Like

Thanks. :slight_smile:

Edit

@Gav_in - I’m now getting the error:

2022-01-26 17:32:40 ERROR (MainThread) [homeassistant.config] Invalid config for [homeassistant]: [customize_glob] is an invalid option for [homeassistant]. Check: homeassistant->customize->customize_glob. (See /config/configuration.yaml, line 35)

Hi…you’ve an error in your config as the log suggests (though you prob worked that out :slight_smile: )

Without seeing your config file (and line 35 that the error message references in particular) it’s hard to tell.
At a guess you have the customize options in the wrong place(file). If you’ve split up your config as per above posts then the only reference to customize in the configuration.yaml file should the line that has customize: !include customize.yaml in there.
customize_glob and all other customize options should be in the separate customize.yaml file.

So taking the original post you quoted the following should be in your customize.yaml file (and nowhere else)

  customize_glob:
    sensor.efergy_*:
      last_reset: '1970-01-01T00:00:00+00:00'
      device_class: energy
      state_class: measurement
      unit_of_measurement: kWh

(you can read more about Customize here Customizing entities - Home Assistant which might help too.)

Thanks for your replay, my configuration.yaml file is as follows:

homeassistant:
customize: !include customize.yaml

And my Customization.yaml file is:

customize_glob:
sensor.power_usage_*:
last_reset: '1970-01-01T00:00:00+00:00'
device_class: energy
state_class: measurement
unit_of_measurement: Wh

The only thing I have changed, ( although the error occurred before as well) is to change sensor name and the unit. Could this be an indent issue? I have tried no indent on customize_glob as well as two spaces.

Yeah could be indentation alright…yaml is very specific like that.
Can you post your code in code format here so we can see exactly what you have (you need to wrap your code in ’ I think), and will see if anything jumps out :+1:t2:

Thanks again. :slight_smile:

Configuration.yaml:

  # Insert Customize file
  customize: !include customize.yaml

Customize.yaml:

  customize_glob:
    "sensor.power_usage_*":
      last_reset: '1970-01-01T00:00:00+00:00'
      device_class: energy
      state_class: measurement
      unit_of_measurement: Wh

Remove the quotes from the sensor_power_usage line in your customize.yaml file…think that’s the issue.

(sorry for late response…think you replied to the thread in general rather than specifically to my post so didn’t get a notification)

Hi

Sorry for the delay, rebuilding my study after decorating!
I’ve tried with and without quotes, same result.

Hi…are you sure that the Sensor you are trying to customise is called (or starts with) sensor.power_usage_?
You might need to adjust the code to match to your own sensor names.

This is what I have in my customize.yaml and it works fine for me…


sensor.efergy_consumption: #Efergy Energy Reading - Customised for Energy Features in 2021.8
  friendly_name: Energy Consumption (Efergy)
  last_reset: '1970-01-01T00:00:00+00:00'
  device_class: energy
  state_class: measurement
  unit_of_measurement: Wh

The sensor I’m customising it the one generated by the Efergy Integration.

If it’s still not working for you post the Attributes of the Sensor you want to use on the Energy Dashboard so we can see what’s missing…(you can get this in Developer Tools > States)

This is my device list for my Efergy: