Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CQC & Event Ghost Read current state
#1
Hi All,

I am stuck at the moment with an evenghost issue.

I have installed the plugin and trying to identify how to send the current state of power.

I have setup a macro to read current power state and placed a python command to print the state to verify. This all works.

I then added a CQC action to send power state and put on value 1 to send to CQC.

However this doesnt work as it always sends the on command. How do i send a value to CQC based on the current state? I.e. 1 for on and 0 for off.

Thanks

Dale
Reply
#2
If you are using a User Action event, you would just select SendEvent in EventGhost and fill in something like:

Event Type: Power
Event Data: 1

Then you would create a Triggered Event in CQC use the statement below to pull the data:

Code:
Is User Action Event From <Driver Moniker Name>

Code:

TrigEvent::GetUserActionVals(LVar:EventType, LVar:EventData)
System::LogMsg(Test Action, 0, EventType: %(LVar:EventType) EventData: %(LVar:EventData), Status)
Wuench
My Home Theater/Automation Website

[THREAD=5957]BlueGlass CQC Config[/THREAD]
[THREAD=10624]Wuench's CQC Drivers[/THREAD]
Reply
#3
wuench Wrote:If you are using a User Action event, you would just select SendEvent in EventGhost and fill in something like:

Event Type: Power
Event Data: 1

Then you would create a Triggered Event in CQC use the statement below to pull the data:

Code:
Is User Action Event From <Driver Moniker Name>

Code:

TrigEvent::GetUserActionVals(LVar:EventType, LVar:EventData)
System::LogMsg(Test Action, 0, EventType: %(LVar:EventType) EventData: %(LVar:EventData), Status)

Thanks Wuench, just want to confirm, how do i setup the above code in a triggered event?
Reply
#4
Open the CQC Admin Interface
Select Managed Scheduled/Triggered Events
Select the Triggered Events Tab
Click Add New
For first trigger select Is User Action From
Right Click on Device: Field and Select your EventGhost Driver
Fill the in Title (anything you want)
Click Edit Action
Enter the commands
Code:
TrigEvent::GetUserActionVals(LVar:EventType, LVar:EventData)
  System::LogMsg(Test Action, 0, EventType: %(LVar:EventType) EventData: %(LVar:EventData), Status)
Click Save
Click Save

That code just pastes the data into the CQC log, you will need to add whatever commands you want to do something more useful.
Wuench
My Home Theater/Automation Website

[THREAD=5957]BlueGlass CQC Config[/THREAD]
[THREAD=10624]Wuench's CQC Drivers[/THREAD]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  event and subsequent countdown timer question dogman 9 5,609 05-03-2018, 06:36 PM
Last Post: dogman
  Idea for a different kind of event processing mechanism Dean Roddey 0 1,714 03-20-2017, 09:29 AM
Last Post: Dean Roddey
  Best Way to Handle Wait Times within a Triggered Event kblagron 9 5,320 06-25-2016, 06:03 PM
Last Post: Dean Roddey
  What's the state of mini-computers? - December 2015 sic0048 7 3,498 12-25-2015, 05:13 AM
Last Post: wuench
  Thingspeak event monitor potts.mike 5 3,806 05-09-2015, 06:11 PM
Last Post: wuench
  Whats the State of Virtualized Machines & CQC - December 2014 sic0048 6 3,263 12-11-2014, 11:59 PM
Last Post: znelbok
  event scheduler ellisr63 8 4,448 04-11-2014, 02:43 PM
Last Post: ellisr63
  Request for Event Filter George M 1 1,602 01-17-2013, 01:31 PM
Last Post: Dean Roddey
  new widget, scheduled event modifier willplaice 2 2,366 01-14-2013, 01:33 PM
Last Post: willplaice
  ISY99 - Changing an Enumerated Field in a Scheduled Event kblagron 2 2,347 09-20-2012, 09:49 PM
Last Post: kblagron

Forum Jump:


Users browsing this thread: 1 Guest(s)