Author Topic: Check State of Virtual Switch  (Read 146 times)

Offline shapshere

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
Check State of Virtual Switch
« on: May 18, 2018, 10:37:52 am »
I apologize if this has been asked before, i have searched and searched and can not find an answer to my problem.

I have a schedule that runs at 3:00 am everyday.

I have a virtual switch that i want to trigger an event depending on what position it is in. When the switch is in the "off state" I want my condition to be true. If my virtual switch is in the "on position" I want my condition to be false.

How do I create a something to check the state of the switch and give a true or false condition?

Thank You

Offline cc4005

  • Full Member
  • ***
  • Posts: 104
  • Karma: +6/-0
Re: Check State of Virtual Switch
« Reply #1 on: May 18, 2018, 10:48:35 am »
That would be a Logic Inputs > Device Property.

Offline shapshere

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
Re: Check State of Virtual Switch
« Reply #2 on: May 18, 2018, 11:30:47 am »
thanks cc4005. I done that. But when I look at the Status of everything, I see that my virtual switch has a value of 0, and not true or false? Thoughts?


That would be a Logic Inputs > Device Property.

Offline shapshere

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
Re: Check State of Virtual Switch
« Reply #3 on: May 18, 2018, 12:20:58 pm »
Ah figured it out now! :)

Need to check UI7 status and then I can create my condition.