Jump to content

Event viewer/manual vs program query


ncarney

Recommended Posts

I am a newbie. I was writing some programs for my thermostat today and observing the event log. I noticed some strange behavior which I wanted to validate: when I run a query manually vs. programmatically the event log shows different results.

 

The simple program below is intended to query the thermostat every 15 minutes.

 

If
       From    12:00:00AM
       For      24 hours 

Then
       Repeat Every  15 minutes 
          Set 'Movie thermostat' Query

Else
  - No Actions - (To add one, press 'Action')

The log file below shows what happens when I query the thermostat manually at 15:46:36 vs. run the program at 15:46:44. The query run manually seems to show the climate values returned by the thermostat, whereas the query run programmatically seems to omit the climate values. I don't know if the event log is just supressing the values or if they are not being received.

 

2009/03/01 15:46:36 : [iNST-ACK ] 02 62 11.95.BC 0F 6A 00 06 (00)

2009/03/01 15:46:36 : [iNST-SRX ] 02 50 11.95.BC 0F.45.2A 27 6A 80 (80)

2009/03/01 15:46:36 : [standard-Direct Ack][11.95.BC-->ISY/PLM Group=0] Max Hops=3, Hops Left=1

2009/03/01 15:46:36 : [ 11 95 BC 1] ST 128

2009/03/01 15:46:36 : [iNST-ACK ] 02 62 11.95.BC 0F 6A 20 06 (20)

2009/03/01 15:46:36 : [iNST-SRX ] 02 50 11.95.BC 0F.45.2A 27 6A 82 (82)

2009/03/01 15:46:36 : [standard-Direct Ack][11.95.BC-->ISY/PLM Group=0] Max Hops=3, Hops Left=1

2009/03/01 15:46:36 : [ 11 95 BC 1] CLISP 130

2009/03/01 15:46:36 : [iNST-ACK ] 02 62 11.95.BC 0F 6A 60 06 (60)

2009/03/01 15:46:37 : [iNST-SRX ] 02 50 11.95.BC 0F.45.2A 27 6A 17 (17)

2009/03/01 15:46:37 : [standard-Direct Ack][11.95.BC-->ISY/PLM Group=0] Max Hops=3, Hops Left=1

2009/03/01 15:46:37 : [ 11 95 BC 1] CLIHUM 23

2009/03/01 15:46:37 : [iNST-ACK ] 02 62 11.95.BC 0F 6B 02 06 (02)

2009/03/01 15:46:37 : [iNST-SRX ] 02 50 11.95.BC 0F.45.2A 27 6B 01 (01)

2009/03/01 15:46:37 : [standard-Direct Ack][11.95.BC-->ISY/PLM Group=0] Max Hops=3, Hops Left=1

2009/03/01 15:46:37 : [ 11 95 BC 1] CLIMD 1

2009/03/01 15:46:37 : [iNST-ACK ] 02 62 11.95.BC 0F 6B 12 06 (12)

2009/03/01 15:46:38 : [iNST-SRX ] 02 50 11.95.BC 0F.45.2A 27 6B FF (FF)

2009/03/01 15:46:38 : [standard-Direct Ack][11.95.BC-->ISY/PLM Group=0] Max Hops=3, Hops Left=1

2009/03/01 15:46:38 : [ 11 95 BC 1] CLIFS 255

2009/03/01 15:46:44 : [ Time] 15:47:00 0(0)

2009/03/01 15:46:44 : [iNST-ACK ] 02 62 11.95.BC 0F 6A 00 06 (00)

2009/03/01 15:46:44 : [iNST-SRX ] 02 50 11.95.BC 0F.45.2A 27 6A 80 (80)

2009/03/01 15:46:44 : [standard-Direct Ack][11.95.BC-->ISY/PLM Group=0] Max Hops=3, Hops Left=1

2009/03/01 15:46:44 : [iNST-ACK ] 02 62 11.95.BC 0F 6A 20 06 (20)

2009/03/01 15:46:45 : [iNST-SRX ] 02 50 11.95.BC 0F.45.2A 27 6A 82 (82)

2009/03/01 15:46:45 : [standard-Direct Ack][11.95.BC-->ISY/PLM Group=0] Max Hops=3, Hops Left=1

2009/03/01 15:46:45 : [iNST-ACK ] 02 62 11.95.BC 0F 6A 60 06 (60)

2009/03/01 15:46:45 : [iNST-SRX ] 02 50 11.95.BC 0F.45.2A 27 6A 17 (17)

2009/03/01 15:46:45 : [standard-Direct Ack][11.95.BC-->ISY/PLM Group=0] Max Hops=3, Hops Left=1

2009/03/01 15:46:45 : [iNST-ACK ] 02 62 11.95.BC 0F 6B 02 06 (02)

2009/03/01 15:46:46 : [iNST-SRX ] 02 50 11.95.BC 0F.45.2A 27 6B 01 (01)

2009/03/01 15:46:46 : [standard-Direct Ack][11.95.BC-->ISY/PLM Group=0] Max Hops=3, Hops Left=1

2009/03/01 15:46:46 : [iNST-ACK ] 02 62 11.95.BC 0F 6B 12 06 (12)

2009/03/01 15:46:46 : [iNST-SRX ] 02 50 11.95.BC 0F.45.2A 27 6B FF (FF)

2009/03/01 15:46:46 : [standard-Direct Ack][11.95.BC-->ISY/PLM Group=0] Max Hops=3, Hops Left=1

Link to comment

Hello ncarney,

 

Yes, this is true:

1. When you do a manual query, ISY clears all the previous states and thus, regardless of the change, you will get an event

2. When you do a program query, ISY does not clear the previous states for the device and thus you will only get an event for states that have actually changed from the last time

 

With kind regards,

Michel

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...