Files
Server-scripts/raspberry/scripts/samsung_remote.sh
T
2026-09-14 12:43:38 +02:00

13 lines
341 B
Bash
Executable File

#!/bin/bash
if [ "$1" == "ON" ];then
irsend SEND_ONCE SAMSUNG KEY_1;
elif [ "$1" == "OFF" ];then
irsend SEND_ONCE SAMSUNG KEY_POWER;
elif [ "$1" == "-a" ];then
irsend SEND_ONCE SAMSUNG $2;
elif [ "$1" == "-l" ]; then
irsend LIST SAMSUNG ""
else
printf "ON...Turn TV ON\nOFF...Turn TV OFF\n-a...Send Command\n-l...List Commands\n"
fi