How to Use a Meross or Matter Plug to Use HomeKit Presence to Trigger ST Routines

THE PROBLEM

Beginning in mid 2020, some users reported that presence on iOS phones and tablets no longer worked reliably to trigger smartthings routines because the smartthings app wasn’t always open in the background. Typically as soon as they opened the smartthings app it would work again.

At the same time, if they were just using the phone’s presence in native Apple features, including HomeKit, presence worked fine. and sometimes ST presence would work fine for one person in a household but not another, even if they had the same model iPhone. :thinking:

Hopefully eventually the two companies will get this straightened out and iOS presence will work universally in smartthings again, but in the meantime, if you want to, you can use a physical device which is visible to both HomeKit and smartthings as a proxy for presence.

Which device to use?

2024 update

Sadly, like some others in the community, the Meross cloud to cloud integration, which had been reliable for me for several years, stopped changing state correctly. I have contacted both companies, no resolution. So I am going to leave the information about Meross here for now in the hopes that this problem gets fixed, but meanwhile, if you do have a SmartThings/aeotec hub, and can use Matter, an inexpensive matter. Plug might be a more reliable option for now. If you don’t have an ST hub, you can’t use matter, so maybe something attached to a Hue bridge or another cloud to cloud option that shows up in both platforms.
.
This problem appears to be specific to smartthings: The Meross devices have no problem synching state in multiple other platforms. It’s very disappointing. :disappointed_relieved:

Personally, I like Meross devices and use a number of them. These are Wi-Fi and work well simultaneously with HomeKit and smartthings. They have good safety certifications. And they are relatively inexpensive.

You can just use one of their mini plugs for each person that you want to track. But I am particularly fond of their power strip for this purpose. You can get either a three socket or a four socket one, each socket independently controlled, so that lets you represent up to four people in the household from just one wall outlet. They also have USB charger slots which you can use even while using the sockets for presence. And if you turn the socket on when you are home and off when you’re away, that might even be useful with something plugged in, it just depends on your needs.

These are available in both the US and the UK.

Make sure it says HomeKit compatible: they have a slightly cheaper line that isn’t, but you need HomeKit for this project.

US VERSION

At the time of this writing, the four socket strip cost just under $35 but there are sometimes additional discount coupons available on the page.

https://www.amazon.com/meross-Smart-Power-Strip-SmartThings/dp/B07NBNJ32V?ref_=ast_sto_dp

UK VERSION

https://www.amazon.co.uk/meross-Compatible-HomeKit-Protector-SmartThings/dp/B08JG232D8/

Create automations in HomeKit to turn a socket on and off

Homekit Automation

If that works well, you’re on your way. :sunglasses:

Now you can use that socket as a proxy for presence for that person

Since both HomeKit and SmartThings can recognize the Meross at the same time, you can just use the socket as a proxy for presence: if the socket is on, the person is home.

SmartThings routine

ANY PLUG THAT IS VISIBLE TO BOTH HOMEKIT AND SMARTTHINGS WILL WORK FOR THIS, INCLUDING MATTER DEVICES

As I mentioned, I was already using the Meross devices and like them, so that’s what I’m using. But there are several other brands which can do the same thing, particularly now that matter is available. So what you choose is up to you, it’s all the same method. Add a device to both platforms, create a HomeKit automation to turn it on when you get home and off when you leave, then create routines in smartthings, for when that plug turns on and off.

Some other choices:

If you have a hue bridge, there is a hue plug that will be visible to both platforms. Like Meross, this method does not require a smartthings/Aeotec hub.

If you do have a SmartThings/Aeotec Hub, Tapo makes a very inexpensive UL listed Matter smart plug:

https://www.amazon.com/TP-Link-Tapo-Supported-P125M-3-Pack/dp/B0BNWGZ545/

The good news is that matter integrations are local, so as long as HomeKit knows you are home, you should be able to make your smartthings routines local.

The bad news is that your Wi-Fi router does need to support IPv6 addressing, which you don’t need for the Meross cloud to cloud integration.

FAQ: What do I need to add a Matter device to the SmartThings app? Do I need a bridge router device?

Choice is good. :sunglasses:

Virtual Presence Sensor

If you want to get fancier, and you have a SmartThings/Aeotec hub, you can create a virtual presence sensor and turn it on with an ST routine when the socket is on. This then allows you to use “member location“ in smartthings routines and to do things like say “if everyone is away.“

Here’s a community-created Edge driver for a virtual presence sensor.

[ST Edge] vEdge Creator: a virtual device generator for end users

That’s your choice, but for most people just the socket should be enough.

Other issues

All of this is just a method for letting you use the phone’s presence in ST without requiring the ST app to track presence since it doesn’t seem to be very good at it for some people.

If HomeKit presence isn’t reliable either, then that’s a different issue and would require a different solution.

IF YOU HAVE A SMARTTHINGS/AEOTEC HUB, A MATTER SMART PLUG SHOULD BE LOCAL TO BOTH PLATFORMS

The cloud to cloud Meross integration to Smartthings broke for a couple of weeks in 2023, then got fixed for a while, and then broke again in February 2024. :disappointed_relieved:

If you prefer to keep everything local and you have a smartthings/Aeotec hub, you can use any matter-compatible plug since that should work with both platforms. Tapo makes an inexpensive one, but we should start to see more over the next few months.

If you don’t have a smartthings/Aeotec hub, you can use the hue smart plug that works with the hue bridge.

@jkp

7 Likes

Very interesting workaround! Our family has been using iOS presence in HomeKit every since setting up an Aqara G3 camera a couple months ago (we use presence to arm/disarm it’s Alarm feature). It’s very reliable. With that said, i’ve been on the iOS 15.3 beta for a bit now. Between it and the iOS ST app update last week that fixed the logout issue, thing seem more stable in SmartThings :crossed_fingers:

1 Like

Yeah, the main advantage of this method is it’s super simple, doesn’t require household members to carry an extra device, doesn’t require homebridge, and doesn’t require any custom smartthings code unless you want the virtual presence sensor.

It would of course be better if iOS presence just worked in smartthings, but for those who find it doesn’t but HomeKit presence does, this is an easy way to link the two systems for this specific purpose.

2 Likes

I love this! Great idea. I’ll have to look into HomeKit. It’s a bit cold out for this now, but my company iPhone travels with me on bike rides. It would be great to not have to punch in my code to get in the door after cycling 50+ miles. Likewise, for any ‘regulars’ who are trusted this could work instead of mucking around with lock codes.

1 Like

Thank you for this suggestion. For a while, our iOS phone presence sensors were finally working in 2022 for all our iPhones. But one phone started failing to be recognized again. Finally gave up on iPhone presence ever working reliably. Didn’t want to go the Life360 route given the upcoming changes to Smartthings and Groovy/IDE going away.

So, I purchased the Meross 3-way outdoor cord and put it in my garage. I skipped the virtual presence sensor and instead set location mode to home or away depending on the status of the 3 outlets. All my automation routines are then triggered off location mode.

Thanks again to JDRoberts.

1 Like

But doesn’t this need the Home Hub from Apple to automations? I have many of the Meross switches and plugs, and they all show up in the Home IOS app, but when I click automation tab it reminds me I need the Apple TV or Home Hub.

or an iPad can act as a hub.

I have an iPad 9th generation and still when I hit the automation tab I get the same error.

did you enable “Use this iPad as a Home Hub” in settings > Home?

In the Home App, I don’t see that option? I could be looking in the wrong place.

go to Settings on the iPad and look for “Home” in the side menu… it is not in the Home app :slight_smile:

1 Like

Thank you, that helped, since I was looking in the Home App, not iPad settings.

In case anyone else runs across this oldish thread, be aware that Apple has announced it is removing support for iPad as a Home Hub in iOS16.

my ipad pro 1st gen recently got update and it supports Matter now . so it’s works pretty well

1 Like

I do not believe that is correct. They made a statement it will still act as a Homekit hub but will not support matter devices.

Be careful when purchasing a new Apple TV though, one supports Thread, the other does not.

1 Like

As we have discussed elsewhere in the forum, they did say that at one point, but then they reversed themselves. An iPad will continue to be able to be used as a HomeKit hub, but it will not get all the new features as a HomePod mini or the Apple TV models that can act as HomeKit hubs. So it’s a little complicated to keep track of, but it shouldn’t impact anything discussed in this thread.

But that’s a future update, not iOS 16 itself.

iPad will not be supported as a home hub on the new, more reliable, and more efficient Home architecture, which will be available later this year as a separate upgrade in the Home app.

And more details, including an official statement from Apple:

https://9to5mac.com/2022/06/28/apple-says-ipad-can-still-be-a-home-hub-in-ios-16-as-long-as-the-new-homekit-features-dont-matter-to-you/

2 Likes

Missed the reversals - thanks for the correction.

1 Like

It’s hard to keep up with all the changes these days!

It’s probably worth noting that the other Apple Home hubs will (mostly) also be thread border routers. That may be the difference. :thinking:

And even more details about the future Apple Home upgrade, now coming in iOS 16.2 (at least it’s in that beta).

For now, at least, the upgrade will be within the Home app and will be optional.

@jkp @automated_house

1 Like