diff --git a/src/nodes/switch/SwitchController.ts b/src/nodes/switch/SwitchController.ts index 3887a56de0..1667b8397a 100644 --- a/src/nodes/switch/SwitchController.ts +++ b/src/nodes/switch/SwitchController.ts @@ -96,7 +96,7 @@ export default class SwitchController extends InputOutputController< const message: NodeMessage = { topic: 'triggered', }; - if (data.payload) { + if (data.payload !== undefined) { message.payload = data.payload; }