I created four new virtual devices and eight scenes to control them. All were working correctly. I then moved my four virtual devices and scenes from The device room, into the rooms that they were created for and now none of the devices work with the scenes.
Vera 2 - version: 1.1.1245
<?xml version="1.0"?>
1
0
urn:schemas-upnp-org:device:BinaryLight:1
D_BinaryLight1.json
StateDevice
edmidor
http://www.edmidor.com
StateDevice
StateDevice
1.0
cr
0
uuid:upnp-edmidor-1_0-0000000001020
000001020
urn:schemas-upnp-org:service:SwitchPower:1
urn:upnp-org:serviceId:SwitchPower1
/upnp/control/SwitchPower1
/upnp/event/SwitchPower1
S_SwitchPower1.xml
I_StateDevice.xml
-------------------------------------
I_StateDevice.xml
<?xml version="1.0" ?>
-
function init(lul_device) local status = luup.variable_get("urn:upnp-org:serviceId:SwitchPower1","Status", lul_device) if status == nil then luup.variable_set("urn:upnp-org:serviceId:SwitchPower1","Status",0,lul_device) end end
init
-
-
urn:upnp-org:serviceId:SwitchPower1
SetTarget
local lul_reverse = luup.variable_get("urn:micasaverde-com:serviceId:HaDevice1","ReverseOnOff",lul_device) if( lul_settings.newTargetValue=="1" or (lul_settings.newTargetValue=="0" and lul_reverse=="1") ) then luup.variable_set("urn:upnp-org:serviceId:SwitchPower1","Status",1,lul_device) else luup.variable_set("urn:upnp-org:serviceId:SwitchPower1","Status",0,lul_device) end
state-toggle
OFF
----------
I have deleted the virtual devices and re-created them & I have created new scenes but they still will not work, even with the new scenes. Various other devices in the new scenes work and I can manually turn the virtual devices on & off, but cannot associate them with a scene.
LuuP code in the room scenes work, if I manually turn the virtual devices on/off.
I even re-powered Vera off and on with no luck.
[quote author=JOD link=topic=4724.msg25904#msg25904 date=1289076722]
I read an old post from JOD and he said he had the same problem and no one replyed to his questions, so,
is there an answer?
You should check the logs to see what are the executed commands. A scene (scene #1) with a command to turn on a light (device #27) looks like this:
08 02/22/12 7:32:59.517 JobHandler_LuaUPnP::HandleActionRequest device: 0 service: urn:micasaverde-com:serviceId:HomeAutomationGateway1 action: RunScene <0x2dcb5680>
08 02/22/12 7:32:59.518 JobHandler_LuaUPnP::HandleActionRequest argument SceneNum=1 <0x2dcb5680>
08 02/22/12 7:32:59.518 Scene::RunScene running 1 New scene <0x2dcb5680>
08 02/22/12 7:32:59.519 JobHandler_LuaUPnP::HandleActionRequest device: 27 service: urn:upnp-org:serviceId:SwitchPower1 action: SetTarget <0x2dcb5680>
08 02/22/12 7:32:59.519 JobHandler_LuaUPnP::HandleActionRequest argument newTargetValue=1 <0x2dcb5680>
[quote=“mcvflorin, post:2, topic:170609”]You should check the logs to see what are the executed commands. A scene (scene #1) with a command to turn on a light (device #27) looks like this:
08 02/22/12 7:32:59.517 JobHandler_LuaUPnP::HandleActionRequest device: 0 service: urn:micasaverde-com:serviceId:HomeAutomationGateway1 action: RunScene <0x2dcb5680>
08 02/22/12 7:32:59.518 JobHandler_LuaUPnP::HandleActionRequest argument SceneNum=1 <0x2dcb5680>
08 02/22/12 7:32:59.518 Scene::RunScene running 1 New scene <0x2dcb5680>
08 02/22/12 7:32:59.519 JobHandler_LuaUPnP::HandleActionRequest device: 27 service: urn:upnp-org:serviceId:SwitchPower1 action: SetTarget <0x2dcb5680>
08 02/22/12 7:32:59.519 JobHandler_LuaUPnP::HandleActionRequest argument newTargetValue=1 <0x2dcb5680>
[/quote]
Thanks for the tip, I checked my logs (had to learn how first !) and I didn’t see anything that could help me.
I turned in a support request and after 2 1/2 weeks, I noticed that my virtual switches were working again - GREAT!
I don’t know what the problem was, seeing as how I couldn’t find it myself and MIOS hasn’t sent me any news on it.
I did notice something else that was going on when my virtual switches weren’t working, this link was letting me access my dashboard - WITHOUT - logging in with a password, http://cp.mios.com/mios_unit.php?PK_AccessPoint=[i][/i]&ip=xxx.xxx.x.x
Then, after my virtual switch problem was fixed, the link would no longer let me go to the dashboard. I had to log on the regular way, MiOS
Thanks to those that responded, Rastus