MYSENSORS_DEVICE: fix request-message in respect to new mapping-semantics
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@6931 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -425,12 +425,13 @@ sub onSetMessage($$) {
|
||||
|
||||
sub onRequestMessage($$) {
|
||||
my ($hash,$msg) = @_;
|
||||
variableTypeToStr($msg->{subType}) =~ /^V_(.+)$/;
|
||||
|
||||
my ($readingname,$val) = rawToMappedReading($hash, $msg->{subType}, $msg->{childId}, $msg->{payload});
|
||||
sendClientMessage($hash,
|
||||
childId => $msg->{childId},
|
||||
cmd => C_SET,
|
||||
subType => $msg->{subType},
|
||||
payload => ReadingsVal($hash->{NAME},"$1\_$msg->{childId}","")
|
||||
payload => ReadingsVal($hash->{NAME},$readingname,$val)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user