HomeGenie Forum

General Category => Troubleshooting and Support => Topic started by: kevinvinv on February 28, 2016, 07:45:17 PM

Title: Add a new Program just brings up an old program?
Post by: kevinvinv on February 28, 2016, 07:45:17 PM
Strange problem here.

I go to Programs | AddNewProgram and I type in the name of the program I want to create... call it "Panic"    and when the program editor comes up...  it is editing an existing program called "AllOfOn"

It seems impossible to create a blank new program.

Anyone see this before?

Thanks!!
Title: Re: Add a new Program just brings up an old program?
Post by: kevin1 on February 29, 2016, 01:05:21 PM
I have created several programs.  Most recent a couple weeks ago and did not have this problem.  I am still on r505.
Title: Re: Add a new Program just brings up an old program?
Post by: kevinvinv on February 29, 2016, 02:39:27 PM
Thanks.  I am on 512 I guess...   maybe I'll try reinstalling it ?
Title: Re: Add a new Program just brings up an old program?
Post by: bkenobi on February 29, 2016, 05:11:28 PM
I'm running r514 and when I add a new program, HG creates a new program PID 1000 called "test" as desired.  I then closed that program and could see it shown in the list.  I then created a new program called "test1" and HG brought up PID 1000 "test" for editing.  Dropping back to the list, I see both:  "test" PID 1000 and "test1" PID 1000.  If I attempt to edit "test1", HG will only allow access to "test".

This appears to be a bug.
Title: Re: Add a new Program just brings up an old program?
Post by: kevinvinv on February 29, 2016, 05:12:45 PM
Yep that sounds like what I am seeing.  Thanks for checking that!!  You are very helpful.

So what should I do to get it reported then?
Title: Re: Add a new Program just brings up an old program?
Post by: bkenobi on February 29, 2016, 05:15:18 PM
Add an issue to github with a description of the issue and how to recreate it.  Pointing to this thread wouldn't hurt either.

I haven't seen any posts from Gene in a while, so I'm not sure what's going on with development currently.  He could be on vacation or something.  Hope he's having fun!
Title: Re: Add a new Program just brings up an old program?
Post by: petediscrete on March 02, 2016, 03:43:56 PM
Would importing a blank C# program and editing it help here
Title: Re: Add a new Program just brings up an old program?
Post by: bkenobi on March 02, 2016, 03:58:07 PM
Importing programs does seem to work as restoring a backup image gives all desired programs.  Perhaps you could restore a blank one with the PID you want to use as a quick workaround until the bug is fixed?  I don't have a blank one currently, but if you stripped the code from a program and exported it, that would give the basic container.
Title: Re: Add a new Program just brings up an old program?
Post by: bkenobi on March 03, 2016, 04:37:56 AM
I just tried importing a program and it actually came in with a PID of 1000 so I'm not sure how to fix things other than manually editing the modules.xml file after creating the script and restarting HG afterwards.
Title: Re: Add a new Program just brings up an old program?
Post by: kevinvinv on March 03, 2016, 05:38:25 AM
I just entered this bug into github.  While there,  Bkenobi,  I saw your bug about HG activating too many X10 modules.  Is this still a problem?  I am seeing some strange X10 behavior in general, not exactly what you described but more like the opposite,,,   it SKIPS the activation of some modules in some cases...   

Anyhow-  just wondering if your issue has been fixed or not?

Title: Re: Add a new Program just brings up an old program?
Post by: bkenobi on March 03, 2016, 04:17:36 PM
No that issue is still present.  I don't see it happen that often (2x in 2 weeks I think) so it's difficult to determine the cause.  If you hare having HG not activate modules correctly, I would lean towards power line noise/signal suckers rather than an HG issue.  Well, unless you can see in the log that HG is ignoring your command for some reason.  If HG says it sent a command and nothing happened, you need to follow the following guides:

http://jvde.us/x10_troubleshooting.htm (http://jvde.us/x10_troubleshooting.htm)
https://www.laser.com/dhouston/noise.html (https://www.laser.com/dhouston/noise.html)
Title: Re: Add a new Program just brings up an old program?
Post by: kevinvinv on March 05, 2016, 04:18:33 AM
This is a big downer...  so there is no way to create a new program easily now then huh?
Title: Re: Add a new Program just brings up an old program?
Post by: bkenobi on March 05, 2016, 08:13:14 AM
Yeah, that's how it looks.  The only thing I can suggest is trying a version older to see if it doesn't have the bug.
Title: Re: Add a new Program just brings up an old program?
Post by: petediscrete on March 05, 2016, 01:30:48 PM
The change from r512 to r514 seems to have thrown up a few glitches ok. Has anyone sent Gene a PM to see if there's any feedback on these issues.
Title: Re: Add a new Program just brings up an old program?
Post by: kevinvinv on March 05, 2016, 03:40:08 PM
i have not but I did post a github bug on this one.
Title: Re: Add a new Program just brings up an old program?
Post by: kevinvinv on March 08, 2016, 05:48:55 PM
Anyone have an idea on how to work around this bug?   I will say that not being able to create a new program has given me a ton more personal time but I'd like to wrap up (so to speak) my automation project sometime  :)
Title: Re: Add a new Program just brings up an old program?
Post by: Michel on March 08, 2016, 09:26:02 PM
I was on r514 and had this problem. So, what I did was to fallback to version r512, as r512 does not have this bug. I was able to create the programs I needed, but Weather Underground gave me the moon_phase problem and did not update the widget. I saved my configuration, updated to r514 and restored the configuration. Now, everything is ok, all my new  programs are there and WU update correctly.
Title: Re: Add a new Program just brings up an old program?
Post by: bkenobi on March 09, 2016, 12:09:01 AM
That would work though it's obviously some extra steps.  I can't think of another option than to either do that (downgrade, update programs, upgrade) or to just stay on r512 until the bug is fixed.
Title: Re: Add a new Program just brings up an old program?
Post by: petediscrete on March 09, 2016, 06:49:45 PM
Started to experience problems with IP cameras on r514 now. That's email acting strange and odd problems with X10. That swung the decision. Downgraded to r512 and all working fine again. I'll stay on r512 until the "creator" once again appears to his flock.
Title: Re: Add a new Program just brings up an old program?
Post by: kevinvinv on March 09, 2016, 08:32:03 PM
interesting you mention weird x10 problems...  I've seen some of those too... didnt connect it to HG though... I'll back off and give it a go!

KV.
Title: Re: Add a new Program just brings up an old program?
Post by: bkenobi on March 09, 2016, 10:13:27 PM
What kind of issues with X10 were you noticing?  I have only seen the issue with incorrect lights turning on (documented on the forum and in a github issue).  Is there anything else I should keep an eye out for?
Title: Re: Add a new Program just brings up an old program?
Post by: kevinvinv on March 09, 2016, 11:44:57 PM
After a time passes,  I push lets say  E10  and I see A10 logged (and acted on) instead...

ALso have some problems with All On and All Off but I dont think you are using that.
Title: Re: Add a new Program just brings up an old program?
Post by: bkenobi on March 10, 2016, 12:12:37 AM
After a time passes,  I push lets say  E10  and I see A10 logged (and acted on) instead...

That's a peculiar one.  E10 on would send 2 commands (E10, E ON) and should not have anything to do with HC A.  If it's turning A modules on when sending an on command for an E HC module, that certainly seems to be a bug.  I use HC A primarily with a few specific modules on B, C, E, and O.  All lighting is on HC A.  If HG was reporting that it sent E10 on, then I'd suspect some kind of signal corruption, however, that would be a strange corruption to see regularly.

HC A = b0110 or h6
HC E = b0001 or h1

I've heard that some people have issues with device M13 (HC = b0000, UC = b0000) since noise on the power line can apparently look like this module, but it seems odd that you would see this on E10/A10 regularly.

As for All ON/All OFF, no I don't use it.
Title: Re: Add a new Program just brings up an old program?
Post by: petediscrete on March 10, 2016, 01:36:48 AM
Might be best to hear from Gene on this one. Upgrade from r512 to r514 may be bigger than originally anticipated.
Title: Re: Add a new Program just brings up an old program?
Post by: amselem on March 13, 2016, 05:18:13 AM
Hello
I fixed the issue and the new PID algorithm is working for me again.
I sent a pulll request with the changes.
Title: Re: Add a new Program just brings up an old program?
Post by: kevinvinv on March 13, 2016, 05:25:35 AM

Can you explain to an amateur what that means... a pull request?   

Also,  there are a couple things I'd like to change in the source as well... how difficult was it for you to get the compile to work etc?  If it isn't too bad I think I'd like to possibly make a local fork over here....
Title: Re: Add a new Program just brings up an old program?
Post by: amselem on March 13, 2016, 01:00:28 PM
A pull request is basically a petition to the author (Gene) to validate and integrate the changes into the main branch.

This was my very first pull request so I'm a little amateur too! I followed this guide:
http://rickrainey.com/2013/07/27/visual-studio-and-gitub-the-basics-of-working-with-existing-repositories-2/ (http://rickrainey.com/2013/07/27/visual-studio-and-gitub-the-basics-of-working-with-existing-repositories-2/)

Essentially you have to:
-fork homegenie into your github server account,
-create a local clone to work and make code changes
-commit those changes back to your server account
-create a new "pull request" so Gene can validate and integrate your changes into the main branch.

As for compiling HomeGenie it was very easy. I used Visual Studio 2015 community to open the main solution, hit "Build solution" and done!

Regards
Title: Re: Add a new Program just brings up an old program?
Post by: kevinvinv on March 13, 2016, 09:58:33 PM
Thanks for this info!!   

Is the Visual Studio 2015 tool a windows tool then?  I am wondering if I can compile it on Linux by chance.  I'll have to do some research.
Title: Re: Add a new Program just brings up an old program?
Post by: amselem on March 13, 2016, 10:31:00 PM
Yes, Visual Studio is an IDE and compiler for Windows.
I don't know how to compile in Linux so I can't help you there, but I understand that you must use the Mono compiler
Title: Re: Add a new Program just brings up an old program?
Post by: dani on March 13, 2016, 11:19:00 PM
For compiling under linux you have to install  Monodevelop.
And then you can open the sln file to compile the linux project
Title: Re: Add a new Program just brings up an old program?
Post by: bkenobi on March 14, 2016, 03:31:36 PM
You can also compile on Windows and move the compiled file over to your Linux machine.  The project is built under Mono which is a multiplatform implementation of .NET so compiling for one system makes it work for anything that has Mono available (technically anyway).
Title: Re: Add a new Program just brings up an old program?
Post by: kevinvinv on March 26, 2016, 09:43:27 PM

Is it easy to downgrade home genie?   I guess I want to go back to the last release... 

just do a backup-  downgrade and then restore?  Is that the process?
Title: Re: Add a new Program just brings up an old program?
Post by: kevin1 on March 28, 2016, 01:52:37 PM
I saw that HG version r515 was released with:

Code: [Select]
26/03/2016 v1.1-beta.515
    - Fix "Add new Program" bug (issue #259)
    - Z-Wave Pepper1 database is now queried online
    - Fix zwavenode.xml (node data persistence file) serialization issue

Title: Re: Add a new Program just brings up an old program?
Post by: bkenobi on March 28, 2016, 05:13:23 PM
I didn't get a chance to update this weekend.  Does the new version close this issue?