[FHZ] Access to Attributes?

Begonnen von Guest, 20 Januar 2010, 11:11:57

Vorheriges Thema - Nächstes Thema

Guest

Originally posted by: <email address deleted>

Hi,

when a user issues

   attr MyDevice MyAttribute TheValue

how can a FHEM module access this data? It shows up in "list MyDevice",
but I don't find a documented way to access this from within e. g.
SetFN(). Is this even supported or should I use AttrFN() and store the
data elsewhere?
         kai

--
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.

Guest

Originally posted by: <email address deleted>

Hi,

so:
my $TheValue = $attr{MyDevice}{MyAttribute}

Schöne Grüße

Axel

--
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.

Guest

Originally posted by: <email address deleted>

Sorry, wenn ich die Liste missbrauche, aber ich liege derzeit flach und komme an meine Büromails nicht ran :-(

Axel: Könntest Du Dich nochmal bei mir melden?

Danke

a.
--
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.

Guest

Originally posted by: <email address deleted>

Axel wrote:

> my $TheValue = $attr{MyDevice}{MyAttribute}

Super, klappt. Danke!
         kai


--
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.

Guest

Originally posted by: <email address deleted>

Hi Andy,

Mail ist unterwegs....

Axel

--
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.