Hauptmenü

fs20rsu status

Begonnen von Guest, 10 Januar 2011, 14:10:33

Vorheriges Thema - Nächstes Thema

Guest

Originally posted by: <email address deleted>

Hi,

I'm using a fs20rsu for my shutters. The only thing what is so strange
in fhem you seethe states on and off, that is it the shutter is open,
it's on and when it's closed.

Is it possible to change it in fhem software to open and closed for
the fs20rsu?

fhem> l Rolluik
Internals:
   BTN        10
   DEF        4661 10
   IODev      CUL
   NAME       Rolluik
   NR         58
   STATE      on
   TYPE       FS20
   XMIT       4661
   Code:
     1          4661 10
   Readings:
     2011-01-10 06:32:00   state           on
Attributes:
   model      fs20rsu
   room       Woonkamer

--
Sie haben diese Nachricht erhalten, da Sie der Google Groups-Gruppe FHEM users beigetreten sind.
Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine E-Mail an fhem-users@googlegroups.com.
Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an fhem-users+unsubscribe@googlegroups.com.
Besuchen Sie die Gruppe unter http://groups.google.com/group/fhem-users?hl=de, um weitere Optionen zu erhalten.

Guest

Originally posted by: <email address deleted>

Rudolf,

the eventmap works like described, only when restarting fhem it
doesn't work

Undefined value closed at /usr/bin/fhem.pl line 306.

and fhem doesn't start. When in statefile changed to off, it works.


On Jan 10, 2:41 pm, Rudolf Koenig wrote:
> > I'm using a fs20rsu for my shutters. The only thing what is so strange
> > in fhem you seethe states on and off, that is it the shutter is open,
> > it's on and when it's closed.
>
> There is a new (one week old) global attribute in CVS exactly for this purpose:
>
> eventMap
>
> Exchange event or command names to a device specific version. This will also be
> used to exchange set arguments (if possible). Example:
>
>   attr store eventMap on:open off:closed
>   set store open

--
Sie haben diese Nachricht erhalten, da Sie der Google Groups-Gruppe FHEM users beigetreten sind.
Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine E-Mail an fhem-users@googlegroups.com.
Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an fhem-users+unsubscribe@googlegroups.com.
Besuchen Sie die Gruppe unter http://groups.google.com/group/fhem-users?hl=de, um weitere Optionen zu erhalten.

Guest

Originally posted by: <email address deleted>

Hi Rudi,

I can confirm this, it's here:
if($attr{global}{statefile} && -r $attr{global}{statefile}) {
  $ret = CommandInclude(undef, $attr{global}{statefile});
  die($ret) if($ret);
}

Ciao, Arno


2011/1/31 kroon040 :
> Rudolf,
>
> the eventmap works like described, only when restarting fhem it
> doesn't work
>
> Undefined value closed at /usr/bin/fhem.pl line 306.
>
> and fhem doesn't start. When in statefile changed to off, it works.
>
>
> On Jan 10, 2:41 pm, Rudolf Koenig wrote:
>> > I'm using a fs20rsu for my shutters. The only thing what is so strange
>> > in fhem you seethe states on and off, that is it the shutter is open,
>> > it's on and when it's closed.
>>
>> There is a new (one week old) global attribute in CVS exactly for this purpose:
>>
>> eventMap
>>
>> Exchange event or command names to a device specific version. This will also be
>> used to exchange set arguments (if possible). Example:
>>
>>   attr store eventMap on:open off:closed
>>   set store open
>



--
Arno Willig

--
Sie haben diese Nachricht erhalten, da Sie der Google Groups-Gruppe FHEM users beigetreten sind.
Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine E-Mail an fhem-users@googlegroups.com.
Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an fhem-users+unsubscribe@googlegroups.com.
Besuchen Sie die Gruppe unter http://groups.google.com/group/fhem-users?hl=de, um weitere Optionen zu erhalten.

rudolfkoenig

                                                   

> I can confirm this, it's here:
> if($attr{global}{statefile} && -r $attr{global}{statefile}) {
>   $ret = CommandInclude(undef, $attr{global}{statefile});
>   die($ret) if($ret);
> }

The problem is, that since the last fhem.pl update CommandInclude actually
returns the errors so the "old" check is now has something to check. I replaced
it yesterday with a log message, as I dont think it is worth dying.

--
Sie haben diese Nachricht erhalten, da Sie der Google Groups-Gruppe FHEM users beigetreten sind.
Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine E-Mail an fhem-users@googlegroups.com.
Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an fhem-users+unsubscribe@googlegroups.com.
Besuchen Sie die Gruppe unter http://groups.google.com/group/fhem-users?hl=de, um weitere Optionen zu erhalten.

rudolfkoenig

                                                   

> the eventmap works like described, only when restarting fhem it
> doesn't work

Correct, I hope I could fixed it now.

To manually fix it add in fhem.pl/CommandSetstate() the line
  ReplaceEventMap($sdev, $b[2]);
before the CallFn line.

--
Sie haben diese Nachricht erhalten, da Sie der Google Groups-Gruppe FHEM users beigetreten sind.
Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine E-Mail an fhem-users@googlegroups.com.
Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an fhem-users+unsubscribe@googlegroups.com.
Besuchen Sie die Gruppe unter http://groups.google.com/group/fhem-users?hl=de, um weitere Optionen zu erhalten.

Guest

Originally posted by: <email address deleted>

I grabbed the new fhem.pl, and now it works.

Richard

On Feb 6, 9:32 am, Rudolf Koenig wrote:
> > the eventmap works like described, only when restarting fhem it
> > doesn't work
>
> Correct, I hope I could fixed it now.
>
> To manually fix it add in fhem.pl/CommandSetstate() the line
>   ReplaceEventMap($sdev, $b[2]);
> before the CallFn line.

--
Sie haben diese Nachricht erhalten, da Sie der Google Groups-Gruppe FHEM users beigetreten sind.
Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine E-Mail an fhem-users@googlegroups.com.
Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an fhem-users+unsubscribe@googlegroups.com.
Besuchen Sie die Gruppe unter http://groups.google.com/group/fhem-users?hl=de, um weitere Optionen zu erhalten.

Guest

Originally posted by: <email address deleted>

But other question. I want to set a memory setting with eventmap.

How must I do it?

I have this

attr Schutter eventMap on:open off:closed off-for-timer 10:mem

regards Richard

On Feb 7, 9:56 pm, kroon040 wrote:
> I grabbed the new fhem.pl, and now it works.
>
> Richard
>
> On Feb 6, 9:32 am, Rudolf Koenig wrote:
>
> > > the eventmap works like described, only when restarting fhem it
> > > doesn't work
>
> > Correct, I hope I could fixed it now.
>
> > To manually fix it add in fhem.pl/CommandSetstate() the line
> >   ReplaceEventMap($sdev, $b[2]);
> > before the CallFn line.
>
>

--
Sie haben diese Nachricht erhalten, da Sie der Google Groups-Gruppe FHEM users beigetreten sind.
Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine E-Mail an fhem-users@googlegroups.com.
Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an fhem-users+unsubscribe@googlegroups.com.
Besuchen Sie die Gruppe unter http://groups.google.com/group/fhem-users?hl=de, um weitere Optionen zu erhalten.

rudolfkoenig

                                                   

> attr Schutter eventMap on:open off:closed off-for-timer 10:mem

Nice idea, but currently won't work, sorry.

--
Sie haben diese Nachricht erhalten, da Sie der Google Groups-Gruppe FHEM users beigetreten sind.
Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine E-Mail an fhem-users@googlegroups.com.
Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an fhem-users+unsubscribe@googlegroups.com.
Besuchen Sie die Gruppe unter http://groups.google.com/group/fhem-users?hl=de, um weitere Optionen zu erhalten.

rudolfkoenig

                                                   

> I'm using a fs20rsu for my shutters. The only thing what is so strange
> in fhem you seethe states on and off, that is it the shutter is open,
> it's on and when it's closed.

There is a new (one week old) global attribute in CVS exactly for this purpose:

eventMap

Exchange event or command names to a device specific version. This will also be
used to exchange set arguments (if possible). Example:

  attr store eventMap on:open off:closed
  set store open

--
Sie haben diese Nachricht erhalten, da Sie der Google Groups-Gruppe FHEM users beigetreten sind.
Wenn Sie Nachrichten in dieser Gruppe posten möchten, senden Sie eine E-Mail an fhem-users@googlegroups.com.
Wenn Sie aus dieser Gruppe austreten möchten, senden Sie eine E-Mail an fhem-users+unsubscribe@googlegroups.com.
Besuchen Sie die Gruppe unter http://groups.google.com/group/fhem-users?hl=de, um weitere Optionen zu erhalten.