I made a post asking for help with this last night. I deleted that post so i could organize my thoughts better and give you the current info on what i have tried. So what i am trying to do is use a Dumb siren for the alarm/siren in the Home Monitor system. I have a Innr zigbee smart plug to control the siren. Im still pretty new to this and Im sure a lot of what i have tried was very wrong. I could really use some help.
The first problem was of course the smart plug did not show up in Home Monitoring in the siren tab. It simply said no sirens found.
So i tried to simple change the device type in the IDE to Zigbee siren. This did make the smart plug show up as a siren and it let me add it to the response and set the delay and alarm duration. However when the system was triggered the switch would not turn on and so the siren would not sound.
So at this point i did a little googlin and thought i had found the solution. I used the zigbee switch device (that the switch seemed to be using normally) as a starting point and added a few bits i found to the code that supposedly added the capabilities i wanted to the device. I added the following
to the list of capabilities
capability âalarmâ
and to the end of the code i added
def siren() { on() }
def strobe() { on() }
def both() { on() }
I set this device handler to my smart plug and gave it a try. This made the smart plug show up as an alarm, but again when added to my HM it would not turn on when the alarm was triggered.
At this point i again thought i had a solution. I have used virtual switches to solve similar problems so i figured id just do that. I Couldnât find a virtual alarm that was already ready to go so i tried to make one. Long story short i made it and it shows up in smartthings as a device, it list no functions and it always shows offline.
I have no idea how to make this work the Iâd like it to though im sure its not that hard and Iâm doin something wrong. So if anyone has any help I would be appreciate the hell right out of it. Thanks guys/gals.
You canât add capabilities to a physical device just by changing the code. If the device doesnât support those capabilities natively, Nothing will happen when you execute the code. Itâs like taking a microwave oven and trying to turn it into a refrigerator by writing the word ârefrigeratorâ on the front. It doesnât change what the device itself does.
Next, in both This and your original post you said âsmart home monitor.â Smart home monitor (SHM) is a feature in the classic app, but because the classic app is going away, SHM is also going away.
The security feature in the new V3 app is âsmartthings home monitor.â (STHM). Itâs similar, but itâs a completely different set of code and there are some differences.
So are you trying to do something with SHM from the classic app? Or with STHM in the new V3 app? If itâs SHM, thereâs not much point in that, because itâs going to go away in about a week. If itâs STHM, then we can probably help.
Third, what country are you in? It does make a difference.
OK, letâs get those three things cleared up, and then we should be able to move forward.
(One more small point: this is a very busy forum with people who have all different kinds of set ups. So to be honest, most people just ignore topics that have very general titles like âI need help.â You will get the most responses with a precise topic title, preferably one that includes the specific model number of the device you are working with, or the specific name of the feature. That will attract the attention of people who either have that same set up, or are interested in it.
Iâve changed your title to be more specific, and that should help you get more responses. )
Thanks for offering some assistance. I understand i couldnât add capabilities to a device i did think i would be able to change how the device works and the way i understood what i read the things i added were supposed to simple identify the device as and alarm and tell it what to do when it got the corresponding commands, not really adding any capabilities so much as changing recognized commands. Again i have no idea what im doing thats just how i understood it. lol
Also i am using the new app as far as i know and it is called smartthings home monitoring in the app.
Your smart pocketsocket is still just an on/off device. So a strobe command isnât going to make any sense to that device even if you have a dumb siren plugged into it which can strobe. All you are going to be able to do is either send an on or an off command to the INNR plug. ( whatâs the model number?)
Have you confirmed that your dumb siren will start making noise if you just turn on the pocket socket? Some will, some wonât.
The easiest way to test it is to have the dumb siren making noise and then remove it from the socket.
Then without changing anything on the dumb siren, plug it back in again. Does it go back to making noise?
If not, then youâre not going to be able to go any further.
If it does go back to making noise just because you plugged it in again, then weâre ready for the next test.
i use those monoprice zwave dual outlet with a custom device handler with a dumb siren horn using a 12v/1A adapter. the monoprice dual outlet (one switched and one always on) is currently $24, but it does go on sale - i was able to get them at $8 each free shipping. while the mp outlet is auto paired by ST, i switched to the custom device handler to ârebrandâ the outlet as a siren and therefore ST sees it as a siren and lets you add it to your alarm siren.
Honestly im not 100% sure what all i tried at this point most of what i tried was late last night. I tried just switching the device type in the existing device in smartthings. I tried to make a device handler using the zigbee switch as a starting point and adding some bits i found
i have a mix of sirens inside and outside. you get a couple of the bull horn sirens going off inside and its enough to drive someone absolutely crazy and run them off. i have them plugged into UPS and behind and under things that arent exactly easy to get to.
SmartThings often tries to pretend that there isnât any difference between Z wave, and Zigbee but there are some very significant differences.
The DTH that @Awestun Used should work great with a Z wave pocket socket. But there isnât anything similar to work with a zigbee pocket socket.
Thatâs because Zwave has a concept Of âbasicâ commands which become a generic command that can be sent to multiple device classes.
The DTH that @Awestun used is taking advantage of this to translate a request into a basic command. Thatâs how it takes a siren instruction and changes it to something that an on/off switch understands.
Zigbee doesnât handle it that way: it sends siren specific commands which, as youâve noted, your pocketsocket doesnât understand.
By far the easiest way for you to complete your project, given that you do have a siren that makes noise when the power is restored, is to switch to using a Z wave pocketsocket and then use the same DTH that @awestun linked to.
There may be some on sale for prime day this coming week, a lot of online retailers will be running sales to compete with Amazon.
Ok this is what i needed to hear. Thank you so much for clearing that up for me. so any Z-Wave socket will work with that DTH?
RBoy
(www.rboyapps.com - Making SmartThings Easy!)
16
You can also check it this app. It can trigger a variety of devices including switches and can be setup to use in conjunction with the STHM dashboard. It can replace STHM security monitoring with more sensor monitoring options and expanded actions and notifications. Might be easier than making a custom device handler