[OBSOLETE] Geekbes Smart WiFi Mini Plug - Somebody Please come up with a Device Handler (uses Tuya SmartLife app)

ok, let me try to fork it for you soon. In process of posting a Dreamscreen Integration at the same time.

Here you go, should work as it does on mine:

Fork to update Tuya DTH and Node server js

Awesome thanks.

I just found this fork as well having followed your link, it seems to have done the update of the API calls as well and made it much cleaner too.

Assuming it works, I think Iā€™m gonna go with it having compared the code. Might be worth you look at it too as it probably is better for you too

1 Like

Saw that too. Let me know if it works. Still need to add power strip + USB support then Iā€™ll be happy with it.

I also use this Homebridge Tuya plugin which has support for powerstrips/USB https://github.com/codetheweb/homebridge-tuya#readme

I expect looking at it will give clues on how to update the SmartThings App to do the same.

I am just ordering a double wall socket with USB on (though unsure if USB is controllable), so Iā€™ll give it a go forking the soon and report back.

Looks as simple as adding the dps to the set/get calls;
this.device.get({dps: this.dps})
this.device.set({set: value, dps: this.dps})

dps=1 is the default for single plugs, so a 4-way power strip with 2 USB would be dps=1-4 for the sockets and 5-6 for the USBā€™s. Should be easy to add multiple devices (or maybe multiple tiles to a single device)

it would be 5 for the usb. 6 gives status on all plugs on the device.

I have this working quite well on the other hub

You are assuming, all USBā€™s are controlled as a group right? Whereas if they were individually switched it would be 1-6 and 7 be ā€˜allā€™? Iā€™m assuming, the API is ā€˜allā€™=NumOfSubDevices+1

For the power strip I have all the USB are controlled as one. I hadnā€™t realized there was model that they switched sepsrately

Same here. seems all the power strip models I have or seen combine the USB to one power switch group.

The Hubitat DTH is close and should work on ST soon I hope. Iā€™ll post it unless someone has already done it for ST.

I am also trying to have my smart things app control a tuya plug to turn it on and off.
I have added a simulated button in smart things. I also added a activity in ifttt to turn on or off the plug.
I am told the simulated button is connected to my hub, but it does not turn on or off the plug. As I am not real sure how to run your programs, any help would be appreciated.

how I control geeni light bulbs in smartthings?

If you want to use IFTTT then you need to create four applets to sync the simulated button in smartthings with the Tuya device or plug. There are many examples in the forum.

The device handler we modified is to avoid the cloud and control tuya device through wifi commands and bridge. Makes it a bit faster and reactive but you need an always on device like a raspberry pie or android

do the geeni bulbs work with itfff?

After using these (as well as TP-link) successfully for some months, Iā€™m giving them away to a friend and replacing them with Zigbee units. Iā€™m now using current flow as a means of detecting room occupancy in ST, and these devices donā€™t do the job. The TP link units will be retained strictly for interior holiday lighting.

Did anyone ever get this working? Seems like it was close?

Would you guys prefer separate devices/things for each of the four plugs and one for USB? Or would you like to have one device to the whole smart plug strip and have sub commands/functions to control individual plugs and USB power?

I just want to access my devices that i have in smart life. I so have a power strip and would prefer if each outlet shows as a different device.

How to install and setup?

I think Tuya Smart is the best Smart Home Iot AI App. I follow this site for more idea: āœ…Fantastic Smart Homes with Tuya Smart | Ultimate Guide