simplify command

This commit is contained in:
Sandro Zimmermann 2025-12-06 15:02:55 +01:00
parent dae4a527be
commit 791f9a7305

View File

@ -9,7 +9,7 @@ GPIO.setmode(GPIO.BCM)
GPIO.setup(LED_PIN, GPIO.OUT) GPIO.setup(LED_PIN, GPIO.OUT)
def trigger_action(command): def trigger_action(command):
if "let" in command.lower(): if "fire" in command.lower():
GPIO.output(LED_PIN, GPIO.HIGH) GPIO.output(LED_PIN, GPIO.HIGH)
print("Light ON") print("Light ON")
elif "dark" in command.lower(): elif "dark" in command.lower():