Loop Energy stopped working

While the component is broken and my python skills are not up to scratch to work out whats wrong, i have managed to make my own container using the pyloop module to read the data from loop and write this to an influx database.
I’ve also tested that it’s possible to create a sensor to read from influx back to homeassistant.
Github link here.

Should theoretically work for gas usage too, although i don’t have gas to test.
Should also work to just run the run.py file itself if you don’t want to run it in a container.

Thought i’d post this here as hopefully you guys might find it helpful, i’ll remove if it’s not allowed.

1 Like

Out of interest are you guys holding your Loop serial number and secrets in your secrets.yaml file?

I only got my Loop sensors yesterday but they ran without issue all day today. It’s only since this evening when I moved them into secrets.yaml that i’ve started to hit problems.

The sensors are working for now, but if I hit any more issues I might well change the config back and see if the issue disappears again. I notice in the recommended configuration both values should be in single quotes, but i’m not sure how that transfers into the secrets.yaml file; should they have quotes in there or not and if so are we sure they get transferred over when invoking the !secret command?

Has this been working fine out of interest.

Was about to pull the trigger, but will hold off until someone says it’s working now.

I’m also interested in this. Would be good to know whether the integration is working fine.

It works just fine. I’ve had a couple of occasions where the display in my lovelace config has shown ‘nan’ (not a number) but typically it sorts itself out after a short while. In most cases I see that when my HA setup has just rebooted.

Keep in mind that your data is still recorded on the ‘Your Loop’ website as well so you don’t lose anything.

It’s really handy having an overview of how much electricity and gas you’re using. Of course the electricity reading is much more useful as it’s sampled much more often (roughly every 10 seconds I believe) whereas gas is only updated every 15 minutes because of the way it reads the meter.

I’d say it was the best £60 I spent as it means I can keep a closer eye on our usage.

Mine appears to be working also. Not sure when it came back up but I did upgrade Hass 2 weeks ago, maybe linked?

I also agree its the best £90 Ive spent (Gas & Elec). The fact it keeps track of your tariff and tells you when it ends is great, the first year it notified me 20days before the end of my tariff end that I could save £150 elsewhere.
I like the fact I can compare my usage (electricity only) against similar homes, that highlighted that my fridgefreezer was very very very inefficient and bought a newer one, bringing me more in line with similar properties.

Now it’s working again I plan on using the electricity aspect to create an automation to set the house to a ‘guest’ mode if myself and the wife are marked as away.

That’s great to hear! How accurate would you say it is compared to your meter readings?

I use it via the Utility Meter integration on Hass, but it consistently measures over my actual meter… on the website though wierdly it is not too far off… I wouldn’t use it to give your meter readings for example. But a finger in the air measurement of “have I used more or less than last month” works quite well.

That’s great! I retried it and it works now - it occasionally puts an error up but at least doesn’t freeze homeassistant and resumes fine. The bug has been closed :slight_smile:

Im still getting this… Im on the latest HA. its been happening for MANY months…

www.your-loop.com:443/socket.io [connection error] recv disconnected by SSL ([SSL: SSLV3_ALERT_BAD_RECORD_MAC] sslv3 alert bad record mac (_ssl.c:2508))

10:39 PM /usr/local/lib/python3.7/site-packages/socketIO_client_nexus/logs.py (WARNING)

Any ideas?

Mine stopped the other day too.
I’m not on the new release, all I did was restart home-assistant and it never came back.

What I’ve done is mentioned the number of people using it in their homebrew home automation systems and the need for an open API in the survey they sent out over the last weekend.
I think (judging by the fact seemingly at random) a bunch of us lose connection near enough the same day and then it starts working again without us having to fix anything that it’s a problem their end, and us using a funny work around to get our readings can’t be helping them.

Fingers crossed hey…

I have recently set up the Loop module and all was fine for an hour now it says unknown. Have I done something wrong or is there a known issue. I’m on Hassio, all latest builds.

It’s just something that happens, it seems to be loops end because it will happen completely at random even if you haven’t done anything lately.

But at the same time it works fine via loops website.

All I can suggest is that we all annoy loop and ask for a real API we can use.

OK thanks - so its basically useless as the Loop data on their site is of little use as far as I can see as I want to compare data - day to day, month to month, etc…

Strangely kicked off after a recent restart and has been fine since .:crossed_fingers:

I usually find if I am restarting homeassistant too much the loop energy component stops working and if I disable it from the configuration (or take homeassistant offline) for some hours then next time I re-enable it works again.