Skip to content
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 Monitor stops reporting after around 30mins on internal API #91

Closed
araines opened this issue Jul 18, 2022 · 3 comments
Closed

Energy Monitor stops reporting after around 30mins on internal API #91

araines opened this issue Jul 18, 2022 · 3 comments

Comments

@araines
Copy link

araines commented Jul 18, 2022

As described in #90, my Energy Monitor (LW600) stops reporting after around 20-30mins whilst using the internal API. It works indefinitely when using the public API.

HACS LW Plugin Version: v3.5.15
HACS Version: 1.26.2
Home Assistant Version: 2022.7.5

I get regular logs like this from lightwave whilst on the internal API, which then just stop after around 20-30mins:

2022-07-18 08:52:43 DEBUG (MainThread) [lightwave2.lightwave2] consumer_handler: Starting consumer handler
2022-07-18 08:52:43 DEBUG (MainThread) [lightwave2.lightwave2] consumer_handler: Received WSMessage(type=<WSMsgType.TEXT: 1>, data='{"version":1,"senderId":"1.ip=10=192=20=182*eu=west=1*compute*internal=72344","transactionId":71599,"direction":"notification","class":"feature","operation":"event","items":[{"payload":{"time":1658130763947,"featureId":"5be42d2cb36c6e17729ad10b-77-3157334736+1","deviceId":5,"type":"energy","channel":0,"writable":false,"stateless":false,"virtual":false,"value":1299273,"status":"ok"},"success":true,"itemId":186}]}', extra='')
2022-07-18 08:52:43 DEBUG (MainThread) [lightwave2.lightwave2] consumer_handler: Event received (5be42d2cb36c6e17729ad10b-77-3157334736+1 <lightwave2.lightwave2.LWRFFeature object at 0xa5ddd118> 1299273), calling callbacks ['async_central_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback']
2022-07-18 08:52:43 DEBUG (MainThread) [custom_components.lightwave2] Central callback
2022-07-18 08:52:43 DEBUG (MainThread) [lightwave2.lightwave2] consumer_handler: Starting consumer handler
2022-07-18 08:52:43 DEBUG (MainThread) [lightwave2.lightwave2] consumer_handler: Received WSMessage(type=<WSMsgType.TEXT: 1>, data='{"version":1,"senderId":"1.ip=10=192=20=182*eu=west=1*compute*internal=72344","transactionId":71598,"direction":"notification","class":"feature","operation":"event","items":[{"payload":{"time":1658130763946,"featureId":"5be42d2cb36c6e17729ad10b-76-3157334736+1","deviceId":5,"type":"power","channel":0,"writable":false,"stateless":false,"virtual":false,"value":637,"status":"ok"},"success":true,"itemId":167}]}', extra='')
2022-07-18 08:52:43 DEBUG (MainThread) [lightwave2.lightwave2] consumer_handler: Event received (5be42d2cb36c6e17729ad10b-76-3157334736+1 <lightwave2.lightwave2.LWRFFeature object at 0x9c0ee370> 637), calling callbacks ['async_central_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback']
2022-07-18 08:52:43 DEBUG (MainThread) [custom_components.lightwave2] Central callback
2022-07-18 08:52:43 DEBUG (MainThread) [lightwave2.lightwave2] consumer_handler: Starting consumer handler
2022-07-18 08:52:43 DEBUG (MainThread) [lightwave2.lightwave2] consumer_handler: Received WSMessage(type=<WSMsgType.TEXT: 1>, data='{"version":1,"senderId":"1.ip=10=192=20=182*eu=west=1*compute*internal=72344","transactionId":71599,"direction":"notification","class":"feature","operation":"event","items":[{"payload":{"time":1658130763947,"featureId":"5be42d2cb36c6e17729ad10b-77-3157334736+1","deviceId":5,"type":"energy","channel":0,"writable":false,"stateless":false,"virtual":false,"value":1299273,"status":"ok"},"success":true,"itemId":168}]}', extra='')
2022-07-18 08:52:43 DEBUG (MainThread) [lightwave2.lightwave2] consumer_handler: Event received (5be42d2cb36c6e17729ad10b-77-3157334736+1 <lightwave2.lightwave2.LWRFFeature object at 0x9c0ee190> 1299273), calling callbacks ['async_central_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback', 'async_update_callback']
2022-07-18 08:52:43 DEBUG (MainThread) [custom_components.lightwave2] Central callback
2022-07-18 08:52:43 DEBUG (MainThread) [lightwave2.lightwave2] consumer_handler: Starting consumer handler
2022-07-18 08:52:44 DEBUG (MainThread) [lightwave2.lightwave2] consumer_handler: Received WSMessage(type=<WSMsgType.TEXT: 1>, data='{"version":1,"senderId":"1.ip=10=192=20=182*eu=west=1*compute*internal=72344","transactionId":71598,"direction":"notification","class":"feature","operation":"event","items":[{"payload":{"time":1658130763946,"featureId":"5be42d2cb36c6e17729ad10b-76-3157334736+1","deviceId":5,"type":"power","channel":0,"writable":false,"stateless":false,"virtual":false,"value":637,"status":"ok"},"success":true,"itemId":29}]}', extra='')
2022-07-18 08:52:44 DEBUG (MainThread) [lightwave2.lightwave2] consumer_handler: Event received (5be42d2cb36c6e17729ad10b-76-3157334736+1 <lightwave2.lightwave2.LWRFFeature object at 0x9bfb3bf8> 637), calling callbacks ['async_central_callback']
2022-07-18 08:52:44 DEBUG (MainThread) [custom_components.lightwave2] Central callback
2022-07-18 08:52:44 DEBUG (MainThread) [lightwave2.lightwave2] consumer_handler: Starting consumer handler
2022-07-18 08:52:44 DEBUG (MainThread) [lightwave2.lightwave2] consumer_handler: Received WSMessage(type=<WSMsgType.TEXT: 1>, data='{"version":1,"senderId":"1.ip=10=192=20=182*eu=west=1*compute*internal=72344","transactionId":71599,"direction":"notification","class":"feature","operation":"event","items":[{"payload":{"time":1658130763947,"featureId":"5be42d2cb36c6e17729ad10b-77-3157334736+1","deviceId":5,"type":"energy","channel":0,"writable":false,"stateless":false,"virtual":false,"value":1299273,"status":"ok"},"success":true,"itemId":30}]}', extra='')

I couldn't spot any obvious errors.

@xela1
Copy link

xela1 commented Jul 18, 2022

Is the monitor the only thing that stops, if you have any other devices, light switches etc and you manually switch do those updates stop? Sounds like #69

@araines
Copy link
Author

araines commented Jul 18, 2022

Good point, @xela1 - when it next stops I'll have to check if state is still coming back to HA if I physically switch a lightswitch. If I'm not getting state back, I'll close this.

@araines
Copy link
Author

araines commented Jul 18, 2022

Perfect timing, I'd just stopped getting updates! I can confirm I'm not getting any event data back, so its the same as #69

@araines araines closed this as completed Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants