Voice Assistants => SmartCloud (a X10 cloud bridge) => Google Home => SmartCloud Support => Topic started by: Tuicemen on December 24, 2017, 05:08:03 PM

Title: SmartCloud SmartThings setup Tutorial
Post by: Tuicemen on December 24, 2017, 05:08:03 PM
Pre Setup.
1: Read this thread top to bottom (twice) and check off things as you perform them.
2: Your going to need to setup port forwarding in your router so do this and use a high port # one that isn't very common. maybe in the 80000-90000 range.
3: Setup a SmartThings cloud account
 If you have a Broadlink RM you probably already have one.
4: Get to know this site and it's drop down tabs.
5: Click on My Locations (if you've setup a Broadlink you alreay have one or more of these which you can use or create another).
6: Click on create location ( right side of screen)
7: In location type what ever you'd like for that (I Used my city name for one and the city closest to my cottage for another).
8: Select the account (most users will only have one and it will be displaying)
9: Select temperature preference (thought this doesn't currently affect the X10 SmartCloud)
10:click create (don't worry about mode that will get filled in by SmartThings later).

Title: Re: SmartCloud SmartThings setup Tutorial
Post by: Tuicemen on December 24, 2017, 05:36:02 PM
Setting up your Device Handler:
This is where most mess things up so read it over a few times before you start.
1:Get the X10 Smart things device handler text file current version can be found attached
2: open this file and edit the line so it points to your IP that your ISP assigned you
not sure what it is? use include the port # you plan to use with SmartCloud. if you plan to use a username and password include that.
so the line will look like  uri: "http://YourIP:ThePort/Username:Password@code/$replaced%20$toggle"( if you setup a username and password for SmartCloud  if not it will look like  uri: "http://YourIP:ThePort/code/$replaced%20$toggle"
example if your username was BobBaker and your password is 34D3895  and you IP is and port is 34567then  it will look like$replaced%20$toggle
3: Save the file
4: Open your browser to the SmartThings login and log on
5: Click on My Device Handlers
6: On the right side of the screen click on create new device handler
7: Open the device handler file you just edited and click edit then select all
8: Click edit again and then copy
9: Cack in the SmartThings Divice handler screen click from code
10: Right click on the text box and paste the copied text from your edited text file.
11: Click Create at the bottom
12: Now click save then Publish, under publish select "For me"

Congratulations you have a device handler `:)
Title: Re: SmartCloud SmartThings setup Tutorial
Post by: Tuicemen on December 24, 2017, 05:57:54 PM
Setting UP X10 Devices for SmartCloud
1: If your still in the Smartthings setup screen great if not login.
2: From the top select My devices
3: on the right click Create Device
4: In the next screen type the name for the x10 device
5: In the Device Network Id *  box type the x10 address
6: Under Type *  scroll down to X10 Cloud Control
7: Under Version * select sef published, published or if your just testing draft
8: Click Create (you don't have to worry about the other text boxes)
Congratulations you have a controlable device.
if you wish to add more devices click on the new device button on the right and follow steps 4 to 8 :)!
Title: Re: SmartCloud SmartThings setup Tutorial
Post by: Tuicemen on December 26, 2017, 12:06:43 PM
Setting up your Assitant
Now we want Google Home, Alexa or Cortana to see devices we created on the cloud.
1:To do this find the Samsung SmartThings skill for your particular assistant.
2: Follow instructions for finding devices.

Now your ready to Install and start the SmartCloud app for X10 on your PC!
Title: Re: SmartCloud SmartThings setup Tutorial
Post by: Tuicemen on December 26, 2017, 01:05:18 PM
Installing & running the SmartCloud App
Installing SmartCloud depends on what you wish to use it with.
1: Download the SmartCloud installer.
2: Decide what you wish to interface with (alex10,PcCompanion, or use it as a stand alone application)
3:If you wish to use it as a stand alone application just run the installer using the default install location.
4: if you wish to use it with Alex10 install to the Alex10 root folder Not Alex10/SmartCloud which the installer will display you need to specify
just Alex10.
5: if you wish to use it with PcCompanion install to the PcCompanion root folder.
6: Open SmartCloud and enter your Username and Password if you set up your device handler to use them
7: If you installed to the Alex10 folder select Alex10 from the "Select Interface app" dropdown
If you installed to the PcCompanion folder select PcCompanion from the "Select Interface app" dropdown
Note: if you wish to try running as a standalone app you can do so from either of these locations
8: If you installed to the default location you must select StandAlone app!
9: If you wish the app to auto start when opened check start on AutoStart
10: If you wish the app to open the program on windows boot check run on windows boot.
Note this will only open the program on windows boot if you wish it to also auto start the above needs to be checked as well.
11: Click Save to save your settings
12: if you wish to run now click start A restart isn't required for settings to take affect..
The app will start and the interface will disappear a X10 icon will appear in the task bar indicating it is running.

Once started the app will only stop if an unauthorized access is detected.
Once that happens  a message box will appear displaying the Unauthorized access IP address. You can then restart the bridge by clicking the start button or close the application to address the issue. However it is best to close then restart the program.
If you wish to stop the program you can use Task manager or open your browser to the " you specified)/stop"
 SmartCloud will see this as an unauthorized access attempt and stop.

I'll update this thread with the link to SmartCloud once it is ready for release.
If you wish an advanced copy to play with PM or email me and as soon as I have a RC build ready I'll send you the link.
Title: Re: SmartCloud SmartThings setup Tutorial
Post by: Tuicemen on January 03, 2018, 09:02:18 AM
I've had some limited success with creating a SmartThings device handler that allows for Dimming.
Attached are two new device handlers for SmartThings.
One is for appliance modules the other is for Lamp Modules (which includes the dimming ability)
Just scroll down to the line that start with "uri: "http://......" and edit the line with your info where specified.
copy the text of the whole file  then go to Smartthings and create a new device handler from code.
in the text box paste the content you coppied then click save then publish then for me.
in your devices click edit then select the new device handler to use with that particular device.
The device handlers have been updated there was a few issues with the Lamp Device handler I inadvertantly created when cleaning up the code.