Weird Log Entries causing issues - help please!

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
gregoinc
Normal user
Posts: 65
Joined: 21 Jan 2019, 06:08
Location: Australia

Weird Log Entries causing issues - help please!

#1 Post by gregoinc » 15 Feb 2019, 09:46

Hi Folks,

I am hopeful someone has seen this issue before, as I cannot find a reason for it happening?

If you look at the 3938027 log entry, immediately afterwards the log changes to 8287, and after that the system proceeds to change the value of counter#dummy from 1.00 to 0.00 and I dont understand why??

3871293: Dummy: value 1: 1.00
3871293: Dummy: value 2: 0.00
3871294: Dummy: value 3: 0.00
3871294: Dummy: value 4: 0.00
3871296: EVENT: counter#dummy=1.00
3871316: EVENT: counter#=0.00
3871335: EVENT: counter#=0.00
3871354: EVENT: counter#=0.00
3874423: WD : Uptime 65 ConnectFailures 0 FreeMem 14784
3877870: EVENT: Rules#Timer=1
3877922: ACT : timerset,1,30
3877977: DS : Temperature: 23.31 (28-aa-f9-13-1b-13-2-e6)
3877980: EVENT: Temp1#Temperature=23.31
3878031: DS : Temperature: 19.94 (28-7d-22-25-30-14-1-11)
3878034: EVENT: Temp2#Temperature=19.94
3878275: Command: timerset
3887870: EVENT: Clock#Time=Fri,18:26
3904423: WD : Uptime 65 ConnectFailures 0 FreeMem 14784
3907970: DS : Temperature: 23.19 (28-aa-f9-13-1b-13-2-e6)
3907973: EVENT: Temp1#Temperature=23.19
3908023: DS : Temperature: 19.87 (28-7d-22-25-30-14-1-11)
3908026: EVENT: Temp2#Temperature=19.87
3908870: EVENT: Rules#Timer=1
3908921: ACT : timerset,1,30
3908953: Command: timerset
3934423: WD : Uptime 66 ConnectFailures 0 FreeMem 14784
3937971: DS : Temperature: 23.06 (28-aa-f9-13-1b-13-2-e6)
3937973: EVENT: Temp1#Temperature=23.06
3938024: DS : Temperature: 19.75 (28-7d-22-25-30-14-1-11)
3938027: EVENT: Temp2#Temperature=19.75
8287: EVENT: Temp1#Temperature=22.69
8342: DS : Temperature: 19.69 (28-7d-22-25-30-14-1-11)
8344: EVENT: Temp2#Temperature=19.69
8428: Dummy: value 1: 0.00
8428: Dummy: value 2: 0.00
8428: Dummy: value 3: 0.00
8429: Dummy: value 4: 0.00
8431: EVENT: counter#dummy=0.00
8450: EVENT: counter#=0.00
8468: EVENT: counter#=0.00
8486: EVENT: counter#=0.00
8982: Current Time Zone: DST time start: 2019-10-06 02:00:00 offset: 660 minSTD time start: 2019-04-07 03:00:00 offset: 600 min
8983: EVENT: Time#Initialized
9006: EVENT: Clock#Time=Fri,18:27
33896: EVENT: Rules#Timer=1
33945: ACT : timerset,1,30
33976: Command: timerset
34449: WD : Uptime 1 ConnectFailures 0 FreeMem 15016
38284: DS : Temperature: 22.69 (28-aa-f9-13-1b-13-2-e6)
38287: EVENT: Temp1#Temperature=22.69
38336: DS : Temperature: 19.69 (28-7d-22-25-30-14-1-11)
38339: EVENT: Temp2#Temperature=19.69
40896: EVENT: Clock#Time=Fri,18:28
64449: WD : Uptime 1 ConnectFailures 0 FreeMem 15016
64896: EVENT: Rules#Timer=1
64946: ACT : timerset,1,30
64976: Command: timerset
68283: DS : Temperature: 22.50 (28-aa-f9-13-1b-13-2-e6)
68286: EVENT: Temp1#Temperature=22.50
68337: DS : Temperature: 19.75 (28-7d-22-25-30-14-1-11)
68339: EVENT: Temp2#Temperature=19.75
94452: WD : Uptime 2 ConnectFailures 0 FreeMem 14768
95896: EVENT: Rules#Timer=1
95945: ACT : timerset,1,30
95977: Command: timerset
98284: DS : Temperature: 22.37 (28-aa-f9-13-1b-13-2-e6)
98287: EVENT: Temp1#Temperature=22.37
98337: DS : Temperature: 19.75 (28-7d-22-25-30-14-1-11)
98339: EVENT: Temp2#Temperature=19.75
100896: EVENT: Clock#Time=Fri,18:29
126945: ACT : timerset,1,30
126976: Command: timerset
128283: DS : Temperature: 22.31 (28-aa-f9-13-1b-13-2-e6)
128286: EVENT: Temp1#Temperature=22.31
128335: DS : Temperature: 19.75 (28-7d-22-25-30-14-1-11)
128338: EVENT: Temp2#Temperature=19.75
128423: Dummy: value 1: 0.00
128423: Dummy: value 2: 0.00
128424: Dummy: value 3: 0.00
128424: Dummy: value 4: 0.00
128426: EVENT: counter#dummy=0.00
128445: EVENT: counter#=0.00
128464: EVENT: counter#=0.00
128482: EVENT: counter#=0.00
154449: WD : Uptime 3 ConnectFailures 0 FreeMem 15016
157896: EVENT: Rules#Timer=1
157947: ACT : timerset,1,30
157977: Command: timerset

Here is the code I am using...

Code: Select all

On System#Boot do
   timerset,1,30
endon

On Rules#Timer=1 do
   if [Temp1#Temperature] > 25
    Event,StartHP
   if [Temp2#Temperature] < [Temp1#Temperature] and [Temp2#Temperature] < 17
    Event,StopHP
   endif
   timerset,1,30  
endon

On StartHP Do
If [counter#dummy]=0
 heatpumpir,daikin,1,3,0,24,4,2
 TaskValueSet 4,1,1
EndIf
EndOn

On StopHP Do
If [counter#dummy]=1
 heatpumpir,daikin,0,3,0,24,4,2
 TaskValueSet 4,1,0
EndIf
EndOn
All help greatly appreciated.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Weird Log Entries causing issues - help please!

#2 Post by grovkillen » 15 Feb 2019, 10:37

You're missing an "end if".
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

gregoinc
Normal user
Posts: 65
Joined: 21 Jan 2019, 06:08
Location: Australia

Re: Weird Log Entries causing issues - help please!

#3 Post by gregoinc » 15 Feb 2019, 11:30

<facepalm> Argh... :oops: how does below look?

Code: Select all

On System#Boot do
   timerset,1,30
endon

On Rules#Timer=1 do
   if [Temp1#Temperature] > 25
    Event,StartHP
    endif
   if [Temp2#Temperature] < [Temp1#Temperature] and [Temp2#Temperature] < 17
    Event,StopHP
   endif
   timerset,1,30  
endon

On StartHP Do
If [counter#dummy]=0
 heatpumpir,daikin,1,3,0,24,4,2
 TaskValueSet 4,1,1
EndIf
EndOn

On StopHP Do
If [counter#dummy]=1
 heatpumpir,daikin,0,3,0,24,4,2
 TaskValueSet 4,1,0
EndIf
EndOn

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Weird Log Entries causing issues - help please!

#4 Post by grovkillen » 15 Feb 2019, 17:07

Looks better, but I tend to set the timer first to get loops as close as possible to the timer interval.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

gregoinc
Normal user
Posts: 65
Joined: 21 Jan 2019, 06:08
Location: Australia

Re: Weird Log Entries causing issues - help please!

#5 Post by gregoinc » 16 Feb 2019, 01:03

No worries, thank you.

Post Reply

Who is online

Users browsing this forum: No registered users and 35 guests