FHEM Forum

FHEM => Anfängerfragen => Thema gestartet von: Pf@nne am 23 April 2015, 22:22:44

Titel: userReadings erstellen
Beitrag von: Pf@nne am 23 April 2015, 22:22:44
Moin,

ich stehe gerade auf dem Schlauch....

Wie füge ich z.B. einem Raspberry-GPIO-Devicfe ein userReading hinzu?

Kann man z.B. einem GPIO-Device beliebig viele userReadings hinzufügen?


define Error_LED RPI_GPIO 5
attr Error_LED alias Error LED
attr Error_LED devStateIcon on:10px-kreis-rot off:1px-spacer
attr Error_LED direction output
attr Error_LED room Overheat
attr Error_LED userReadings MyReading_01 {ReadingsVal("Error_LED","state","")}
attr Error_LED userReadings MyReading_02 {ReadingsVal("Error_LED","state","")}
Titel: Antw:userReadings erstellen
Beitrag von: Joachim am 23 April 2015, 23:57:45
Moin Pf@nne,
auch wennes nervt, comandref ist Dein Freund.
ZitatuserReadings
Komma getrennte Liste von benutzerdefinierten Readings.
http://fhem.de/commandref_DE.html
also so:
attr Error_LED userReadings MyReading_01 {ReadingsVal("Error_LED","state","")},MyReading_02 {ReadingsVal("Error_LED","state","")}

Gruß Joachim
Titel: Antw:userReadings erstellen
Beitrag von: Pf@nne am 24 April 2015, 06:09:28
 :o :o :o

Sorry, ich hatte die Links in der Ref durchgesehen.
Dass da natürlich auch die Attribute allgemein drin stehen habe ich wohl mutwillig überlesen.

Nochmal sorry und danke für den Hinweis. .

Gruß
Pf@nne