Tuicemens

Pages: [1]

Author Topic: SmartCloud and IFTTT (TUTORIAL)  (Read 385 times)

Tuicemen

  • Administrator
  • Hero Member
  • *****
  • Helpful Rating: 26
  • Offline Offline
  • Posts: 3706
  • Making Home Automation Fun!
    • Tuicemen.com
SmartCloud and IFTTT (TUTORIAL)
« on: December 27, 2017, 12:28:01 PM »

in this tutorial I'll walk you through setting up the Smartcloud with IFTTT.
I'll assume you haven't installed SmartCloud yet. this will also be for google home and for dim bright commands as they are more involved.

The Pre install

your going to need your ISP assigned IP or if you use a dnns that info as well.
1: in your router your going to setup port forwarding I suggest using a unpopular one in the 8000-9000 range. not sure how google it
2: your going to need a IFTTT account so get that setup https://ifttt.com/discover
« Last Edit: December 27, 2017, 01:09:52 PM by Tuicemen »
Logged
Get the inside scoop and member perks in the
Members Only Section!

Please don't email me Automation questions 
The forum is for that!

Tuicemen

  • Administrator
  • Hero Member
  • *****
  • Helpful Rating: 26
  • Offline Offline
  • Posts: 3706
  • Making Home Automation Fun!
    • Tuicemen.com
Re: SmartCloud and IFTTT
« Reply #1 on: December 27, 2017, 12:43:49 PM »

Setting up Smartcloud
1: Download SmartCloud and decide how you wish to run it with Alex10, PcCompanion, or as a standalone app.
2: install SmartCloud if you wish to install for standalone application you don't need to change the install folder other wise change it to Alex10 if you wish to use it with it or PcCompanion's folder if your planning on using with it. note you need to be sure it is in the root folder of the program you plan to run it from example not C:\Alex10\smartcloud just C:\Alex10
3: once installed and opened fill in the required fields.
4: if you wish to auto start check that
5: if you wish to auto load on boot check that Note : this will not auto start without autostart checked.
6: click save a restart isn't required

Note: starting the app will hide the setup page and an icon will appear in the task bar indicating it is running.
if you get an unauthorized access attempt the app will throw a alert message with the IP address of where a responce was expected and stop. displaying the setup page.
it is best to close and restart rather then just starting.but investigate where the web request came from.
to stop the App you must either use task manager or your browser sending a stop command example:http:// 127.0.0.1:(port you setup)Stop
that will through the unauthorized message and stop the program from listening for further requests you can then close checking the X
Logged
Get the inside scoop and member perks in the
Members Only Section!

Please don't email me Automation questions 
The forum is for that!

Tuicemen

  • Administrator
  • Hero Member
  • *****
  • Helpful Rating: 26
  • Offline Offline
  • Posts: 3706
  • Making Home Automation Fun!
    • Tuicemen.com
Re: SmartCloud and IFTTT
« Reply #2 on: December 27, 2017, 01:06:24 PM »

Setting up a Dim applet in IFTTT
1:open IFTTT and login
2: click on "my Applet at the top
3: click new applet on the right
4: click on the "+" in "If + this then that"
5: type google in the search service the click on Google assistant
6:click on say phrase with number
7: type in phases you wish Google to recognize placing "#" where the number value would go
example  Dim office # %
if you wish the response to also include the number value include the # % in the response field
8: click create trigger
9: click the "+" in "If this then + that"
10: in search service type webhooks and click on it
11:  click on make web request
12: here we type in your web call info which is your IPS assigned IP or dnns followed by the port number you set to be forwarded followed by your userName : Password @code/ (X10 address) Dim {{numberfield}}
example:http://XX.XXX.XX.XX:87879/Username:Pasword@code/A4 Dim {{NumberField}}
If you setup to brighten replace the Dim with Bright.
13: make sure the method is get then check create action
14: click finish then check now to have IFTTT check it for errors
that's it  you should be able to now have Google dim or brighten based on the phrase you just setup for the applet.

Note: you'll need to do this for each x10 device you wish to dim then another for the brighten.
 Besure you have double braces arround NumberField
(Chr)
« Last Edit: December 29, 2017, 09:01:33 AM by Tuicemen »
Logged
Get the inside scoop and member perks in the
Members Only Section!

Please don't email me Automation questions 
The forum is for that!

Tuicemen

  • Administrator
  • Hero Member
  • *****
  • Helpful Rating: 26
  • Offline Offline
  • Posts: 3706
  • Making Home Automation Fun!
    • Tuicemen.com
Re: SmartCloud and IFTTT (TUTORIAL)
« Reply #3 on: December 27, 2017, 04:44:20 PM »

Simplifying so you don't need to create as many Applets
Experiment with using the text and or text and number in Phrases

for the dim example above if you use text and number you replace the dim with $ the number value with #
Note: a recognition Phrase can't start with $ in the url where dim would go you place {{TextField}}
Logged
Get the inside scoop and member perks in the
Members Only Section!

Please don't email me Automation questions 
The forum is for that!
Pages: [1]