Reading Australian smart meter data

What was the fix. I tried this a few months ago, but kept getting Integration not found error. So I gave up…

It was a while back and I was trying all sorts of things but I think it it started working after I added and modified two more files from the original branch that this forked from. https://github.com/mvandersteen/ha-jemenaoutlook, ‘init.py’ and ‘manifest.json’ and rebooted the host not just home assistant.

Thanks for that, adding those 2 files and changing the manifest.json to have energyeasy got it working…

It looks like this doesn’t update the sensors unless you reboot HA… That is annoying… Unless it is just me, Might give it a few days.

Hey guys, sorry for stirring up an old thread.

I just installed the addon with init.py and manifest.json from the jemena rep. I am getting an error in the log:

Error while setting up energyeasy platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 231, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/energyeasy/sensor.py", line 156, in setup_platform
    sensors.append(EnergyEasySensor(energyeasy_data, variable, name))
  File "/config/custom_components/energyeasy/sensor.py", line 180, in __init__
    self._state = round(self.jemenaoutlook_data.data[self.type], 2)
TypeError: type NoneType doesn't define __round__ method

not sure what to make of it. looking at the code, it clearly passes the check (if statement) that checks for noneType:

if self.type in self.energyeasy_data.data is not None:
            if type(self.energyeasy_data.data[self.type]) == type(''):
                self._state = self.energyeasy_data.data[self.type]
            else:
                self._state = round(self.energyeasy_data.data[self.type], 2)

it passes the first condition but fails with noneType on the else statement. I don’t get it, can anyone help?

Found the issue.

On line 164 - “def init(self, energyeasy_data, sensor_type, name):” is indented twice instead of once.
all fixed now.

hmm, do you mind posting that section of the code? Mine doesn’t start as well but I don’t follow your solution when looking at my code. txs

Got into sensor.py, find this line: " def init (self, energyeasy_data, sensor_type, name): " ensure the line is in line with other functions and not indented.

I’d post the code, but it’ll be pointless if you just need to remove one indent level from a line.

Hey mate, do you mind elaborating a bit more? I’ve got the same issue and similar to @tfmeier I can’t seem to fix it using the instructions you posted above. Cheers in advance!

Here’s my current (unmodified) code. I don’t see any out of line indentation.

Hi! Really keen to get this working, i’m stuck at the point of: Platform error sensor.energyeasy - Integration ‘energyeasy’ not found.

Try looking at line 164, but don’t see an issue. Anyone else able to get this to work? How’d you do it?

It’s a custom component.
See post #4 of this very thread.

Any luck with getting it to fetch data more often? I’ve got the same issue with it not updating unless HA is rebooted.

HI, no I never got it working, and in the end just removed it, it hasn’t been updated for almost 3 years, so I though it wasn’t work the effort…

Let me check mine. The data comes in (haven’t done anything in making this look meaningful in lovelace) but I’m not sure whether the updates are auto (well daily) or only on restart of HA. Had a restart prior to reading this update so will give it a day or so to see data refreshes.

The other aspect is I have a message in my log

No 'version' key in the manifest file for custom integration 'energyeasy'. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of 'energyeasy'

I have held off updating HA in part because of this so not sure whether this can be rectified as it’s no longer maintained

Just add the version into the manifest.json file yourself. The version number can be anything you want for HA to accept it. Then you can update HA.

eg:

"version": "v0.9.3"

Ohh, thanks. Didn’t know it was that easy, cheers

Let me know if you find a solution to the regular updating.

Hi all. Is there an updated instructions to get Energy Easy working with HA?

Finally found the time to get to this. No luck. Have added the version to the manifest.json in custom_components/energyeasy

{
  "domain": "jemenaoutlook",
  "name": "JemenaOutlook",
  "documentation": "https://github.com/mvandersteen/ha-jemenaoutlook",
  "dependencies": [],
  "codeowners": ["@mvandersteen"],
  "requirements": [],
  "version": "1.1"
}

Still the same error in the log file

Logger: homeassistant.loader
Source: loader.py:794
First occurred: 10:03:38 PM (1 occurrences)
Last logged: 10:03:38 PM

No 'version' key in the manifest file for custom integration 'energyeasy'. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of 'energyeasy'

I checked online to see whether I made a mistake but it seems to be alright. So I’m holding off the HA update for now (even through it’s a bit of a mute point given the issue with data refresh)