Recurring errors in OpenRemoteHelpers

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Recurring errors in OpenRemoteHelpers

Post 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;
Since 29-12-2016 I am no longer a moderator for this forum
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Recurring errors in OpenRemoteHelpers

Post 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 :)
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Recurring errors in OpenRemoteHelpers

Post 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...
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Recurring errors in OpenRemoteHelpers

Post 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?
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Recurring errors in OpenRemoteHelpers

Post 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.
Since 29-12-2016 I am no longer a moderator for this forum
Post Reply