Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
device connected state in an IV
I am trying to set up an interface that has to be written for a conference room

What I want to do is hide a widget if the device it controls is not connected. I can only think of using states to achieve this. Unfortunately there is no field that gives you a connected or not connected field

Any clues as to how I could achieve this.

If you use a checkbox widget it will not be visible if the field/variable it belongs to is in error or doesn't exist.
It's the early bird that catches the worm, but it's the second mouse that gets the cheese...
I've been seriously thinking about a magic driver that each CQCServer provides, which has an on/offline boolean field for each driver loaded in that CQCServer. That would be a very useful thing. The only issue is how error prone it would be to fake such a driver into all of the interfaces that currently interact with drivers.
Dean Roddey
Explorans limites defectum
I did it with a scheduled task running every minute to check the driver (If DriverIsReady Then) and the set a field in a variable driver and it works OK - not that I like the concept of running a scheduled task every minute for something like this.

The only problem is drivers that are deadifoff such as the universal LG driver, which is always connected, regardless of the state of the device.

I will look into the checkbox, - I am loading an overlay specific to the device from the button (command widget) and I want the button to dissapear when the device is off-line for whatever reason (someone turned it off). I will see how it goes.

If you just need to do it when you load an overlay, then you can just check in the OnLoad and see if the driver is ready and hide things at that point. The hard part (currently) is just doing it at any time that the driver may go offline.
Dean Roddey
Explorans limites defectum
the buttons are not in an overlay, they load an overlay so the OnLoad will not work, but thanks


Possibly Related Threads…
Thread Author Replies Views Last Post
  Simple HTTP Call to Device from CQC mjwhite214 19 7,780 01-23-2020, 03:35 PM
Last Post: simplextech
  Device varible in email greyjeep 3 2,481 01-09-2018, 05:21 PM
Last Post: Dean Roddey
  Harmony Hub Device Control jkmonroe 6 5,168 07-03-2016, 02:36 PM
Last Post: potts.mike
  zwave device configuration jkmonroe 75 29,577 12-31-2015, 05:21 PM
Last Post: Deane Johnson
  What's the state of mini-computers? - December 2015 sic0048 7 3,477 12-25-2015, 05:13 AM
Last Post: wuench
  Eventghost able to Ping device out of network EST 10 6,020 09-24-2015, 05:18 PM
Last Post: EST
  Whats the State of Virtualized Machines & CQC - December 2014 sic0048 6 3,244 12-11-2014, 11:59 PM
Last Post: znelbok
  Help with Omnistat2 Connected to ELKM1 timaelabu 6 3,237 10-24-2014, 08:10 PM
Last Post: timaelabu
  Android based device Voice control of CQC How To Discussion Thread batwater 5 4,875 12-07-2013, 10:01 PM
Last Post: RichardU
  CQC & Event Ghost Read current state jdmevo123 3 2,981 12-05-2013, 06:49 PM
Last Post: wuench

Forum Jump:

Users browsing this thread: 1 Guest(s)