Any light on?

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • Aleq
    Smart Home'r
    • 04.05.2016
    • 52

    Any light on?

    Hi guys,
    instead of inventing wheel, I thought I'll rather ask - what is the best practice to detect if (on selected light controllers) there is any light turned on?

    My idea was to use AQs which is 0, if there is nothing lit. Is there any better way then storing each Lighting Controller's AQs into separate Memory flags (1 per Lighting Controller) and then OR all the values? Preferably with less Memory flags?

    Thanks,
    Aleq
  • Aleq
    Smart Home'r
    • 04.05.2016
    • 52

    #2
    Just found Central Block, could it do the trick?

    Kommentar

    • duncan
      LoxBus Spammer
      • 28.08.2015
      • 310

      #3
      i think the central block only works as an input device for certain functions like double or triple click, you may have to keep your memory flags

      Kommentar

      • Aleq
        Smart Home'r
        • 04.05.2016
        • 52

        #4
        Sadly, true. Although Central block has all light input and all light output, the output pulse is generated only when the Central block input is triggered. That doesn't make much sense to me, as I can route all those inputs into my temp memory flag and then this memory flag into the Central block input - all light on. Then I have the same information in memory flag. But to read out all Lighting controller, I'll need a handful memory flags a lot of connections.

        Anyone has an idea how to neatly implement a Memory flag being on when there is any light turned on on the selected Lightring controllers?

        Kommentar

        • Gast

          #5
          Zitat von Aleq
          Sadly, true. Although Central block has all light input and all light output, the output pulse is generated only when the Central block input is triggered. That doesn't make much sense to me, as I can route all those inputs into my temp memory flag and then this memory flag into the Central block input - all light on. Then I have the same information in memory flag. But to read out all Lighting controller, I'll need a handful memory flags a lot of connections.

          Anyone has an idea how to neatly implement a Memory flag being on when there is any light turned on on the selected Lightring controllers?
          Sorry, not here. I actually think your first solution was quite good. What's the problem with it?

          Kommentar


          • Aleq
            Aleq kommentierte
            Kommentar bearbeiten
            Only the lack of elegance having the design plagued by too many memory flags. 1 per Lighting controller +1 for the "OR" result of all of them... So I was wondering if anyone knew more elegant way.
        • Aleq
          Smart Home'r
          • 04.05.2016
          • 52

          #6
          Zitat von pmatos

          Sorry, not here. I actually think your first solution was quite good. What's the problem with it?
          This is the problem :-) It works, though...

          Kommentar

          • DellJoe
            Extension Master
            • 25.08.2015
            • 133

            #7
            You know you can put more than one input to an OR and all of them are OR connected? So you do not need all of them.
            Also your memory flag sets 1 if a light is on? In this case you do not need unequal to 1. Just one OR with all the flags connected has as output 1 if any light is on and 0 if all are off.
            Loxone Miniserver, Loxone 1wire Extension, KNX Sensorik & Aktorik (u.a. MDT Glastaster), Loxberry (Wetterserver, 433MHz, Netatmo, HA-Bridge), Helios KWL, Amazon Echo, Netatmo Wetterstation, Netatmo Presence und viele andere Basteleien...

            Kommentar

            • Aleq
              Smart Home'r
              • 04.05.2016
              • 52

              #8
              Hi DellJoe,
              each memory flags on the left is connected to "Current scene" (AqS) of a Lighting Controller (see the attached image). This is 0 when all the lights are off, some other value otherwise (-1 for unknown scene, etc). Comparing the Memory Flag to 0 seemed to be the easiest (the least Memory Flags and controls involved) way of getting digital information if there is any light lit. Is it not?

              Thanks for the tip about OR. I've connected all the Unequal results directly into the memory flag. It seems to be natively OR-ing the value. See the screenshot #2. Is it documented function, do you know if I can rely on this? Worked well in the simulation...

              Kommentar

              • romildo
                Lebende Foren Legende
                • 25.08.2015
                • 5113

                #9
                An additional possibility
                Klicke auf die Grafik für eine vergrößerte Ansicht

Name: AnyLightOn.png
Ansichten: 334
Größe: 25,7 KB
ID: 68293
                lg Romildo

                Kommentar

                • Aleq
                  Smart Home'r
                  • 04.05.2016
                  • 52

                  #10
                  Neat idea!

                  Kommentar

                  Lädt...