diff --git a/fhem/contrib/RHASSPY/10_RHASSPY.pm b/fhem/contrib/RHASSPY/10_RHASSPY.pm index 0e60471bb..134a1f2a0 100644 --- a/fhem/contrib/RHASSPY/10_RHASSPY.pm +++ b/fhem/contrib/RHASSPY/10_RHASSPY.pm @@ -5056,7 +5056,10 @@ sub handleIntentMediaControls { return $hash->{NAME} if !$data->{Confirmation} && getNeedsConfirmation( $hash, $data, 'MediaControls', $device ); my $cmd = $mapping->{$command}; - $cmd .= " $data->{Playlist}" if $command eq 'cmdPlaylist'; + if ( $command eq 'cmdPlaylist') { + return respond( $hash, $data, getResponse($hash, 'NoValidData') ) if !defined $data->{Playlist}; + $cmd .= " $data->{Playlist}"; + } if ( $command eq 'cmdPlaySelected'|| $command eq 'cmdAddSelected' ) { #hand over method! playSelection or addSelection return respond( $hash, $data, getResponse($hash, 'NoMappingFound') ) if InternalVal($device, 'TYPE', 'unknown') ne 'MPD'; @@ -6167,6 +6170,17 @@ So all parameters in define should be provided in the key=value form. In
homebridgeMapping
atm. is not used as source for appropriate mappings in RHASSPY.Checks the provided text file. Content will be sent to Rhasspy NLU for recognition (line by line), result will be written to the file '<input without ending.txt>_result.txt'. stop as filename will stop test mode if sth. goes wrong. No commands will be executed towards FHEM devices while test mode is active.
-Note: To get test results, RHASSPY's siteId has to be configured for intent recognition in Rhasspy as well.
+Note: To get test results, some additional configuration in Rhasspy is required!
Checks the provided sentence for recognition by Rhasspy NLU. No commands to be executed as well.
-Note: wrt. to RHASSPY's siteId for NLU see remark get test_file.
+Checks the provided sentence for recognition by Rhasspy NLU. No commands to be executed as well, needs also additional configuration in Rhasspy.
If some key in this attribute are set, RHASSPY will react somehow like a msgDialog device. This needs some configuration in the central msgConfig device first, and additionally for each RHASSPY instance a siteId has to be added to the intent recognition service.
+If some key in this attribute are set, RHASSPY will react somehow like a msgDialog device. This needs some configuration in the central msgConfig device first, and additional configuration in Rhasspy!
Keys that may be set in this attribute:Optionally, you may want not to use the internal speach-to-text engine provided by Rhasspy (for one or several siteId's), but provide simple text to be forwarded to Rhasspy for intent recognition. Atm. only "AMAD" is supported for this feature. For generic "msg" (and text messenger) support see rhasspyMsgDialog
Note: You will have to (de-) activate these parts of the Rhasspy ecosystem for the respective satellites manually!
Optionally, you may want not to use the internal speach-to-text and text-to-speach engines provided by Rhasspy (for one or several siteId's), but provide simple text to be forwarded to Rhasspy for intent recognition. Atm. only "AMAD" is supported for this feature. For generic "msg" (and text messenger) support see rhasspyMsgDialog
Note: Needs some additional configuration in Rhasspy!