Announcement

Collapse
No announcement yet.

String required for upp limit in temp control

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • String required for upp limit in temp control

    HI just a quick query. I am looking to put an off set or band of 1degree into the upper limit of an action based upon a thermostats set point. What string do i add?

    the instructions say

    1+hs.DeviceString("#30")

    but in the example in another page

    1+#30

    At the moment i have an upper and lower set point and am referencing that. but this means i have to chnage both values.

  • #2
    The evaluation is done as a Windows Script Host expression with some preprocessing. I am traveling now so don't have good reference information, but the +#30 is a shorthand notation that gets internally expanded into hs.Device???("#30"). From memory I do not know if ??? is Value or String.

    Usually when dealing with thermostat type entities there is a single setpoint that the user sets and the delta limits are computed from that setpoint. There is a feature provided to setup a setpoint type virtual device with mcsTemperature, but again my memory does not recall the specifics. This means in your limit expressions you would include that device and then remainder of the expression will be some delta to represent the low and high limits.

    Comment


    • #3
      Hi thanks for the reply.

      I am using the thermostat device and currently have to ref two set points to get it to work. I created these set points by adding two thermostats via the add thermostat button in the setup pages.

      One is #30 and the other is #31. These being lower and upper limits.

      I have tried adding the term 1+#30 in the upper limit box in the action section of the event but it just gives me an error.

      Am I missing something?

      Comment


      • #4
        I do not have access to HS until the end of the week to try anything myself. What I can do is look at debug output if you have general debug option selected when the error is produced.

        Comment


        • #5
          Hi, this is what i am getting . Thermostat device is #29

          in the action boxs, upper and lower limit is #29 but in upper limit i have the following text but without the speech marks "1+#29"
          The debug output is as follows when i trigger the action manually.

          20/01/2013 16:52:31 60751.78 | mcsTemperature Debug | Trigger Action
          20/01/2013 16:52:31 60751.79 | mcsTemperature Debug | Expression In=Q2 | Substituted=16 | Result=16
          20/01/2013 16:52:31 60751.79 | mcsTemperature Debug | Expression In=#29 | Substituted=16 | Result=16
          20/01/2013 16:52:31 60751.79 | mcsTemperature | Expression 1+#29/ on line 70 Syntax error
          20/01/2013 16:52:31 60751.79 | mcsTemperature Debug | Expression In=Q2 | Substituted=16 | Result=16
          20/01/2013 16:52:31 60751.79 | mcsTemperature Debug | Expression In=#29 | Substituted=16 | Result=16
          20/01/2013 16:52:31 60751.79 | mcsTemperature | Expression 1+#29/ on line 70 Syntax error

          Comment


          • #6
            Browsing I think I have answered my query. Not tested but I think the command string to add is

            (1+#29),


            With the set point being #29 in this instance.

            Will give a try tomorrow

            Comment


            • #7
              I looked at the source code and the following describes the priority and rules

              1. If a number then used as-is
              2. If leftmost character is a number then evaluate as an script expression
              3. Parse into segments between "+-/*() "
              3a. For each segment evaluate as
              3a.1) number
              3a.2) Device Code and get DeviceString
              3a.2a) If DeviceString empty then get DeviceValue
              3b Reconstruct segments (after substitutions) and operations and evaluate as script expression

              1+#29 will fail because #29 is not a valid expression
              #29+1 should work because it will follow 3a.2 (for #29) + 3a.1 (for 1)
              (1+#29) should work because it is treated as 1 + #29 = 1 + hs.DeviceString("#29")
              1+hs.DeviceString("#29") should work just as the prior one

              Comment


              • #8
                Nice one !! Thanks for your help it is working

                I have purchased the plugin.


                It is now working on two thermostats , on upper day set point temperature and one lower night temperature.

                The chart i have set up shows it working well.
                I am logging the two set points above using the relevant house codes and then monitoring the room temp house code.

                Only query i have now is that i have the following error showing on my home seer log.

                24/01/2013 19:10:26 - mcsTemperature - EvaluateDeviceAction m = 101, i = 0" on line 70 Subscript out of range

                24/01/2013 19:16:13 - mcsTemperature - EvaluateDeviceAction m = 101, i = 0" on line 70 Subscript out of range

                24/01/2013 19:16:44 - mcsTemperature - EvaluateDeviceAction m = 101, i = 0" on line 70 Subscript out of range



                Any ideas on what could mean ?

                Regards

                Comment


                • #9
                  Got another one now....

                  My two no. thermostat devices used to show the icon in the status box. I think it was a giff file as it was animated.

                  For some reason the icon has disapeared and only the value is showing in the status box.

                  Weird.

                  Any ideas?

                  post note.... could it be because i have my themostats set at a value of 17.5 and not 17?

                  Comment


                  • #10
                    The log entry indicates that 101 temperature actions are being monitored which is beyond design limits. I doubt you have that many so for some reason this count is going up. The logic is complex so to get a head start could you enable the debug, restart HS (or mcsTemperature) and collecte data in the file until you get the error message in the log.

                    The graphic issue is the fractional. I likely could change it to use the nearest integer value.

                    Comment


                    • #11
                      Right based on what you said And after having a play. I have deleted devices and also the sensors for the charts. I was using two no thermostats with a delta of 0.5 and also getting the action to switch off at (0.5*#29). The sensors were charting the two set points to show how the control worked and air temp device cycled within the two bands. This worked well for a day or so but then gave me the error above. My thermostats/set point icon is showing again, but I have had to set the thermostat delta to 1 and also the off string to (1+#29)

                      The two set points are also deleted within my chart? I would still like to have 0.5 switch and it would be great to see my upper and lower set points in the chart.
                      Is there a way to map the thermost /set point values to another virtual device and then monitor that in the chart. Ie #29 is changed and then the charts/sensor page monitors say V10?
                      Regards.

                      Comment


                      • #12
                        Sample data from log file.. It is to large to mail 6.7mb
                        but it starts as follows

                        26/01/2013 22:12:02 79922.02 | mcsTemperature Debug | InitIni Database Group DC=Q2, Database=q2, Type=0
                        26/01/2013 22:12:02 79922.02 | mcsTemperature Debug | InitIni Database Dictionary Exists=False, Type=0
                        26/01/2013 22:12:02 79922.02 | mcsTemperature Debug | InitIni Database Group DC=R29, Database=R29, Type=0
                        26/01/2013 22:12:02 79922.02 | mcsTemperature Debug | InitIni Database Dictionary Exists=False, Type=0
                        26/01/2013 22:12:02 79922.02 | mcsTemperature Debug | InitIni Database Group DC=]1, Database=oa1, Type=0
                        26/01/2013 22:12:02 79922.02 | mcsTemperature Debug | InitIni Database Dictionary Exists=False, Type=0
                        26/01/2013 22:12:02 79922.02 | mcsTemperature Debug | InitIni Database Group DC=R30, Database=R30, Type=0
                        26/01/2013 22:12:02 79922.02 | mcsTemperature Debug | InitIni Database Dictionary Exists=False, Type=0
                        26/01/2013 22:12:02 79922.02 | mcsTemperature Debug | Registering Callback Mask 0
                        26/01/2013 22:12:02 79922.04 | mcsTemperature Debug | SetDS2408SwitchMask SensorCount = 0
                        26/01/2013 22:12:02 79922.06 | mcsTemperature Debug | GetPluginTriggers Trigger Ubound=0, Prior Trigger Ubound=-1
                        26/01/2013 22:12:02 79922.11 | mcsTemperature | Last temperature sample recorded at 26/01/2013 22:03:11
                        26/01/2013 22:12:02 79922.54 | mcsTemperature | IEObj Timer is Timer on line 30 Object variable or With block variable not set
                        26/01/2013 22:12:34 79954.36 | mcsTemperature Debug | Current IP=192.168.2.75, Client Index=0,Chart Size=300x600
                        26/01/2013 22:12:34 79954.41 | mcsTemperature Debug | Database(0)=C:\Program Files (x86)\HomeSeer HS2\mcsTemperature.mdb, DateField=SampleDate, Table=Temperature, DeviceType=0, Field=q2
                        26/01/2013 22:12:34 79954.41 | mcsTemperature Debug | Database(0)=C:\Program Files (x86)\HomeSeer HS2\mcsTemperature.mdb, DateField=SampleDate, Table=Temperature, DeviceType=0, Field=oa1
                        26/01/2013 22:12:34 79954.45 | mcsTemperature Debug | DrawGraph Query=SELECT Left(Format([SampleDate],"yyyy/mm/dd hh:mm"),15) & "0" AS SampleDate, Avg(q2) AS Temp FROM Temperature WHERE q2<>0 AND SampleDate >= #2013-01-25 23:00# AND SampleDate < #2013-01-26 23:00# GROUP BY Left(Format([SampleDate],"yyyy/mm/dd hh:mm"),15) & "0" ORDER BY Left(Format([SampleDate],"yyyy/mm/dd hh:mm"),15) & "0"
                        26/01/2013 22:12:34 79954.5 | mcsTemperature Debug | DrawGraph Query=SELECT Left(Format([SampleDate],"yyyy/mm/dd hh:mm"),15) & "0" AS SampleDate, Avg(oa1) AS Temp FROM Temperature WHERE oa1<>0 AND SampleDate >= #2013-01-25 23:00# AND SampleDate < #2013-01-26 23:00# GROUP BY Left(Format([SampleDate],"yyyy/mm/dd hh:mm"),15) & "0" ORDER BY Left(Format([SampleDate],"yyyy/mm/dd hh:mm"),15) & "0"
                        26/01/2013 22:12:34 79954.55 | mcsTemperature Debug | SensorCount=2
                        26/01/2013 22:12:34 79954.55 | mcsTemperature Debug | Chart SQL=SELECT SampleDate AS StartDate, (q2) AS Q1, (oa1) AS Q2 FROM Temperature WHERE SampleDate >= #2013-01-25 23:00# AND SampleDate < #2013-01-26 23:00#
                        26/01/2013 22:12:34 79954.55 | mcsTemperature Debug | Chart SQL2=
                        26/01/2013 22:12:34 79954.55 | mcsTemperature Debug | Chart SQL3=
                        26/01/2013 22:12:34 79954.72 | mcsTemperature Debug | Data Elements=144, Data Names=2
                        26/01/2013 22:12:34 79954.73 | mcsTemperature Debug | X Axis Data Completed
                        26/01/2013 22:12:34 79954.73 | mcsTemperature Debug | Y Axis Data Completed, SomeData=True
                        26/01/2013 22:12:40 79960.49 | mcsTemperature Debug | Current IP=192.168.2.75, Client Index=0,Chart Size=300x600
                        26/01/2013 22:13:01 79981.92 | mcsTemperature Debug | Expression In=#30 | Substituted=0 | Result=0
                        26/01/2013 22:13:01 79981.92 | mcsTemperature Debug | (0) Trigger Device Q2, LowerLimit Compare 16.4 vs Compare Value=0 {#30}, priorValue =16.4, event Started=False
                        26/01/2013 22:13:01 79981.92 | mcsTemperature Debug | (0) Reset Trigger States
                        26/01/2013 22:13:11 79991.27 | mcsTemperature Debug | Current IP=192.168.2.75, Client Index=0,Chart Size=300x600
                        26/01/2013 22:13:11 79991.38 | mcsTemperature Debug | InitIni Database Group DC=Q2, Database=q2, Type=0
                        26/01/2013 22:13:11 79991.38 | mcsTemperature Debug | InitIni Database Dictionary Exists=False, Type=0
                        26/01/2013 22:13:11 79991.38 | mcsTemperature Debug | InitIni Database Group DC=]1, Database=oa1, Type=0
                        26/01/2013 22:13:11 79991.38 | mcsTemperature Debug | InitIni Database Dictionary Exists=False, Type=0
                        26/01/2013 22:13:11 79991.4 | mcsTemperature Debug | SetDS2408SwitchMask SensorCount = 0
                        26/01/2013 22:13:31 80011.17 | mcsTemperature Debug | Current IP=192.168.2.75, Client Index=0,Chart Size=300x600
                        26/01/2013 22:13:33 80013.88 | mcsTemperature Debug | Expression In=#30 | Substituted=0 | Result=0
                        26/01/2013 22:13:33 80013.88 | mcsTemperature Debug | (0) Trigger Device Q2, LowerLimit Compare 16.4 vs Compare Value=0 {#30}, priorValue =16.4, event Started=False
                        26/01/2013 22:13:33 80013.88 | mcsTemperature Debug | (0) Reset Trigger States
                        26/01/2013 22:14:03 80043.86 | mcsTemperature Debug | Expression In=#30 | Substituted=0 | Result=0
                        26/01/2013 22:14:03 80043.86 | mcsTemperature Debug | (0) Trigger Device Q2, LowerLimit Compare 16.2 vs Compare Value=0 {#30}, priorValue =16.4, event Started=False
                        26/01/2013 22:14:03 80043.86 | mcsTemperature Debug | (0) Reset Trigger States
                        26/01/2013 22:14:19 80059.32 | mcsTemperature Debug | Current IP=192.168.2.75, Client Index=0,Chart Size=300x600
                        26/01/2013 22:14:33 80073.84 | mcsTemperature Debug | Expression In=#30 | Substituted=0 | Result=0
                        26/01/2013 22:14:33 80073.84 | mcsTemperature Debug | (0) Trigger Device Q2, LowerLimit Compare 16.2 vs Compare Value=0 {#30}, priorValue =16.2, event Started=False
                        26/01/2013 22:14:33 80073.84 | mcsTemperature Debug | (0) Reset Trigger States
                        26/01/2013 22:15:05 80105.01 | mcsTemperature Debug | Expression In=#30 | Substituted=0 | Result=0
                        26/01/2013 22:15:05 80105.01 | mcsTemperature Debug | (0) Trigger Device Q2, LowerLimit Compare 16.2 vs Compare Value=0 {#30}, priorValue =16.2, event Started=False
                        26/01/2013 22:15:05 80105.01 | mcsTemperature Debug | (0) Reset Trigger States
                        26/01/2013 22:15:35 80135 | mcsTemperature Debug | Expression In=#30 | Substituted=0 | Result=0
                        26/01/2013 22:15:35 80135 | mcsTemperature Debug | (0) Trigger Device Q2, LowerLimit Compare 16.2 vs Compare Value=0 {#30}, priorValue =16.2, event Started=False
                        26/01/2013 22:15:35 80135 | mcsTemperature Debug | (0) Reset Trigger States
                        26/01/2013 22:16:04 80164.98 | mcsTemperature Debug | Expression In=#30 | Substituted=0 | Result=0
                        26/01/2013 22:16:04 80164.98 | mcsTemperature Debug | (0) Trigger Device Q2, LowerLimit Compare 16.2 vs Compare Value=0 {#30}, priorValue =16.2, event Started=False
                        26/01/2013 22:16:04 80164.98 | mcsTemperature Debug | (0) Reset Trigger States
                        26/01/2013 22:16:34 80194.96 | mcsTemperature Debug | Expression In=#30 | Substituted=0 | Result=0
                        26/01/2013 22:16:34 80194.96 | mcsTemperature Debug | (0) Trigger Device Q2, LowerLimit Compare 16.2 vs Compare Value=0 {#30}, priorValue =16.2, event Started=False
                        26/01/2013 22:16:34 80194.96 | mcsTemperature Debug | (0) Reset Trigger States
                        26/01/2013 22:17:04 80224.94 | mcsTemperature Debug | Expression In=#30 | Substituted=0 | Result=0
                        26/01/2013 22:17:04 80224.94 | mcsTemperature Debug | (0) Trigger Device Q2, LowerLimit Compare 16.2 vs Compare Value=0 {#30}, priorValue =16.2, event Started=False
                        26/01/2013 22:17:04 80224.94 | mcsTemperature Debug | (0) Reset Trigger States
                        26/01/2013 22:17:06 80226.59 | mcsTemperature Debug | setIO `60 from 0 to 19, brightness=0
                        26/01/2013 22:17:06 80226.59 | mcsTemperature Debug | setDevice `60 from 3 to 3, Cal=[]
                        26/01/2013 22:17:34 80254.92 | mcsTemperature Debug | Expression In=#30 | Substituted=0 | Result=0
                        26/01/2013 22:17:34 80254.92 | mcsTemperature Debug | (0) Trigger Device Q2, LowerLimit Compare 16.2 vs Compare Value=0 {#30}, priorValue =16.2, event Started=False
                        26/01/2013 22:17:34 80254.92 | mcsTemperature Debug | (0) Reset Trigger States
                        26/01/2013 22:18:04 80284.91 | mcsTemperature Debug | Expression In=#30 | Substituted=0 | Result=0
                        26/01/2013 22:18:04 80284.91 | mcsTemperature Debug | (0) Trigger Device Q2, LowerLimit Compare 16.2 vs Compare Value=0 {#30}, priorValue =16.2, event Started=False
                        26/01/2013 22:18:04 80284.91 | mcsTemperature Debug | (0) Reset Trigger States
                        26/01/2013 22:18:34 80314.89 | mcsTemperature Debug | Expression In=#30 | Substituted=0 | Result=0
                        26/01/2013 22:18:34 80314.89 | mcsTemperature Debug | (0) Trigger Device Q2, LowerLimit Compare 16.2 vs Compare Value=0 {#30}, priorValue =16.2, event Started=False
                        26/01/2013 22:18:34 80314.89 | mcsTemperature Debug | (0) Reset Trigger States
                        26/01/2013 22:19:04 80344.87 | mcsTemperature Debug | Expression In=#30 | Substituted=0 | Result=0
                        26/01/2013 22:19:04 80344.87 | mcsTemperature Debug | (0) Trigger Device Q2, LowerLimit Compare 16.2 vs Compare Value=0 {#30}, priorValue =16.2, event Started=False
                        26/01/2013 22:19:04 80344.87 | mcsTemperature Debug | (0) Reset Trigger States

                        Comment


                        • #13
                          the log file then continues and the last few entries with error are like this

                          01/2013 11:02:39 39759.23 | mcsTemperature Debug | Expression In=Q2 | Substituted=17.1 | Result=17.1
                          27/01/2013 11:02:39 39759.23 | mcsTemperature Debug | Expression In=#31 | Substituted=8 | Result=8
                          27/01/2013 11:02:39 39759.23 | mcsTemperature Debug | Expression In=(1+#31) | Substituted=(1+8) | Result=9
                          27/01/2013 11:02:39 39759.23 | mcsTemperature Debug | Expression In=Q2 | Substituted=17.1 | Result=17.1
                          27/01/2013 11:02:39 39759.23 | mcsTemperature Debug | Expression In=#31 | Substituted=8 | Result=8
                          27/01/2013 11:02:39 39759.23 | mcsTemperature Debug | Expression In=(1+#31) | Substituted=(1+8) | Result=9
                          27/01/2013 11:02:39 39759.3 | mcsTemperature Debug | Expression In=#31 | Substituted=8 | Result=8
                          27/01/2013 11:02:39 39759.3 | mcsTemperature Debug | Expression In=(1+#31) | Substituted=(1+8) | Result=9
                          27/01/2013 11:02:39 39759.31 | mcsTemperature Debug | Expression In=Q2 | Substituted=17.1 | Result=17.1
                          27/01/2013 11:02:39 39759.31 | mcsTemperature Debug | Expression In=#29 | Substituted=16 | Result=16
                          27/01/2013 11:02:39 39759.31 | mcsTemperature Debug | Expression In=(1+#29) | Substituted=(1+16) | Result=17
                          27/01/2013 11:02:39 39759.31 | mcsTemperature Debug | Expression In=Q2 | Substituted=17.1 | Result=17.1
                          27/01/2013 11:02:39 39759.31 | mcsTemperature Debug | Expression In=#29 | Substituted=16 | Result=16
                          27/01/2013 11:02:39 39759.31 | mcsTemperature Debug | Expression In=(1+#29) | Substituted=(1+16) | Result=17
                          27/01/2013 11:02:39 39759.38 | mcsTemperature Debug | Expression In=#29 | Substituted=16 | Result=16
                          27/01/2013 11:02:39 39759.38 | mcsTemperature Debug | Expression In=(1+#29) | Substituted=(1+16) | Result=17
                          27/01/2013 11:02:39 39759.38 | mcsTemperature Debug | Expression In=Q2 | Substituted=17.1 | Result=17.1
                          27/01/2013 11:02:39 39759.38 | mcsTemperature Debug | Expression In=#31 | Substituted=8 | Result=8
                          27/01/2013 11:02:39 39759.38 | mcsTemperature Debug | Expression In=(1+#31) | Substituted=(1+8) | Result=9
                          27/01/2013 11:02:39 39759.38 | mcsTemperature Debug | Expression In=Q2 | Substituted=17.1 | Result=17.1
                          27/01/2013 11:02:39 39759.38 | mcsTemperature Debug | Expression In=#31 | Substituted=8 | Result=8
                          27/01/2013 11:02:39 39759.38 | mcsTemperature Debug | Expression In=(1+#31) | Substituted=(1+8) | Result=9
                          27/01/2013 11:02:39 39759.45 | mcsTemperature Debug | Expression In=#31 | Substituted=8 | Result=8
                          27/01/2013 11:02:39 39759.45 | mcsTemperature Debug | Expression In=(1+#31) | Substituted=(1+8) | Result=9
                          27/01/2013 11:02:39 39759.45 | mcsTemperature Debug | Expression In=Q2 | Substituted=17.1 | Result=17.1
                          27/01/2013 11:02:39 39759.45 | mcsTemperature Debug | Expression In=#29 | Substituted=16 | Result=16
                          27/01/2013 11:02:39 39759.45 | mcsTemperature Debug | Expression In=(1+#29) | Substituted=(1+16) | Result=17
                          27/01/2013 11:02:39 39759.45 | mcsTemperature Debug | Expression In=Q2 | Substituted=17.1 | Result=17.1
                          27/01/2013 11:02:39 39759.45 | mcsTemperature Debug | Expression In=#29 | Substituted=16 | Result=16
                          27/01/2013 11:02:39 39759.45 | mcsTemperature Debug | Expression In=(1+#29) | Substituted=(1+16) | Result=17
                          27/01/2013 11:02:39 39759.52 | mcsTemperature Debug | Expression In=#29 | Substituted=16 | Result=16
                          27/01/2013 11:02:39 39759.52 | mcsTemperature Debug | Expression In=(1+#29) | Substituted=(1+16) | Result=17
                          27/01/2013 11:02:39 39759.52 | mcsTemperature Debug | Expression In=Q2 | Substituted=17.1 | Result=17.1
                          27/01/2013 11:02:39 39759.52 | mcsTemperature Debug | Expression In=#31 | Substituted=8 | Result=8
                          27/01/2013 11:02:39 39759.52 | mcsTemperature Debug | Expression In=(1+#31) | Substituted=(1+8) | Result=9
                          27/01/2013 11:02:39 39759.52 | mcsTemperature Debug | Expression In=Q2 | Substituted=17.1 | Result=17.1
                          27/01/2013 11:02:39 39759.53 | mcsTemperature Debug | Expression In=#31 | Substituted=8 | Result=8
                          27/01/2013 11:02:39 39759.53 | mcsTemperature Debug | Expression In=(1+#31) | Substituted=(1+8) | Result=9
                          27/01/2013 11:02:39 39759.61 | mcsTemperature Debug | Expression In=#31 | Substituted=8 | Result=8
                          27/01/2013 11:02:39 39759.61 | mcsTemperature Debug | Expression In=(1+#31) | Substituted=(1+8) | Result=9
                          27/01/2013 11:02:39 39759.61 | mcsTemperature Debug | Expression In=Q2 | Substituted=17.1 | Result=17.1
                          27/01/2013 11:02:39 39759.61 | mcsTemperature Debug | Expression In=#29 | Substituted=16 | Result=16
                          27/01/2013 11:02:39 39759.61 | mcsTemperature Debug | Expression In=(1+#29) | Substituted=(1+16) | Result=17
                          27/01/2013 11:02:39 39759.61 | mcsTemperature Debug | Expression In=Q2 | Substituted=17.1 | Result=17.1
                          27/01/2013 11:02:39 39759.61 | mcsTemperature Debug | Expression In=#29 | Substituted=16 | Result=16
                          27/01/2013 11:02:39 39759.61 | mcsTemperature Debug | Expression In=(1+#29) | Substituted=(1+16) | Result=17
                          27/01/2013 11:02:39 39759.68 | mcsTemperature Debug | Expression In=#29 | Substituted=16 | Result=16
                          27/01/2013 11:02:39 39759.68 | mcsTemperature Debug | Expression In=(1+#29) | Substituted=(1+16) | Result=17
                          27/01/2013 11:02:39 39759.68 | mcsTemperature Debug | Expression In=Q2 | Substituted=17.1 | Result=17.1
                          27/01/2013 11:02:39 39759.68 | mcsTemperature Debug | Expression In=#31 | Substituted=8 | Result=8
                          27/01/2013 11:02:39 39759.68 | mcsTemperature Debug | Expression In=(1+#31) | Substituted=(1+8) | Result=9
                          27/01/2013 11:02:39 39759.68 | mcsTemperature Debug | Expression In=Q2 | Substituted=17.1 | Result=17.1
                          27/01/2013 11:02:39 39759.68 | mcsTemperature Debug | Expression In=#31 | Substituted=8 | Result=8
                          27/01/2013 11:02:39 39759.69 | mcsTemperature Debug | Expression In=(1+#31) | Substituted=(1+8) | Result=9
                          27/01/2013 11:02:39 39759.76 | mcsTemperature Debug | Expression In=#31 | Substituted=8 | Result=8
                          27/01/2013 11:02:39 39759.76 | mcsTemperature Debug | Expression In=(1+#31) | Substituted=(1+8) | Result=9
                          27/01/2013 11:02:39 39759.76 | mcsTemperature Debug | Expression In=Q2 | Substituted=17.1 | Result=17.1
                          27/01/2013 11:02:39 39759.76 | mcsTemperature Debug | Expression In=#29 | Substituted=16 | Result=16
                          27/01/2013 11:02:39 39759.76 | mcsTemperature Debug | Expression In=(1+#29) | Substituted=(1+16) | Result=17
                          27/01/2013 11:02:39 39759.76 | mcsTemperature Debug | Expression In=Q2 | Substituted=17.1 | Result=17.1
                          27/01/2013 11:02:39 39759.76 | mcsTemperature Debug | Expression In=#29 | Substituted=16 | Result=16
                          27/01/2013 11:02:39 39759.76 | mcsTemperature Debug | Expression In=(1+#29) | Substituted=(1+16) | Result=17
                          27/01/2013 11:02:39 39759.83 | mcsTemperature Debug | Expression In=#29 | Substituted=16 | Result=16
                          27/01/2013 11:02:39 39759.83 | mcsTemperature Debug | Expression In=(1+#29) | Substituted=(1+16) | Result=17
                          27/01/2013 11:02:39 39759.83 | mcsTemperature | EvaluateDeviceAction m = 101, i = 0" on line 70 Subscript out of range

                          Comment


                          • #14
                            my log gile is as follows

                            [Temperature]
                            License=122.70.83.84.65.65.85
                            IterationInterval="30"
                            TemperationAction=Done
                            StyleSheet="StyleNoBody.css"
                            bca="White"
                            TableFontColor="gray"
                            TableFontColorSize=""
                            textColor="gray"
                            TextColorSize=""
                            ForecastHighColor="Red"
                            ForecastLowColor="Black"
                            DisplayOrder="RCur"
                            RefreshImageRate="1"
                            GUIColor="gray"
                            iconPixels="16"
                            SignificantDigits="1"
                            GraphColorBase="motion/TEMP"
                            MaxVerticalPixels="16"
                            LineWidthTemperature="1"
                            LineWidthOther="1"
                            DiscreteSpacing="2"
                            SymbolSizeL="2"
                            SymbolSizeR="5"
                            SymbolDeltaL="2"
                            SymbolDeltaR="2"
                            LegendHeight="35"
                            LegendLeft="55"
                            LineChartBorderColor="D0D0D0"
                            LineChartCenterColor="FCFDCF"
                            Client0="Default,0"
                            Client1=",0"
                            Client2=",0"
                            Client3=",0"
                            UserDefinedLabel0=""
                            UserDefinedLabel1=""
                            UserDefinedLabel2=""
                            UserDefinedLabel3=""
                            CompatibilityMode="0"
                            AllowLocalHostForTouchscreen=0
                            UseHTML="1"
                            OnlyTemperatureIcon="0"
                            ShowOnlyDeviceName=0
                            excludeHeaderAndFooter=0
                            showTemperatureDataPoints=0
                            ConnectDots=1
                            forceHumidityScale=0
                            RetainSettingByClient=0
                            alwaysShowGraph=1
                            ExcludeLinks=0
                            ReverseColorScale=1
                            ClientChartOverallHeight="300, 370, 440, 510, 580, 650, 720, 790, 860, 930"
                            ClientChartOverallWidth="600, 700, 800, 900, 1000, 1100, 1200, 1300, 1400, 1500"
                            ClientChartHeight="210, 280, 350, 420, 490, 560, 630, 700, 770, 840"
                            ClientChartWidth="520, 620, 720, 820, 920, 1020, 1120, 1220, 1320, 1420"
                            AdapterType="DS9097U"
                            UseTemp05=0
                            Temp05CommPort=""
                            T05SampleInterval="5"
                            MetricInTemp=0
                            UseDS9097=0
                            DSPort=""
                            DSSampleInterval="5"
                            AlarmingSwitches=0
                            UseCK1610=0
                            CK1610Port=""
                            CK1610SampleInterval="15"
                            UseQuasar=0
                            QuasarPort=""
                            QuasarSampleInterval="5"
                            UseCSV=0
                            CSVSampleInterval="5"
                            CSVNoDelete=0
                            UseCSV2=0
                            CSVSampleInterval2="5"
                            CSVNoDelete2=0
                            UseCSV3=0
                            CSVSampleInterval3="5"
                            CSVNoDelete3=0
                            UseDatabase=1
                            DataCollectionInterval="5"
                            UseForecast=0
                            ForecastRetry="0"
                            MetricTemp="1"
                            MetricWind="0"
                            MetricRain="0"
                            MetricBaro="0"
                            usePreviousOnBadReadings="1"
                            LimitHumidity=0
                            IncludeHumidity35=0
                            MinimumHumidity="20"
                            EnableTriggers=1
                            NormalPriority="0"
                            InMenu=1
                            decimalCharacter="."
                            DebugLog=1
                            DebugLog2=0
                            ShowRawData=0
                            Temp05Version5=0
                            VersionAfter416OrUsingV1=0
                            WDTString=""
                            DisableWindow=0
                            UseRelay05=0
                            RelayCommandDelay="250"
                            Version_Id=""
                            StoreRelay8=0
                            StoreRelay1=0
                            StoreRelay2=0
                            StoreRelay3=0
                            StoreRelay4=0
                            StoreRelay5=0
                            StoreRelay6=0
                            StoreRelay7=0
                            DefaultGraph=All
                            DefaultPeriod=24Hour
                            DefaultAggregate=None
                            SelectedGroup=Default
                            Database="mcsTemperature.mdb"
                            TemperatureTable="Temperature"
                            DateFieldName="SampleDate"
                            TemperatureFieldPrefix="R"
                            UseSQL=0
                            SQLSource=""
                            WeedFirstDays="30"
                            WeedLastDays="180"
                            WeedMaxInterval="60"
                            RainCalibration="1"
                            WaterFlowCalibration="1"
                            WattCalibration="1"
                            RainCalibrationRate="0.1"
                            WaterFlowCalibrationRate="0.4"
                            WattCalibrationRate="1.0"
                            WindCalibration="1"
                            csvDelete=0
                            csvDelete2=0
                            csvDelete3=0
                            HumidityCal=0
                            UseWeatherPLUG=0
                            AverageSites=0
                            UseWeatherXMLFile="0"
                            UseWeatherXMLSite="0"
                            ReverseWind=0
                            SlowWeight=""
                            FastWeight=""
                            NorthDirection="0"
                            TemperatureHouse="`"
                            WindOnThreshold="5"
                            TemperatureDeviceLocation="Temperature"
                            high_wind="`50"
                            barocalibrationslope="1"
                            barocalibrationoffset="0"
                            ClientChartLegendSize="8, 8, 8, 8, 8, 8, 8, 8, 8, 8"
                            ClientChartUpdateTimeSize="7, 7, 7, 7, 7, 7, 7, 7, 7, 7"
                            ClientChartAxisTitleSize="8, 8, 8, 8, 8, 8, 8, 8, 8, 8"
                            ClientChartAxisSize="8, 8, 8, 8, 8, 8, 8, 8, 8, 8"
                            DefaultLineColors=""
                            HouseCode=96
                            HouseCode2=35
                            DS9097SwitchInterval=""
                            CSVFilename=""
                            CSVFilename2=""
                            CSVFilename3=""
                            [ASP]
                            ConservHeatingRoomTemp=checked
                            OutsideAirTemp=checked
                            =checked
                            [TemperatureActions]
                            [Cals]
                            Q2=";"
                            ]1=";"
                            [Database]
                            Q2="q2,0,1"
                            ]1="oa1,0,1"
                            [Devices]
                            [Group]
                            Default="None","All","Q2"0+1,"]1"0+1
                            [LastState]
                            SR29=2
                            SR30=2
                            S`60=3
                            S`61=3
                            S`62=3
                            S`63=3
                            S#30=2
                            S#32=2
                            [Scale]
                            Default=,,,
                            [Forecast]
                            ForecastVDCode0="#47"
                            ForecastVD0=0
                            ForecastChart0=0
                            ForecastVDCode1="#48"
                            ForecastVD1=0
                            ForecastChart1=0
                            ForecastVDCode2="#49"
                            ForecastVD2=0
                            ForecastChart2=0
                            ForecastVDCode3="#50"
                            ForecastVD3=0
                            ForecastChart3=0
                            ForecastVDCode4="#51"
                            ForecastVD4=0
                            ForecastChart4=0
                            ForecastVDCode5="#52"
                            ForecastVD5=0
                            ForecastChart5=0
                            ForecastVDCode6="#53"
                            ForecastVD6=0
                            ForecastChart6=0
                            ForecastVDCode7="#54"
                            ForecastVD7=0
                            ForecastChart7=0
                            ForecastVDCode8="#55"
                            ForecastVD8=0
                            ForecastChart8=0
                            ForecastVDCode9="#56"
                            ForecastVD9=0
                            ForecastChart9=0
                            ForecastVDCode10="#57"
                            ForecastVD10=0
                            ForecastChart10=0
                            ForecastVDCode11="#58"
                            ForecastVD11=0
                            ForecastChart11=0
                            ForecastVDCode12="#59"
                            ForecastVD12=0
                            ForecastChart12=0
                            ForecastVDCode13="#60"
                            ForecastVD13=0
                            ForecastChart13=0
                            ForecastVDCode14="#61"
                            ForecastVD14=0
                            ForecastChart14=0
                            ForecastVDCode15="#62"
                            ForecastVD15=0
                            ForecastChart15=0
                            ForecastVDCode16="#63"
                            ForecastVD16=0
                            ForecastChart16=0

                            Comment


                            • #15
                              Right based on what you said And after having a play. I have deleted devices and also the sensors for the charts. I was using two no thermostats with a delta of 0.5 and also getting the action to switch off at (0.5*#29). The sensors were charting the two set points to show how the control worked and air temp device cycled within the two bands. This worked well for a day or so but then gave me the error above. My thermostats/set point icon is showing again, but I have had to set the thermostat delta to 1 and also the off string to (1+#29)

                              The two set points are also deleted within my chart? I would still like to have 0.5 switch and it would be great to see my upper and lower set points in the chart.
                              Is there a way to map the thermost /set point values to another virtual device and then monitor that in the chart. Ie #29 is changed and then the charts/sensor page monitors say V10?
                              I am confused as to what you are asking or telling. I did notice that the only chart group you have is Default. You should define your own chart group(s). Default is only a placeholder.

                              The icon shows up as the integer component and the remainder to the status shows the actual value. The attached shows a test case I did with one thermostat device with 0.5 increments and one control using it in conjunction with devices A1 and A2. What icon in this example are you missing for your situation?

                              When I chart the three devices and changing the setpoint between 0 and 1.5 I see the expected output and resolution to 0.5 for the setpoint. What are you getting different than my example?

                              I do not understand what you are trying to accomplish with the question about V10. In the chart that is attached the setpoint shows up as I would expect.

                              I asked for the debug output to understand why you were getting messages in your log. Are you getting those messages for the segment of the debug log that was posted?
                              Attached Files

                              Comment

                              Working...
                              X