Sample List of URL X10 Commands

Forum to discuss X10 Commander iPhone/iPod/iPad/Android client for X10 Devices

Sample List of URL X10 Commands

Postby natehales » Thu Oct 12, 2017 7:35 pm

I am using all this to control x-10 with Smartthings.
Here is a video of what I am doing https://www.youtube.com/watch?v=-C-pjKdNMBo

This is the x10 URL commands I know. The http is spread out because I could not have more than 7 links in this post
(please add more samples if you know any more)

ALL Lights ON (House code A) - http://YOUR IP ADDRESS:8086/?x10command=DEVICE~sendplc~%22a5%20AllLightsOn%22
All Lights Off (House code A) - h t tp://YOUR IP ADDRESS:8086/?x10command=DEVICE~sendplc~%22a5%20AllLightsOff%22

All Units Off - h t t p ://192.168.0.11:8086/?x10command=DEVICE~sendplc~%22a5%20AllUnitsOff%22
All Units On - h t t p ://192.168.0.11:8086/?x10command=DEVICE~sendplc~%22a5%20AllUnitsON%22 (not sure if this All Units ON is right because it does not work for me)

A1 On - h t t p://YOUR IP ADDRESS:8086/?x10command=DEVICE~sendplc~%22A1%20on%22
A1 Off - h t t p:// :8086/?x10command=DEVICE~sendplc~%22A1%20off%22

A1 Dim 30% - :8086/?x10command=DEVICE~sendplc~%22A1%20dim%2030%22
A1 Bright 30% - :8086/?x10command=DEVICE~sendplc~%22A1%20bright%2030%22

If you want to know what all the %20 and extra thing in the line are, here is a useful page that tells you all of them https://www.w3schools.com/tags/ref_urlencode.asp

FOR .bat files (Scripts) you need to add double percent (everywhere you see a percent sign) .. like this %%
Here is a sample .bat file (Watch the video to see it in use)
if "%1"=="on" curl h t t p://YOUR IP ADDRESS:8086/?x10command=DEVICE~sendplc~%%22A8%%20on%%22
if "%1"=="off" curl h t t p://YOUR IP ADDRESS:8086/?x10command=DEVICE~sendplc~%%22A8%%20off%%22
natehales
 
Posts: 5
Joined: Sun Sep 24, 2017 2:11 am

Re: Sample List of URL X10 Commands

Postby Melloware » Sat Oct 28, 2017 10:14 am

I think you hit all the major features! Nice job.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11057
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: Sample List of URL X10 Commands

Postby natehales » Tue Nov 21, 2017 3:38 pm

Thanks :)
natehales
 
Posts: 5
Joined: Sun Sep 24, 2017 2:11 am

Notes from Smartthings and x10 Trouble Shooting video

Postby natehales » Tue Nov 21, 2017 3:50 pm

Notes from Smartthings and x10 Trouble Shooting video https://youtu.be/R9mZK2U-zkQ
(also see the start of this thread for extra sample code)

CURL and X10 Commander running properly -

First Test these one at a time in internet browser
http://192.168.0.11:8086/?x10command=DE ... A8%20on%22
http://192.168.0.11:8086/?x10command=DE ... 8%20off%22

Second Test these one at a time in command prompt
curl http://192.168.0.11:8086/?x10command=DE ... A8%20on%22
curl http://192.168.0.11:8086/?x10command=DE ... 8%20off%22

Scripts (.bat files) typed and saved correctly -
if "%1"=="on" curl http://192.168.0.11:8086/?x10command=DEVICE~sendplc~%%22A8%%20on%%22
if "%1"=="off" curl http://192.168.0.11:8086/?x10command=DEVICE~sendplc~%%22A8%%20off%%22

Scripts Folder in Path –
System – Advance System Settings – Advance Tab – Environment Variables – “select” Path, “click” Edit

TriggerCMD running properly - Test

TriggerCMD Parameters turned on for scripts -
Right click icon – GUI Command Editor – Edit desired command – Allow Parameters = True

Smartthings Switch built using TriggerCMD-
natehales
 
Posts: 5
Joined: Sun Sep 24, 2017 2:11 am


Return to X10 Commander

Who is online

Users browsing this forum: No registered users and 2 guests