john999 said:
Is there a way to re-run zone discovery after it's installed? I've made some zone changes and need to update smartthings to match. Thanks.
Hi john999-
I was able to do this without code modifications, but it is not exactly pretty.
1. Stop HAILogger, then restart it. This appears to update the list of units, zones, buttons, etc. and thus make it available.
2. Remove the OmniPro SmartApp from the SmartThings app, then re-add it.
The problem with this is that any changes that you made (like renaming the units/ zones, etc.) are lost when you delete the SmartApp. So you end up having to re-do all of that... So it would be worthwhile do make sure that you have at least got the communication points set up the way you want them.
ibash said:
Now, a couple questions of my own:
2) Is there any way to edit the handler to use the controller state (i.e. "away" vs "home" vs "vacation") to trigger certain routines on Smartthings? For example, if my OMNI enters the "away" state, I'd like Smartthings to automatically run the "Goodbye" routine. Can't seem to figure this one out.
Yes there is, at least with the most current version of the ST app on the iPhone.
There is a little something extra you apparently have to do (figured this out by looking at the png's that were attached to the original post) - you have to install the "Smart Home Monitor" SmartApp to the Smart Things App. Before I did this, I could not find a way to interact with the ST alarm status. Once this is in place, do this from your phone:
1. Automation tab => Add a Routine
2. Name it and hit Next
3. Specify the things you want to happen at the top.
4. Under Additional Settings at the bottom, hit "Automatically Perform 'name you gave the routine'"
5. Choose "Alarm Changes State"
The issue that I had (and still have after the reinstall) is that the ST Alarm status does not sync with the Omni status. It did collect all of the zones from the OmniPro and collected them very nicely in the "Right Now" tab of the Smart Home Monitor (accessed from the Dashboard), but the Status never changes. I think that this is supposed to be linked directly through the HAILogger and should work "automatically" but so far I am not seeing it.
I do have a workaround without messing with the code, however... See below.
john999 said:
Has anyone been able to modify the code to allow arming/disarming through SmartThings?
I was able to do this out of the box, so to speak, but only because of the buttons that I had configured. We have keyfob buttons that act as zones (those were not imported to HAILogger, presumably because of their not being set up as an entry zone). When the buttons are pressed, OmniPro automation runs a virtual button also set up on the Omni, and another automation block takes some action on THAT button being pressed - such as arming or disarming the Omni Alarm.
As it turns out, these OPII buttons are also mapped through the HAILogger and appear in the ST app. When I press the "ARM" button that the OmniPro SmartApp generated in the ST app, the corresponding ARM button on the OmniPro is pressed. And the OmniPro is arms itself. So, two-way communication currently exists.
After discovering this, I set up some extra buttons and zones to use solely as communications flags so I can do the lighting control from the ST Hub. I will also go ahead and do the same thing with the alarm status so that the the problem I described above is addressed. I haven't tested this yet, but it seems like it should be pretty straightforward code on both sides (PC Access and ST App).
UPB has been a disaster at my 100-yr old house, so I bought some Z-Wave devices that work great so far. I like the idea of keeping the automation out of the security system anyway, so I was happy to spend the money on the ST hub instead of the Z-Wave controller for the OPII.
I'm not 100% sure about the security of this endeavor, as I am sure that this opens up the door for easier hacking of the security system. However, it will enable me to do what I want, and I kind of feel like there was already a hole there since Haiku could do all of this stuff directly. It is really a shame that Leviton let that fade into obscurity. As I understand it, all of this could have been with HaikuHelper several years ago but that no longer seems to be available,