Comments (19)
Hi @wimleers
Re (1) - there are still plenty of users who configure stuff directly with JSON, so we just need to make sure that any 'config issues' are caught properly by its plugin - to make sure that it does not send homebridge into a crash loop and therefore not stop any other plugin from functioning. homebridge-config-ui-x
has made things so much easier for a lot of users, but please don't assume that every user will be using this.
Re (2) - okay
from verified.
Great! Once ready, please reply on here with a comment just saying /check
and we can try again
from verified.
from verified.
A basic config of
{
"platform": "SMAHomeManager",
"_bridge": {
"username": "0E:E7:D4:44:A2:0A",
"port": 46564
}
}
sends Homebridge into a crash loop:
[26/03/2023, 18:04:39] Registering platform 'homebridge-sma-home-manager.SMAHomeManager'
[26/03/2023, 18:04:39] [homebridge-sma-home-manager] Loaded homebridge-sma-home-manager v1.1.1 child bridge successfully
[26/03/2023, 18:04:39] Loaded 0 cached accessories from cachedAccessories.0EE7D444A20A.
/usr/local/lib/node_modules/homebridge-sma-home-manager/index.js:285
Object.keys(signalNames).forEach(id => {
^
TypeError: Cannot read properties of undefined (reading 'offGrid')
at /usr/local/lib/node_modules/homebridge-sma-home-manager/index.js:286:35
at Array.forEach (<anonymous>)
at SMAHomeManager.accessories (/usr/local/lib/node_modules/homebridge-sma-home-manager/index.js:285:28)
at /usr/local/lib/node_modules/homebridge/src/bridgeService.ts:534:24
at new Promise (<anonymous>)
at BridgeService.loadPlatformAccessories (/usr/local/lib/node_modules/homebridge/src/bridgeService.ts:528:12)
at ChildBridgeFork.startBridge (/usr/local/lib/node_modules/homebridge/src/childBridgeFork.ts:155:36)
[26/03/2023, 18:04:39] [homebridge-sma-home-manager] Child bridge process ended
[26/03/2023, 18:04:39] [homebridge-sma-home-manager] Process Ended. Code: 1, Signal: null
[26/03/2023, 18:04:46] [homebridge-sma-home-manager] Restarting Process...
Also does your plugin ever wait for the didFinishLaunching
event? Im not sure if your plugin type needs to or not. But I wonder if this is the reason of the logging
[26/03/2023, 18:23:24] [homebridge-sma-home-manager] This plugin is taking long time to load and preventing Homebridge from starting. See https://homebridge.io/w/JtMGR for more info.
and the icon never turning to green?
from verified.
- The support for
homebridge-config-ui-x
would never result in that sort of configuration as far as I can tell?😅 - The plugin will never launch unless both an SMA solar inverter is discovered (using mDNS/DNS-SD) and a SMA Home Manager (using a Speedwire multicast subscription, where this device is broadcasting a datagram every second) are found. You likely do not have either device on your network, which is why the plugin takes so long to launch: it keeps trying indefinitely. I'm happy to change that to a limited period of time of course. But: A) the logging should make it pretty clear, B) it's then absolutely pointless to run this plugin.
(Over here it typically takes a few seconds to discover the devices, connect, and then launch.)
from verified.
Makes sense, will address that!
from verified.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from verified.
I will follow up on this in the coming week.
from verified.
Related Issues (20)
- homebridge-spotify-speaker HOT 15
- [test] [already-verified] homebridge-ewelink HOT 1
- homebridge-spruce-irrigation HOT 11
- homebridge-level-sense HOT 3
- homebridge-green-mountain-grills HOT 2
- Unverify homebridge-mihome4u HOT 3
- [testing] homebridge-meross HOT 5
- homebridge-resol-vbus HOT 6
- homebridge-fenix-tft-wifi HOT 7
- homebridge-inkbird-wifi-gateway HOT 61
- homebridge-dreo HOT 12
- homebridge-inkbird-wifi-gateway HOT 2
- homebridge-inkbird-wifi-gateway HOT 2
- homebridge-inkbird-wifi-gateway HOT 2
- homebridge-loxone-proxy HOT 4
- homebridge-panasonic-miraie-ac-platform HOT 4
- homebridge-august-door-sense HOT 4
- homebridge-inkbird-wifi-gateway HOT 2
- homebridge-dashboard HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from verified.