long answer: The code is obviously at the moment a bit of a mess (name spaces, does not use common api, …) so something need to be done. However, at the moment its working and so I do not feel the pressure to fix it. I looked at it a few times and figured it would take me a few days to do it (in particular the testing). As soon as I find the time and do not get distracted by other interesting bits I can implement I will do it.
I added support for the S_AlarmPartition2.xml standard alarm panel interface. This required quite some changes and I will be testing the code for a week or so before making a release version (there may be bugs here and there). For those who want to test this already, the code is in the mios SVN in the trunk directory.
Why this all? Well, now you can use other devices to control the powermax alarm as well. For example the Android app Home Buddy now lists the alarm panel and you can control it via phone.
I however have a question:
I use UI4 and installed the module and I can see the man change to red on my 5 zones - so far perfect - I can even use it in events.
But - I cannot arm, disarm, set pin etc… The tabs are not there in the UI Powermax instanse… Can you help me out?
And thanks for your effort making powermax integration to Vera - just what I needed!
[quote=“anker, post:63, topic:169028”]I use UI4 and installed the module and I can see the man change to red on my 5 zones - so far perfect - I can even use it in events.
But - I cannot arm, disarm, set pin etc… The tabs are not there in the UI Powermax instanse… Can you help me out?
And thanks for your effort making powermax integration to Vera - just what I needed!
Regards,
Anker[/quote]
I assume you use the stable version 0.6 and not the stuff I uploaded last night in the trunk directory of the svn (because then things are slightly different).
When you click on the spanner symbol of the powermax device you should get a control page that looks like this: http://code.mios.com/trac/mios_visonic-powermax/attachment/wiki/WikiStart/control.png. You should be able to enter a pin there and then use the set button. Thereafter you should be able to arm/disarm. It may be that the pin is wrong and you won’t get a visual feedback, just nothing happens (You can check in veras log file where a message will appear; these are things I will fix soon).
If there are no control panels visible I suggest to reload the UI (on the top right corner of the screen). Sometimes a simple reload of the webpage will do as well. Check as well that you uploaded all files (The one with the json at the end).
let me know if this all does not work then we dig further to find the problem …
Tried to reload and still no luck (and yes - I am using the stable version).
I just though of a possible cause - I had a GSM modem connected to my powermax prior to this rs232 to vera - maybe this is the cause and I need to go and tell my Powermax that it is a powerlink instead?
Anyway -I wont do this until tomorrow as the alarm is in the master bedroom.
I think I will just wait for your updated version using the standard alarm modules - no need to trouble shoot on this version when you are this close to releasing a new and improved one
I will let you know how it turns out reg the powerlink vs. GSM.
yes, the powermax should be configured to talk to a powerlink. For a GSM module different messages may be used.
However, if you do not see the buttons/control to arm or disarm the error is within vera. You should be able to see the buttons, if you push them and it does not work that is then another story.
I finished the new version 0.7 (it is in the MIOS svn). Its working stable in my setting at home. I tested it with Home Buddy and the standard alarm panel interface is now supported. There are still some features that I have to add over time (most important, alarm notification must be implemented).
Let me know of errors and I will fix them as soon as possible.
Installed version 0,7 over version 0,6, but I’m a bit confused by it.
I use a Powermax-pro, with a usb-serialadapter. Version 0.6 worked fine for weeks.
I have 3 scenes: Alarm OFF (uses Disarm), Alarm ON (uses Arm Away), Alarm On inhouse (uses Arm Home).
These worked in version 0.6.
I’m trying to restore the above scenes in version 0.7, but do not understand the new command workings. So far I’m able to activate a Disarm on the Powermax, by selecting the new Partition-1 (Powermax) device and select Set Partition…(PIN), put in the Pin and enter state as Disarmed in the Text-box. Running this scene indeed disarmes the Powermax.
But how to enable Arm Away and Arm Home? I tried selecting Set Partition… (PIN), put in PIN and enter state Armed Home and Armed Away in the text-box. That did nothing. So I tried selecting Alarm Home andd Alarm Away in the second selection-box, but to no result. I also tried all combinations.
And finally, not sure if this is related, but in the new menu in Home buddy Arm and Disarm is working, but Stay (Is this the same as Alarm Home?) does nothing.
I hope this makes some sense. Probably I’m not understanding the new command workings. Basically I’m looking how to use the three Alarm states in a scene on the command-tab.
If I open the partition-1 (powermax) device in the UI4, on the control tab the Arm Home button looks corrupted and does not work. The two other buttons are looking and working fine.
I translated it as follows:
Arm Away → Should be Arm
Arm Home → Should be Stay
Disarm → is Disarm
You should be able to use Arm Away and Arm Home (Or Arm and Stay in Homebuddy) without a PIN. For the Disarm you need a pin (but Arm Away and Arm Home should work with a pin as well).
I use myself only a scene for arming home and it works (I use Set Partition Armed Away (No PIN)). I will check what you reported tonight and see if I can find an error that needs fixing.
Disarm:
Ok, that is as it should work (It is a bit unsecure as you have to store the pin in the scene but the only way to get it work)
But how to enable Arm Away and Arm Home? I tried selecting Set Partition.. (PIN), put in PIN and enter state Armed Home and Armed Away in the text-box. That did nothing.
Arm Away/Arm home:
This should work the same way as the Disarm you describe above that worked. The problem is here that you have to enter in the box “Armed” instead of “Arm Away” and “Stay” instead of “Arm Home”. This has to do with the issue that the alarm panel standard uses different terms than the visonic powermax.
So I tried selecting Alarm Home and Alarm Away in the second selection-box, but to no result. I also tried all combinations.
That is the alternative. If you use this you should not use the first option (actually I do not know what happens when using both). In this case you do not need the pin and it should just work. I use this here for “Armed Home” and this works (so I assume the other "Armed Away) works too but cant test this as I am in the house now).
And finally, not sure if this is related, but in the new menu in Home buddy Arm and Disarm is working, but Stay (Is this the same as Alarm Home?) does nothing.
Stay is Arm Home in standard alarm panel speak. I just tested it and it works. Are you using the newest Home Buddy version?
If I open the partition-1 (powermax) device in the UI4, on the control tab the Arm Home button looks corrupted and does not work. The two other buttons are looking and working fine.
Ms[/quote]
All buttons are made the same way. That is really strange. Do you have a screenshot of the corrupted button so I get an idea what this might be?
The corrupted button seems to be caused by Firefox. With Chrome it’s ok.
But it still doesn’t work here. The problems with the commands in a scene are also still there.
I’m back to 0.6 and all’s well again.
Let me know if you need testing.
I tested all options for programming scenes and in my setup all work.
There are two command options for scenes. With the first one you have to use a PIN and specify the state the alarm partition has to move to. Valid states are “Disarmed”, “Stay” and “Armed” which corresponds to “Disarmed”, “Armed Home” and “Armed Away” in powermax speak. The second option has two choices, “Armed Away” and “Armed Home”. For these ones you do not need a PIN.
Both options should not be used concurrently (leave either of the two in “Unchanged”). I recommend the first one for “Disarm” the second option for arming (thus you only need to save the PIN when needed).
The only problem I found when testing was that the UI does sometimes not save my changes to the scene, but this is a UI/Browser problem. I suggest as a next step if it does not work, set up a scene, press run and then send me the output from your LuaUPnP.log and I try to figure out from that whats going wrong. Here in my setup I cant re-produce the error right now.
yes, the powermax should be configured to talk to a powerlink. For a GSM module different messages may be used.
However, if you do not see the buttons/control to arm or disarm the error is within vera. You should be able to see the buttons, if you push them and it does not work that is then another story.
Utz[/quote]
Hi utz,
Perfect - I uploaded the 0.7 version and all looks fine now - I changed my powermax from GSM to powerlink - that might have done the trick. Anyway - I ust need to get familiar with the possible events, etc… I need to control this through the standard smart phone interface - I think I then need to make some scenes for this.
All in all a perfect integration for me - so far thanks!
Well, after some more testing I keep getting the same results.
Did a restore to V0.6 That worked ok for all the arm/disarm/arm Home states.
Then did a reinstall (upload) of all the v0.7 files.
I can arm and disarm the Powermax Pro via the UI4 Partition-1 device, using my user PIN.
The state ‘Arm Home’ however does not work, with or without a PIN.
The status on the device panel then indicates “wrong PIN used”.
secondly:
When using a scene, the state ‘Away’ with PIN in the first box does not work. The ‘Armed’ and ‘Disarmed’ state both work.
The ‘set partition Armed Home’ and ‘set partition Away’ in the second selection box both do not work.
Thirdly:
The button ‘stay’ in Home buddy does not work, the panel in UI4 then states “wrong PIN used”. ‘Arm’ and ‘Disarm’ both work.
Basically the functionality in v0.6 is enough for me. By using scenes in v0.6 I can use it with Home buddy too. Therefore v0.7 is not really a must have, so don’t feel pressed to spent time on this, if all works fine at your side. I do like the new interface in Home buddy though
Maybe something in the protocol has changed over time. My Powermax pro is about 4 years old.
[quote=“masterscot, post:78, topic:169028”]I can arm and disarm the Powermax Pro via the UI4 Partition-1 device, using my user PIN.
The state ‘Arm Home’ however does not work, with or without a PIN.
The status on the device panel then indicates “wrong PIN used”.[/quote]
“Arm home” works internally exactly as “Arm away”. Either both work or not. This is indeed strange and I cannot see right now how this may happen. I will look through the code again to find a reason for it. In addition, some log file outputs from you could help me. Basically, if you could you change in the file I_Powermax.xml the line “LOG_DEBUG = false” to “LOG_DEBUG = true” and then activate verbose debugging and send me the output of LuaUPnP.log when you run “Arm Home” and “Arm Away”. (Be aware, I will be able to see your PIN in the debug output!)
secondly:
When using a scene, the state 'Away' with PIN in the first box does not work. The 'Armed' and 'Disarmed' state both work.
The 'set partition Armed Home' and 'set partition Away' in the second selection box both do not work.
This is because the word “Away” is not recognised. Vaild states (strings) here are “Disarmed”, “Stay”, “Armed”. These correspond to the powermax specific states “Disarmed”, “Armed Home”, “Armed Away”.
Thirdly:
The button 'stay' in Home buddy does not work, the panel in UI4 then states "wrong PIN used". 'Arm' and 'Disarm' both work.
this is the same fault as you describe in “Firstly” (Because “Stay” is “Arm Home”, it hits the same functions).
As the powermax responds with a wrong PIN I assume the PIN you used may actually be wrong. It may be you entered the PIN correct but my code for some reason transforms the PIN wrongly in the message send to the powermax (But this would be the same for Arm Home and Arm Away). Generally, for ArmHome you would not need a PIN and a pin of “0000” is ok. Maybe the system gets upset when you actually try to use a PIN to get to this state. Can you try “0000” as pin when you try to go “stay”?
is there someone out there that has the same problems with version 0.7 as reported by masterscot? I can’t replicate that particular error he is observing. I always thought computers are somewhat deterministic …