Author |
|
syonker Senior Member
Joined: March 06 2009 Location: United States
Online Status: Offline Posts: 212
|
Posted: February 01 2012 at 17:53 | IP Logged
|
|
|
That's gotta be an HTML thing. The space doesn't exist in the Formula Builder.
Oddly enough - it even seems to send the data, but it's still throwing a syntax error....with no explanation.
-S
Edited by syonker - February 01 2012 at 17:57
__________________ "I will consider myself having succeeded when my house becomes sentient and attempts to kill me."
><(((º>`·.¸¸.·´¯`·.¸><(((º>¸.
·´¯`·.¸. , . ><(((º>`·.¸¸.·´¯`·.¸><(((º>
|
Back to Top |
|
|
MrGibbage Super User
Joined: October 23 2006 Location: United States
Online Status: Offline Posts: 513
|
Posted: February 14 2012 at 21:06 | IP Logged
|
|
|
Announcing PowerHome Connector App version 2.0. After many, many, MANY bug fixes and
enhancements (thanks, SYONKER) I am pleased to announce the next version of PHCA. If you are
looking for a very flexible way to control your PH installation with your Android cell
phone, or to be able to receive real-time feedback from your PH installation directly to
your phone (Froyo or later), this app can do it for you. And it is *STILL* 100% free. No ads
or anything like that. Just me giving back to the community.
I have started development of the next generation PHCA, which will allow graphics such as
floor plans or custom dashboards. I could use some feedback regarding this current version
so that I know I will get it right with the next version.
__________________ Skip
|
Back to Top |
|
|
syonker Senior Member
Joined: March 06 2009 Location: United States
Online Status: Offline Posts: 212
|
Posted: February 14 2012 at 21:59 | IP Logged
|
|
|
Hi Gang,
For those out there who want a way using your Android Smart Phone to control your PowerHome installation in great detail, and get feedback, WITHOUT having to have your phone logged into a battery-sucking WiFi persistent LAN connection...this is the app. It has a very simple drill-down user interface that is easy to understand, and reasonably easy to setup (a little knowledge of XML/HTML is very helpful). I have used nearly every feature Skip's been kind enough to include in this version, and they work very well, and with very good reliability.
FYI - I am using and have been testing on an Motorola Triumph Android phone running v2.2.2. Not sure what Skip's test platform is.
If anyone out there is using it, or starts to and needs a little help, let me or Skip (or one of the other gurus out in PH-Forum-Land) know.
Skip has done a wonderful job of responding to bug identifications, and in providing the minor feature enhancements required to make this app a very good companion to your PowerHome installation.
Regards,
-S
Edited by syonker - February 14 2012 at 21:59
__________________ "I will consider myself having succeeded when my house becomes sentient and attempts to kill me."
><(((º>`·.¸¸.·´¯`·.¸><(((º>¸.
·´¯`·.¸. , . ><(((º>`·.¸¸.·´¯`·.¸><(((º>
|
Back to Top |
|
|
MrGibbage Super User
Joined: October 23 2006 Location: United States
Online Status: Offline Posts: 513
|
Posted: February 14 2012 at 22:32 | IP Logged
|
|
|
Thanks, Syonker. :)
I guess I should have included the link:
http://skipstechtalk.net/powerhome-connector-for-android/
__________________ Skip
|
Back to Top |
|
|
nick7920 Senior Member
Joined: March 04 2008 Location: United States
Online Status: Offline Posts: 193
|
Posted: February 15 2012 at 21:12 | IP Logged
|
|
|
I know this is work in progress
I installed on two devices HTC 3D and LG g2x both seems to work with following notation.
When installing make sure you have correctly configure main_menu_pref.xml or you will get force close and other errors.
for PhSocketServerAddress="xx.xx.xx.xx" if you have static IP just put IP address without any prefix.
Form power home I am sending my kitchen Insteon light status for test like this from tiggers.
(ph_setglobal_s("KITCHEN_STATUS",If (ph_getinsteonstat("KITCHEN")=2,"ON","OFF"))+ph_geturl("http ://phc-a.net/testsend.php?username={PHCA_USER}&password={PHC A_PASS}&varname=kitchen_st&varvalue={KITCHEN_STATUS}"))
My comments.
I did not have socket server on before, but now I had two crashes of power home – don’t know where the error is coming from. One was JAVA error. (For now I can’t blame this application I have to check it more).
Like before (Control Center) web access will get the information from cache of cell phone– so you don’t get the status correctly.
But using SS(socket server) you get the correct information and even better using C2DM gets the information for you and I have both devices connected and both of them got the update.
I don’t see the option for setting ring/notification for variable change – Manage variable shows all variables in the device but pressing just change the arrow and no other option.
I think it’s a good start for android Application.
|
Back to Top |
|
|
MrGibbage Super User
Joined: October 23 2006 Location: United States
Online Status: Offline Posts: 513
|
Posted: February 15 2012 at 21:46 | IP Logged
|
|
|
Oh, you should not get any forced close at all, even if you have a malformed config file. Let's discus
this over email. Please send me the config file that caused the crash so I can take a look at it. You can
obfuscate your server names and passwords if you like.
skip@pelorus.org
As for PH crashes when enabling the socket server, perhaps Dave can help you with that one.
__________________ Skip
|
Back to Top |
|
|
nick7920 Senior Member
Joined: March 04 2008 Location: United States
Online Status: Offline Posts: 193
|
Posted: February 15 2012 at 21:55 | IP Logged
|
|
|
since fixing the xml, I am not getting any force close. so I think I am okay . and for Notification setting I am trying to learn and I got it working. for socket server I am also watching what was the cause.
Thanks
Edited by nick7920 - February 15 2012 at 22:11
|
Back to Top |
|
|
MrGibbage Super User
Joined: October 23 2006 Location: United States
Online Status: Offline Posts: 513
|
Posted: February 16 2012 at 20:46 | IP Logged
|
|
|
For anyone following this thread, Nick's problem above was due to the fact that he was using
an old version. However, when he upgraded to the latest version, he did find another bug with
incoming C2DM messages, which has now been corrected and is available for download at
http://skipstechtalk.net/powerhome-connector-for-android/
__________________ Skip
|
Back to Top |
|
|
nick7920 Senior Member
Joined: March 04 2008 Location: United States
Online Status: Offline Posts: 193
|
Posted: February 22 2012 at 22:32 | IP Logged
|
|
|
After few days of testing, program works pretty well. I tried different XML's intentionally and it catches XML errors if there is one. If you have Android then try it, you will like C2DM.
Thanks Skip.
|
Back to Top |
|
|
MrGibbage Super User
Joined: October 23 2006 Location: United States
Online Status: Offline Posts: 513
|
Posted: April 20 2012 at 21:01 | IP Logged
|
|
|
I wanted to take a minute lo let everyone know that the next version of the PowerHome
Connector for Android is in final testing. I hope to release it in a week. The new features
are light years ahead of the old version
Graphic pages (dashboards, floorplans, anything you want)
PIN protection
Improved List display
Any number of actions & pages
Actions can execute multiple commands
UI for editing menus (no more manually editing XML files)
Slider controls for variable commands (e.g., set the light level to 37%)
... and many other code improvements.
__________________ Skip
|
Back to Top |
|
|
MrGibbage Super User
Joined: October 23 2006 Location: United States
Online Status: Offline Posts: 513
|
Posted: May 26 2012 at 19:15 | IP Logged
|
|
|
OK, it took a little longer than I expected (isn't that always the case?). But, I am pleased to announce
PowerHome Connector for Android version 2.1.1 is ready. You can download it now from my site
http://skipstechtalk.net/powerhome-connector-for-android/
Or you can wait a couple of days for it to show up in the Android market. The app is currently free, but
I will probably be looking to charge about $10 for it to help with server costs some times in the future.
I am always interested in hearing feedback from users.
Skip
__________________ Skip
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: May 28 2012 at 10:18 | IP Logged
|
|
|
Getting an error.. "Setting name phwebserver is not a valid settings name".
|
Back to Top |
|
|
MrGibbage Super User
Joined: October 23 2006 Location: United States
Online Status: Offline Posts: 513
|
Posted: May 28 2012 at 15:38 | IP Logged
|
|
|
Tony, thanks for the feedback. I am looking into that error. It looks like my error-checking
routine may be a little too aggressive. Let me know if you figure out a work-around, or if you
need any other help. In the meantime, I will try to figure out a solution on my end.
Also, I released a small update today, ver 2.1.03, which fixes a few other bugs that have been
reported. It is available for download here:
http://skipstechtalk.net/powerhome-connector-for-android/
I don't think it will fix your problem though (but you never know...)
__________________ Skip
|
Back to Top |
|
|
MrGibbage Super User
Joined: October 23 2006 Location: United States
Online Status: Offline Posts: 513
|
Posted: May 28 2012 at 15:50 | IP Logged
|
|
|
*sigh* Figured it out....
Version 2.1.04 has just been uploaded which should fix that problem.
__________________ Skip
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: May 28 2012 at 18:33 | IP Logged
|
|
|
Would it be possible to support standard, PH web replacements like <%"{CURTEMP}"%> ?
It would also be nice to have Global variable support. ;)
|
Back to Top |
|
|
MrGibbage Super User
Joined: October 23 2006 Location: United States
Online Status: Offline Posts: 513
|
Posted: May 28 2012 at 19:28 | IP Logged
|
|
|
Yeah, I think I could support the web replacements like that. I am familiar with the {GLOBAL_VAR}.
I haven't seen the % delimiter before. What are all of the delimiters, and I will see how to
integrate them.
As for global variable support, I am interested in hearing a suggested use case. I use global
variables a lot, and I get their values in PHCA with ph_getglobal_s("VARNAME"), and I have
triggers for a lot of them so that when they change, it is sent to my phone over C2DM.
Anyway, I want to look into the standard PH delimiters as you suggest. That is a good idea!
__________________ Skip
|
Back to Top |
|
|
MrGibbage Super User
Joined: October 23 2006 Location: United States
Online Status: Offline Posts: 513
|
Posted: May 28 2012 at 20:53 | IP Logged
|
|
|
I'm getting some good feedback tonight. Version 2.1.05 has been uploaded to my site. It fixes a crash when
using http commands.
Keep the feedback coming. And suggestions too!
__________________ Skip
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: May 29 2012 at 13:45 | IP Logged
|
|
|
I think that is just the delimiter for HTML in PSP.
I'm resisting using C2DM. ;) How could I use that Global method?
Another Suggestion: The action items should have some sort of visual feedback when tapped. ;)
|
Back to Top |
|
|
MrGibbage Super User
Joined: October 23 2006 Location: United States
Online Status: Offline Posts: 513
|
Posted: May 29 2012 at 17:31 | IP Logged
|
|
|
Remember, you can run any macro as a PHCA action. If you just want to ask the server for
the value of a PowerHome global variable, just use ph_getglobal_s("MY_GLOBAL_VAR_NAME")
and have it store that in a PHCA Variable. Then you could have it displayed in a menu or
as a popup dialog. The choice is yours.
C2DM just makes it more automatic (real-time). If you want to get an instant notice when
your garage door opens, C2DM is the way to go. I have a trigger set for the global
variable "GAR_DOOR_STATUS", which is updated whenever the garage door opens or closes. The
trigger just sends the new value over C2DM to my phone. I get a beep and it shows up in my
status bar a second or two after the door opens. Pretty slick, actually.
That is good feedback about visual feedback when tapping on an item in the menus. I added
it to my rapidly growing to do list.
I want to think about a way to synchronize all of the global variables in PowerHome with
PHCA. Then it will be a lot easier for people to work with them, I think.
__________________ Skip
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: May 29 2012 at 18:48 | IP Logged
|
|
|
How can I run an action on startup?
Re: syncing, I just went through that a few years ago with another developer. ;) Let me check my notes.
|
Back to Top |
|
|