Hauptmenü

userReadings erstellen

Begonnen von Pf@nne, 23 April 2015, 22:22:44

Vorheriges Thema - Nächstes Thema

Pf@nne

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","")}
FHEM auf: DS415+ (Master), Raspberry Pi 2

Joachim

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
FHEM aktuellste Version auf FB 7570 und 7390 mit Zebradem Toolbox Freetz
FHEM auf Raspberry
1-Wire mit LinkUSBi und Rs-Pi ds2482-800  1-Wire-9 Board; Max mit Cube, HMLAN
div. 1-Wire Sensoren; MAX-Thermostaten; Homematic-Komponenten, Zehnder KWL über RS-232

Pf@nne

 :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
FHEM auf: DS415+ (Master), Raspberry Pi 2