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
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
Danke,
Hatte ich jetzt euch schon sogefunden und geht bestens und einfach