Test Sequence

From MiOS
(Difference between revisions)
Jump to: navigation, search
 
(24 intermediate revisions by 6 users not shown)
Line 1: Line 1:
A test system is available to the public to prod around with Vera. The test system consists of Vera, a thermostat, a motion detector, a dimmable light connected to a lamp, an on/off switch connected to a fan which blows foil in front of the motion detector to trip it, and a wireless Panasonic IP camera. It can be accessed directly (like you would on the home LAN) at testvera.micasaverde.com, or on findvera.com with the username: testvera, password: myvera123. Following is our standard test sequence to confirm that all major functions are working:
+
[[Category:Obsolete]]
 +
----
 +
'''This page is OBSOLETE'''
 +
----
 +
A test system is available to the public to prod around with Vera. The test system consists of Vera, a thermostat, a motion detector, a dimmable light connected to a lamp, an on/off switch connected to a fan which blows foil in front of the motion detector to trip it, and a wireless Panasonic IP camera. It can be accessed directly (like you would on the home LAN) at testvera.micasaverde.com, or on findvera.com with the username: testvera, password: myvera123. Following is our standard test sequence to confirm that all major functions are working:  
  
1.  Start with a new box, connect to it on the local LAN1 port and change the Net & Wi-Fi settings to use a static ip: 216.75.232.110, netmask: 255.255.255.240, gateway: 216.75.232.97, dns: 64.71.0.60.  (resolves as testvera.micasaverde.com)
+
Prep: In order to see all the verbose logs for several errors, edit /etc/cmh/cmh.conf and put a # in front of LogLevels and change number of copies to 100
  
2. Go to the setup page, and on FindVera.com, enter: user: testvera password: myvera123 and activate
+
1. Start with a new Vera unit and connect the WAN port to the network
  
3. On rooms, enter a Bedroom and a Living Room
+
2. Go to the 'Setup' page, and on FindVera.com, enter: user: '''testvera''' password: '''myvera123''' and activate
  
4. On Devices, the dimmable is "Lamp" in Living Room, the switch is "Fan" in Bedroom.  Thermostat and motion are in Living Room.
+
3. On the 'Rooms' tab, enter a Bedroom and a Living Room  
  
5. Power on camera, wait for light to come on green. Confirm it shows up as a new device.
+
4. On the 'Devices' tab, the dimmable is "Lamp" in Living Room, the switch is "Fan" in Bedroom. Thermostat and motion are in Living Room.  
  
6. Confirm view camera works, control lights, thermostat, etc.
+
5. Power on camera, wait for light to come on green. Confirm it shows up as a new device.  
  
7. Fill in all the options for the camera: Motion Detector, 30 seconds, Lamp, 30 minutes, 20 days, check all 4 boxes
+
6. Confirm 'View Camera' works, lights can be controlled, thermostat set, etc.
  
8. Create scenes: on for 30 seconds, turns lamp on for 30 seconds and off.  arm home turns lamp off and arms motion detector.  disarm home bypasses motion detector.
+
7. Fill in all the options for the camera: Motion Detector, 30 seconds, Lamp, 30 minutes, 20 days, check all 4 boxes
  
9. Choose Location
+
8. On the 'Scenes' tab, create scenes: "On for 30 seconds" turns lamp on for 30 seconds and off. "Arm Home" turns lamp off and arms motion detector. "Disarm Home" bypasses motion detector.  
  
10.  Add user: vera password: vera  Set the SMS text and email addresses.
+
9. Choose Location
  
11. Add timer: 30 minutes on interval 30 minutes, set sensor to arm, turn fan on and off after 5 minutes, and turns light to 75% for 15 minutes and turns it off.  Add another timer that at 45 minute intervals turns the lamp on to 25% and then to 60% after 30 minutes.
+
10. Add user: '''vera''' password: '''vera''', then set the SMS text and email addresses
  
12. Add timer: evening, at 6pm and 8pm turns lamp on for 10 seconds and off
+
11. Add timer: 30 minutes on interval 30 minutes, turn fan on and off after 5 minutes, and turns light to 75% for 15 minutes and turns it off. Add another timer that at 45 minute intervals turns the lamp on to 25% and then to 60% after 30 minutes.
  
13. Add event: breach, type: armed sensor, users: vera, motion detector.  lamp on for 10 seconds then off
+
12. Add timer: evening, on all days of week at "6:00pm, 20:00" turns lamp on for 10 seconds and off  
  
14. Add event: sunset, lamp off
+
13. Add event: breach, type: armed sensor, users: vera, motion detector. lamp on for 10 seconds then off  
  
15.  Click save.  Press F5 and confirm all settings stuck.
+
14. Add event: sunset, lamp off
  
cj (70) and vg (69) 16. Manually arm the sensor by clicking 'Arm' on the devices page.  Turn on fan, which should trip the motion sensor.  30 seconds later or so the sensor should have the red "trip" icon, and you should get a notification via sms and email about the 'breach' event.
+
15. On energy, check every option, choose every day of the week, 1 lights, a thermostat, more than 100 watts, notify the user vera, and sign up for Flex alerts.  
  
vg (72,71) 17. Login to findvera.com with testvera, myvera123.  Click events and confirm you can see the breach event and the notification attempts. Click Camera, Panasonic camera, and confirm you have video archive, including every time you tripped the sensor. The date/time should be correct, and the light should be on for 10 seconds.
+
16. Click 'Save'. Press F5 and confirm all settings stuck. Manually arm the sensor by clicking 'Arm' on the devices page. Turn on fan, which should trip the motion sensor. 30 seconds later or so the sensor should have the red "trip" icon, and you should get a notification via SMS and email about the 'breach' event.  
  
vg (73) 18.  Go to energy and confirm you see the live usage
+
NOTE: Manually trip a motion sensor like this: http://ip:49451/data_request?id=lu_variableset&DeviceNum=xxxx&serviceId=urn:micasaverde-com:serviceId:SecuritySensor1&Variable=Tripped&Value=0
  
vg (75) 19.  Go to control and confirm you see the dashboard
+
NOTE: Manually simulate a 'door lock pin failed' event like this: http://ip:49451/data_request?id=lu_variableset&DeviceNum=xxxx&serviceId=urn:micasaverde-com:serviceId:DoorLock1&Variable=sl_PinFailed&Value=1
  
cj 20.  Go to settings and put in your email and sms number.  Unplug the access point.  Within 1 hour you should get a notification
+
NOTE: Manually lock the door: http://ip:49451/data_request?id=lu_action&DeviceNum=xxxx&serviceId=urn:micasaverde-com:serviceId:DoorLock1&Variable=Target&Value=1  
  
vg (41) 21.  Let the access point wait for 5 hoursConfirm you can view the energy history.
+
NOTE: Manually simulate a 'user enters a code' event like this: http://ip:49451/data_request?id=lu_variableset&DeviceNum=xxxx&serviceId=urn:micasaverde-com:serviceId:DoorLock1&Variable=sl_UserCode&Value=yyy where yyy is in the format of: UserID="a" UserName="b" so that '''a''' is the id of the user code (1-19) and '''b''' is the name assigned to the user codeExample: http://192.168.1.108:49451/data_request?id=lu_variableset&DeviceNum=25&serviceId=urn:micasaverde-com:serviceId:DoorLock1&Variable=sl_UserCode&Value=UserID%3D%226%22%20UserName%3D%22robert%22
  
ab 22.  On the devices tab confirm the thermostat is reporting the time.
+
NOTE: Manually simulate a temperature sensor reaching a certain value: http://ip:49451/data_request?id=lu_variableset&DeviceNum=xxx&serviceId=urn:micasaverde-com:serviceId:TemperatureSensor1&Variable=CurrentTemperature&Value=30
  
al (62) 23. Open a generic WAP browser on a mobile phone and go to testvera.micasaverde.com/mo.  Confirm you can view the camera, control the lights, and execute secenes.
+
17. Browser check: Open the site in IE 6, IE 7, IE 8, Firefox 2, Firefox 3, Chrome, and Safari. Confirm the site loads, you can click buttons on the dashboard, expand the devices page, and create/save a scene
  
al 24. Open the browser and go findvera.com/mo. Enter testvera and myvera123, and again confirm you can view the camera, control the lights, and execute secenes.
+
18. Login to [http://findvera.com findvera.com] with '''testvera'''/'''myvera123'''. Click events and confirm you can see the breach event and the notification attempts. Click Camera, Panasonic camera, and confirm you have video archive, including every time you tripped the sensor. The date/time should be correct, and the light should be on for 10 seconds.  
  
ab 25. Open the blackberry's browser, go to findvera.com/mo and install the Java app.  Confirm you have the same control, and also that the status updates if you change devices using the web page
+
19. Go to the 'Energy' tab and confirm you see the live usage
  
vg 26. Go to: https://findvera.com/testvera/myvera123/data_request?id=camera_control/16&parameters=get_video_frame and confirm you can view the camera
+
20. Go to 'Control' and confirm you see the Dashboard
  
Confirm the following:
+
21. Go to 'Settings' and put in your email and SMS number. Unplug the access point. Within 1 hour you should get a notification.
Every 30 minutes you should get a notification of the breach, because of the 30 minute timer. The timers and events should work properly, and after a while, you should see the history energy usage graphs showing how the energy usage is fluctuating in response to the 30 and 45 minute timers.
+
 
 +
22. Let the access point wait for 5 hours. Confirm you can view the 'Energy' history.
 +
 
 +
23. On the devices tab confirm the thermostat is reporting the temperature.
 +
 
 +
24. Open a generic WAP browser on a mobile phone and go to [http://testvera.micasaverde.com:3451/iphone testvera.micasaverde.com:3451/iphone]. Confirm you can view the camera, control the lights, and execute secenes.
 +
 
 +
25. Open the browser and go to [http://findvera.com/mo findvera.com/mo]. Enter '''testvera''' and '''myvera123''', and again confirm you can view the camera, control the lights, and execute scenes.
 +
 
 +
26. Open the Blackberry's browser, go to [http://testvera.micasaverde.com/mo testvera.micasaverde.com/mo] and install the Java app. Confirm you have the same control, and also that the status updates if you change devices using the web page
 +
 
 +
27. Go to: [https://ra1.findvera.com/testvera/myvera123/3451/data_request?id=camera_control/16&parameters=get_video_frame https://ra1.findvera.com/testvera/myvera123/3451/data_request?id=camera_control/16&parameters=get_video_frame] and confirm you can view the camera
 +
 
 +
28. Choose 'Poll all nodes' from the Dashboard and confirm you get 'poll jobs' for all the devices.
 +
 
 +
29. Choose 'Permanently remove dead node' for one of the existing devices, and confirm it goes away.
 +
 
 +
30. Confirm the following: Every 30 minutes you should get a notification of the breach, because of the 30 minute timer. The timers and events should work properly, and after a while, you should see the energy usage history graphs showing how the energy usage is fluctuating in response to the 30 and 45 minute timers.  
 +
 
 +
If this is the public Vera box, make these changes to prevent someone from breaking the network settings:
 +
 
 +
in '''/www/cmh/js/scripts.js''', make this change:<br> document.getElementById("remote_access_box").innerHTML="Changes to this page are disabled because this Vera is exposed to the public";<br> document.getElementById('zwave_options_box').innerHTML="Changes to this page are disabled because this Vera is exposed to the public";<br>
 +
 
 +
and in '''/www/cmh/index.html''':<br> &lt;a href="/cgi-bin/webif/info.awx" target="_blank"&gt;Advanced configuration&lt;/a&gt; should be Changes this to page and access to OpenWRT control panel are disabled because this Vera is exposed to the public<br> delete this: &lt;td id="restore_factory_defaults_box"&gt;&lt;input type="button" class="normal_button" onClick="restore_factory_defaults();" value="Restore factory defaults"&gt;&lt;/td&gt;<br> and this: &lt;td id="restore_backup_form"&gt;&lt;/td&gt;<br>
 +
 
 +
and delete these 2 lines from '''/www/cmh/access_point.html''':<br> &lt;input type="submit" value="Save and Apply" class="normal_button"&gt;<br> &lt;input type="button" value="Revert changes" class="normal_button" onClick="getElementById('ap_form').reset(); show_connection_details(); show_encryption_details();"&gt;<br>
 +
 
 +
and delete this from '''/www/cgi-bin/cmh/upgrade_step1.sh''':<br> &lt;td&gt;&lt;input type="button" name="upload" value="Download" class="normal_button" onclick="document.location='upgrade_step2.sh?firmware='+document.getElementById('firmware').value"&gt;&lt;/td&gt;<br>
 +
 
 +
When the box is setup, do this:<br> mkdir /etc/cmh.bak<br> cp /etc/cmh/devices.json.lzo /etc/cmh/user_data.json.lzo /etc/cmh.bak/<br> echo "*/* 1 * * * cp /etc/cmh.bak/* /etc/cmh/" &gt;&gt; /etc/crontabs/root<br>
 +
 
 +
passwd: 95ireland

Latest revision as of 01:21, 15 June 2013


This page is OBSOLETE


A test system is available to the public to prod around with Vera. The test system consists of Vera, a thermostat, a motion detector, a dimmable light connected to a lamp, an on/off switch connected to a fan which blows foil in front of the motion detector to trip it, and a wireless Panasonic IP camera. It can be accessed directly (like you would on the home LAN) at testvera.micasaverde.com, or on findvera.com with the username: testvera, password: myvera123. Following is our standard test sequence to confirm that all major functions are working:

Prep: In order to see all the verbose logs for several errors, edit /etc/cmh/cmh.conf and put a # in front of LogLevels and change number of copies to 100

1. Start with a new Vera unit and connect the WAN port to the network

2. Go to the 'Setup' page, and on FindVera.com, enter: user: testvera password: myvera123 and activate

3. On the 'Rooms' tab, enter a Bedroom and a Living Room

4. On the 'Devices' tab, the dimmable is "Lamp" in Living Room, the switch is "Fan" in Bedroom. Thermostat and motion are in Living Room.

5. Power on camera, wait for light to come on green. Confirm it shows up as a new device.

6. Confirm 'View Camera' works, lights can be controlled, thermostat set, etc.

7. Fill in all the options for the camera: Motion Detector, 30 seconds, Lamp, 30 minutes, 20 days, check all 4 boxes

8. On the 'Scenes' tab, create scenes: "On for 30 seconds" turns lamp on for 30 seconds and off. "Arm Home" turns lamp off and arms motion detector. "Disarm Home" bypasses motion detector.

9. Choose Location

10. Add user: vera password: vera, then set the SMS text and email addresses

11. Add timer: 30 minutes on interval 30 minutes, turn fan on and off after 5 minutes, and turns light to 75% for 15 minutes and turns it off. Add another timer that at 45 minute intervals turns the lamp on to 25% and then to 60% after 30 minutes.

12. Add timer: evening, on all days of week at "6:00pm, 20:00" turns lamp on for 10 seconds and off

13. Add event: breach, type: armed sensor, users: vera, motion detector. lamp on for 10 seconds then off

14. Add event: sunset, lamp off

15. On energy, check every option, choose every day of the week, 1 lights, a thermostat, more than 100 watts, notify the user vera, and sign up for Flex alerts.

16. Click 'Save'. Press F5 and confirm all settings stuck. Manually arm the sensor by clicking 'Arm' on the devices page. Turn on fan, which should trip the motion sensor. 30 seconds later or so the sensor should have the red "trip" icon, and you should get a notification via SMS and email about the 'breach' event.

NOTE: Manually trip a motion sensor like this: http://ip:49451/data_request?id=lu_variableset&DeviceNum=xxxx&serviceId=urn:micasaverde-com:serviceId:SecuritySensor1&Variable=Tripped&Value=0

NOTE: Manually simulate a 'door lock pin failed' event like this: http://ip:49451/data_request?id=lu_variableset&DeviceNum=xxxx&serviceId=urn:micasaverde-com:serviceId:DoorLock1&Variable=sl_PinFailed&Value=1

NOTE: Manually lock the door: http://ip:49451/data_request?id=lu_action&DeviceNum=xxxx&serviceId=urn:micasaverde-com:serviceId:DoorLock1&Variable=Target&Value=1

NOTE: Manually simulate a 'user enters a code' event like this: http://ip:49451/data_request?id=lu_variableset&DeviceNum=xxxx&serviceId=urn:micasaverde-com:serviceId:DoorLock1&Variable=sl_UserCode&Value=yyy where yyy is in the format of: UserID="a" UserName="b" so that a is the id of the user code (1-19) and b is the name assigned to the user code. Example: http://192.168.1.108:49451/data_request?id=lu_variableset&DeviceNum=25&serviceId=urn:micasaverde-com:serviceId:DoorLock1&Variable=sl_UserCode&Value=UserID%3D%226%22%20UserName%3D%22robert%22

NOTE: Manually simulate a temperature sensor reaching a certain value: http://ip:49451/data_request?id=lu_variableset&DeviceNum=xxx&serviceId=urn:micasaverde-com:serviceId:TemperatureSensor1&Variable=CurrentTemperature&Value=30

17. Browser check: Open the site in IE 6, IE 7, IE 8, Firefox 2, Firefox 3, Chrome, and Safari. Confirm the site loads, you can click buttons on the dashboard, expand the devices page, and create/save a scene

18. Login to findvera.com with testvera/myvera123. Click events and confirm you can see the breach event and the notification attempts. Click Camera, Panasonic camera, and confirm you have video archive, including every time you tripped the sensor. The date/time should be correct, and the light should be on for 10 seconds.

19. Go to the 'Energy' tab and confirm you see the live usage

20. Go to 'Control' and confirm you see the Dashboard

21. Go to 'Settings' and put in your email and SMS number. Unplug the access point. Within 1 hour you should get a notification.

22. Let the access point wait for 5 hours. Confirm you can view the 'Energy' history.

23. On the devices tab confirm the thermostat is reporting the temperature.

24. Open a generic WAP browser on a mobile phone and go to testvera.micasaverde.com:3451/iphone. Confirm you can view the camera, control the lights, and execute secenes.

25. Open the browser and go to findvera.com/mo. Enter testvera and myvera123, and again confirm you can view the camera, control the lights, and execute scenes.

26. Open the Blackberry's browser, go to testvera.micasaverde.com/mo and install the Java app. Confirm you have the same control, and also that the status updates if you change devices using the web page

27. Go to: https://ra1.findvera.com/testvera/myvera123/3451/data_request?id=camera_control/16&parameters=get_video_frame and confirm you can view the camera

28. Choose 'Poll all nodes' from the Dashboard and confirm you get 'poll jobs' for all the devices.

29. Choose 'Permanently remove dead node' for one of the existing devices, and confirm it goes away.

30. Confirm the following: Every 30 minutes you should get a notification of the breach, because of the 30 minute timer. The timers and events should work properly, and after a while, you should see the energy usage history graphs showing how the energy usage is fluctuating in response to the 30 and 45 minute timers.

If this is the public Vera box, make these changes to prevent someone from breaking the network settings:

in /www/cmh/js/scripts.js, make this change:
document.getElementById("remote_access_box").innerHTML="Changes to this page are disabled because this Vera is exposed to the public";
document.getElementById('zwave_options_box').innerHTML="Changes to this page are disabled because this Vera is exposed to the public";

and in /www/cmh/index.html:
<a href="/cgi-bin/webif/info.awx" target="_blank">Advanced configuration</a> should be Changes this to page and access to OpenWRT control panel are disabled because this Vera is exposed to the public
delete this: <td id="restore_factory_defaults_box"><input type="button" class="normal_button" onClick="restore_factory_defaults();" value="Restore factory defaults"></td>
and this: <td id="restore_backup_form"></td>

and delete these 2 lines from /www/cmh/access_point.html:
<input type="submit" value="Save and Apply" class="normal_button">
<input type="button" value="Revert changes" class="normal_button" onClick="getElementById('ap_form').reset(); show_connection_details(); show_encryption_details();">

and delete this from /www/cgi-bin/cmh/upgrade_step1.sh:
<td><input type="button" name="upload" value="Download" class="normal_button" onclick="document.location='upgrade_step2.sh?firmware='+document.getElementById('firmware').value"></td>

When the box is setup, do this:
mkdir /etc/cmh.bak
cp /etc/cmh/devices.json.lzo /etc/cmh/user_data.json.lzo /etc/cmh.bak/
echo "*/* 1 * * * cp /etc/cmh.bak/* /etc/cmh/" >> /etc/crontabs/root

passwd: 95ireland

Personal tools