Comments (11)
No, not needed. I've submitted a fix that should at least prevent the crashes. That fix is now pending approval, so we have to wait for Athom to approve. Usually that takes a few days.
But I think the real fix has to come from Athom (see Homey issue 2138).
from virtual-devices.
Corresponding log:
A crash occurred for your app (version 0.6.8) at Jan 5, 2018 12:17 PM (UTC).
Homey software version: 1.5.6-rc.7
Crash report:
Note: this log has been manually submitted by a user.
Log ID: 77cc8f58-037d-4398-964a-9abbb65aa9ae
---- stdout ----
2018-01-05 11:52:04 [log] [VirtualDevices] Virtual Devices App is initialized
2018-01-05 11:52:04 [log] [ManagerDrivers] [multi] Initialized driver for Multi-Modes
2018-01-05 11:52:04 [log] [ManagerDrivers] [virtual_switch] Initialized driver for Virtual Devices
2018-01-05 11:52:04 [log] [ManagerDrivers] [virtual_switch] [0] Virtual Device (Alarm_Melding) initialized
2018-01-05 11:52:04 [log] [ManagerDrivers] [virtual_switch] [1] Virtual Device (Overdag) initialized
2018-01-05 11:52:04 [log] [ManagerDrivers] [virtual_switch] [2] Virtual Device (Verlichting Normaal) initialized
2018-01-05 11:52:04 [log] [ManagerDrivers] [virtual_switch] [3] Virtual Device (Verlichting Bioscoop) initialized
2018-01-05 11:52:04 [log] [ManagerDrivers] [virtual_switch] [4] Virtual Device (Verlichting Gedimd) initialized
2018-01-05 11:52:04 [log] [ManagerDrivers] [mode] Initialized driver for Modes
2018-01-05 11:52:04 [log] [ManagerDrivers] [mode] [0] Mode device (Alarm Armed) inititialized
2018-01-05 11:52:04 [log] [ManagerDrivers] [mode] [1] Mode device (Slaap) inititialized
2018-01-05 11:52:04 [log] [ManagerDrivers] [mode] [2] Mode device (Thuis) inititialized
2018-01-05 11:52:04 [log] [ManagerDrivers] [mode] [3] Mode device (Verlichting override) inititialized
2018-01-05 11:53:00 [log] [ManagerDrivers] [mode] Verlichting override -> Condition checked: {"onoff":false}
2018-01-05 11:53:00 [log] [ManagerDrivers] [mode] Slaap -> Condition checked: {"onoff":false}
2018-01-05 11:53:00 [log] [ManagerDrivers] [mode] Slaap -> Condition checked: {"onoff":false}
---- stderr ----
/drivers/mode/driver.js:62
this.log(device.getName() + ' -> Condition checked: ' + simpleStringify(device.getState()) );
^
TypeError: Cannot read property 'getName' of undefined
at FlowCardCondition.flowCardCondition.register.registerRunListener [as _runListener] (/drivers/mode/driver.js:62:25)
at FlowCardCondition._onRun (/opt/homey-client/system/manager/ManagerApps/bootstrap/sdk/v2/lib/FlowCard.js:1:1191)
at emitThree (events.js:136:13)
at FlowCardCondition.emit (events.js:217:7)
at ManagerFlow._onRun (/opt/homey-client/system/manager/ManagerApps/bootstrap/sdk/v2/manager/flow.js:1:2274)
at _eventListeners.filter.forEach.t (/opt/homey-client/system/manager/ManagerApps/bootstrap/sdk/v2/lib/HomeyClient.js:1:1219)
at Array.forEach (<anonymous>)
at HomeyClient._onMessage (/opt/homey-client/system/manager/ManagerApps/bootstrap/sdk/v2/lib/HomeyClient.js:1:1196)
at emitTwo (events.js:126:13)
at process.emit (events.js:214:7)
from virtual-devices.
Thanks for the report.
I can see the problem and will try to fix it. The problem is in 1 of the Modes 'Alarm Armed' or 'Thuis' (or both). The app probably crashes when a flow is triggered where this mode is used in a condition (the 'And' or 'En' column in a flow).
As a workaround (if it is not too much work), can you try to delete this Mode and create a new Mode for it. That also means updating the flows with the new Mode.
The fix will prevent a crash, but the real problem is in Homey software, see Homey issue 2138. So I don't think a fix in VD will result in a working flow.
from virtual-devices.
from virtual-devices.
from virtual-devices.
from virtual-devices.
from virtual-devices.
I just released it in the Beta-channel.
It should at least stop the crashing.
from virtual-devices.
Just to keep a log: Emile reported that this was fixed for triggers:
For triggers, this has indeed been fixed. Conditions & actions could not be reproduced.
But this occured in a condition. I'll keep the fix to stop the crashing for now and investigate further.
from virtual-devices.
Just to keep a log:
I reproduced this on v1.5.8, the (Android) preview-app is on 0.8.5.115 and iOS is on v1.1.107.
I've updated the Homey issue 2138 with this information.
from virtual-devices.
Just to keep a log:
I've created a new Homey issue 2459, since the other issue is closed and does not get any attention anymore.
from virtual-devices.
Related Issues (20)
- Support Garage Door class HOT 1
- Support for capability alarm_water
- Hello I am looking for the color variables
- Feature request: pressing virtual button - mode is on, no trigger HOT 3
- Virtual thermostat current temperature not possibly set using flow HOT 1
- Problem with Temperature kontroll.
- New sensor type: data throughput (MB/s) + Percentage HOT 1
- Feature Request: Virtual Garage Door / Gate HOT 1
- New Device: User
- House Ventilation modes HOT 1
- Feature request: Water tank HOT 1
- Feature request Time(Tekst) HOT 4
- Virtual devices for Homey Bridge HOT 2
- Suggestion for an additional option with sensors
- Adding an IP camera
- Apple Home
- New HOMEY Pro 2023 HOT 3
- Virtual device Modus triggers flow randomly
- add valve and sprinkler
- Error on 'name change' VD Device HOT 2
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 virtual-devices.