Page 1 of 1

Basic command

Posted: 23 Apr 2013 20:21
by delvedi
Hi,

tried to play around with an AN158 everspring power switch. Seems to work when using
http://mediaserver:8083/JS/Run/zway.dev ... t%28255%29;
but when using
http://mediaserver:8083/JS/Run/zway.dev ... t%28255%29;
system returned "Uncaught TypeError: Cannot call method 'Set' of undefined". Why is the "Basic" command not recognized for this switch?

The log shows
[2013-04-23 19:19:27.928] SENT ACK
[2013-04-23 19:19:27.930] SETDATA devices.2.data.lastReceived = 0 (0x00000000)
[2013-04-23 19:19:27.932] SETDATA devices.2.instances.0.commandClasses.50.data.2
.val = 9.000000
[2013-04-23 19:19:27.933] SETDATA devices.2.instances.0.commandClasses.50.data.2
.delta = 0 (0x00000000)
[2013-04-23 19:19:27.936] SETDATA devices.2.instances.0.commandClasses.50.data.2
.ratetype = 1 (0x00000001)
[2013-04-23 19:19:27.937] SETDATA devices.2.instances.0.commandClasses.50.data.2
= Empty

try ...commandClasses.Basic

Posted: 23 Apr 2013 20:21
by PoltoS
try ...commandClasses.Basic.Set(...)

You certainly use older version of RaZberry. Please update (run the same install script again) and you will be able to omit commandClasses word

Hi,

Posted: 23 Apr 2013 20:21
by delvedi
Hi,

Tried with latest version and problem is gone.

Thanks for your help