# \[HELP REQUEST\] Create App with COMMAND\_CLASS\_SCHEDULE SIR321 Secure/Horstman Relay

**URL:** <https://community.homey.app/t/help-request-create-app-with-command-class-schedule-sir321-secure-horstman-relay/10508>\
**Category:** Developers\
**Created:** [March 12, 2019, 9:48pm UTC](https://community.homey.app/t/help-request-create-app-with-command-class-schedule-sir321-secure-horstman-relay/10508 "2019-03-12T21:48:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![KonradWalsh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/konradwalsh/32/147_2.png) [@KonradWalsh](https://community.homey.app/u/KonradWalsh)\
**Post date:** [March 12, 2019, 9:48pm UTC](https://community.homey.app/t/help-request-create-app-with-command-class-schedule-sir321-secure-horstman-relay/10508/1 "2019-03-12T21:48:53Z")

</div>

Hi  
I just bought a Secure SIR321 Intelligent Relay - Its 3kw switch controller with scheduler. The existing Horstman/Secure App in the store by @Priknr1 doesnt support this device and I haven’t been able to reach the developer.

The device currently works as a binary switch however I don’t get updates or the scheduling features which is the power-feature of the device

I have created a version of the existing app that allows for including the app with the correct ID.

```
Association V1
Basic V1
Binary Switch V1
Configuration V1
Manufacturer Specific V1
Multilevel Sensor V1
Schedule V1
Version V1
 
 
Controlled Command Classes
 
Basic V1
Binary Switch V1

```

**Can someone guide me on how to add this device to get the full usage out of it?**  
Does anyone know of a **device already supported that uses the COMMAND\_CLASS\_SCHEDULE**? Then maybe I can copy this.

> **[Secure Controls SIR 321 Intelligent Relay](https://products.z-wavealliance.org/products/1012)**
>
> Secure Intelligent Relay is having One relay, and support of duration base schedule, measuring of temperature and delta and interval temperature reporting etc

Info from the manual: [http://zwave.ie/wp-content/uploads/2016/01/Z-Wave-Secure-Wall-Switch-Manual.pdf](http://zwave.ie/wp-content/uploads/2016/01/Z-Wave-Secure-Wall-Switch-Manual.pdf)

* * *

This is the Zwave log for one 30 Min On - Button Press and followed by Off Button Press

```
|2019-03-12T20:41:08.430Z|Node[153]: Received application command for COMMAND_CLASS_SCHEDULE, data: 0x050100ff3000001f3f001e0001032501ff|
| --- | --- |
|2019-03-12T20:41:08.432Z|Node[153]: [COMMAND_CLASS_SCHEDULE] {"Schedule ID (Raw)":{"type":"Buffer","data":[1]},"Schedule ID":1,"User Identifier (Raw)":{"type":"Buffer","data":[0]},"User Identifier":0,"Start Year (Raw)":{"type":"Buffer","data":[255]},"Start Year":255,"Properties1 (Raw)":{"type":"Buffer","data":[48]},"Properties1":{"Start Month":0,"Active_ID":3},"Properties2 (Raw)":{"type":"Buffer","data":[0]},"Properties2":{"Start Day of Month":0},"Properties3 (Raw)":{"type":"Buffer","data":[0]},"Properties3":{"Start Weekday":0,"Res.":false},"Properties4 (Raw)":{"type":"Buffer","data":[31]},"Properties4":{"Start Hour":31,"Duration Type":0},"Properties5 (Raw)":{"type":"Buffer","data":[63]},"Properties5":{"Start Minute":63},"Duration Byte (Raw)":{"type":"Buffer","data":[0,30]},"Duration Byte":30,"Reports to Follow (Raw)":{"type":"Buffer","data":[0]},"Reports to Follow":0,"Number of Cmd to Follow (Raw)":{"type":"Buffer","data":[1]},"Number of Cmd to Follow":1,"Variant Group":[{"Cmd Length (Raw)":{"type":"Buffer","data":[3]},"Cmd Length":3,"Cmd Byte":{"type":"Buffer","data":[37,1,255]}}]}|
|2019-03-12T20:41:13.679Z|Node[153]: Received application command for COMMAND_CLASS_SCHEDULE, data: 0x05010000000000000000000000|
|2019-03-12T20:41:13.681Z|Node[153]: [COMMAND_CLASS_SCHEDULE] {"Schedule ID (Raw)":{"type":"Buffer","data":[1]},"Schedule ID":1,"User Identifier (Raw)":{"type":"Buffer","data":[0]},"User Identifier":0,"Start Year (Raw)":{"type":"Buffer","data":[0]},"Start Year":0,"Properties1 (Raw)":{"type":"Buffer","data":[0]},"Properties1":{"Start Month":0,"Active_ID":0},"Properties2 (Raw)":{"type":"Buffer","data":[0]},"Properties2":{"Start Day of Month":0},"Properties3 (Raw)":{"type":"Buffer","data":[0]},"Properties3":{"Start Weekday":0,"Res.":false},"Properties4 (Raw)":{"type":"Buffer","data":[0]},"Properties4":{"Start Hour":0,"Duration Type":0},"Properties5 (Raw)":{"type":"Buffer","data":[0]},"Properties5":{"Start Minute":0},"Duration Byte (Raw)":{"type":"Buffer","data":[0,0]},"Duration Byte":0,"Reports to Follow (Raw)":{"type":"Buffer","data":[0]},"Reports to Follow":0,"Number of Cmd to Follow (Raw)":{"type":"Buffer","data":[0]},"Number of Cmd to Follow":0,"Variant Group":[{}]}|
```

---

<div class="post-metadata">

**Author:** ![johan\_bendz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johan_bendz/32/10344_2.png) [@johan\_bendz](https://community.homey.app/u/johan_bendz)\
**Post date:** [March 14, 2019, 8:45pm UTC](https://community.homey.app/t/help-request-create-app-with-command-class-schedule-sir321-secure-horstman-relay/10508/2 "2019-03-14T20:45:03Z")

</div>

The only app I know use SCHEDULE is Benext.  
But it uses COMMAND\_CLASS\_CLIMATE\_CONTROL\_SCHEDULE… might work the same though.

> <https://github.com/Inversion-NL/eu.benext/blob/b0fa0f1a8ee5ed6167cdc622a290f34440ccf5da/drivers/heating_control/driver.js>

---

<div class="post-metadata">

**Author:** ![KonradWalsh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/konradwalsh/32/147_2.png) [@KonradWalsh](https://community.homey.app/u/KonradWalsh)\
**Post date:** [March 14, 2019, 11:09pm UTC](https://community.homey.app/t/help-request-create-app-with-command-class-schedule-sir321-secure-horstman-relay/10508/3 "2019-03-14T23:09:53Z")

</div>

C thank you  
I’ll check that out

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [March 15, 2019, 12:05am UTC](https://community.homey.app/t/help-request-create-app-with-command-class-schedule-sir321-secure-horstman-relay/10508/4 "2019-03-15T00:05:40Z")

</div>

This is based on sdkv1 with the old zwave driver though, keep that in mind.

---

<div class="post-metadata">

**Author:** ![KonradWalsh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/konradwalsh/32/147_2.png) [@KonradWalsh](https://community.homey.app/u/KonradWalsh)\
**Post date:** [March 15, 2019, 7:52am UTC](https://community.homey.app/t/help-request-create-app-with-command-class-schedule-sir321-secure-horstman-relay/10508/5 "2019-03-15T07:52:24Z")

</div>

hmmm

Another road block
