Welcome, Guest
You have to register before you can post on our site.



Search Forums

(Advanced Search)

Forum Statistics
» Members: 1,766
» Latest member: ehetakux
» Forum threads: 10,749
» Forum posts: 74,284

Full Statistics

Online Users
There are currently 122 online users.
» 1 Member(s) | 121 Guest(s)

Latest Threads
Values Tab - Regular Expr...
Forum: CQC Support
Last Post: Dean Roddey
40 minutes ago
» Replies: 17
» Views: 2,021
Early MQTT support
Forum: CQC Support
Last Post: Dean Roddey
2 hours ago
» Replies: 18
» Views: 405
Echo Set-up Woes
Forum: CQC Support
Last Post: dlmorgan999
9 hours ago
» Replies: 2
» Views: 36
Templates from 5.2.10 to ...
Forum: CQC Support
Last Post: George M
03-22-2019, 04:04 PM
» Replies: 5
» Views: 42
How do I do this?
Forum: Installation/Configuration
Last Post: Dean Roddey
03-22-2019, 02:43 PM
» Replies: 139
» Views: 4,815
Variable Error in Schedul...
Forum: CQC Support
Last Post: Dean Roddey
03-22-2019, 09:30 AM
» Replies: 3
» Views: 46
A failure occurred while ...
Forum: CQC Support
Last Post: Shaky
03-21-2019, 07:54 PM
» Replies: 3
» Views: 51
Official 5.4 Beta Discuss...
Forum: Beta Discussions
Last Post: Dean Roddey
03-21-2019, 07:06 PM
» Replies: 362
» Views: 27,069
Official 5.4 Beta Release...
Forum: Beta Discussions
Last Post: Dean Roddey
03-20-2019, 02:43 PM
» Replies: 38
» Views: 4,138
Problem with B&K Driver /...
Forum: CQC Support
Last Post: kblagron
03-19-2019, 12:00 PM
» Replies: 9
» Views: 191

  Writing to fields in Err state
Posted by: rbroders - 01-29-2019, 10:18 PM - Forum: Beta Discussions - Replies (3)

Okay, so I'm fixing my drivers to either provide values or put fields in err state before connect returns.  One thing I have noticed is that DriverBase blocks field writes before calling the driver implementation when the field is in err state.

CQCKit, CQCDriver_DriverBase.cpp.7089, Failed/Not Ready, Error: 2017/0/0

Seems to me that in some cases, the field may not have a value right now, but it should still be writeable.  In my case I asked the lighting controller the state of the light and it said "I dunno", but if I wriet "turn it off", the write will succeed (sometimes), and the field will get a value of "off".

Currently I don't get the chance to push a write at a recalcitrant light because DriverBase eats the attempt before it gets to me.

Can a WriteOnly field be in err state?  I guess I have a Read/Write field and I want it to be in ReadErr/WriteOk state.  

Hmmm.  -- Bob

Print this item

  SetAllErrStates messes up $ fields
Posted by: rbroders - 01-25-2019, 03:19 PM - Forum: Beta Discussions - Replies (3)

I modified my Click driver to populate fields in Connect, but it is possible that some fields might fail (i.e. Text values fail but Inputs worked ok).  As long as some fields are retrieved I return Success.  Before getting the fields, I call SetAllErrStates to make sure the failed fields end up in Err State.

This has the annoying side effect of putting all of the $ fields in Err state as well.  $BadMsgs for instance is currently displaying ??? instead of 0.  Even $LoadTime is ???.  $Verbosity starts ???, but you can fix it by changing the Verbosity.


(this is in 933)

Print this item

  Nest Token
Posted by: keepersg - 01-23-2019, 10:03 PM - Forum: Installation/Configuration - Replies (2)

Have just upgraded after a long absence and am now on 5.3.931.  Following directions for installation of the Nest (cloud) driver but I cannot get CQCIdGen to get a token for installation.  I've generated a valid PIN on the nest website as instructed and entered it as CQCIdGen NestToken  [********] but all I get is the following error:  authorization code not found.

Any help appreciated.

Print this item

Posted by: batwater - 01-21-2019, 06:42 AM - Forum: CQC Support - Replies (4)

Hey Dean, you might want to update your announcement from Nov about Sonos breaking the driver, it's working again and Sonos is still one of the best whole house audio solutions out there not to mention that they continue to introduce new products...

Print this item

  Repository manager cant add collection
Posted by: rbroders - 01-17-2019, 01:04 PM - Forum: Beta Discussions - Replies (5)

In 931 if you try to add collection manually you get Unhandled Exception in GUI Thread: Zero is not a valid max size for a collection.  The Edit Collection dialog appears, but none of the buttons work.

This is for repository type Videos.


Print this item

  Latching triggers skip first event
Posted by: rbroders - 01-13-2019, 09:05 PM - Forum: Beta Discussions - Replies (23)

Okay Dean, this one took a while to track down, but I'm pretty sure this is what is happening. (non-serialized event execution probably not causing my mystery problem)

When Bidirectional triggers get started no event is sent for the first threshold crossing.

Here is my test: Field is BedHallWatts Normal value 0.  I create a bidirectional trigger IsGtThan 5 and turn on a lamp.  Value -> 39, but no event is sent!  I shut off lamp.  Value -> 0; event sent.  Thence it works perfectly: event is sent for both on and off transition.

Delete/recreate the trigger or pause resume the driver (or the app shell), and it will again fail to send an event on the first transition.  Ugh.

Note: when I create an unlatched trigger it seems to work fine - i.e. it catches the very first transition from 0 -> 39 and sends an event.  When the lamp power wobbles a bit I get some 38 and 39 events and then it gave me a 10 during shutdown and no event when the lamp hit zero (as you would expect since 0 NOT IsGtThan 5).

Note2: I tested this with Unidirectional triggers and the behavior is identical.  The first transition does not send an event, but subsequent transitions do.

Thanks -- Bob

Print this item

  Trigger Troubles
Posted by: rbroders - 01-12-2019, 02:52 PM - Forum: Beta Discussions - Replies (4)

I suspect your type safe enum conversion has messed up triggers a bit.

I have several triggers that are supposed to be on IsGtThan, but now appear to be IsFalse.

The combo box contains the following:
Regular Expr
more stuff

I think the second Unused is messing things up.

I suspect fixing all my triggers will cause them all to break again when you fix your code, so I will revert to old version for now...


Print this item

  5.3.928 problem
Posted by: rbroders - 01-11-2019, 04:52 PM - Forum: Beta Discussions - Replies (4)

Hmm, the eventsrvr does not seem happy getting the runtime values anymore

01/11 16:47:37-HARTFORD, CQCEventSrv, EvSrvWorkerThread1
    CQCKit, CQCKit_ThisFacility.cpp.657, Failed/Data Format, Error: 6257/0/0
    Token expansion failed during command processing. Reason: Runtime value TEvRTV:SrcField was not available for replacement
      <CQCEventSrv> CQCEventSrv_ThisFacility.cpp - 594
      <CQCEventSrv> CQCEventSrv_ThisFacility.cpp - 369
01/11 16:47:37-HARTFORD, CQCEventSrv, EvSrvWorkerThread1
    CQCEventSrv, CQCEventSrv_ThisFacility.cpp.375, Status/App Status
    Scheduled/Triggered event '/User/RunTimers2' failed

RunTimers2 is only one line:

Print this item

  Admin interface and CML IDE interface issue
Posted by: lleo - 01-11-2019, 07:37 AM - Forum: CQC Support - Replies (5)

I have been using the administrative interface and the CML driver harness now sufficiently long for this issue to reach the annoyance level for me to post here...

Say I have a driver opened for development in the CML Driver IDE, with the cursors in the main code window. The cursor is on the name of a method. I can use the keyboard to select text, by holding down the Shift key and moving the cursor, and I can then cut/copy the selected text to the clipboard using standard key combination, such as CTRL+X or CTRL+C. Then move the cursor away, to dismiss the selected text...

If then I was to search for the copied text, I can press CTRL+F which will bring up, activate the search/replace tab on the bottom of the IDE, and place the cursor into the "search criteria" drop-down field.

And this is where, I think there is a bug: if I press CTRL+V to paste the text from my keyboard where the cursor is active and blinking, it does not do it, it is pasted into the main code window, where the cursors is not even active. The only way to paste text into the search field is by grabbing the mouse, right click there, and few more clicks later, find and click the paste command.

This behavior is not standard, at least by my account, and despite of best effort to remember, I keep pasting bogus text where is not needed, and than chasing tale to find out why something is not working...
Similar behavior is seen in the administrative interface, im the "Customize/Macros/User/CQC/Drivers" section

Dean can you please check?

Print this item

  What would the proper trigger to be for a time or a X min before sundown?
Posted by: ghurty - 01-10-2019, 05:48 AM - Forum: CQC Support - Replies (1)

With the Actions, I can set for something to check if it before sunrise or for example a set time. So I can easily write IF its sunday AND its an hour before sunrise then do X. But what would the proper trigger for that be? And is it possible to have the same trigger for two sets of time? For example, I want one action to be an hour before sunrise on Sunday and at 2PM on a Tuesday? Or is it just better to keep it on two separate triggers?

Thank you

Print this item