Page 1 of 1

Recurring errors in OpenRemoteHelpers

Posted: 29 Dec 2014 12:31
by pz1
Not completely sure, but I guess setVal. should be removed from line 191?
(broken since the beginning)

LOG

Code: Select all

[2014-12-29 04:21:33.454] [E] [8083] Callback execution error: TypeError: Cannot read property 'setVal' of undefined
    at OpenRemote (automation/modules/OpenRemoteHelpers/index.js:191:73)
    at WebServerRequestHandler (automation/main.js:85:10)
CODE

Code: Select all

190                if (mode !== null) {
191                    return zway.devices[N].ThermostatSetPoint.data[mode].setVal.value;
192                }
193                return 0;

Re: Recurring errors in OpenRemoteHelpers

Posted: 29 Dec 2014 20:19
by pofs
No, setVal is correct (at least it is a valid name), but it seems your device doesn't have thermostat mode you're requesting. Not sure what it requires to do in this case :)

Re: Recurring errors in OpenRemoteHelpers

Posted: 29 Dec 2014 21:51
by pz1
pofs wrote:Not sure what it requires to do in this case :)
I did not understand either, it was not part of my original RaZ-OR code. The only Thermostats I have are StellaZ with modes 0,1,11,31.
I did not notice problems with my devices. I was just scrutinising the logs for possible problems...

Re: Recurring errors in OpenRemoteHelpers

Posted: 15 Jan 2015 15:06
by pz1
pz1 wrote:Callback execution error: TypeError: Cannot read property 'setVal' of undefined
at OpenRemote (automation/modules/OpenRemoteHelpers/index.js:191:73)
at WebServerRequestHandler (automation/main.js:85:10)
Checked logs from today and yesterday, but did not find this error again.

Cured miraculously?

Re: Recurring errors in OpenRemoteHelpers

Posted: 31 Jan 2015 12:55
by pz1
pz1 wrote:Cured miraculously?
No, I still do see this once in a while. I don't undestand what triggers this to happen. In the meantime I've asked the module developer directly.