Comments (3)
I found one source of the problem and was able to circumvent it by replacing the line with:
var socketID = (currentLine.split(':')[1] || '').trim();
While this prevents the crash from happening, I'm not sure what impact this has on the functioning of the app. At least I was able to try this app further.
from com.swttt.homekit.
After applying the above patch, the app crashed again after adding certain devices. What I noticed is that some devices have null as the value for the alarm_tamper characteristic and alarm_battery:
Realtime event from: ELI Multisensor. Value: {"alarm_motion":false,"measure_temperature":21.2,"measure_luminance":154,"measure_battery":null,"alarm_tamper":null,"alarm_battery":null}
While others have true or false as a value:
Realtime event from: OVL Multisensor. Value: {"alarm_motion":true,"alarm_tamper":false,"measure_temperature":21.1,"measure_luminance":476,"measure_battery":48}
Not sure why this happens, but I was able to prevent crashing of the app by changing line 82 of motion sensor.js with:
var tamper = HAS.predefined.StatusTampered(10, 0);
I think this is related to issue #29
from com.swttt.homekit.
Should be fixed as well.
from com.swttt.homekit.
Related Issues (20)
- No devices responding with iOS 16.2 HOT 17
- No response after 4.2.0 HOT 10
- Possible issue with future iOS 16.2 Home architecture upgrade HOT 1
- Question: Homey Pro 2023 HOT 1
- Inconsistent Pairing code HOT 3
- No device response iOS16.1 HOT 4
- Devices are missing in the Apple Home app after Homey restart (PTP) HOT 4
- Fibaro Door Sensor HOT 5
- Homeykit compatible with new Apple HomeKit architecture? HOT 1
- Same issue homekit stopped working HOT 7
- Stopped working HOT 1
- Daikin Onecta - Homey - Siri HOT 1
- Crashing
- Homey Pro Can not add Homekitty to Homekit
- Homey pro 2023 HOT 3
- Unable to change color on WIZ bulbs HOT 1
- Accessoires unreachable HOT 4
- Homey integration with HomeKit new Architecture HOT 4
- Apple & Homey PRO HOT 1
- Add Velux active with Netamo Support HOT 1
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 com.swttt.homekit.