valiquette / homebridge-orbit-irrigation

Provides Homebridge support for Orbit B-Hyve devices
MIT License
11 stars 1 forks source link

Node.Js version #91

Closed vascott1 closed 1 month ago

vascott1 commented 1 month ago

Trying to get this plugin working and getting this:

17/15/2024, 4:12:08 PM] --- 17/15/2024, 4:12:08 PM] The plugin "homebr idge-orbit-irrigation" requires Node js ve Ision of ^18.20.011 ^20.14.0 |1 ^22.3.0 W hich does not satisfy the current Node.js version of 20.12.2. You may need to upgra de your installation of Node.js - see http s://homebridge.io/w/JTKEF 17/15/2024, 4:12:08 PM] Disabled plugin: h omebridge-orbit-irrigation@1.2.32

No idea why the plugin needs a minor version change from x.12->x.14

Any suggestions? Not sure I want to do a node upgrade for this..

Thanks!

valiquette commented 1 month ago

Updating node is pretty simple and keeping current is good. You can do this within home bridge or terminal, with "sudo hb-service update-node"

https://github.com/homebridge/homebridge/wiki/How-To-Update-Node.js/

vascott1 commented 1 month ago

Thanks. While it is easy I am running Docker so updating by that method is not recommended. is there something specific to that is needed or can I add an override to allow it to use v20.12.2 I was able to do this with another plugin but I forget which :)

thanks!

On Mon, Jul 15, 2024 at 5:25 PM valiquette @.***> wrote:

Updating node is pretty simple and keeping current is good. You can do this within home bridge or terminal, with "sudo hb-service update-node"

https://github.com/homebridge/homebridge/wiki/How-To-Update-Node.js/

— Reply to this email directly, view it on GitHub https://github.com/valiquette/homebridge-orbit-irrigation/issues/91#issuecomment-2229468851, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALLAX2ZZXYUKAV725TBZNY3ZMQ46PAVCNFSM6AAAAABK5HNSGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRZGQ3DQOBVGE . You are receiving this because you authored the thread.Message ID: @.***>

vascott1 commented 1 month ago

ok. I figured out how to make it work.. The issue I am seeing may or may not be because of the node version. Hoping I can use this as I at the mercy of the Docker image.

Thanks!!

---- Errors as child bridge -----

[7/16/2024, 9:40:00 AM] [B-Hyve] Starting Orbit Platform using homebridge API 2.7 [7/16/2024, 9:40:00 AM] [B-Hyve] Getting Account info... Error: listen EADDRINUSE: address already in use :::45020 at Server.setupListenHandle [as _listen2] (node:net:1897:16) at listenInCluster (node:net:1945:12) at Server.listen (node:net:2037:7) at EventedHTTPServer.listen (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/eventedhttp.ts:166:20) at HAPServer.listen (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:380:21) at Bridge. (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1378:18) at step (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:195:27) at Object.next (/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:176:57) at /homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:169:75 at new Promise () [7/16/2024, 9:40:00 AM] [B-Hyve] Child bridge process ended [7/16/2024, 9:40:00 AM] [B-Hyve] Process Ended. Code: 1, Signal: null

--- removing child bridge settings ---

I get this error and Homebridge does not start...

[7/16/2024, 9:45:38 AM] [B-Hyve] Skipping Irrigation System HT34-0001 She’d based on config [7/16/2024, 9:45:38 AM] Error: homebridge-orbit-irrigation - bhyve attempt to register an accessory that isn't PlatformAccessory! at /homebridge/node_modules/homebridge/src/api.ts:333:15 at Array.forEach () at HomebridgeAPI.registerPlatformAccessories (/homebridge/node_modules/homebridge/src/api.ts:330:17) at /homebridge/node_modules/homebridge-orbit-irrigation/orbitplatform.js:591:17 at processTicksAndRejections (node:internal/process/task_queues:95:5) [7/16/2024, 9:45:38 AM] Got SIGTERM, shutting down Homebridge... [7/16/2024, 9:45:38 AM] Got SIGTERM, shutting down child bridge process... [7/16/2024, 9:45:38 AM] Got SIGTERM, shutting down child bridge process...

On Mon, Jul 15, 2024 at 5:25 PM valiquette @.***> wrote:

Updating node is pretty simple and keeping current is good. You can do this within home bridge or terminal, with "sudo hb-service update-node"

https://github.com/homebridge/homebridge/wiki/How-To-Update-Node.js/

— Reply to this email directly, view it on GitHub https://github.com/valiquette/homebridge-orbit-irrigation/issues/91#issuecomment-2229468851, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALLAX2ZZXYUKAV725TBZNY3ZMQ46PAVCNFSM6AAAAABK5HNSGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRZGQ3DQOBVGE . You are receiving this because you authored the thread.Message ID: @.***>

valiquette commented 1 month ago

Nothing you can do but ignore the warning. Have you tried to pull the latest docker image?

I also run under docker and always use the hb-service update, never had any issue at all

vascott1 commented 1 month ago

I can see what the latest image contains. Can't ignore the error as it stups HB from running..

Are you running normal or as a child bridge? just curious.

Thanks for the fast response :)

On Tue, Jul 16, 2024 at 9:53 AM valiquette @.***> wrote:

Nothing you can do but ignore the warning. Have you tried to pull the latest docker image?

I also run under docker and always use the hb-service update, never had any issue at all

— Reply to this email directly, view it on GitHub https://github.com/valiquette/homebridge-orbit-irrigation/issues/91#issuecomment-2230953044, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALLAX24F4L55FG2ZBE25N53ZMUQWDAVCNFSM6AAAAABK5HNSGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZQHE2TGMBUGQ . You are receiving this because you authored the thread.Message ID: @.***>

valiquette commented 1 month ago

Child bridge

vascott1 commented 1 month ago

hi there, again... I am upgraded to Node 20.15 and started the plugin (v1.2.32)as a child bridge. it starts looping with the following.. hopefully something that can be resolved?

[7/17/2024, 5:15:33 PM] [B-Hyve] Launched child bridge with PID 670 [7/17/2024, 5:15:33 PM] Registering platform 'homebridge-orbit-irrigation.bhyve' [7/17/2024, 5:15:33 PM] [B-Hyve] Loaded homebridge-orbit-irrigation v1.2.32 child bridge successfully [7/17/2024, 5:15:33 PM] [B-Hyve] Starting Orbit Platform using homebridge API 2.7 [7/17/2024, 5:15:33 PM] [B-Hyve] Getting Account info... [7/17/2024, 5:15:33 PM] Homebridge v1.8.3 (HAP v0.12.2) (B-Hyve) is running on port 59154. [7/17/2024, 5:15:33 PM] [B-Hyve] Found account for Scott Seller [7/17/2024, 5:15:33 PM] [B-Hyve] Online device BH1-0001 WiFi Hub found at the configured location address: [7/17/2024, 5:15:33 PM] [B-Hyve] Online device BH1G2-0000 Wi-Fi Hub Gen 2 found at the configured location address: [7/17/2024, 5:15:33 PM] [B-Hyve] Online device HT25-0000 Smart Hose Tap Timer found at the configured location address: [7/17/2024, 5:15:33 PM] [B-Hyve] Online device HT34-0001 Shed found at the configured location address: Error: homebridge-orbit-irrigation - bhyve attempt to register an accessory that isn't PlatformAccessory! at /homebridge/node_modules/homebridge/src/api.ts:333:15 at Array.forEach () at HomebridgeAPI.registerPlatformAccessories (/homebridge/node_modules/homebridge/src/api.ts:330:17) at /homebridge/node_modules/homebridge-orbit-irrigation/orbitplatform.js:591:17 at processTicksAndRejections (node:internal/process/task_queues:95:5) [7/17/2024, 5:15:34 PM] [B-Hyve] Child bridge process ended [7/17/2024, 5:15:34 PM] [B-Hyve] Process Ended. Code: 1, Signal: null

valiquette commented 1 month ago

I will take a look. It would be very helpful to enable debug logging in homebridge and in the plugin config enable logging for the API responses. and attach the output intron of the plugin crash like you did above. Also can you attach your config for this plugin?

valiquette commented 1 month ago

One thing I noticed from what you did attach. It look like in you config you may have expose wifi hub in homekit enabled, you may want to try setting that to false.

vascott1 commented 1 month ago

I will do that and enable the debug logging and post the results. Thanks!

On Jul 18, 2024 at 11:19 AM, <valiquette @.***)> wrote:

One thing I noticed from what you did attach. It look like in you config you may have expose wifi hub in homekit enabled, you may want to try setting that to false.

— Reply to this email directly, view it on GitHub (https://github.com/valiquette/homebridge-orbit-irrigation/issues/91#issuecomment-2236843013), or unsubscribe (https://github.com/notifications/unsubscribe-auth/ALLAX23CF2PG3WIBRGOE2XLZM7MG3AVCNFSM6AAAAABK5HNSGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZWHA2DGMBRGM). You are receiving this because you authored the thread.Message ID: @.***>

vascott1 commented 1 month ago

That was it. Once I disabled the WiFi hub it came right up as a child bridge. Thanks!

On Jul 18, 2024 at 12:43 PM, <Thismustbejunk @.***)> wrote:

I will do that and enable the debug logging and post the results. Thanks!

On Jul 18, 2024 at 11:19 AM, <valiquette @.***)> wrote:

One thing I noticed from what you did attach. It look like in you config you may have expose wifi hub in homekit enabled, you may want to try setting that to false.

— Reply to this email directly, view it on GitHub (https://github.com/valiquette/homebridge-orbit-irrigation/issues/91#issuecomment-2236843013), or unsubscribe (https://github.com/notifications/unsubscribe-auth/ALLAX23CF2PG3WIBRGOE2XLZM7MG3AVCNFSM6AAAAABK5HNSGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZWHA2DGMBRGM). You are receiving this because you authored the thread.Message ID: @.***>

valiquette commented 1 month ago

I was able to reproduce the error, and the underlying issue is now corrected in 1.2.33. That said there is no real reason to expose that device in homekit anyhow, I would leave the setting false. But if you can verify it and close the case if it is resolved I would appreciate that.

vascott1 commented 1 month ago

corrected in 1.2.33 Thanks again