I have a my shop and my home separated 5km

smartapp
hubv2

(Võ Thanh Minh) #1

I have a my shop and my home separated 5km
At my shop installation:
1 Hub
1 Motion sensor

At my home installation
1 Hub
1 Alarm
How can I programming: When motion detection alarm is active. Thanks


When coding: multiple hubs ST on one Account must the same one hub ST
#2

Does each hub have its own SmartThings account?

Or are they two locations on one SmartThings account?


(Võ Thanh Minh) #3

Two locations use one SmarttThings account.

Thanks


#4

OK, this would actually be easier if they were two completely different smart things accounts. The reason is that a smart app or routine cannot use devices from two different locations. But most “man in the middle” methods won’t work with more than one location from a single ST account.

For example, if these were two completely different ST accounts:

  1. when the motion sensor triggers, send an email to a Gmail account that belongs to the other building.

  2. when an IFTTT account belonging to The building with the siren received that email, trigger the siren.

This could have some delay of a few minutes. You would have to test to see if it was acceptable because the IFTTT delay varies for different accounts.

If you can send an SMS text to IFTTT in step one instead, those are typically processed very quickly. Faster than anything else.

Unfortunately, though, that is not your situation. If everything is under one ST account we have a problem that IFTTT can only see one location. This method might work, but only if your IFTTT Account can see the location with the siren. If it can only see the location with the motion sensor, you can’t make this method work.


(Võ Thanh Minh) #5

Thank you, It helped me a lot.
But I have new problem.
I can not programming: When motion detection in 7pm(this day) to 5am(next day) then alarm is active.

Help me, thanks.


(khanhhanhsmartthings) #6

I think the device to see together and maybe coding on one account.
(see each other)