mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 01:14:19 +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:
parent
96b6679422
commit
d0cd7e909e
@ -425,12 +425,13 @@ sub onSetMessage($$) {
|
|||||||
|
|
||||||
sub onRequestMessage($$) {
|
sub onRequestMessage($$) {
|
||||||
my ($hash,$msg) = @_;
|
my ($hash,$msg) = @_;
|
||||||
variableTypeToStr($msg->{subType}) =~ /^V_(.+)$/;
|
|
||||||
|
my ($readingname,$val) = rawToMappedReading($hash, $msg->{subType}, $msg->{childId}, $msg->{payload});
|
||||||
sendClientMessage($hash,
|
sendClientMessage($hash,
|
||||||
childId => $msg->{childId},
|
childId => $msg->{childId},
|
||||||
cmd => C_SET,
|
cmd => C_SET,
|
||||||
subType => $msg->{subType},
|
subType => $msg->{subType},
|
||||||
payload => ReadingsVal($hash->{NAME},"$1\_$msg->{childId}","")
|
payload => ReadingsVal($hash->{NAME},$readingname,$val)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user