Peanut plug shows as Thing


(Jack) #1

Hi,
I just a got a ZigBee Securify Peanut plug from Amazon and I am having trouble getting Smartthings to recognize it as a Switch Device or Switch Power Device. I’ve tried using both device type handlers and published them, but every time I connect to the Peanut plug, it only shows up as Thing in the Smartthings app. How can I get this device to be recognized by Smartthings?

Below is information about the device


(Bob) #2

So I assume you can see it in the IDE.
If so, has it allocated itself the correct DTH?
If not, amend the device in the IDE to give it the required DTH.
EDIT: From the above screenshot you need to amend it.
Click on Update.
Then from the dropdown in ‘Type’, select the correct DTH and then save.


(Jack) #3

I don’t think it has connected to any DTH which is the problem and the reason it shows the type as “Thing”. How could I fix that?


(Bob) #4

See my edit above.


(Jack) #5

Thanks. That worked, but is there a way to make the device type recognize this device when 1st time connecting the Peanut plug instead of having to update the device type manually? How could I modify the ZigBee Switch DTH code to automatically pair with the Peanut plug?


(Bob) #6

I must admit 99.9% of the time the devices I connect do pick the correct DTH.
If they don’t, this is the only way out of it I’m afraid.
I’ve never tried a ‘peanut plug’ so cannot comment if this is just one of those things with this device.


(Jack) #7

Do you think I just have to change the line of code…

fingerprint profileId: “0104”, inClusters: “0000, 0003, 0004, 0005, 0006”

…according to the raw description in order to get it paired correctly? Or is there more that I would have to do?


(Bob) #8

TBH I don’t know.
That would probably be a question you should direct to the person that wrote the DTH.


#9

Did you change the Device Type in the IDE to the SmartPower Outlet deice type?


(Jack) #10

Yes I did.


#11

It should work with that device type. You may also need to make certain that the device is updated in IDE.
I have one and it was detected out of the box as a THING. So I changed the DTH in the IDE to SmartPower Outlet and all works fine now.


(Jack) #12

I know that. I’ve got that already working, but I just wanted to know if there was a simple way to get the Peanut plug connected to Smartthings like a regular Smartthings device. How could I do that?


#13

Unfortunatly there is no official device integration with ST for this device. The best thing at this momment is that it even pairs. This was discussed at length in other threads here.


(Jack) #14

Do you think I just have to change the line of code…

fingerprint profileId: “0104”, inClusters: “0000, 0003, 0004, 0005, 0006”

…according to the raw description in order to get it paired correctly? Or is there more that I would have to do?


#15

I am not qualified to answer this as I am only a tinckerer and not a coder.


(inkysea) #16

I just got a peanut plug and I am unable to pair the device. Any suggestions?

A checklist to ensure I’m not missing anything…

  • Peanut version 2015+
  • SmartThings Hub v1
  • Press the pairing button for 10 seconds on the peanut. Peanut is literally 2 feet away from ST hub.
  • Could it be my old school ST V1 hub? It does support Zigbee…

#17

It should work with ST V1.

You need to put your hub into enclussion mode and press/release the On/Off button every few seconds.
I have one pair on my V2 hub, but I don’t see it making a difference with V1. It will show up as a THING and than you will need to go into the IDE and change the device type to Zigbee switch or outlet.


(Justin) #18

If you follow this video you will not only get the Peanut plug working but you will understand so much more about SmartThings and custom code!


#19

Thanks @jnewbury2280,

This will be helpful to new users.