Test Sequence
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 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)
2. Go to the setup page, and on FindVera.com, enter: user: testvera password: myvera123 and activate
3. On rooms, enter a Bedroom and a Living Room
4. On Devices, 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, control lights, thermostat, etc.
7. Fill in all the options for the camera: Motion Detector, 30 seconds, Lamp, 30 minutes, 20 days, check all 4 boxes
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.
9. Choose Location
10. Add user: vera password: vera 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.
vg (114) 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.
vg (116). 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.
18. Go to energy and confirm you see the live usage
19. Go to control and confirm you see the dashboard
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
vg (41) 21. Let the access point wait for 5 hours. Confirm you can view the energy history.
ab 22. On the devices tab confirm the thermostat is reporting the temperature.
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.
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.
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
26. Go to: https://ra1.findvera.com/testvera/myvera123/3451/data_request?id=camera_control/16¶meters=get_video_frame and confirm you can view the camera
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 history energy usage 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 this to page are disabled because this Vera is exposed to the public"; document.getElementById('zwave_options_box').innerHTML="Changes this to 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