Ankündigung

Einklappen
Keine Ankündigung bisher.

linknx/eibd rolladen group addresses

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

    linknx/eibd rolladen group addresses

    I am trying to configure automatic closing of the shutters around sunset; while opening them manually. The issue seems to be that linknx doesn't want to send another close to a group it thinks it is already closed (question about on/on/on on type of group addresses).

    I have grouped all my shutters, upstairs and downstairs in separate groups for convenience and this seems to the start of the problem. My configuration is as follows:

    Code:
    <object type="1.001" id="92" gad="2/0/5"><listener gad="3/0/4" /><listener gad="3/0/6" /> Living vitrine op/neer (motorsturingen) </object>
    <object type="1.001" id="93" gad="2/0/6"><listener gad="3/0/4" /><listener gad="3/0/6" /> Kitchen deur op/neer (motorsturingen) </object>
    <object type="1.001" id="94" gad="2/0/7"><listener gad="3/0/4" /><listener gad="3/0/5" /> Room NO op/neer (motorsturingen) </object>
    <object type="1.001" id="95" gad="2/0/8"><listener gad="3/0/4" /><listener gad="3/0/5" /> Room ZO op/neer (motorsturingen) </object>
    I have my individual address (2/0/5), my all shutters address (3/0/4) and my up or down level addresses (3/0/{5|6}). During the evening; I close the upstairs shutters and some time later, the down ones if we don't have a particular ligh on/off (don't want to get us locked out).

    These are the rules:
    Code:
            <rule id="shutters_up_down">
                <condition type="timer" trigger="true">
                    <at type="sunset" offset="-30m" />
                </condition>
                <actionlist>
                    <!-- upstairs down -->
                    <action type="set-value" id="119" value="on" />
                </actionlist>
            </rule>
            <!-- downstairs down only if kitchen light is not on -->
            <rule id="shutters_down_down">
                <condition type="and">
                    <condition type="timer" trigger="true">
                        <at type="sunset" />
                    </condition>
                    <condition type="object" id="4" value="off" />
                </condition>
                <actionlist>
                    <!-- downstairs down -->
                    <action type="set-value" id="118" value="on" />
                </actionlist>
            </rule>
    In the morning; some of the shutters are opened on an individual basis; or they are opened by using the group addresses. (up/down/all levels).

    I have noticed that, even though I thought to have compensated by letting the objects listen to the different group addresses of up/down/all levels; the linknx state is not adjusted accordingly; or as I would expect; the shutters that are not opened individually are not shown as openend on knxweb; and when I do not fix this; the opening and closing of the shutters seems to fail during the evening.

    If the 'close up/down/all' commands are sent in the evening with linknx; the knxweb status is not adjusted either. I found a post that was claiming that multiple on/on commands are not supported if the status is 'on'. Probably there is a mismatch in my configuration that doesn't allow the internal states to be updated accordingly and resulting in ignoring to send the new (evening down) state.

    Since I am about to start packaging linknx in Debian; I'd like to have this scenario solved as an example in the package since I expect that this is a scenario other people would use to.

    #2
    Zitat von erpel Beitrag anzeigen
    I have noticed that, even though I thought to have compensated by letting the objects listen to the different group addresses of up/down/all levels; the linknx state is not adjusted accordingly; or as I would expect; the shutters that are not opened individually are not shown as openend on knxweb; and when I do not fix this; the opening and closing of the shutters seems to fail during the evening.
    Hi,

    The ability to configure "stateless" objects will be possible in next release (the code is already there in CVS, but I have no idea when I'll have time to make a new release). The objects configured as "stateless" will send the value on the bus every time the "set-value" action is executed, whatever the previous value was.

    But in your case, I think the problem is somewhere else, because when a command is send to the blinds to open them, it should always update the visu state.
    I see that your rules set the value of objects with ID 118 and 119. Could you also give the configuration of these objects?

    Thanks,

    Jean-François

    Kommentar


      #3
      Zitat von jef2000 Beitrag anzeigen
      But in your case, I think the problem is somewhere else, because when a command is send to the blinds to open them, it should always update the visu state.
      I see that your rules set the value of objects with ID 118 and 119. Could you also give the configuration of these objects?
      Code:
      <object type="1.001" id="114" gad="3/0/0">All off(functions) </object>
      <object type="1.001" id="115" gad="3/0/1">All shutters up/down (functions)</object>
      <object type="10.001" id="cur_time" gad="3/0/2">TIME SIGNAL (functions) </object>
      <object type="11.001" id="cur_date" gad="3/0/3">DATE SIGNAL (functions) </object>
      <object type="1.001" id="118" gad="3/0/4">All shutters downstairs up/down </object>
      <object type="1.001" id="119" gad="3/0/5">All shutters upstairs up/down</object>
      <object type="1.001" id="120" gad="3/0/6">All shutters downstairs up/down </object>
      <object type="1.001" id="121" gad="3/0/7">All shutters upstairs up/down </object>
      The relevant gad's are 115, 118 and 119 (115 is all 118 and 119), hence the listeners in ...

      euhm.

      shoot. my listen values are wrong, the previous config should be:

      <object type="1.001" id="87" gad="2/0/0"><listener gad="3/0/1" /><listener gad="3/0/4" /> bureau op/neer (motorsturingen) </object>
      <object type="1.001" id="88" gad="2/0/1"><listener gad="3/0/1" /><listener gad="3/0/4" /> waskot op/neer (motorsturingen) </object>
      <object type="1.001" id="89" gad="2/0/2"><listener gad="3/0/1" /><listener gad="3/0/4" /> Kitchen wasbak op/neer (motorsturingen) </object>
      <object type="1.001" id="90" gad="2/0/3"><listener gad="3/0/1" /><listener gad="3/0/4" /> zithoek hoekvenster op/neer (motorsturingen) </object>
      <object type="1.001" id="91" gad="2/0/4"><listener gad="3/0/1" /><listener gad="3/0/4" /> Kitchen venster op/neer (motorsturingen) </object>
      <object type="1.001" id="92" gad="2/0/5"><listener gad="3/0/1" /><listener gad="3/0/4" /> Living vitrine op/neer (motorsturingen) </object>
      <object type="1.001" id="93" gad="2/0/6"><listener gad="3/0/1" /><listener gad="3/0/4" /> Kitchen deur op/neer (motorsturingen) </object>
      <object type="1.001" id="94" gad="2/0/7"><listener gad="3/0/1" /><listener gad="3/0/5" /> Room NO op/neer (motorsturingen) </object>
      <object type="1.001" id="95" gad="2/0/8"><listener gad="3/0/1" /><listener gad="3/0/5" /> Room ZO op/neer (motorsturingen) </object>
      <object type="1.001" id="96" gad="2/0/9"><listener gad="3/0/1" /><listener gad="3/0/5" /> Room ZW Rolluiken op/neer (motorsturingen) </object>
      <object type="1.001" id="97" gad="2/0/10"><listener gad="3/0/1" /><listener gad="3/0/5" /> Room NW op/neer (motorsturingen) </object>
      <object type="1.001" id="98" gad="2/0/11"><listener gad="3/0/1" /><listener gad="3/0/5" /> Room Z op/neer (motorsturingen) </object>
      I did a quick test (kids are in bed and luckily my wife is not at home otherwise I would get flamed for testing this) and it seems to work out; I can only really verify this tomorrow. The states seem to be updated correctly now

      This also means that I have to update the downstairs and upstairs with these; otherwise my downstairs would not close if I opend the shutters with 'all'.

      <object type="1.001" id="118" gad="3/0/4"><listener gad="3/0/1" />algemene Alle rolluiken beneden op/neer (functions) </object>
      <object type="1.001" id="119" gad="3/0/5"><listener gad="3/0/1" />algemene Alle rolluiken boven op/neer (functions) </object>
      Using the same reasoning; If even one shutter is opened in any case; downstairs, upstairs or all up/down should still work; does this mean that I need to add all the group addresses from my individual shutters to the 118 and 119 and 115 addresses so that an update of even one shutter updates the internal status of these 'groups'?

      Kommentar


        #4
        Zitat von erpel Beitrag anzeigen
        Using the same reasoning; If even one shutter is opened in any case; downstairs, upstairs or all up/down should still work; does this mean that I need to add all the group addresses from my individual shutters to the 118 and 119 and 115 addresses so that an update of even one shutter updates the internal status of these 'groups'?
        After thinking a bit more about it, I think you need the "sateless" object for that, because if one of the blinds is open and the other one is closed, there is no "state" corresponding to the group of blinds. Take a simple case with 2 blinds 2/0/5 and 2/0/6 with a "all up/down" command 3/0/6 . If 2/0/5 is opened and 2/0/6 is closed, there is no correct value for 3/0/6 because each of the possible values would prevent linknx to actuate one of the blinds. If 3/0/6 state is opened, it's not possible to open the blind that was closed using address 3/0/6. If 3/0/6 state is closed, it's not possible to close the blind that was opened using address 3/0/6. That's the reason whi I created stateless objects and rules.

        Regards,

        Jean-François

        Kommentar


          #5
          Zitat von jef2000 Beitrag anzeigen
          That's the reason whi I created stateless objects and rules.
          Ah very good news. I am integrating this on an armel NSLU2 at the moment; but it is basically intended for use with a SheeVa Plug.

          Since I know that I'll need to do the programming of 3 EIB friends; good to know that the stateless objects are there for shutters.

          In any case; I'll have some work for getting eibd/pthsem and linknx packaged and up to standards; after that; I might test your CVS code to this purpose. I just converted everything from a bunch of cron jobs; but your linknx adds a lot more wrt being appealing to the wives of the colleagues (if it is not graphical it cannot be good).

          Kommentar


            #6
            Nice stuff, this SheevaPlug. And the manufacturer plans to have the price dropped under 50$.

            I have an installation to do and I plan to install an NSLU2 in combination with an KNX USB adapter (Siemens N148/11). this makes a reasonable home automation server for less than 250€.

            Keep us informed about the SheevaPlug and if you have some binaries or useful info for that platform, you can always send it and I'll put it on the sourceforge project.

            Regards,

            Jean-François

            Kommentar


              #7
              Zitat von jef2000 Beitrag anzeigen
              Nice stuff, this SheevaPlug. And the manufacturer plans to have the price dropped under 50$.

              I have an installation to do and I plan to install an NSLU2 in combination with an KNX USB adapter (Siemens N148/11). this makes a reasonable home automation server for less than 250€.

              Keep us informed about the SheevaPlug and if you have some binaries or useful info for that platform, you can always send it and I'll put it on the sourceforge project.
              I wouldn't buy a new NSLU2, the sheeva is about the same price and much better performance, hardware included (512 NAND, 512 Mem); and is IMHO a much better design (to be fair; it's several years newer).

              We have ordered 11 a couple of weeks ago for engineers in our lab. If you have a choice; take the development version; it comes with a USB mini cable to use as both serial and JTAG (with openOCD). It just looks more sturdy and finished for use as a controller device.

              The price was (end of august) under 80 euro, shipping included.

              I will be retiring my NSLU2 devices (though I grew quite fond of it over the years).

              Beats using a BDI3000 probe JTAG and debugging at 3000 Euro for home projects :-)

              It comes with a Debian that has been raped by ubuntu (there is no other way to describe it since they seem to have started from Lenny and installed a number Ubuntu packages on top of it by using an Ubuntu repos. Some scripting can easiliy make it a pure Debian again (pure Ubuntu would be the same effort). Installing anew is of course the cleanest.

              I already a usable package for linknx as I stated in my ITP; I only need to wrap up eibd-server and phtsem with Martin before I can even think on submitting linknx :-(

              However, it works just fine in combination with Martin's packages; send me a message/mail if you want to get hold of it.

              Kommentar


                #8
                Hello Jeff and Erpel,

                i have a running SheevaPlug (PlugComputer Community) Installation with debian lenny, eibd, linknx, mysql, lighttpd etc. on this arm platform (Debian on the SheevaPlug) since May '09.
                Martin Michlmayer has actually build a debian testing installer.
                This is the absolut fantastic 5W stable home automation server platform i've ever dreamed of.

                Regards, davall

                Kommentar


                  #9
                  Zitat von davall Beitrag anzeigen
                  Martin Michlmayer has actually build a debian testing installer.
                  This is the absolut fantastic 5W stable home automation server platform i've ever dreamed of.
                  Yeah, we'll be ordering another batch for the engineering department of our company; especially since we are already considering integrating this CPU or one of its' close relatives into hardware.

                  The Sheeva is a real nice home development product; even for people just coming into contact with embedded (if you can call a trimmed down version of debian embedded).

                  Kommentar


                    #10
                    plugcomputer.org small desc.

                    BTW, I added a small description on how to use the plug computer pretty much out of the box with eibd/linknx/knxweb on plugcomputer.org

                    Let's hope it attracts more users.

                    http://plugcomputer.org/plugforum/index.php?topic=824.0

                    Kommentar


                      #11
                      Thanks for this description. I've build eibd, linknx etc. with the optware toolchain. But building debian packages was a mystery for me. Therefore i put them in /opt to have mostly a clean debian system. You seem to have this missing knowledge. It would be nice if you can share the debian packages for the Sheeva armel platform and even nicer if those packages find their way in the debian repos ;-) Regards, davall

                      Kommentar


                        #12
                        Zitat von davall Beitrag anzeigen
                        It would be nice if you can share the debian packages for the Sheeva armel platform and even nicer if those packages find their way in the debian repos ;-)
                        But of course!

                        Send me a private message with your e-mail; I'll send the 4 packages to you. I have still some work to do for getting them in Debian (manpages etc).

                        added repos:

                        Code:
                        deb http://scorpius.homelinux.org/~marc/debian lenny main contrib non-free
                        deb-src http://scorpius.homelinux.org/~marc/debian lenny main contrib non-free

                        Kommentar


                          #13
                          Great. Thanks!. Now a clean packaged debian system for home automation is possible. Your linknx package is build without mysql support. Is it possible for you to add it to the .deb package? I'm using mysql support in linknx for logging and persistance. I'm using cvs version of linknx, cause there was a fixed bug from jeff in objectcontroller i needed. Regards, davall

                          Kommentar


                            #14
                            Zitat von davall Beitrag anzeigen
                            Great. Thanks!. Now a clean packaged debian system for home automation is possible. Your linknx package is build without mysql support. Is it possible for you to add it to the .deb package? I'm using mysql support in linknx for logging and persistance. I'm using cvs version of linknx, cause there was a fixed bug from jeff in objectcontroller i needed. Regards, davall
                            For the MySQL support, that's something I can have a look at. The SVN snapshot is something different. SVN snapshots are typically taken (for packages) when upstream either does not release or releases extremely slow.

                            AFAIK, this is not the case with Jeff. I think we should focus on having the current release out. If Jeff releases before the package is in Debian; I'll need to bump.

                            However; if you can provide the specific patch; I can add the patch in the debian/patches directory; and your fix should be in the debian package even though it is a previous release.

                            Kommentar


                              #15
                              Fine.
                              Patch is attached.

                              Greets, davall
                              Angehängte Dateien

                              Kommentar

                              Lädt...
                              X