diff --git a/src/MySwitchThing.ts b/src/MySwitchThing.ts index c38cf92..a87f0bb 100644 --- a/src/MySwitchThing.ts +++ b/src/MySwitchThing.ts @@ -14,11 +14,11 @@ export class MySwitchSingleItem { case 'PRESS_SHORT': mqttHandler.send(this.actionTopic, 'SHORT', true) break - case 'PRESS_LONG': - case 'PRESS_CONT': + case 'PRESS_LONG_START': + case 'PRESS_LONG_CONT': mqttHandler.send(this.actionTopic, 'LONG_HOLD', true) break - case 'PRESS_LONG_RELEASE': + case 'PRESS_LONG_END': mqttHandler.send(this.actionTopic, 'LONG_END', true) break default: