Hey everyone... I'm taking my post here to make it a sort of guide/sticky for common steps and actions to be taken for Active Phone.
Please continue to use the other thread if you have questions/need help.
Please make sure you try the troubleshooting steps at the bottom of this post, just in case it solves your issue.
ReviewInstall? AHP 3.278 or newer. No plug-in addition, installs right over your current AHP. The registration code replaces the one for AHP when entered.
So a few things to note now that I have it working:
Good- It is exactly as advertised. A Palm Pad remote, but on your cellphone/browser. Works on PCs/Macs/etc.
- There's an option to turn on Security codes. This is a good thing.
- It seems to run as a separate component to AHP. I couldn't access right away until I adjusted my Firewall. Even with AHP allowed through, it wouldn't work until I opened up the port.
- Starts off at housecode A, you must tap/click until you get to the desired housecode. Labels update automatically based off AHP.
- All functions work, your standard On/Off, Bright/Dim.
- Goes through whatever interface you have, and the module displays in AHP get updated accordingly.
Concerns- Unless you set up a Static IP Address or know your computer's network name, the link can change every time you restart your computer.
- There are no security options on by default. You can turn one on though. If you want external access, you can try a different external port (with appropriate forwarding settings on the router), but you're still open to the world.
- Having to move to another housecode manually can be a pain. I'd imagine this could be adjustable in future.
- No skinning support, but that's a minor gripe.
Potential- Don't want to bother setting up your own webserver? This is for you. It's a one touch ready to go option. I already have an internal webserver, secured, on my AHP machine, so this didn't benefit me. This is best for the less technically inclined.
- It is a regular webpage. You can turn this into a desktop/dashboard widget/module to keep it at hand. Could be very useful. One could make a SSB (Single Site Browser) out of this. It's basically an app that launches only one webpage.
- After reading the code, there is a way to send direct commands as a URL. More on their structure later.
- If you know the URLs, then you can control this from any computer in your home. You could make desktop shortcuts that do things. There'll be a browser window open afterwards, but I'm sure it wouldn't be hard to work out a way to close them automatically.
URL StructureAll URLs begin with the IP, and the Port:
http://127.0.0.1:8777/If you add the AHP folder, you see the PalmPad:
http://127.0.0.1:8777/ahpIf you have security turned on, you'll see an "Xid" code:
http://127.0.0.1:8777/ahp?Xid=0123456789Actions are performed with a few variables. They get passed after "image?Act=" in the URL. They must be done without "ahp/" in the URL.
Examples:
http://127.0.0.1:8777/image?Act=If you have the security option, your "Xid" security code MUST go before the action in your URL. This would be something like
http://127.0.0.1:8777/image?Xid=0123456789&Act=Actions that can be performed:
image?Act=getmodules- returns a list of Modules (names) and IDs.
image?Act=sendplc- this is the basis of a PLC command
image?Act=sendcmd- this is the basis of an RF command
&State=0 OR &State=1 OR &State=2- as per AHPDev:
0 sends the command.
1 sends a key down and will transmit continously (only useful for bright/dim)
2 sends a key up and cancels a previous key down
&X10Cmd=On- the command to be sent. This can be:
on
off
dim
bright
alllightson
alllightsoff
alloff
&X10Addr=A1- the module to be controlled. Standard House Code followed by Unit Number.
Sample URL:
http://127.0.0.1:8777/image?Act=sendplc&State=0&X10Cmd=On&X10Addr=A1If someone wanted to, they could make their own front end interface for this that sends the appropriate calls. Web page or App, the potential is there, just like Mike Berro did with "Home Control":
http://www.lifelogapp.com/homecontrol/http://itunes.apple.com/us/app/homecontrol/id366687584Sending a command returns an XML status:
<monitor>
<sendcmd sent="1" queue="0">
</sendcmd>
</monitor>
or when used with State=2
<monitor>
<sendcmd sent="1" queue="0">
</sendcmd>
<activecam inst="0" label="(null)"/>
</monitor>
This way the PalmPad page can "flash" the little red LED image.
As per AHPDev, the XML returns are the following:
sent=1 ==> successful addition to the send queue
queue=0 ==> the current send queue depth in ms. This is more applicable to older transmitters (like firecracker) than something with much more complex scheduling like the CM15.
Page located in :
C:\Program Files\Common Files\X10\Common\WebApps\PalmPad.html
Images located in :
C:\Program Files\Common Files\X10\Common\Art\
You can customize both the PalmPad.html page and the images in the Art folder to skin/adjust to your liking. Please keep a backup copy of the original files just in case.
HTML File StructureImagesImages from the "Art" folder are called by the AHP server as "image?Act=image&XAction=DefImage&Idx=58".
As an example,
<img src="image?Act=image&XAction=DefImage&Idx=52"></img>
Shows the House Code dial at "A".
PalmPad VariablesThe PalmPad can be customized to start at whichever House Code you use. Look for the following and adjust accordingly:
//PALMPAD VARS
var houseCode = "A";
If you do change it, in order to avoid visual confusion, you can adjust the PalmPad.html file towards the bottom:
<div id="SwitchPos">
<img id="SWITCH" src="image?Act=image&XAction=DefImage&Idx=5" USEMAP="#hswitch" />
</div>
I have it set to "&Idx=5" to show House Code D (as per the "Art" directory). That way I don't get confused when it shows up.
Replacing the images in the "Art" folder and editing the PalmPad.html file will allow you to easily skin the controller any way you like it.AHP Configuration for Active PhoneAdjust this file only when AHP is closed. Otherwise, your changes will not be saved.
In "C:\Program Files\ActiveHome Pro\" you will find a file called AHP_config.xml which contains options. This can be opened in Notepad or another text editor.
We're looking for one specific line:
CellAdvertise="1" CellServerIP="0" CellServerPort="8777" CellUseRandomPort="0"
CellAdvertiseOptions: 1 or 0
Function: Not known yet. 1 is default, 0 will make the Active Home Pro splash screen (when you open the program) show up in the corner instead of centered.
CellServerIPOptions: 0
Function: None yet when changed, either using an IP address or numbers.
CellServerPortOptions: 8777 or other
Function: This is the port number used by AHP to serve the PalmPad.html webpage to your phone. This is changeable to just about any port *and* the change is reflected in the "Invite a Cell Phone" option as well as the e-mail sent to your phone.
Status: Deprecated - See the info on the Registry option below.
That being said, to change the listened port, make the following registry change and reboot (or restart x10nets and AHP)
Using regedit, the key is
HKEY_CLASSES_ROOT\CLSID\{001000AF-2DEF-0103-10B6-DC5BA692C858}\X10\Interface
Create a new DWORD value XServerPort, and set the value to the port you wish to use.
On 64 bit versions of windows, use the following key instead:
HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{001000AF-2DEF-0103-10B6-DC5BA692C858}\X10\Interface
Reboot and you'll see the new value in the email invite dialog.
CellUseRandomPortOptions: 0 or 1
Function: When set to 1, this option does what it says on the tin. The Active Phone webserver is set to a random port, so unless you know how to find it, don't try it.
TroubleshootingProblems registering ActivePhone and Active Home Pro?The registration code you received for ActivePhone replaces your ActiveHome Pro registration code. Enter the one you received in your Active Phone purchase e-mail when prompted after installing.
1) When I invite a cellphone, I don't get an e-mail with a link.- Make sure you check your Spam/Junk folder. It's very common for Active Home e-mails to go there first where you'll never see them.
2) When I type the address into my phone's browser, the page loads, but I don't see a PalmPad remote.- Make sure you've typed in the correct address. It needs to follow this exact structure: http://xxx.xxx.xxx.xxx:8777/ahp
Note that there is no slash at the end. If you put a slash, it will *not* load properly.
3) I've typed in the address/clicked on the link in my invite E-mail, but I get an error saying the "Page can not be found/loaded".- Some times, with or without reboots, you computer can get a new IP address on your internal network. This makes the previous link stop working. You can:
_
- a) Recommended. Use your computer's name in place of the 192.xxx.xxx.xxx IP Address. If on the iPhone, try appending ".local" to the end of the computer name. Example: http://anthonylavado.local:8777/ahp
- Windows: Go to the Start Menu, right click on "Computer", choose Properties. You'll see your computer name there.
- Mac OS X: Go to the Apple Menu, click on "System Preferences", choose Sharing. You'll see your computer name at the top.
_
- b) Set up a Static IP address for your computer. This must be done on your Router. Consult your Router's support for more information on how to do this.
4) I can't open the page at all, even with my computer name or IP.4b) I STILL can't open the page at all, even with my computer name or IP.- Try temporarily disabling your Anti-Virus/Security Software.
- If the above still doesn't work, try uninstalling your software and seeing if it loads. Some Security Software (if installed/uninstalled incorrectly) can still lock you up. Check the developer's website for a Removal Tool or "Uninstall Failed" instructions. i.e. Norton Removal Tool, McAfee Removal Tool, "CA Uninstall Failed".
5) I want to access this page from outside of my house. Can I do this?- Yes, you can. This is for advanced users. You can forward the port from your computer using your Router's Port Forwarding settings. Beware unless you turn it on, there is no security for the Active Phone interface, so if you're not careful, others could access your setup.
- For Port Forwarding advice, visit http://www.portforward.com and see the info for your router.
- I recommend at least changing the default port used in the registry (see earlier).
- Just make sure you're typing in the right IP Address away from home.
The link you get in the e-mail from ActiveHome is for use inside your home network, and won't be the same for external use.Visit this website from home: http://www.whatsmyip.org/
Then, on your smart phone, you type in the corresponding number. For example, if http://www.whatsmyip.org/ tells you "Your IP Address is 222.222.222.555", the correct address on your phone would be http://222.222.222.555:8777/ahp and should be bookmarked to avoid retyping.
[/list]