Author Topic: Errors from Vera Plugin  (Read 3327 times)

0 Members and 1 Guest are viewing this topic.

AgileHumor

  • Contributor
  • ***
  • Posts: 62
  • Karma: 3
    • View Profile
Errors from Vera Plugin
« on: February 25, 2014, 03:11:13 PM »
I'm having a problem getting sensor events from the Vera plugin and thought maybe it was some of these errors in the log.

Just and FYI, all seems to be working.

Code: [Select]
2/25/2014 10:48:17 AM VoxLog created:
2/25/2014 10:48:17 AM 990 [plugin] http://192.168.0.3:3480/data_request?id=lu_sdata&loadtime=1393335110&dataversion=335142764&timeout=600&minimumdelay=1500
2/25/2014 10:48:19 AM 494 [plugin] {
  "full": 0,
  "loadtime": 1393335110,
  "dataversion": 335142783,
  "state": -1,
  "comment": "",
  "devices": [
    {
      "altid": "79",
      "id": "387",
      "subcategory": "3",
      "room": "4",
      "parent": "1",
      "armed": "0",
      "batterylevel": "100",
      "tripped": "1",
      "lasttrip": "1393350373",
      "state": "-1",
      "comment": ""
    },
    {
      "altid": "50",
      "id": "335",
      "subcategory": "3",
      "room": "4",
      "parent": "1",
      "batterylevel": "100",
      "status": "0",
      "temperature": "77",
      "armed": "1",
      "tripped": "0",
      "lasttrip": "1393351429",
      "light": "21",
      "state": "-1",
      "comment": ""
    }
  ]
}
2/25/2014 10:48:21 AM 995 [plugin] http://192.168.0.3:3480/data_request?id=lu_sdata&loadtime=1393335110&dataversion=335142783&timeout=600&minimumdelay=1500
2/25/2014 10:48:29 AM 646 [plugin] {
  "full": 0,
  "loadtime": 1393335110,
  "dataversion": 335142785
}
2/25/2014 10:48:32 AM 146 [plugin] http://192.168.0.3:3480/data_request?id=lu_sdata&loadtime=1393335110&dataversion=335142785&timeout=600&minimumdelay=1500
2/25/2014 10:48:33 AM 654 [plugin] {
  "full": 0,
  "loadtime": 1393335110,
  "dataversion": 335142810,
  "scenes": [
    {
      "id": "62",
      "room": "3",
      "active": "0"
    },
    {
      "id": "61",
      "room": "3",
      "active": "1"
    }
  ],
  "devices": [
    {
      "altid": "22",
      "id": "219",
      "subcategory": "0",
      "room": "3",
      "parent": "202",
      "status": "1",
      "level": "40"
    },
    {
      "altid": "54",
      "id": "341",
      "subcategory": "3",
      "room": "3",
      "parent": "1",
      "batterylevel": "100",
      "status": "0",
      "temperature": "77",
      "armed": "1",
      "light": "22",
      "state": "-1",
      "comment": "",
      "tripped": "1",
      "lasttrip": "1393354147"
    },
    {
      "altid": "e3",
      "id": "343",
      "subcategory": "0",
      "room": "3",
      "parent": "341",
      "armed": "0",
      "light": "22",
      "tripped": "1",
      "lasttrip": "1393354147"
    },
    {
      "altid": "e1",
      "id": "342",
      "subcategory": "0",
      "room": "3",
      "parent": "341",
      "armed": "0",
      "temperature": "77",
      "tripped": "1",
      "lasttrip": "1393354147"
    },
    {
      "altid": "e3",
      "id": "346",
      "subcategory": "0",
      "room": "12",
      "parent": "344",
      "armed": "0",
      "light": "35",
      "tripped": "1",
      "lasttrip": "1393354150"
    },
    {
      "altid": "55",
      "id": "344",
      "subcategory": "3",
      "room": "12",
      "parent": "1",
      "batterylevel": "100",
      "status": "0",
      "temperature": "75",
      "armed": "1",
      "light": "35",
      "state": "-1",
      "comment": "",
      "tripped": "1",
      "lasttrip": "1393354150"
    },
    {
      "altid": "e1",
      "id": "345",
      "subcategory": "0",
      "room": "12",
      "parent": "344",
      "armed": "0",
      "temperature": "75",
      "tripped": "1",
      "lasttrip": "1393354150"
    },
    {
      "altid": "",
      "id": "302",
      "subcategory": "-1",
      "room": "12",
      "parent": "0",
      "watch": "6",
      "status": "1",
      "label": "6/6"
    }
  ]
}
2/25/2014 10:48:33 AM 654 [vcevent] Vera.Device.219.On

2/25/2014 10:48:33 AM 654 [vcevent] Vera.Device.341.On

2/25/2014 10:48:33 AM 654 [plugin] Vera: System.NullReferenceException: Object reference not set to an instance of an object.
   at vcPlugin.Vera.pollingLoop()
2/25/2014 10:48:33 AM 654 [plugin] Vera: System.NullReferenceException: Object reference not set to an instance of an object.
   at vcPlugin.Vera.pollingLoop()
2/25/2014 10:48:33 AM 654 [plugin] Vera: System.NullReferenceException: Object reference not set to an instance of an object.
   at vcPlugin.Vera.pollingLoop()
2/25/2014 10:48:33 AM 654 [vcevent] Vera.Device.344.On

2/25/2014 10:48:33 AM 654 [plugin] Vera: System.NullReferenceException: Object reference not set to an instance of an object.
   at vcPlugin.Vera.pollingLoop()
2/25/2014 10:48:33 AM 654 [vcevent] Vera.Scene.62.Inactive

2/25/2014 10:48:33 AM 654 [vcevent] Vera.Scene.61.Active


nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Errors from Vera Plugin
« Reply #1 on: February 25, 2014, 03:51:18 PM »
Caveat emptor -- I have no idea if this is the case, but since James will not have time for quite a while to chime in, let me propose:

Given your extensive list of devices, I'm wondering whether you might need to add some categories (http://wiki.micasaverde.com/index.php/Luup_UPNP_Files#Device_Categories) in the Vera plugin settings to this list:



My theory is that perhaps your sensors aren't currently listed in the existing categories. But I believe it is possible to edit the list of event categories according to your needs.

This is actually a new feature in the very recently updated plugin, and James hasn't had time to share the details or document the changes yet.  :bonk He will correct me if I'm wrong, eventually, but it's something to look into while you're waiting for the official word.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Errors from Vera Plugin
« Reply #2 on: February 25, 2014, 04:30:38 PM »
... You can also switch your VC error logging from "Normal/Error" to "Verbose" for a few minutes and then take another look at your VC log.

Looking at my own log, it looks like Verbose captures the device categories VC is recognizing as stuff is getting polled.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Errors from Vera Plugin
« Reply #3 on: February 25, 2014, 05:23:55 PM »
By the way, I just realized that you may not even be using the latest release of VC (v. 1.188), and therefore might not have the above Vera plugin options.

I've been beta testing this for a while so I lost track.

If you want to try the above, upgrading is painless. It's available on the downloads page: http://voxcommando.com/downloads.asp

http://voxcommando.com/mediawiki/index.php?title=How_to_upgrade/update_VoxCommando
« Last Edit: February 25, 2014, 05:46:54 PM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

AgileHumor

  • Contributor
  • ***
  • Posts: 62
  • Karma: 3
    • View Profile
Re: Errors from Vera Plugin
« Reply #4 on: February 25, 2014, 08:03:37 PM »
So, I deleted my Vera maps as I wasn't using them (or so I thought).  I edited most of the phrases in the XML source so I thought it was redundant.

I'll regenerate them.

May I ask, except for using the map to replace with text variables in the Actions variable section (vs device id # which I use)...where else are maps used?

Minor Notes on Vera XML export Plugin (don't know if I need another topic):
* I would add all the "Dimmable" devices to the "Switch" category when generating the XML from Vera....and have it in both locations.  I had to copy it over manually...but some users may be confused.  If you can "Dim" it, you should also be able to "Switch, Turn Off" too.
* I had to create the WindowCovering xml manually.  Should be rare enough that's manual workaround will work for users...but just sharing my experiences.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Errors from Vera Plugin
« Reply #5 on: February 25, 2014, 08:25:46 PM »
A map is a good place to store data.  It is essentially a database table with two columns.  It should be quite fast to read and write to.  If you store a variable in VC the value will be lost when VC restarts.  If you store it in a map it is safe between restarts since it is stored in a file and not just in memory.

You use maps any time you want to associate a key and a value.  It is similar to a payloadXML except that that is gears more towards payloads for voice commands, while maps are easier to work with in a macro where you want to do multiple things, not necessarily specified by a payload, and you want to work with the names of things, which mean something to you, instead of working with ids, or longs strings such as IR codes.

Yes, I agree switches should include dimmables.  Thanks.
I will see about the window coverings.  Should not be too difficult to add.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Errors from Vera Plugin
« Reply #6 on: February 25, 2014, 08:36:35 PM »
Just to clarify: the screenshot I show up above is not a map, but one of the advanced settings within the Vera plugin version 0.2.0.0, which was released with VC version 1.1.8.8.

It is a different egg, though it looks similar because it's also a table.

I suspect you're using the previous version of VC and the Vera plugin, hence the confusion.
« Last Edit: February 25, 2014, 08:40:44 PM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Errors from Vera Plugin
« Reply #7 on: February 25, 2014, 08:42:20 PM »
Re: uses of maps, take your pick:

Learning IR codes w/ USB UIRT:

Learning IR codes w/ GC iTach:


Intro to maps:

TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Errors from Vera Plugin
« Reply #8 on: February 25, 2014, 08:43:16 PM »
Close VC and then replace the files in vc\plugins\vera with the files in the attached archive.  Restart VC.

Then please let me know if the gen xml works for switches and blinds as expected.
« Last Edit: February 25, 2014, 10:27:26 PM by jitterjames »

AgileHumor

  • Contributor
  • ***
  • Posts: 62
  • Karma: 3
    • View Profile
Re: Errors from Vera Plugin
« Reply #9 on: February 25, 2014, 09:51:20 PM »
Awesome, I'll update VC sometime tomorrow. 

Having some guests over tonight and don't want to change anything.

AgileHumor

  • Contributor
  • ***
  • Posts: 62
  • Karma: 3
    • View Profile
Re: Errors from Vera Plugin
« Reply #10 on: February 28, 2014, 10:29:42 PM »
New DLL worked perfectly with switches and blinds.  You rock!