Remote KFOB2

Discussions about existing Z-Wave device and their usage with Z-Way/Z-Cloud/Z-Box
Post Reply
LAN-Opfer
Posts: 98
Joined: 03 Oct 2014 13:23

Remote KFOB2

Post by LAN-Opfer »

...Hi,

I want to use the KFOB2 for switching a Fibaro FGS221 (device 2) - it is installed in the garden and to the heater control in the car.
I have the result of the interview:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Device Description
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<ZWaveDevice xmlns="http://www.pepper1.net/zwavedb/xml-schemata/z-wave" schemaVersion="2">
<descriptorVersion>1</descriptorVersion>
<deviceData>
<manufacturerId value="0115"/>
<productType value="0100"/>
<productId value="0001"/>
<libType value="03"/>
<protoVersion value="03"/>
<protoSubVersion value="43"/>
<appVersion value="01"/>
<appSubVersion value="04"/>
<basicClass value="04"/>
<genericClass value="12"/>
<specificClass value="02"/>
<optional value="true"/>
<listening value="false"/>
<routing value="true"/>
<beamSensor>0</beamSensor>
</deviceData>
<deviceDescription>
<description>
<lang xml:lang="en"/>
</description>
<wakeupNote>
<lang xml:lang="en"/>
</wakeupNote>
<inclusionNote>
<lang xml:lang="en"/>
</inclusionNote>
<productName/>
<brandName/>
<productVersion>1.4</productVersion>
</deviceDescription>
<commandClasses>
<commandClass id="002d" version="1" supported="true" controlled="false" secure="false" inNIF="true"/>
<commandClass id="0070" version="1" supported="true" controlled="false" secure="false" inNIF="true"/>
<commandClass id="0072" version="1" supported="true" controlled="false" secure="false" inNIF="true"/>
<commandClass id="0075" version="1" supported="true" controlled="false" secure="false" inNIF="true"/>
<commandClass id="0077" version="1" supported="true" controlled="false" secure="false" inNIF="true"/>
<commandClass id="0080" version="1" supported="true" controlled="false" secure="false" inNIF="true"/>
<commandClass id="0084" version="2" supported="true" controlled="false" secure="false" inNIF="true"/>
<commandClass id="0085" version="2" supported="true" controlled="false" secure="false" inNIF="true"/>
<commandClass id="0086" version="1" supported="true" controlled="false" secure="false" inNIF="true"/>
<commandClass id="008e" version="2" supported="true" controlled="false" secure="false" inNIF="true"/>
<commandClass id="0060" version="3" supported="false" controlled="true" secure="false" inNIF="false"/>
<commandClass id="0026" version="1" supported="false" controlled="true" secure="false" inNIF="false"/>
</commandClasses>
<assocGroups>
<assocGroup number="1" maxNodes="8">
<description>
<lang xml:lang="en">Group 1</lang>
</description>
</assocGroup>
<assocGroup number="2" maxNodes="8">
<description>
<lang xml:lang="en">Group 2</lang>
</description>
</assocGroup>
<assocGroup number="3" maxNodes="8">
<description>
<lang xml:lang="en">Group 3</lang>
</description>
</assocGroup>
<assocGroup number="4" maxNodes="8">
<description>
<lang xml:lang="en">Group 4</lang>
</description>
</assocGroup>
</assocGroups>
</ZWaveDevice>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I hoped, to include a custom JavaScript code
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
code:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
if (zway.devices[8].SensorBinary.Get(0) == 1) then
zway.devices[2].instances[0].Basic.Set(1)
elseif (zway.devices[8].SensorBinary.Get(0) == 2) then
zway.devices[2].instances[0].Basic.Set(0)
end
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
would switch on with key "1" and off with key "2".
But it seems to be much complicated :-(

I think, I can see it in the log, when I press a key - but I dont know, how to use it :-(
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
log:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[2014-11-01 17:44:18.559] RECEIVED: ( 01 0E 00 04 00 08 08 60 0D 00 01 26 04 20 00 9B )
[2014-11-01 17:44:18.560] SENT ACK
[2014-11-01 17:44:18.560] SETDATA devices.8.data.lastReceived = 0 (0x00000000)
[2014-11-01 17:44:18.560] SETDATA devices.1.instances.1.commandClasses.38.data.srcNodeId = 8 (0x00000008)
[2014-11-01 17:44:18.560] SETDATA devices.1.instances.1.commandClasses.38.data.srcInstanceId = 0 (0x00000000)
[2014-11-01 17:44:18.560] SETDATA devices.1.instances.1.commandClasses.38.data.startChange = True
[2014-11-01 17:44:18.651] RECEIVED: ( 01 0C 00 04 00 08 06 60 0D 00 01 26 05 B6 )
[2014-11-01 17:44:18.651] SENT ACK
[2014-11-01 17:44:18.651] SETDATA devices.8.data.lastReceived = 0 (0x00000000)
[2014-11-01 17:44:18.652] SETDATA devices.1.instances.1.commandClasses.38.data.srcNodeId = 8 (0x00000008)
[2014-11-01 17:44:18.652] SETDATA devices.1.instances.1.commandClasses.38.data.srcInstanceId = 0 (0x00000000)
[2014-11-01 17:44:18.652] SETDATA devices.1.instances.1.commandClasses.38.data.stopChange = Empty
...
[2014-11-01 17:57:00.855] Executing script: api("/v1/devices", { ...
[2014-11-01 17:57:03.265] RECEIVED: ( 01 0E 00 04 00 08 08 60 0D 00 02 26 04 20 00 98 )
[2014-11-01 17:57:03.265] SENT ACK
[2014-11-01 17:57:03.265] SETDATA devices.8.data.lastReceived = 0 (0x00000000)
[2014-11-01 17:57:03.265] SETDATA devices.1.instances.2.commandClasses.38.data.srcNodeId = 8 (0x00000008)
[2014-11-01 17:57:03.266] SETDATA devices.1.instances.2.commandClasses.38.data.srcInstanceId = 0 (0x00000000)
[2014-11-01 17:57:03.266] SETDATA devices.1.instances.2.commandClasses.38.data.startChange = True
[2014-11-01 17:57:03.311] RECEIVED: ( 01 0C 00 04 00 08 06 60 0D 00 02 26 05 B5 )
[2014-11-01 17:57:03.311] SENT ACK
[2014-11-01 17:57:03.311] SETDATA devices.8.data.lastReceived = 0 (0x00000000)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Could someone help me?

Uwe
Z-Way v2.0.1-rc18 on Raspberry Pi
LAN-Opfer
Posts: 98
Joined: 03 Oct 2014 13:23

Re: Remote KFOB2

Post by LAN-Opfer »

...is it possible, that I need to add Associations (see attached file)? How could I do this?
hardcopy
hardcopy
Z-Wave.jpg (308.97 KiB) Viewed 6434 times
Uwe
Z-Way v2.0.1-rc18 on Raspberry Pi
LAN-Opfer
Posts: 98
Joined: 03 Oct 2014 13:23

Re: Remote KFOB2

Post by LAN-Opfer »

I find out, that could send a
...8083/ZWaveAPI/Run/devices[10].Association.Set(2,3)
which do a association from remote control ("FB" Id 10) to Everspring Binary Power Switch ("Zw_Steckdose1" Id 3) with group 2 (key No. 2 + 4).
hardcopy2
hardcopy2
Z-Wave2.jpg (297.33 KiB) Viewed 5506 times
I would now like to add a custom JavaScript code with

zway.devices[3].SwitchBinary.data[1].val.bind
(
function()
{
zway.devices[2].instances[2].SwitchBinary.Set(this.value);
}
)
It shold create the second channel from Fibaro FGS221 ("Außensteckdosen" Id 2) as slave from Everspring Binary Power Switch ("Zw_Steckdose1" Id 3). But the code soes not work :-( I need help to correct it :D

Uwe
Z-Way v2.0.1-rc18 on Raspberry Pi
LAN-Opfer
Posts: 98
Joined: 03 Oct 2014 13:23

Re: Remote KFOB2

Post by LAN-Opfer »

...I did it :-))

zway.devices[3].instances[0].SwitchBinary.data.level.bind
(
function()
{
zway.devices[2].instances[2].SwitchBinary.Set(this.value);
}
)

Uwe
Z-Way v2.0.1-rc18 on Raspberry Pi
Post Reply