VoxCommando
Help and Support (Using VoxCommando) => VoxCommando Basics and Core Features => Topic started by: IKROWNI on September 10, 2016, 06:13:13 PM
-
I just created a 3d model of my home using a program called "sweet home 3d" I set the image of my house as the desktop background and now i would like to make some widgets using rainmeter and voxcommando to get like a live status of each device in my house.
(https://voxcommando.com/forum/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FEKfJnqd.jpg&hash=750938182f61d88531e2de3f54d6be7d101e9065)
In the image above i have the house set as desktop and on the right i have some status widgets i have made for the devices in the house using rainmeters webparsing plugin.
The problem is that these widgets will not autoupdate. So i need some way for my vera to send updates to voxcommando so that the widget will update.
here is an xml of one of the widgets
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.2.3-->
<command id="563" name="Living Room" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>Vera.Get.Status</cmdType>
<params>
<param>9</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<if ifBlockDisabled="False" ifNot="False">
<ifType>(A)==(B)</ifType>
<ifParams>{LastResult}&&1</ifParams>
<then>
<action>
<cmdType>Results.Replace</cmdType>
<params>
<param>1</param>
<param>On</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else>
<action>
<cmdType>Results.Replace</cmdType>
<params>
<param>0</param>
<param>Off</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</else>
</if>
<action>
<cmdType>File.Write</cmdType>
<params>
<param>C:\Users\theki\Documents\Rainmeter\Skins\Home Automation\Lights\Living Room\VoxLivingRoomLights.txt</param>
<param><BEGIN> {LastResult} <END></param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</command>
Is what im trying to achieve possible?
-
If I'm understanding the problem correctly, it sounds like you'd want to use events that Vera generates when devices change their status to trigger widget commands in VC.
Those events should already be appearing in the VC history window if you have the "Generate Events" box checked in the Vera plugin settings.
Note as well that the Vera events generally include payloads that include "on" or "off" etc. so you may not need to do the kind of 1 == "on" evaluation that you're currently doing manually in your macro.
If you roll over an event when it appears in the history window, you'll see what the payloads are.
-
Those events should already be appearing in the VC history window if you have the "Generate Events" box checked in the Vera plugin settings.
Is this supposed to also generate an event if the device was shut off through a different program? Like if i use my phone to turn off a device with the vera app will this generate an event in voxcommando?
-
Yes of course.
-
huh i must have broke something along the way then. I just used the vera android app to turn off my dining room lights after clearing the history and nothing popped up at all.
-
I guess you must have. Are you getting any Vera events?
Make sure "Show All Events" is checked in the VC dropdown "Options" menu.
In the Vera plugin you must click "Save Options" after enabling "Generate Events".
Did you ever use the "Edit Event Variables" in the Vera plugin?
-
I guess you must have. Are you getting any Vera events?
Make sure "Show All Events" is checked in the VC dropdown "Options" menu.
In the Vera plugin you must click "Save Options" after enabling "Generate Events".
Did you ever use the "Edit Event Variables" in the Vera plugin?
Only time i ever remember getting vera events showing in the history panel is when im firing them from within vox
Show all events is checked in the options drop down
generate events is also checked and saved
ive never looked at the "edit event variables" at all.
I honestly never even knew that vox could do this. I just figured it was a limitation on the veras side preventing it so never even really asked about it. Now i feel pretty dumb considering all the work arounds ive tried to go through because of this lol.
Should i just try a fresh install and move all my stuff over to the new install? Or is there a way i can fix this without doing that?
-
What kind of Vera do you have?
I would do a fresh blank install to a new folder first and just enable and set up the Vera plugin to see if it works. If it doesn't work then let me know. If it does then we can try to figure out what you did to break it in your other setup.
-
What kind of Vera do you have?
I would do a fresh blank install to a new folder first and just enable and set up the Vera plugin to see if it works. If it doesn't work then let me know. If it does then we can try to figure out what you did to break it in your other setup.
I have a vera lite
Did a fresh install and it is working.
-
In your original setup, try the following:
close VC
go to the VC\plugins\Vera folder and delete the file "EventSettings.json"
start VC again and see if it works.
-
Before doing that i tried Just turning off the option "generate events" saved it and then turned the option back on and saved again and now it looks like its working. If this happens again ill try the other option you gave me. Thanks guys