[FHZ] fhem logfile hygiene: sequence

Begonnen von tiptronic, 19 Dezember 2009, 13:37:55

Vorheriges Thema - Nächstes Thema

tiptronic

                                             

Hi,

fhem complains about unknown command in the log in conjunction with the
use of sequences.

****** fhem.conf:

## Fernbedienung
define rc.1 FS20 2002 01
define rc.2 FS20 2002 02

define seq.11.on  sequence rc.1:on 1.5 rc.1:on
define seq.11.off sequence rc.1:off 1.5 rc.1:off
define seq.12.on  sequence rc.1:on 1.5 rc.2:on
define seq.12.off sequence rc.1:off 1.5 rc.2:off

define func.wz.roll.off  notify seq.11.off set wz.roll* off
define func.wz.roll.on   notify seq.11.on  set wz.roll* on
define func.wz.roll.off2 notify seq.12.off set wz.roll* off;; delete
at.temp1;; define at.temp1 at +00:00:10 set wz.roll* off
define func.wz.roll.on2  notify seq.12.on  set wz.roll* on ;; delete
at.temp1;; define at.temp1 at +00:00:10 set wz.roll* on

Pressing the sequence 1, 2 on the remote control yields:

***** fhem.log:
2009.12.19 13:35:07 2: FS20 rc.1 on
2009.12.19 13:35:08 2: FS20 rc.2 on
2009.12.19 13:35:08 2: FS20 set 1.wz.roll1 on
2009.12.19 13:35:08 2: FS20 set 1.wz.roll2 on
2009.12.19 13:35:08 2: FS20 set 1.wz.roll3 on
2009.12.19 13:35:08 3: Unknown argument on, choose one of reopen
Unknown argument on, choose one of reopen
Unknown argument on, choose one of reopen
No set implemented for func.wz.roll.off
No set implemented for func.wz.roll.off2
No set implemented for func.wz.roll.on
No set implemented for func.wz.roll.on2
2009.12.19 13:35:08 3: Please define at.temp1 first   (<--this cannot be
avoided)

The sequence works. But where do the errors come from?

Regards,
Boris

--

You received this message because you are subscribed to the Google Groups "FHEM users" group.
To post to this group, send email to fhem-users@googlegroups.com.
To unsubscribe from this group, send email to fhem-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fhem-users?hl=en.

rudolfkoenig

                                                   

> define func.wz.roll.on2  notify seq.12.on  set wz.roll* on ;; delete

I think you want to write ^wz.roll. The check lacks (yet?) enclosing ^ and $,
and it is a regexp, not a glob.  I will add the ^$, so from the next you have
to write wz.roll.*

--

You received this message because you are subscribed to the Google Groups "FHEM users" group.
To post to this group, send email to fhem-users@googlegroups.com.
To unsubscribe from this group, send email to fhem-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fhem-users?hl=en.

Matthias Gehre

                                             

Am 19.12.2009 17:34, schrieb Rudolf Koenig:
>> define func.wz.roll.on2  notify seq.12.on  set wz.roll* on ;; delete
>>    
> I think you want to write ^wz.roll. The check lacks (yet?) enclosing ^ and $,
> and it is a regexp, not a glob.  I will add the ^$, so from the next you have
> to write wz.roll.*
>  

I am confused... Isn't

set wz.roll* on

a valid command to turn on wz.roll1, wz.roll2, wz.roll3?

Regards,
Boris

--

You received this message because you are subscribed to the Google Groups "FHEM users" group.
To post to this group, send email to fhem-users@googlegroups.com.
To unsubscribe from this group, send email to fhem-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fhem-users?hl=en.

rudolfkoenig

                                                   

> I am confused... Isn't
>
> set wz.roll* on
>
> a valid command to turn on wz.roll1, wz.roll2, wz.roll3?

Yes. It matches
wzrol

--

You received this message because you are subscribed to the Google Groups "FHEM users" group.
To post to this group, send email to fhem-users@googlegroups.com.
To unsubscribe from this group, send email to fhem-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fhem-users?hl=en.

Dr. Boris Neubert

                                             

Rudolf Koenig schrieb:
>> I am confused... Isn't
>>
>> set wz.roll* on
>>
>> a valid command to turn on wz.roll1, wz.roll2, wz.roll3?
>>    
>
> Yes. It matches
> wzrol
>  
oh sure, sometimes convictions are so strong that one does not even
think about looking the syntax up in the manual. It's not a Unix glob,
it's a perl regex.

Thank you. This explains the messages (after some more thinking :-)

Regards,
Boris

--

You received this message because you are subscribed to the Google Groups "FHEM users" group.
To post to this group, send email to fhem-users@googlegroups.com.
To unsubscribe from this group, send email to fhem-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fhem-users?hl=en.
Globaler Moderator, Developer, aktives Mitglied des FHEM e.V. (Marketing, Verwaltung)
Bitte keine unaufgeforderten privaten Nachrichten!