Es geht noch gar nicht um die Sprachsteuerung über Alexa. Momentan wird im Enigmamodul über die fhem-Oberfläche bei ChannelUp/-Down der Remotecontrolwert für RIGHT und LEFT an das Gerät geschickt. Bei meinem Gigablue UHD UE 4K mit OpenATV bewirkt das gar nichts.
# channelUp/channelDown
elsif ( lc($set) =~ /^(channelup|channeldown)$/ ) {
Log3 $name, 3, "ENIGMA2 set $name " . $set;
if ( $state eq "on" || $ignoreState ne "0" ) {
if ( lc($set) eq "channelup" ) {
$cmd = "command=" . ENIGMA2_GetRemotecontrolCommand("RIGHT");
}
else {
$cmd = "command=" . ENIGMA2_GetRemotecontrolCommand("LEFT");
}
$result = ENIGMA2_SendCommand( $hash, "remotecontrol", $cmd );
}
else {
return "Device needs to be ON to switch channel.";
}
}
Im Code finden sich aber auch die "richtigen" Werte für Up und Down:
'CHANNELUP' => 402,
'CHANUP' => 402,
'CHANNELDOWN' => 403,
'CHANDOWN' => 403,
Ich habe diese Testweise eingebaut und damit lässt sich dann der Kanal über die fhem Oberfläche mit ChannelUp/-Down steuern.
Ich hoffe, es ist nun klarer...
Beste Grüße
Torsten