New virtual devices turning off instead of on at on command.

Posted on
Sat Aug 19, 2017 7:03 pm
forestfield offline
Posts: 37
Joined: Dec 29, 2014
Location: West Sussex

New virtual devices turning off instead of on at on command.

I've just created a new virtual device and the devices inside it are turning off when sent an on command!

It's simplified it to a 'Device Group' with one light in it, and it's set to

Device goes on when any device is on
Dimmers are on when brightness > 0
On/Of f devices are On when 'On'

Extract from log for this virtual device with logging on...
Code: Select all
2017-08-20 01:48:13.121   Application   Stopped interface "Virtual Devices 2.0.4"
2017-08-20 01:48:14.624   Application   Starting interface "Virtual Devices 2.0.4" (pid 2829)
2017-08-20 01:48:15.288   Application   Started interface "Virtual Devices 2.0.4"
2017-08-20 01:48:20.291   Virtual Devices   Turning on debug logging
2017-08-20 01:48:32.073   randomHue2.py   Looping...
2017-08-20 01:48:43.414   Virtual Devices   sent "All Lights" on
2017-08-20 01:48:43.424   Virtual Devices Debug   deviceUpdated called for: GR - 1 which is in the activeDeviceMap
2017-08-20 01:48:43.426   Virtual Devices Debug   deviceUpdated called for: GR - 1 which is in the deviceSceneMap
2017-08-20 01:48:43.430   Virtual Devices Debug   Calling updateScene for device: GR - 1
2017-08-20 01:48:43.430   Virtual Devices Debug   Performing device group update for "All Lights"
2017-08-20 01:48:43.433   Sent Hue Lights   "GR - 1" off at ramp rate 0.0 sec.
2017-08-20 01:48:43.436   Virtual Devices Debug   Calling updateScene for device: GR - 1
2017-08-20 01:48:43.437   Virtual Devices Debug   Performing device group update for "Ceiling Lights"
2017-08-20 01:48:43.444   Virtual Devices Debug   Calling updateScene for device: GR - 1
2017-08-20 01:48:43.444   Virtual Devices Debug   Performing device group update for "GR - All Lights"
2017-08-20 01:48:43.449   Virtual Devices Debug   Calling updateScene for device: GR - 1
2017-08-20 01:48:43.450   Virtual Devices Debug   Performing device group update for "GR - All Lights copy"
2017-08-20 01:48:43.455   Virtual Devices Debug   Calling updateScene for device: GR - 1
2017-08-20 01:48:43.456   Virtual Devices Debug   Performing device group update for "GR - Main Light"
2017-08-20 01:49:13.794   Z-Wave   received "Hallway - Luminance" sensor update to 0 lux
2017-08-20 01:49:32.770   randomHue2.py   Looping...
2017-08-20 01:50:20.725   Virtual Devices Debug   deviceUpdated called for: Lobby - Door which is in the activeDeviceMap
2017-08-20 01:50:20.725   Virtual Devices Debug   deviceUpdated called for: Lobby - Door which is in the deviceSceneMap
2017-08-20 01:50:20.728   Virtual Devices Debug   Calling updateScene for device: Lobby - Door
2017-08-20 01:50:20.728   Virtual Devices Debug   Performing device group update for "Misc - Motion"
2017-08-20 01:50:21.007   Z-Wave   received "022 - Lobby - Door" status update battery level 40%
2017-08-20 01:50:33.677   randomHue2.py   Looping...
2017-08-20 01:50:58.107   Trigger   GR TV Off


The problem persists after a server reboot and also after a 'Interfaces/Virtual Devices/Reload'

Existing virtual devices that were generated in Indigo 6 are OK. I can copy them and they're still OK, but editing the device list in settings breaks the functionality. Not always at the first edit, I've not determined a pattern of breakage here yet!

Posted on
Sun Aug 20, 2017 2:03 am
howartp offline
Posts: 2620
Joined: Jan 09, 2014
Location: West Yorkshire, UK

New virtual devices turning off instead of on at on command.

A virtual device doesn't exactly turn it's members "On" or "Off", it turns them to "A saved state" or "Off" - which confuses new users regularly.

When you create/save a virtual device group, you have to have the devices within it set to the preset state you want saving.

Get them all set to how you want (which may well be on) then edit the virtual device and hit the button/option which says something like "update saved states".

Then save your device.


Sent from my iPhone using Tapatalk Pro

Posted on
Sun Aug 20, 2017 11:06 am
forestfield offline
Posts: 37
Joined: Dec 29, 2014
Location: West Sussex

Re: New virtual devices turning off instead of on at on comm

Has that changed? The virtual devices I created with Indigo 6 have their saved settings as 0 and they work!

My virtual device 'lava'; created ages (a year or 2 ago) with Indigo 6 has saved state as off as in the attachment below.

and here's what happens when I turn to on

Code: Select all
2017-08-20 17:44:20.445   Virtual Devices   sent "LR - Lava" on
2017-08-20 17:44:22.568   Z-Wave   sent "LR - Lava Lamp Pink" on
2017-08-20 17:44:22.893   Z-Wave   sent "LR - Lava Lamp Turquoise" on


But if I create a new Virtual device with the same settings, then it works as you describe.

Code: Select all
2017-08-20 17:59:10.998 Virtual Devices sent "Lava 2" on
2017-08-20 17:59:11.155 Z-Wave  sent "LR - Lava Lamp Pink" on
2017-08-20 17:59:11.243 Z-Wave  sent "LR - Lava Lamp Turquoise" on


Colour me confused!
I'll take backup of my database then go through all my virtual devices re-setting the saved state.

Cheers
-- Paul --
Attachments
Screen Shot 2017-08-20 at 17.43.07.png
Virtual group with saved state of off
Screen Shot 2017-08-20 at 17.43.07.png (101.44 KiB) Viewed 260 times

Posted on
Sun Aug 20, 2017 11:18 am
howartp offline
Posts: 2620
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: New virtual devices turning off instead of on at on comm

Nope, that's how it's always worked :-)


Sent from my iPhone using Tapatalk Pro

Posted on
Sun Aug 20, 2017 2:52 pm
forestfield offline
Posts: 37
Joined: Dec 29, 2014
Location: West Sussex

Re: New virtual devices turning off instead of on at on comm

Then why does my example above work? It turns on the lamps when they're saved state is off... and I've used it and similar virtual devices under Indigo 6 for a couple of years. Still looks to me like the behaviour has changed between 6 & 7.

Posted on
Sun Aug 20, 2017 3:02 pm
howartp offline
Posts: 2620
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: New virtual devices turning off instead of on at on comm

I don't think it's possible to see the saved state of a device - from memory the state you're seeing in your screenshots is the live state so you know what you're setting, not what it is currently saved as.


Sent from my iPhone using Tapatalk Pro

Posted on
Sun Aug 20, 2017 3:24 pm
jay (support) offline
Site Admin
User avatar
Posts: 13043
Joined: Mar 19, 2008
Location: Austin, Texas

Re: New virtual devices turning off instead of on at on comm

forestfield wrote:
Then why does my example above work? It turns on the lamps when they're saved state is off... and I've used it and similar virtual devices under Indigo 6 for a couple of years. Still looks to me like the behaviour has changed between 6 & 7.


What shows in parenthesis is the current state of the device, not the saved state.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Sun Aug 20, 2017 4:31 pm
forestfield offline
Posts: 37
Joined: Dec 29, 2014
Location: West Sussex

Re: New virtual devices turning off instead of on at on comm

Aha - that makes sense. Maybe I should't try and diagnose these things at 2 in the morning.

Mind you I've just spent 2 hours trying to debug the audio settings on my experimental raspberry pi 3 mythtv frontend. Went through all the software settings and also wrote a quick test script to test them all.

...... The optical cable to my amp on the video switcher had fallen out

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests