diff --git a/smart-hut/src/components/dashboard/AutomationCreationModal.js b/smart-hut/src/components/dashboard/AutomationCreationModal.js index 722c09c..e0ef5f6 100644 --- a/smart-hut/src/components/dashboard/AutomationCreationModal.js +++ b/smart-hut/src/components/dashboard/AutomationCreationModal.js @@ -447,11 +447,11 @@ class AutomationSaveModal extends Component { deviceId: trigger.device, kind, }, - kind + kind === "booleanTrigger" ? { on: trigger.on } : { operator: trigger.operand, - value: trigger.value, + range: parseInt(trigger.value), } ) );