-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loop energy component not working #8137
Comments
Used to work fine for me until I upgraded to 47.1 now the log just says the component is initialised but doest get any data. |
Same issue here, worked fine but has been broken since update. About to update to the new release going it's fixed but don't see anything in the change log about it.
Despite no changes to my secret key/serial in the config. Front end is there in the UI but just states "unknown" |
Mine isn't pulling data either, except I don't even get any errors in the logs. I have a "Power Usage" item in HASS but it's permanently at 0. |
I still can't get this sensor to work runnig Hass.IO now version 0.53.1. I never have got this working on any version I've had so far |
Hi there, I have just tried to setup the loop as above and just like BenWoodford. It all shows up in HA as "Power Usage" but reading is permanently 0. Can someone please look at this. I would be very grateful. |
I also tried a new install from HassIO.....now version 0.57.3...I have no idea how others have managed to get this working.....I can only assume that they have been using a very early version of HomeAssistant. |
Yeah its a shame. I only went out and bought one of these loop devices purely to use through home assistant as it has it listed a component. Currently, no use to me if not working. |
Strange it works fine for me after I deleted my DB file it's working for me on. 58 |
Hi Matthew, do you know how I can delete my DB file? It's worth a try. |
Update, I start home assistant, deleted the DB and restarted. This created the new DB and sadly still not got loop energy working. |
I deleted my DB too with no resolution.....Matthew would you be kind enough to copy your entry in the configuration.yaml and redact the sensitive user information. I would just like to see if there is any difference to what I have. |
|
Do you have the information that has been redacted in any form of quotes. |
Nope |
Think that's you problem if your using quote marks they are not required |
Just doesn't want to play ball....the example gives quotes |
Looking at the source code on github....it's been removed so I guess that doesn't bode well |
Your link is wrong. Here it is: |
Thanks....That was the link on the LoopEnergy page.... |
Please keep us posted on your outcome. |
Can somebody please check manually if the connection works? In your $ python3
>>> import pyloopenergy
>>> elec_serial = 'your serial'
>>> elec_secret = 'your_secret'
>>> le = pyloopenergy.LoopEnergy(elec_serial, elec_secret)
>>> le.electricity_useage
[Should be the value]
>>> le.terminate() |
Thanks for your help with this Fabian....I am not very knowledgeable with use of the command line so not really sure how to test this. Is there anybody else that has loopenergy who can try this. I originally started this thread back in June but haven’t really had any success with it. There are a few other users who are experiencing the same issues and some that have it working with exactly the same config.yaml. It’s very frustrating. |
For the record, I have no gas monitor any more (smart meter, not compatible) which is why there's no secret/serial there. The EDIT: Oh, it's |
Where did you type that in Ben.....I'm not so good with Python....You wrote earlier in this thread yours wasn't working either.....although the script looks like it's outputting your electricity value |
|
@BenWoodford |
@fabaff So @BenWoodford has run the script and deduced that it is a problem with the Home Assistant implementation...Is this something you can look at, or recommend how we can get a resolution. |
I’ve just been having a tinker with this and added some more debug lines to see if any callbacks are firing. Unfortunately, it doesn’t seem like anything is firing at all. The callbacks work perfectly when done through the example script but through HASS everything sets up correctly, the web socket doesn’t show any errors (or lack of polling) but it never fires the callback in the component to update things and I’m not sure it ever fires the callback within the library that updates its internal values and subsequently calls the callback from the component either. Very strange. It’s the same version too. Maybe @pavoni can shed some light |
The plot thickens! I just setup a dev HASS environment, for unrelated reasons. Guess what? No issues with Loop, I get my power usage as expected. That makes absolutely 0 sense. To those on this issue, are you using the Docker container? And if not, what version of Python do you have installed? Update: Just tried the code @fabaff provided, but in my Docker container instead.
This appears to be related to pavoni/pyloopenergy#26 So it's environment specific, fantastic. |
I also couldn't get this working in Very interesting it's the same error. BTW I'm sure people realised - but any exception on that thread kills the monitoring - and it won't restart until you reload HA. |
I found that switching to socketIO client 0.5.7.2 seems to bring this back to life (the default installed is 0.5.6) Loop use the 0.9 protocol and https://github.com/invisibleroads/socketIO-client says
|
Adsmf - That's great!! |
I achieved my change the hacky way - by logging into hass via the resin.os core ssh, jumping into the I'll see if I can work out a more friendly way (other than the component itself being updated). |
Ahhh, I'm on Hassbian at the moment so imagine I would only need the Hacky install script, I'll hang on until yourself or someone works out a more eluant solution. If I get bored though I'll totally do a backup of my install and use the quick and dirty method. So thanks again! |
So who do we have to get to fix this.....There are so many clever people that must be able to address the issue...? |
So, I think the proper long term solution will be to get pyloopenergy to up the version in the requirements file - though I'm not sure if there's any other reason they've locked it to 0.5.6. I think that a quick and dirty custom component may provide a temporary patch (I'm sure someone who knows better is going to shout at me for this suggestion). In your config directory under the
Then add:
to your config. |
Thanks for tracking this down @adsmf Have released pyloopenergy 0.0.18 with the change in library. I'm not in the same place as my HA - so I tested the library works stand alone - but can't test it in HA/hassio. If someone can check this works OK we can close the issue and get it in the next HA release. |
I will try and test it....But have no idea what to do !! |
@pavoni Thanks for the quick turnaround on that - I'll create a temporary custom component that pulls the new version and report back :) |
Turns out that was faster than I thought to test. That's working well on my hass.io instance. |
I assume this will also fix this issue? |
@adsmf so what did you do to make it work.....Do I have to wait for the next version of Hass.IO to come out or is there some code I can update.... |
The easiest and cleanest way is certainly to wait for a release with the update. The way I tested the update library was to clone the contents of https://github.com/home-assistant/home-assistant/blob/0.64.1/homeassistant/components/sensor/loopenergy.py into If you do go down that route you'll want to remove the custom component when the release rolls around so you don't miss out on any other changes to the file (as the custom version would always override). |
Thanks for the heads up Alex.....I might wait for the next release then.... |
Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (
hass --version
):47.0
Python release (
python3 --version
):3.4.2
Component/platform:
Loop Energy
Description of problem:
I have followed the example of extracting the key and inserting them. But it returns an error every time
Expected:
Problem-relevant
configuration.yaml
entries and steps to reproduce:Traceback (if applicable):
Additional info:
I have followed the example of extracting the key and inserting them. But it returns an error every time
The text was updated successfully, but these errors were encountered: