Hi,
I'm looking to create a virtual alarm system within HomeSeer. Some of the concepts seems straight forward, but I could use some insight from others who have done this to get over a few hurdles. Here's the path I've been taking:
- Create a "virtual device" that represents the alarm system. Within the device I've created a few states: (a) disarmed, (b) armed - home, (c) armed - away, and (d) code correct. My intention is that the device would change states as these modes are requested. The last mode, "code correct," would be set only if / when the correct code was received by the HSTouch keypad.
- Within HSTouch, I've created a key panel for entering a code that gets captured into a text box. Now, this is where I'm getting hung up. I'd like to have HSTouch essentially try to set the state of the virtual alarm device to the value of the text box. Presumably, only if the code matches the "code correct" state, would an event trigger that disarms the system. I can't seem to figure out how to pass a text value as a device state, though. Looks like it may be possible to do via a script parameter, but I didn't want to go there if not necessary.
Perhaps I'm making this more complicated, though, and overlooking a much more simplistic approach? I'd appreciate any insights on how others have tackled the design of a virtual alarm. I'm aware that there's also a BLSecurity plugin (that appears to handle all of this?) - but I'd enjoy doing it from the ground up, while also avoiding the need to rely on a plugin.
Thanks!
I'm looking to create a virtual alarm system within HomeSeer. Some of the concepts seems straight forward, but I could use some insight from others who have done this to get over a few hurdles. Here's the path I've been taking:
- Create a "virtual device" that represents the alarm system. Within the device I've created a few states: (a) disarmed, (b) armed - home, (c) armed - away, and (d) code correct. My intention is that the device would change states as these modes are requested. The last mode, "code correct," would be set only if / when the correct code was received by the HSTouch keypad.
- Within HSTouch, I've created a key panel for entering a code that gets captured into a text box. Now, this is where I'm getting hung up. I'd like to have HSTouch essentially try to set the state of the virtual alarm device to the value of the text box. Presumably, only if the code matches the "code correct" state, would an event trigger that disarms the system. I can't seem to figure out how to pass a text value as a device state, though. Looks like it may be possible to do via a script parameter, but I didn't want to go there if not necessary.
Perhaps I'm making this more complicated, though, and overlooking a much more simplistic approach? I'd appreciate any insights on how others have tackled the design of a virtual alarm. I'm aware that there's also a BLSecurity plugin (that appears to handle all of this?) - but I'd enjoy doing it from the ground up, while also avoiding the need to rely on a plugin.
Thanks!
Comment