-
Notifications
You must be signed in to change notification settings - Fork 3
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
Energy metrics not being collected #10
Comments
I'm seeing data intermittently but not enough to be confident of the total |
Hey, I too have noticed this on my server, but then all of a sudden it started working again. Is you HA Server on the same network as the LFRF WifiLink? I remember when developing that if I was connected to a different AP I also didnt get the packets.. this piece of code can be run on anything to test its receiving data..
oh and firewalls, thats the otherthing I tweaked on my server.. |
Will have a go - I run a Mac mini and would use terminal Using varying network options - will look to bring lw off wifi |
I have the LW930, i have it hardwired, actually I dont think it has WIFI support.. it should work on a macmini too, i originally developed the code on a macbook pro but it now runs on my ubuntu server.. let me lknow |
what should i run to get import json.... etc working? |
data recovered Waiting for data from LWRF Energy Device |
Sorry, looks like I cut'n'pasted something without checking , the code doesnt use json or even time, sorry, but I think you figured it out. Well the data is coming through.. From the macMini? or the HA Server.. |
Yup, LW930 (no LCD display) hardwired to the same VLAN as the Pi that's running HomeAssistant, and as I say sending commands to the LWLink results in the correct lights activating, I'm just not seeing anything from the energy monitor. The energy monitor is definitely working though, because I can see the data in the LWRF app. |
Fwiw, I rebooted the lwlink and it all started working again... |
data collected on Mac mini - data being seen intermittently in HA server Looks like 15 second polling. |
Hey, in sensor.py (line56) the timeout is set to 10seconds. I did that as the code isnt async and I didnt want to hang the HA thread. Can you try changing it to say 20 and see how that works. Im not 100% sure if HA will like that and I probably need to port the code to an async model.. |
Hello,
Since #7 was fixed I've gone back through my config and confirmed that I can talk to my WiFiLink (LW390) from the Raspberry Pi that is running HA.
If I send the command
!R1D1F1
to the Link on UDP 9760 then the appropriate light turns on, so that's fine.I'm still not seeing any data from the energy monitor however, and the log is full of lines such as:
https://api.lightwaverf.com/energy.html#communication suggests that the energy meter data should be sent as a UDP broadcast (which is exactly what the code is expecting), however even if I run Netcat listening for broadcast data, I still can't see any data from the Link at all.
I'm now wondering if the LWLink has stopped broadcasting as even a
tcpdump -n 'broadcast'
isn't showing the packets from the Link - can anyone else confirm this behaviour?The text was updated successfully, but these errors were encountered: