FHEM Forum

FHEM => fhem-users => Thema gestartet von: Dr. Boris Neubert am 25 Juli 2009, 09:22:14

Titel: [FHZ] Use of uninitialized value in sprintf at /data/Homeautomation/fhem/FHEM/99_XmlList.pm line 83.
Beitrag von: Dr. Boris Neubert am 25 Juli 2009, 09:22:14
                                             

Hi,

to avoid spilling my log with messages from a "ghost" FHT device, I
added a definition to the config file and banned the device to the room
hidden. I constantly receive messages for the device which leads to an
incomplete set of readings.

list x.hzg
Internals:
   CODE       5e3b
   DEF        5e3b
   IODev      FHZ
   NAME       x.hzg
   NR         50
   RAWMSG     810c04fb0909a0015e3b040001aa
   STATE      ???
   TYPE       FHT
   Readings:
     2009-07-25 09:10:18   actuator4       99%
     Measured-temp:
Attributes:
   retrycount 3
   room       hidden

The incomplete "measured-temp" reading leads to the warning "Use of
uninitialized value in sprintf at
/data/Homeautomation/fhem/FHEM/99_XmlList.pm line 79." in the log. I
suggest suppressing the tag in the XmlList in such cases to
avoid the warning message in the log. Before I change the source (and
commit it to CVS), I would like to know if a missing state line could
break anything else.

Regards,
Boris


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHEM users on Linux" 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
-~----------~----~----~----~------~----~------~--~-
Titel: [FHZ] Re: Use of uninitialized value in sprintf at /data/Homeautomation/fhem/FHEM/99_XmlList.pm line 83.
Beitrag von: Dr. Boris Neubert am 25 Juli 2009, 17:33:42
                                                   

> I suggest suppressing the tag in the XmlList in such cases to
> avoid the warning message in the log.

I hope not. I changed the source and checked it in myself.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHEM users on Linux" 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
-~----------~----~----~----~------~----~------~--~-