Program doesn't run... at all?

Support for our english speaking visitors

Moderator: Co-Administratoren

Antworten
blueznl
Beiträge: 109
Registriert: 29.11.2014, 18:09
Danksagung erhalten: 1 Mal

Program doesn't run... at all?

Beitrag von blueznl » 27.01.2019, 14:35

(I crossposted this in the German part of the forum, in the hope someone could point out my error to me.)

I am utterly stumped. The next program simply doesn't run, but why? Is it a bug in the CCU2 with complex conditions, or is the problem as usual between chair and keyboard?

What I'm trying, in pseudo code:

Code: Alles auswählen

IF ( valve position > 10% open AND temperature > 23 C ) OR ( valve sticking OR error position OR some other error )
  ;
  ; valve shouldn't be open on high temperatures, and serious problems should be highlighted
  ;
  display red light
  ;
ELSEIF ( temperature > 23 C AND warning light is orange ) OR ( battery valve empty OR low battery thermostat )
  ;
  ; some other part of my system triggered an error condition, which in turn switched on a specific warning light
  ; also show low batteries (time to replace them)
  ;
  display orange light
  ;
ELSEIF ( valve position > 10% open )
  ;
  ; no error condition was triggered before, so it's okay the valve is open, show a green light
  ;
  display green light
  ;
ELSE
  ;
  ; valve is closed, nothing to show
  ;
  display no light
  ;
ENDIF
Unfortunately NOTHING happens, it's like the program simply doesn't run at all. What am I doing wrong?

noluck.jpg

tomi_cc16
Beiträge: 1151
Registriert: 30.11.2013, 16:35
Wohnort: Mordor
Hat sich bedankt: 23 Mal
Danksagung erhalten: 56 Mal

Re: Program doesn't run... at all?

Beitrag von tomi_cc16 » 27.01.2019, 15:04

Thats is for somebody like e.g. Alchy I’m not deep in scripting.

blueznl
Beiträge: 109
Registriert: 29.11.2014, 18:09
Danksagung erhalten: 1 Mal

Re: Program doesn't run... at all?

Beitrag von blueznl » 29.01.2019, 23:29

Previously I was tempted to think it's a bug in the CCU2... And I'm beginning to think so again. Whenever I use any of the 'error checking' fields like sticking valves, low battery etc. strange and unpredictable things happen. And in spite of looking around I haven't found any message confirming the actual usability of these functions / fields...

Once I took them out everything worked flawlessly.

But... how can I then proactively look for problems, without having to rely on service messages? (Which are flooded by communication errors and thus not very useful. At least give me a way to detect a CAL error, grrrr...)

alchy
Beiträge: 10754
Registriert: 24.02.2011, 01:34
System: CCU
Hat sich bedankt: 65 Mal
Danksagung erhalten: 673 Mal

Re: Program doesn't run... at all?

Beitrag von alchy » 01.02.2019, 13:14

tomi_cc16 hat geschrieben:
27.01.2019, 15:04
Thats is for somebody like e.g. Alchy I’m not deep in scripting.
There is no scripting problem - just probably a program logic problem or a Bug.
Everyone can test it and try to help.

Alchy

Blacklist................... almost full
Ignoranz ist die Summe aller Maßnahmen die man ergreift, um bestehende Tatsachen nicht sehen zu müssen.

© Sandra Pulsfort (*1974)

Lies bitte die Logik von WebUI Programmen und die Tipps und Tricks für Anfänger.

Wichtig auch CUxD ersetzt System.exec. Die HM Script Doku (Downloadart Skripte) hilft auch weiter.
Zum Testen von Scripten den >> HomeMatic Script Executor << von Anli benutzen.

Antworten

Zurück zu „HomeMatic - english“