You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @En3rGy I installed the plugin, then opened the plugin UI and saved an initial config without changing any values.
After restarting Homebridge, it went into a crash loop with these errors:
[16/03/2024, 18:32:57] [hsd] Initializing hsd platform...
[16/03/2024, 18:32:57] Error: hsdPlatform.ts | HsdPlatform | Invalid configuration
at new HsdPlatform (/usr/local/lib/node_modules/homebridge-hsd/src/hsdPlatform.ts:31:13)
at /usr/local/lib/node_modules/homebridge/src/server.ts:474:40
at Array.forEach (<anonymous>)
at Server.loadPlatforms (/usr/local/lib/node_modules/homebridge/src/server.ts:401:27)
at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:176:29)
[16/03/2024, 18:32:57] Got SIGTERM, shutting down Homebridge...
[16/03/2024, 18:32:57] AssertionError [ERR_ASSERTION]: Cannot generate setupURI on an accessory that isn't published yet!
at Bridge.Accessory.setupURI (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:994:11)
at Server.setServerStatus (/usr/local/lib/node_modules/homebridge/src/server.ts:155:45)
at Server.teardown (/usr/local/lib/node_modules/homebridge/src/server.ts:199:10)
at signalHandler (/usr/local/lib/node_modules/homebridge/src/cli.ts:93:12)
at process.emit (node:events:518:28)
at process.emit (/usr/local/lib/node_modules/homebridge/node_modules/source-map-support/source-map-support.js:516:21)
[16/03/2024, 18:33:02] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
The plugin should not terminate the process as this ended up continually restarting my homebridge and all the plugins I have.
Errors that happen should be caught properly and logged, but not crash.
If for any reason in the future you can no longer maintain your plugin, please consider transferring it to our unmaintained plugins repo. We can take ownership until another willing developer comes along.
Don't forget to join the official Homebridge Discord server, where plugin developers can get tips and advice from other developers and the Homebridge project team in the #plugin-development channel!
As a verified plugin, you can request a channel in the Discord server to discuss your plugin with users and other developers. Just ask in the #plugin-development channel.
Thank you for your contribution to the Homebridge community.
Activity
github-actions commentedon Feb 3, 2024
The following pre-checks failed:
❌ The config.schema.json does not contain valid JSON.
Comment
/checkto run checks again.En3rGy commentedon Feb 3, 2024
/check
github-actions commentedon Feb 3, 2024
✅ Pre-checks completed successfully.
bwp91 commentedon Feb 11, 2024
Hi @En3rGy quick question, does
"jasmine": "^5.1.0",need to be in your dependencies or can this go to dev dependencies?En3rGy commentedon Feb 11, 2024
Hi @bwp91 , thanks for the point. Checked the dependencies and cleaned them up. Git and npm are up to date with the new v1.1.3.
github-actions commentedon Mar 16, 2024
Comment
/checkto run checks again.bwp91 commentedon Mar 16, 2024
Hi @En3rGy I installed the plugin, then opened the plugin UI and saved an initial config without changing any values.
After restarting Homebridge, it went into a crash loop with these errors:
The plugin should not terminate the process as this ended up continually restarting my homebridge and all the plugins I have.
Errors that happen should be caught properly and logged, but not crash.
En3rGy commentedon Mar 16, 2024
@bwp91 could you please post your test config so that I can update my test cases?
3 remaining items
En3rGy commentedon Apr 28, 2024
The fix is online, see https://github.com/En3rGy/homebridge-hsd/releases/tag/v1.1.7 resp. https://www.npmjs.com/package/homebridge-hsd/v/1.1.7
I'm still struggeling to simulate a homebridge API instance for unit testing. Any tips for this one?
bwp91 commentedon May 4, 2024
@En3rGy with regards to unit testing, perhaps the homebridge/ui test files could be of use?
.spec.tsfiles here: https://github.com/homebridge/homebridge/blob/latest/src/api.spec.tsbwp91 commentedon May 4, 2024
Also I just reinstalled the plugin, saved the default config of:
{ "accessories": [ { "services": [ { "serviceType": "Lightbulb", "characteristics": [ { "characteristicName": "On" } ] } ] } ], "hsPort": 443, "platform": "hsd", "_bridge": { "username": "removed" } }and now getting this crash loop:
En3rGy commentedon May 19, 2024
New version v1.1.9 is online: https://www.npmjs.com/package/homebridge-hsd
github-actions commentedon May 26, 2024
Congratulations! Your plugin has been verified!
You can now add one of the Verified by Homebridge badges to your plugin's README:
Your plugin is now also eligible to display a ❤️ Donate button on its tile in the Homebridge UI. See https://github.com/homebridge/homebridge/wiki/Donation-Links for instructions.
If for any reason in the future you can no longer maintain your plugin, please consider transferring it to our unmaintained plugins repo. We can take ownership until another willing developer comes along.
Don't forget to join the official Homebridge Discord server, where plugin developers can get tips and advice from other developers and the Homebridge project team in the #plugin-development channel!
As a verified plugin, you can request a channel in the Discord server to discuss your plugin with users and other developers. Just ask in the #plugin-development channel.
Thank you for your contribution to the Homebridge community.
verify: homebridge-hsd