Scheduler task add not allowed by devece mode

Hello.

I'm trying to add a task to the scheduler to turn off/on Wi-Fi on a schedule.

When adding a task, a message appears stating that the rule is not created.

not allowed by devece mode

Running in the terminal.
/interface wifi disable 0
/interface wifi enable 0

system package print

0 routeros 7.20.6 2025-12-04 12:00:39 12.6MiB
1 wifi-qcom 7.20.6 2025-12-04 12:00:39 10.2MiB

> system routerboard print

routerboard: yes
board-name: hAP ax^3
model: C53UiG+5HPaxD2HPaxD
serial-number: HKA0AWQF314
firmware-type: ipq6000
factory-firmware: 7.19.5
current-firmware: 7.20.6
upgrade-firmware: 7.20.6

Device-mode - RouterOS - MikroTik Documentation

Yes, device mode is (by default) active on quite a few (potentially) dangerous settings, you need to set device-mode to allow what you want to do, see:

scheduler is one of the items that can be locked, likely you have it disabled, check with:
/system/device-mode/print

With factory-firmware: 7.19.5, it's not "grandfathered" into more permissive device-mode scheme, so it's in "home" in the device-mode scheme.

Now device-mode is such a dumb and flawed concept, so don't ask me to defend the scheme but no sense in inflect "RTFM" on another victim of device-mode ills

And docs do describe this, but at end of day you'll likely need:

/system/device-mode/update mode=advanced

Then UNPLUG the router from power (or hit a button) within 5 minutes (by default).

Thanks.

I do it this way.

/system/device-mode/update mode=home scheduler=yes

1 Like

It's interesting.

What am I doing wrong?

In the Mikrotik terminal, I use the command
/system/device-mode/update mode=home scheduler=yes

> /system/device-mode/update mode=home scheduler=yes
update: turn off power or reboot by pressing reset or mode button in 4m22s to activate changes

Afterwards, I tried rebooting Mikrotik and even turning it off for a couple of minutes.

After turning on the router, I look at scheduler: no:

> /system/device-mode/print
mode: home
allowed-versions: 7.13+,6.49.8+
flagged: no
flagging-enabled: yes
scheduler: no
socks: no
fetch: no
pptp: yes
l2tp: yes
bandwidth-test: no
traffic-gen: no
sniffer: no
ipsec: yes
romon: no
proxy: no
hotspot: no
smb: yes
email: no
zerotier: no
container: no
install-any-version: no
partitions: no
attempt-count: 2

You're still on mode-home. As mentioned above, first do
/system/device-mode/update mode=advanced

I don't understand.
My steps:
In the router terminal, I run the command:
/system/device-mode/update mode=advanced

Then I go to the router and, while it's on, press the mode button on the back.

Then I simply reboot the router.

What am I doing wrong?

You don't reboot the router yourself. it should reboot when you press the mode button. You can also try to unplug from power as written. You unplug from power while you see the device mode message that tells you so. Unplugging anytime later, or even after a manual reboot, does nothing with device mode.

Just follow the instructions from @Amm0 Scheduler task add not allowed by devece mode - #4 by Amm0

Figured it out.
When I ran the command in the terminal (-- [Q quit|D dump|C-z pause]), I pressed Q and went to the router and pressed the mode button. But you shouldn't press Q when running the command.
When I press the mode button, the router reboots itself.

1 Like