Ankündigung

Einklappen
Keine Ankündigung bisher.

Question about HS logic

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    HS/FS Question about HS logic

    Hi!

    Sorry for the English. I use a counter in HS for many different things, I calculate how many starts the compressor of my heating pump has every day, I calculate how much water and electricity I use every day. This works fine.

    But I want to also see yesterday's values (or for that matter, compare this week to last week). I have made some logic that does this, but maybe 1 out of 10 times in average, something goes wrong, and yesterday's values show as 0. I have attached the logic. I know it's bad, but it's the only way I could make it work with my very limited skillset... Very, very thankful if someone could look at it, or tell me that I should do this a totally different way...

    I know I could use an Archive, but as far as I can see, I can't use the values of the Archive in Quadclient in any other way than as a graph, and I don't want that...

    (it's a real pity I can't use values from the Archive in HS logic...)

    Hope someone understands, and have the time to look at this

    Regards,
    Stian
    Angehängte Dateien

    #2
    I understand what you mean

    I do realise similar task with logik. I use a sequence for this, so I can exactly do one thing after the other. I start my sequnce with a USZU at 23:59.

    The sequence
    - saves actual value"Day" to "Yesterday"
    - sets "day" to zero
    - ....

    It works in Logic, but you use a lot of resources.
    Gruß Matthias
    EIB übersetzt meine Frau mit "Ehepaar Ist Beschäftigt"
    - PN nur für PERSÖNLICHES!

    Kommentar


      #3
      Haha, thanks! I had no idea what sequences were for. I'll try tonight, but I guess that will work much better and much easier to implement. Still needs to come up with something clever to reset the counter, but that should be possible.

      Thank you!

      -Stian

      Kommentar


        #4
        To reset the counter, use an internal object (iKO), connect it to your counter, set it to 1 during your sequence at the desired time.
        Gruß Matthias
        EIB übersetzt meine Frau mit "Ehepaar Ist Beschäftigt"
        - PN nur für PERSÖNLICHES!

        Kommentar


          #5
          That was my thinking as well, but do I also need to set that iKO back to 0 a few seconds after?

          Kommentar


            #6
            No
            Gruß Matthias
            EIB übersetzt meine Frau mit "Ehepaar Ist Beschäftigt"
            - PN nur für PERSÖNLICHES!

            Kommentar


              #7
              Sorry, I never replied here, but this of course worked very well (although it took me some time to understand what USZU meant But my four years of learning german at school all those years ago did find it's use.

              Thank you very much for your kind help!

              Kommentar

              Lädt...
              X