It might be that the Z-Wave inclusion process did not complete properly. See this thread on Having An Issue With networkSecurityLevel: ZWAVE_S0_FAILED where the suggested solution “Try to reboot the hub, reset the device and pair it while it’s close to the hub (within 5ft or so)” worked.