Logitech Pop - Trying to eliminate need for their app


#1

For those who don’t know what the Logitech Pop system is…it’s a BLE based button system with it’s own Hub made by Logitech. You stick the buttons wherever, and they have the standard Single/Double/Hold actions. But their app isn’t the greatest, and there isn’t a lot of customization. Unfortunately, the buttons do not show up in SmartThings as devices, instead you configure the actions in their app.

They only support simple device actions on/off/toggle/set level. They don’t support running routines, but they do support IFTTT. So I’m thinking my best route would be to create an IFTTT trigger for each possible button action Single/Double/Hold for each of the 3 buttons. And then I can have a single Piston watching all 9 triggers. I’ve already started down this path, and it is working.

I’m curious to see if anyone here might have a better way to do this?? Or if this is my best route. I usually try to avoid using IFTTT because of the latency. But I don’t see many other options.

Also, is it possible to use the IFTTT condition in a switch statement? I can’t seem to get it working. I’m assuming it’s just not supported.

I realize I could also create 9 virtual switches, but I don’t like bulking up my device list if I don’t have to.

Update, here’s what I’ve got so far…it all works…


#2

Hi,
Following the removal of integration of IFTTT from Smartlife this month I stumbled on this while looking for a solution for my logitech pop switches turning on smartlife products.

I was wondering if you would be able to post of send me the code as a text document so I can experiment with it and if you have done any further work with this?

Many thanks
Chris


#3

I’m not sure if I follow.

Are you saying that since IFTTT no longer supports SmartLife products on IFTTT, you’d like to use webCoRE to control your SmartLife products with your Logitech Pop buttons?

If that’s what you’re saying, here’s a green screenshot of my webCoRE code. This has been in place for about 4 months, and has worked great so far.

I’m using a switch statement to make the code simpler. Since I have 3 buttons and each button has 3 actions, that means there 9 cases. So a switch statement seemed easier to configure.

As far as IFTTT, here is how the applet is configured.
Each logitech pop action has an IFTTT applet for it. So there are 3 applets per button:

Trigger Option: Always
Trigger Source: Any
Make a web request:
    URL: URL to piston using LogiPop tag
    Method: GET
    Content Type: application/json
    Body: {"Event":"LivingRoom:Short"} -- Use the event name you put in the switch statement

Unfortunately, I couldn’t figure out any way to get it to work with a single IFTTT applet.