Brauche mal hilfe bei der FHEM2FHEM Log mit einem Temperatur Sensor DS18..

Begonnen von Freddy, 15 Februar 2015, 12:32:15

Vorheriges Thema - Nächstes Thema

Freddy

Hallo,
ich sollte vom meinem raspberry pi, der ein DS1820B hat, die Temperatur an dem Haupt FHEM (NAS) senden mit FHEM2FHEM LOG.
Ich habe es auch schon hinbekommen, dass ein Dummy am Haupt liegt, der in "state" die Temperatur  "T: 18.000"  von dem pi bekommt. Aber jetzt komme ich nicht weiter, wie ich die Temperatur bei dem virtuellen Sensor einspielen (wz_vT_Sensor1) kann? Den virtuellen Sensor habe ich wie in der Wiki beschrieben erstellt.

Wie kann ich dem Dummy ein Reading hinzufügen der die Temperatur in "temperature" speichert?

Vielen Dank

Internals:
   NAME       TempBuero2
   NR         393
   STATE      T: 18.937
   TYPE       dummy
   Readings:
     2015-02-15 12:25:30   state           T: 18.937
Attributes:
   room       Fhem2Fehm,Technik

Internals:
   DEF        123456
   IODev      HMLAN1
   NAME       wz_vT
   NR         400
   STATE      ???
   TYPE       CUL_HM
   channel_01 wz_vT_Sensor1
   Readings:
   Helper:
     Io:
       prefIO
       vccu
     Mrssi:
       mNo
     Prt:
       bErr       0
       sProc      0
     Q:
       qReqConf
       qReqStat
     Role:
       dev        1
       vrt        1
Attributes:
   IODev      HMLAN1
   expert     2_full
   model      virtual_1
   subType    virtual
   webCmd     virtualode]

Internals:
   DEF        12345601
   NAME       wz_vT_Sensor1
   NR         401
   STATE      ???
   TYPE       CUL_HM
   chanNo     01
   device     wz_vT
   Readings:
   Helper:
     Role:
       chn        1
       vrt        1
Attributes:
   model      virtual_1
   peerIDs
   room       Fhem2Fehm
   webCmd     press short:press long

Bei pi ist DummyA dazu da, dass der Haupt den Befehl von pi ausliest.
dummy
DummyA
set TempBuero2 T: 18.937
DummyB
set TempBuero22 18.937
notify
BueroTemp2FHEM 2015-02-15 11:27:02
BueroTemp3FHEM 2015-02-15 11:27:02

schka17

Hallo Freddy,

ich mache das einfacher mit cloneDummy

cloneDummy

    This module provides a cloneDummy which will receive readings from any other device sending data to fhem.
    E.g. may be used in an FHEM2FHEM environment. Duplicate source events which may occur within the time given by the global attribute dupTimeout, will be suppressed in order to avoid overhead. The value of this attribute is to be changed with great care, as it affects other parts of FHEM, too.
    the order of precedence for STATE is following:
        if there is no parameter preset then state of cloneDummy (initialized,active)
        if addStateEvent is set then the "state" of cloned Device is set (no "state" from cloneDummy)
        if the optional reading is set in define, then value of the optional reading. (this will overstrike the previous two lines)
        if stateFormat set ass attr, it will dominate all previous lines

    Define
        define <cloneDevice> cloneDummy <sourceDevice> [reading]

        Example:

            define clone_OWX_26_09FF26010000 cloneDummy OWX_26_09FF26010000
M: Thinclient x64 Debian | CUL FS20, HMS100WD, HMS100TF, HMS100T, HMS100CO, S300, S555TH | OWServer DS1420, DS18B20, DS2408 | RFXCOM UVN128, THWR800, THGR228N,RTGR328, PCR800 |Jeelink PCA301 EC3000|CUNO+IR|HMLAN|HMUSB|CUL433 Somfy|mySensors|espEasy
S1:Raspberry mit BPM810, Jeelink EC3000

Freddy

Danke,
Hatte ich jetzt euch schon sogefunden und geht bestens und einfach