From 070a3a5ca73b0d84d4f916f9c0066bf2eeeeb00a Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sat, 3 Apr 2021 14:14:01 +0200 Subject: [PATCH] Fix Alexa Hue shutter detection Fix Alexa Hue shutter detection (#11517) --- tasmota/xdrv_27_shutter.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/xdrv_27_shutter.ino b/tasmota/xdrv_27_shutter.ino index 10133bcbb..95c3b70e5 100644 --- a/tasmota/xdrv_27_shutter.ino +++ b/tasmota/xdrv_27_shutter.ino @@ -529,8 +529,8 @@ void ShutterUpdatePosition(void) } } -bool ShutterState(uint32_t device) -{ +bool ShutterState(uint32_t device) { + if (device > 4) { return false; } device--; device &= 3; return (Settings.flag3.shutter_mode && // SetOption80 - Enable shutter support