How to find what is turning on a device

I unfortunately have mistakenly have made a change that is turning on a device. Is there a way to find what scenes or other methods are triggering a device to turn on?
I’d like to look a device and find “what” has turned it on last.

Thank you

If its happening somewhat often you might be able to pick it up by looking at the log in your web browser.
VERA_IP/cgi-bin/cmh/log.sh?

Change VERA_IP to your units IP and search for you Device number using your browsers find function (CTRL+F)

If there is a Scene triggering your light you should be able see the scene trigger a couple of lines before the device changes its Status.

A Scene will appear in the log as something akin to this
JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1 <0x725a6520>
08 12/10/19 13:25:25.811 JobHandler_LuaUPnP::HandleActionRequest argument action=RunScene <0x725a6520>
08 12/10/19 13:25:25.811 JobHandler_LuaUPnP::HandleActionRequest argument SceneNum=38 <0x725a6520>
08 12/10/19 13:25:25.811 JobHandler_LuaUPnP::HandleActionRequest argument rand=0.28567298757616166 <0x725a6520>
08 12/10/19 13:25:25.811 Scene::RunScene running 38 CooLink Sync<0x725a6520>

There is probably a simpler method but that is generally how i check my own system.

Hi @TechPigeon, is the url you gave in the first paragraph of your post complete ?

Where I have come across this way of displaying the log in the past it has always been suffixed with “Device=LuaUPnP”, i.e.
VERA_IP/cgi-bin/cmh/log.sh?Device=LuaUPnP

You could also install AltUI and run a search of your logs. I use AltiUI almost exclusively now as the log search features are really powerful and you do not need any knowledge of command line to use it.

1 Like