homebridge-plugins / homebridge-flume

Homebridge plugin to integrate Flume devices into HomeKit.
MIT License
8 stars 1 forks source link

Flume plugin process getting terminated #39

Closed anishsibal closed 1 year ago

anishsibal commented 1 year ago

What issue do you have? Please be as thorough and explicit as possible.

The plugin process is getting Terminated. Plugin initializes fine, getDeviceInfo(), getWaterInfo() , getLeakInfo() seems to be working and then suddenly process terminates.

Details of your setup.

Homebridge UI-X

v2.0.8

Flume Water Flow Sensor

Please paste any relevant logs below.

[30/12/2022, 00:45:01] The plugin "homebridge-flume" requires Node.js version of ^14.20.1 || ^16.18.0 || ^18.11.0 which does not satisfy the current Node.js version of v16.13.1. You may need to upgrade your installation of Node.js - see https://homebridge.io/w/JTKEF
[30/12/2022, 00:45:01] Loaded plugin: homebridge-flume@2.0.8
[30/12/2022, 00:45:01] Registering platform 'homebridge-flume.Flume'
[30/12/2022, 00:45:08] [Flume] Initializing Flume platform...
[30/12/2022, 00:45:08] [Flume] Initialising plugin v2.0.8 | System linux | Node v16.13.1 | HB v1.6.0 | HAPNodeJS v0.11.0...
[30/12/2022, 00:45:08] [Flume] Plugin initialised. Setting up accessories....
[30/12/2022, 00:45:09] [Flume] [HTTP obtainToken()] {"success":true,"code":602,"message":"Request OK","http_code":200,"http_message":"OK","detailed":null,"data":[{"token_type":"bearer","access_token":"XXXXXXXXX","expires_in":604800,"refresh_token":"XXXXXXX"}],"count":1,"pagination":null}.
[30/12/2022, 00:45:10] [Flume] [HTTP getDevices()] {"success":true,"code":602,"message":"Request OK","http_code":200,"http_message":"OK","detailed":null,"data":[{"id":"6710097729533041972","type":2,"location_id":42018,"user_id":34431,"bridge_id":"6731846992499373277","oriented":true,"last_seen":"2022-12-30T06:44:01.000Z","connected":true,"battery_level":"high","product":"flume2"},{"id":"6731846992499373277","type":1,"location_id":42018,"user_id":34431,"bridge_id":null,"last_seen":"2022-12-30T06:41:25.000Z","connected":true,"supports_ap":true,"product":"flume2"}],"count":2,"pagination":null}.
[30/12/2022, 00:45:10] [Flume] [Flume] initialised with id [6710097729533041972].
[30/12/2022, 00:45:10] [Flume] ✓ Setup complete. This plugin currently has a 4☆ rating on HOOBS! http://bit.ly/hb-flume-review
[30/12/2022, 00:45:10] [Flume] [HTTP getDeviceInfo()] {"success":true,"code":602,"message":"Request OK","http_code":200,"http_message":"OK","detailed":null,"data":[{"id":"6710097729533041972","type":2,"location_id":42018,"user_id":34431,"bridge_id":"6731846992499373277","oriented":true,"last_seen":"2022-12-30T06:44:01.000Z","connected":true,"battery_level":"high","product":"flume2"}],"count":1,"pagination":null}.
[30/12/2022, 00:45:11] [Flume] [HTTP getWaterInfo()] {"success":true,"code":602,"message":"Request OK","http_code":200,"http_message":"OK","detailed":null,"data":[{"today":[{"value":0}],"month":[{"value":9806.28919958}],"prevMonth":[{"value":8198.49043766}]}],"count":1,"pagination":null}.
[30/12/2022, 00:45:12] [Flume] [HTTP getLeakInfo()] {"success":true,"code":602,"message":"Request OK","http_code":200,"http_message":"OK","detailed":null,"data":[{"active":false}],"count":1,"pagination":null}.
[30/12/2022, 00:46:10] [Flume] [HTTP getLeakInfo()] {"success":true,"code":602,"message":"Request OK","http_code":200,"http_message":"OK","detailed":null,"data":[{"active":false}],"count":1,"pagination":null}.
[30/12/2022, 00:47:10] [Flume] [HTTP getLeakInfo()] {"success":true,"code":602,"message":"Request OK","http_code":200,"http_message":"OK","detailed":null,"data":[{"active":false}],"count":1,"pagination":null}.
[30/12/2022, 00:48:10] [Homebridge UI] [homebridge-flume] Terminating child process...
[30/12/2022, 00:48:10] [Homebridge UI] [homebridge-flume] Child process ended
[30/12/2022, 00:48:10] [Flume] [HTTP getLeakInfo()] {"success":true,"code":602,"message":"Request OK","http_code":200,"http_message":"OK","detailed":null,"data":[{"active":false}],"count":1,"pagination":null}.
[30/12/2022, 00:49:10] [Flume] [HTTP getLeakInfo()] {"success":true,"code":602,"message":"Request OK","http_code":200,"http_message":"OK","detailed":null,"data":[{"active":false}],"count":1,"pagination":null}.
[30/12/2022, 00:50:10] [Flume] [HTTP getLeakInfo()] {"success":true,"code":602,"message":"Request OK","http_code":200,"http_message":"OK","detailed":null,"data":[{"active":false}],"count":1,"pagination":null}.
[30/12/2022, 00:50:16] [Homebridge UI] [homebridge-flume] Terminating child process...
[30/12/2022, 00:50:16] [Homebridge UI] [homebridge-flume] Child process ended
[30/12/2022, 00:51:07] [Homebridge UI] [homebridge-flume] Terminating child process...
[30/12/2022, 00:51:07] [Homebridge UI] [homebridge-flume] Child process ended
[30/12/2022, 00:51:10] [Flume] [HTTP getLeakInfo()] {"success":true,"code":602,"message":"Request OK","http_code":200,"http_message":"OK","detailed":null,"data":[{"active":false}],"count":1,"pagination":null}.
[30/12/2022, 00:51:20] [Homebridge UI] [homebridge-flume] Terminating child process...
[30/12/2022, 00:51:20] [Homebridge UI] [homebridge-flume] Child process ended
bwp91 commented 1 year ago

Hi @anishsibal

Thanks for reporting this.

Strange that the process is being ended without any error in the log.

And normally I would like to ask initially if this is likely due to the flume plugin (rather than another plugin) but it looks like you have the plugin in a child bridge so it is definitely the fault of this plugin.

Hmm where do we go from here.

bwp91 commented 1 year ago

Would you be happy to message me directly on the discord server and ideally you can pass me credentials so I can try to replicate what is going on?

https://discord.gg/cMGhNtZ3tW