Need Advise - Z-wave settings are blank / undefined and can't change

I’ve been using a Vera Lite for about 6 months, everything seemed to be working fine until I added a front door power lock by Kwikset. I use Program Logic Event Generator (PLEG) turn on an interior light when the door is unlocked but only after sunset. I have been getting unreliable results from this trigger for about 2 weeks. At first I blamed the “Day or Night” plugin. I worked through that and about everything else. I think it is the Kwikset lock and the distance from the Vera unit. I was going to set up manual routing to the lock, but before I did that, I was going to run a Heal on the network. THIS IS WHERE I’M STUCK.

For some reason my Z-wave settings page (Setup > Z-Wave Settings > Options) is blank or showing “undefined”, see image below. Also when I click on any check-box on this page I get “Invalid device object”. The check remains in the box but no red Save button appears in the upper right corner. Last, when I go into the Repair tab (Setup > Z-Wave Settings > Repair) and click on “Go” nothing happens (see that page below as well). When I drill down into “View repair report” and then select either button heal with stress test or heal without stress test, neither seems responsive. I think this all ties back to the fact that the Settings page under the options tab is blank.

Any advise on why this page is blank and how do I fix it?

The Z-Wave “port” field should read “/dev/ttyS0”

Without that, Vera won’t be able to talk to anything Z-Wave.

Not sure how that got damaged, and since other things might also have been damaged, you’d be best to get one of the Backups from cp.mios.com and restore it (at least, that would be my first bet)

Given that the 4x fields at the bottom were also damaged, you should do a restore from backup (if there is one)

See attached for how these are on my machine, should you want to attempt to repair…

@Guessed - Thanks for your super fast reply. First you are saying that “blank” and “undefined” is not normal, correct? Second, what happens if I do the restore and it’s still blank, what would be the next step to correct this? A full factory reset or something else?

So the UI is attempting to read stuff setup from the “load” of your config. “undefined” is the result because the values/variables are missing.

That should NEVER happen for this field, which is why I think your [JSON] config has been corrupted by something.

Second, what happens if I do the restore and it's still blank, what would be the next step to correct this? A full factory reset or something else?
We should cross that bridge if it comes to that. 8)

Short-version: It’s some variant of a rebuild of your system ground-up… (there will still be the Z-Wave nodes registered in that, so a Full reset wouldn’t be my next step)

[quote=“guessed, post:5, topic:176107”]

Second, what happens if I do the restore and it’s still blank, what would be the next step to correct this? A full factory reset or something else?

We should cross that bridge if it comes to that. 8)

Short-version: It’s some variant of a rebuild of your system ground-up… (there will still be the Z-Wave nodes registered in that, so a Full reset wouldn’t be my next step)[/quote]

OK, assuming I did the restores correctly, it is still showing “undefined” and blank. Below are some screen shots of what I did and what the results were.

Screen #1 shows the back up that I used and you can see that it is in the process of restoring the file. Also I noticed that the last Z-Wave back up was July 6th. [After the July 13th restore no luck, so I used the July 6th since it was the same day as the last Z-Wave network. Still no luck.]

Screen #2 shows the results of the July 6th restore. You can see that the last Z-Wave network backup moved back to June 30th. [Next I used the July 7th and still no luck.]

Screen #3 shows the unit read out while doing a restore. I think it means that it’s working.

Screen #4 shows restore detail at the bottom of the screen. Again, I think it shows that it’s working.

[Screen shots #5 and #6 are in the next post.]

Any advise would be helpful. What should be the next step(s)?

Continuation from previous post. Screen shots #5 and #6.

Screen #5 This is what happens each time I try to do a backup os the Z-Wave network. It says “Z-Wave device not found”. That’s so weird because isn’t the Vera unit a Z-Wave device? Also, things appear to be working. What is going on?

Screen #6 After all the restores, I still have blanks and “undefined” fields.

Repeat from prior post: Any advise would be helpful. What should be the next step(s)?

Ok, so Z-Wave backups are a file that gets “carried” inside of a normal backup. They take a while to run (both export, and import) so they’re only executed when something changes in Z-Wave. Presumably you added a Z-Wave device, or made a change that would impact the registered devices, on or near 6th July.

After you do the restore, make sure that you fully flush the browser caches. You can do the force-refresh thing (Ctrl+F5 on Windows, but it might vary by browser the key-combo to use)

… that’s just to eliminate the possibility that you’re seeing a cached version of the Setup page.

Now, for the ‘regular’ part of the backup, Vera will do that nightly. It doesn’t (can’t?) check the consistency, so it’ll backup whatever it has. If that’s “bad” then so will be the backup.

Anyhow, backups are rotated out of cp.mios.com after a few days. Before you go further, make a copy of the key backups you see in the list, and keep these files on your machine (PC, Mac, etc) directly. Typically keep the most-recent, the oldest, and any in between you think might be handy.

Let me know how the browser force-refresh works first.

If that doesn’t work, try another browser and see if that gives a different response (just in cases there’s a problem in the specific Web Browser you’re using)

We can always fix up the information “on this page” and go from there, but I’m not sure what else might be damaged. That’ll likely be the next step (just repairing the values on this page, but only if ALL of the backups don’t work)

Got it. Makes sense as I added several Z-Wave switches on that day.

[quote=“guessed, post:8, topic:176107”]After you do the restore, make sure that you fully flush the browser caches. You can do the force-refresh thing (Ctrl+F5 on Windows, but it might vary by browser the key-combo to use)

… that’s just to eliminate the possibility that you’re seeing a cached version of the Setup page.[/quote]

I used the Ctrl + F5 and still the same blanks.

Did it! Copies of the oldest and newest are now local on my PC.

Didn’t work.

Changed browsers [Chrome and IE 9]. Also tried connecting on a different PC. Still the same thing - blanks and “undefined”.

I have now tried each back up and they all result in the same - blanks and “undefined” values.

Also, if I input values in the fields [see screen shot] they do prompt the red button in the upper right, but after saving when I reload the page and/or do a Ctrl + F5 the values just go away.

Also, I forgot to mention that somewhere along the way between backups I did do a power cycle of the Vera unit and no difference - blanks.

Next step(s)?

From the screenshot, it looks like you entered the fields, but not the actual “Port” entry, which was still undefined at (Save).

You’ll want all of them to be entered.

OK. I stepped out for a moment. What should be the port number? Or where do I find it?

My first post has it, as does the screenshot that I pasted.

Added the port as you explained. Same results unfortunately. Attached are the screenshots from my Android device. Connecting to my device over the Internet as I’m still on the road.

Please advise if this is a problem.

Otherwise, what should be the next step(s)?

So that’s really odd. I’ve never seen a Vera unit before that doesn’t actually save the output/changes. If you’re comfortable with SSH Access, I’d login and run the following set of commands:

mount df -k ls -ltr /etc/cmh/ logread
and see if there are any anomalies. Basically looking to see if the filesystem is full and/or corrupted in some manner.

If you’re not comfortable with this, you can also rebuild, but I’d be inclined to get support on it 1st thing monday morning, since they may be able to recover something from one of the backups (and work out the source problem that’s occurring)

Just out of curiosity, if I do a full factory reset, can I still recover from one of my local backups? I just want to see if Vera will actually work correctly.

What do you think?

[quote=“AndyG, post:15, topic:176107”]Just out of curiosity, if I do a full factory reset, can I still recover from one of my local backups? I just want to see if Vera will actually work correctly.

What do you think?[/quote]
In theory, that’s exactly what you do, BUT I wonder how many (if any?) of your backups are valid… Typically you can just restore from the backup and it’ll do the right thing, so I think something else is amiss, which is why I would hold-off of a Factory Reset, and instead work on diagnosing the issue causing the non-restore.

It’s possible you still have more valid stuff on your Vera unit, than you do on the backups, so I’d hate to lose that before we know.

If I had a spare Vera Lite floating around, I’d restore your backup to it. That’d let us know if the backup is valid or not. One of the others here might respond on that, if they’re able to do it.

…just don’t post your Backup here, since it can contain sensitive information.

I am comfortable SSHing into the unit but I’m not familiar how to do it with a Vera unit. Should I use the same IP address that I connect to it via the browser? If not, please let me know what IP address to use and/or special port number.

Thanks.

Normal port#'s, and using the standard IP address that you use on your LAN
http://wiki.micasaverde.com/index.php/Logon_Vera_SSH

[quote=“guessed, post:14, topic:176107”]So that’s really odd. I’ve never seen a Vera unit before that doesn’t actually save the output/changes. If you’re comfortable with SSH Access, I’d login and run the following set of commands:

mount df -k ls -ltr /etc/cmh/ logread
and see if there are any anomalies. Basically looking to see if the filesystem is full and/or corrupted in some manner.[/quote]

OK, I connected via SSH. Not sure exactly what I am looking for. Below is the breakdown of results from the various commands.

df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 4608 4608 0 100% /rom
tmpfs 31240 1376 29864 4% /tmp
tmpfs 512 0 512 0% /dev
/dev/mtdblock7 11264 1304 9960 12% /overlay
overlayfs:/overlay 11264 1304 9960 12% /
/dev/mtdblock8 4480 4480 0 100% /mios

ls -ltr /etc/cmh/
-rw-r–r-- 1 root root 504 Jul 14 2011 user_data.json.luup.lzo
-rw-r–r-- 1 root root 2062 Jul 14 2011 servers.conf.default
-rwx------ 1 root root 458 Jul 14 2011 ra_key
-rw-r–r-- 1 root root 1 Jan 27 2012 vera_model
-rw-r–r-- 1 root root 0 Jan 27 2012 first_boot
-rw-r–r-- 1 root root 0 Jan 27 2012 devices
-rw-r–r-- 1 root root 5079 Aug 27 2012 network_pnp_sys.xml
-rw-r–r-- 1 root root 48027 Feb 18 23:16 zwave_products_sys.xml
-rw-r–r-- 1 root root 8 Mar 7 05:52 version
-rw-r–r-- 1 root root 5 Mar 7 05:52 ui_skin
-rw-r–r-- 1 root root 2 Mar 7 05:52 ui_man
-rw-r–r-- 1 root root 2 Mar 7 05:52 ui
-rw-r–r-- 1 root root 0 Mar 7 05:52 scenarios
-rw-r–r-- 1 root root 12 Mar 7 05:52 platform
-rw-r–r-- 1 root root 2 Mar 7 05:52 language_id
-rw-r–r-- 1 root root 3 Mar 7 05:52 language
-rw-r–r-- 1 root root 48 May 29 21:28 keys
-rw-r–r-- 1 root root 41 May 29 21:28 ergy_key
-rw-r–r-- 1 root root 3 May 29 22:05 zwave_locale
-rw-r–r-- 1 root root 398 May 29 22:05 cmh.conf
-rw-r–r-- 1 root root 9 May 29 22:05 PK_AccessPoint
-rw-r–r-- 1 root root 31 May 29 22:05 HW_Key2
-rw-r–r-- 1 root root 33 May 29 22:05 HW_Key
-rw-r–r-- 1 root root 2 May 29 22:05 ui_branding
-rw-r–r-- 1 root root 19 May 29 22:05 srv_timestamp
-rw-r–r-- 1 root root 15 May 31 10:04 users.conf
-rw-r–r-- 1 root root 19 May 31 10:04 users.conf.timestamp
drwxr-xr-x 2 root root 0 Jun 30 16:18 persist
-rw-r–r-- 1 root root 0 Jul 6 21:23 fresh_install
-rw-r–r-- 1 root root 2076 Jul 6 21:36 servers.conf
-rw-r–r-- 1 root root 16383 Jul 6 23:06 dongle.dump
-rw-r–r-- 1 root root 8 Jul 12 22:27 version_latest
drwxr-xr-x 2 root root 0 Jul 13 17:09 orig
-rw-r–r-- 1 root root 8 Jul 13 18:39 zwave_house_id
-rw-r–r-- 1 root root 48 Jul 13 18:39 zwave_version
-rw-r–r-- 1 root root 10 Jul 13 21:31 last_backup
-rw-r–r-- 1 root root 22599 Jul 13 21:50 user_data.json.lzo.5
-rw-r–r-- 1 root root 22630 Jul 13 21:56 user_data.json.lzo.4
-rw-r–r-- 1 root root 22634 Jul 13 22:02 user_data.json.lzo.3
-rw-r–r-- 1 root root 22677 Jul 13 22:08 user_data.json.lzo.2
-rw-r–r-- 1 root root 334 Jul 13 22:08 services.conf
-rw-r–r-- 1 root root 11 Jul 13 22:08 last_report
-rw-r–r-- 1 root root 22682 Jul 13 22:14 user_data.json.lzo.1
-rw-r–r-- 1 root root 55 Jul 13 22:20 ra_ports
-rw-r–r-- 1 root root 7 Jul 13 22:20 ra_password
-rw-r–r-- 1 root root 22635 Jul 13 22:20 user_data.json.lzo

I only see “possibly” a few errors under “logread”. The some of the lines below repeat many times in the log, others only once. Note, there were hundreds of lines returned.

logread
…daemon.info dnsmasq[2566]: PnP: Warning duplicate IP 192.168.X.X and Mac d8:30:xx:xx:xx:xx” [I replaced some values with "X"s]

–and–

…daemon.info dnsmasq[2566]: checking resolv file: /tmp/resolv.conf.auto” followed immediately by
…daemon.info dnsmasq[2566]: stat didn’t return -1

–and–

user.notice rdate[24329]: Failed to sync with time-a.nist.gov . RdateExitCode=1 RdateResp=rdate: timeout connecting to time server” but it does appear to sync time in this line
…user.notice rdate[14110]: Synced with ptbtime1.ptb.de . RdateResp=

–and–

…user.info sysinit: nanddump: warning!: --omitbad is being deprecated in favor of --bb=skipbad.

–and–

user.info sysinit: uci: Entry not found

–and–

…user.info sysinit: ifconfig: SIOCSIFFLAGS: Cannot assign requested address

Does anything jump out at you?

Next step(s)?

By the way, thank you so much for your help!