HeishaMon icon indicating copy to clipboard operation
HeishaMon copied to clipboard

Console output is missing global variables (HeishaMon v5, firmware 3.5)

Open blb4github opened this issue 1 year ago • 11 comments

In the 'old' HeishaMon version the global variable where always visible on the console, but now on HeishaMon v5 with firmware 3.5 I don't see the global variables in the console output. Scherm­afbeelding 2024-05-21 om 23 07 44

I do see them via serial logging:

909372: ==== Operating_Mode_State ====
909372: rule #12 was executed in 267 microseconds
909372: 
>>> local variables

909373: 
>>> global variables

 4 #allowQuietMode = 1
 5 #allowSyncHP = 1
 6 #allowSyncOT = 1
 7 #maxTa = 36
 8 #C3WayValve = 0
 9 #CCompressorFrequency = 0
10 #chEnable = 0
11 #chEnableOffTime = 0
12 #chEnableTimeOff = 5577
13 #CompressorRunTime = -14
14 #CompressorStateChangeTime = 5576
15 #CompressorState = 0
16 #CQuietMode = 3
17 #CDeFrost = 0
18 #DHWRun = -1
19 #FirstBoot = 2
20 #RHPState = 0
21 #RMaxPumpDuty = 85
22 #COperatingMode = 0
23 #OutsideTemp = 17
24 #PreviousHPS = -1
25 #PreviousOM = -1
26 #RemoteOverRide = 0
27 #RQuietMode = 3
28 #SHifT = -5
29 #TCompressorFreq = 24
30 #RoomTempDelta = 3.09766
31 #time = 5590
32 #ST = -64

blb4github avatar May 21 '24 21:05 blb4github

Should be solved in this build https://github.com/IgorYbema/HeishaMon/actions/runs/9553126605.

stumbaumr avatar Jun 18 '24 12:06 stumbaumr

Heishamon V5, SW Alpha-e17aac1

I've tested it. Sorry, still no Variables

grafik

Binifada1956 avatar Jun 18 '24 14:06 Binifada1956

Mmmh, very strange, I do get global variables with version Alpha-e17aac1

grafik

grafik

stumbaumr avatar Jun 18 '24 14:06 stumbaumr

Maybe there is a difference regarding console logging in the ESP32 vs. the ESP8266 builds.

stumbaumr avatar Jun 18 '24 14:06 stumbaumr

Do you have heishamon V4 or V5?

Binifada1956 avatar Jun 18 '24 14:06 Binifada1956

V4 - ESP8266 based. So the rules are still able to produce variable output - I think it is the build...

stumbaumr avatar Jun 18 '24 14:06 stumbaumr

The rules worked with the "old" V4 Heishamon and the variables were output correctly. The rules also run in V5, only the output in the console remains empty. Therefore no control over the content of the variables is possible.

Binifada1956 avatar Jun 18 '24 14:06 Binifada1956

I can confirm the variables are not visible in console output on V5, fw Alpha-e17aac1. I do see them in serial logging.

blb4github avatar Jun 18 '24 17:06 blb4github

This is probably something @IgorYbema should know about... somehow on ESP32 variables do not show in console output - but on ESP8266 they do...

stumbaumr avatar Jun 18 '24 17:06 stumbaumr

May be @CurlyMoo also …?

Binifada1956 avatar Jun 21 '24 15:06 Binifada1956

For ESP32 you should consult @IgorYbema

CurlyMoo avatar Jun 21 '24 15:06 CurlyMoo

This commit should fix it: https://github.com/IgorYbema/HeishaMon/commit/48e315a51e26f4eb8fb1d45a534adc28595700c1 Tested it ok

IgorYbema avatar Aug 20 '24 17:08 IgorYbema

I've tested it with my rules set I mentioned in https://github.com/Egyras/HeishaMon/issues/503, it's not working for that rules set. I have figured out it's working without the 'print' commands ( Heishamon_rules20240819_without_print.txt), thanks, great!!

blb4github avatar Aug 20 '24 19:08 blb4github

I've had similar problems with my ruleset. Version #544 contains the most developed rules version. It includes SetCurves, Concat, Print. String handling was implemented there and a few trigger detail improvements were made. Unfortunately, there are memory conflicts that can lead to a crash when a new web server session is started. I'm living with it at the moment. Curlymoo is working on it. Although my ruleset could be loaded (with the save button), there is a second loading process after a reset that reloads the rules. With this, Heishamon always crashes. My non-binding tip: I don't have these crashes anymore since I divided the longest rule, which was 640 bytes long, into 3 rules. For you, rule number 2 is also very long. Try that out. What happens if you simply leave out rule number 2 and the print commands? But I still have Heishamon V4.

McMagellan avatar Aug 20 '24 19:08 McMagellan

Thanks, I was indeed too optimistic / quick, This version does accept my rules it boots but it crashes after a minute or so. I'll try to modify rule 2. But I do see now the variables in the console, perfect! I will close this issue

blb4github avatar Aug 20 '24 21:08 blb4github