2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-04 17:08:43 +00:00

RHASSPY_Utils: fix commandref

git-svn-id: https://svn.fhem.de/fhem/trunk@29786 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Beta-User 2025-03-25 09:12:32 +00:00
parent efb275781a
commit 09bba15aad

View File

@ -49,8 +49,8 @@ sub siteId2room {
Log3($hash->{NAME}, 1, "JSON decoding error, $rawd seems not to be valid JSON data: $@");
return "Error! $rawd seems not to be valid JSON data!";
}
my $site = encode('UTF-8',$data->{siteId});
my $room = encode('UTF-8',$data->{Room});
my $site = $data->{siteId};
my $room = $data->{Room};
my $rreading = makeReadingName("siteId2room_$site");
readingsSingleUpdate($hash, $rreading, $room, 1);
@ -77,7 +77,7 @@ __END__
<ul>
<li>siteId2room</li>
Routine to change the default room a siteId is assigned to. Might be usefull if you use e.g. your mobile phone as satellite.<br>
Example: <code>attr &lt;rhasspyDevice&gt; rhasspyIntents siteId2room=RHASSPY::siteId2room::siteId2room(NAME,DATA)</code></p>
Example: <code>attr &lt;rhasspyDevice&gt; rhasspyIntents siteId2room=RHASSPY::siteId2room::siteId2room(NAME,DATA)</code><br>
</ul>
=end html
=cut