2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-07 19:04:20 +00:00

MYSENSORS_DEVICE: fix request-message in respect to new mapping-semantics

git-svn-id: https://svn.fhem.de/fhem/trunk@6931 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
ntruchsess 2014-11-09 17:44:40 +00:00
parent 96b6679422
commit d0cd7e909e

View File

@ -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)
);
}