I have added the files to enable the creation of virtual devices, and would like to create “AWAY” and “HOME” devices so that I could know the “state” of occupancy of the home and make scenes contingent on one or the other.
When I went to create the “AWAY” device, I was presented with a whole bunch of fields with names that didn’t mean anything to me.
Can anyone point me in the right direction as to what to put into each field (if anything) to accomplish this? I know this is a common virtual device to create, so if this info is fully detailed somewhere else, please feel free to direct me there. Everything I have found so far only gets me to the step I am at right now.
[quote=“oTi@, post:2, topic:168404”]Only the following 3 fields need input:
Description:
UpnpDevFilename: D_StateDevice.xml
Room: <whatever ‘room’ you want to put the device in>[/quote]
So I downloaded denix’ StateDevice code and created a virtual device, loading only the three fields above. I get a device with On and Off buttons in the UI; when I click either button I get “Error. Delivery failed.”
To create the virtual device I followed the instruction on the MCV Wiki.
What am I missing?
The documentation for this entire system sucks. Thank god this forum exists or the thing would be unusable.
[quote=“JOD, post:5, topic:168404”][quote=“rogerl, post:4, topic:168404”]What am I missing?[/quote]Sounds like it may be the I_xml
Lets see if we can find the full package.
JOD.[/quote]
FYI, I installed both the D and I xml’s on my Vera, but did not fill in the Implementation field in the virtual device screens (per the instructions above).
BTW, I already had a BinaryLight1.json file on my Vera…the one you sent must have been different/newer. In any case, things appear to be working, so I can get on with what I really wanted this for…
(The first link there for the Virtual StateDevice, currently [298], points to the known-good up-to-date set.)[/quote]
So count me as among those who are bumfoozled by this one. I have installed the D and I files from the zip. I have restarted the LUUP engine many time. Clicking on the GUI buttons for the virtual device doesn’t seem to change the value of the device’s Status variable, just changes the GUI widget–that is, the widget reflects the expected on/off value, but the Status variable doesn’t track. Apparently, buried somewhere in all the threads about this, there’s a hint that you can’t affect the Status this way–you have to use scenes. I have set up scenes that turn this device on and off–is what I need to be doing having the scenes directly set the value of the device’s Status variable?
If so, is there a reason why this “switch” can’t work more like a switch and less like a radio-controlled airplane?
–Richard
Edit: NEVER MIND! The switch works fine, it’s UI4 that is not showing updated state. I have this working to my satisfaction.